android - Cube Animation with only two Images in an ImageView -


i need show image on imageview & onclick of image , wanna show image on imageview cube-like transition animation shown in below figure "ontouch" .

image

i have been searching examples on site , intended activity .i need implement imageview .

presently using viewflipper 2 images , trying implement it,

<viewflipper android:layout_width="match_parent"     android:layout_height="match_parent"     android:id="@+id/a"     android:layout_weight="1">      <imageview          android:contentdescription="@string/action_settings"     android:id="@+id/alphaa"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:src="@drawable/a"/>      <imageview          android:contentdescription="@string/action_settings"     android:id="@+id/imga"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:src="@drawable/small_aeroplane1"/> </viewflipper>    .......... 

like have 4 view flippers upto now.

i need know , how add cube transitions above case. or there better way implement cube transition between 2 images

you'll have use viewpager,

check https://github.com/jfeinstein10/jazzyviewpager

or here ready viewpager class 3d cube animation https://github.com/inovex/viewpager3d/blob/master/src/de/inovex/android/widgets/viewpager3d.java


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -