android - Rotate a layout like a PENDULUM -
can move inflated layout or dialog or(another way) etc pendulum. inflated layout contain image view , text view . possible through animation or not
thanks in advance
you can use rotateanimation , assign parent view.
however, swing effect (like pendulum) need provide proper values pivot , degrees.
<rotate xmlns:android="http://schemas.android.com/apk/res/android" android:pivotx="50%" android:pivoty="50%" android:fromdegrees="-135" android:todegrees="-45" android:drawable="@drawable/imagefile_to_rotate" android:repeatcount="infinite" />
in case need layer-list drawable combine image text. see this. http://developer.android.com/guide/topics/resources/drawable-resource.html#layerlist
however, can use drawable , not view in layerlist. thing cannot use view have create custom drawable.
Comments
Post a Comment