ArminKH
Well-Known Member
hi all
a few hours ago i download the (flickr view example with activity animation example)
and in this example the activity animations are similar 2 iphone's animation
but that use just single animation 4 activity start and activity finish
in anim folder in res we have 2 xml file for zoom enter and zoom exit
and in my activity i use
'SetAnimation is a sub 4 load animations
but i want to use this animation reverse for animation finish and i dont want 2 use same animation
i use this codes 4 reverse animation
and in activity use(in back key)
but this is not exactly the reverse of first animation
plz help me tnx
a few hours ago i download the (flickr view example with activity animation example)
and in this example the activity animations are similar 2 iphone's animation
but that use just single animation 4 activity start and activity finish
in anim folder in res we have 2 xml file for zoom enter and zoom exit
B4X:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
<scale android:fromXScale="2.0" android:toXScale="1.0"
android:fromYScale="2.0" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:duration="@android:integer/config_mediumAnimTime" />
</set>
B4X:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:zAdjustment="top">
<scale android:fromXScale="1.0" android:toXScale=".5"
android:fromYScale="1.0" android:toYScale=".5"
android:pivotX="50%p" android:pivotY="50%p"
android:duration="@android:integer/config_mediumAnimTime" />
<alpha android:fromAlpha="1.0" android:toAlpha="0"
android:duration="@android:integer/config_mediumAnimTime"/>
</set>
and in my activity i use
B4X:
SetAnimation("zoom_enter1", "zoom_exit1")
'SetAnimation is a sub 4 load animations
but i want to use this animation reverse for animation finish and i dont want 2 use same animation
i use this codes 4 reverse animation
B4X:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
<scale android:fromXScale=".5" android:toXScale="1.0"
android:fromYScale=".5" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:duration="@android:integer/config_mediumAnimTime" />
</set>
B4X:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:zAdjustment="top">
<scale android:fromXScale="1.0" android:toXScale="2.0"
android:fromYScale="1.0" android:toYScale="2.0"
android:pivotX="50%p" android:pivotY="50%p"
android:duration="@android:integer/config_mediumAnimTime" />
<alpha android:fromAlpha="1.0" android:toAlpha="0"
android:duration="@android:integer/config_mediumAnimTime"/>
</set>
and in activity use(in back key)
B4X:
SetAnimation("zoom_enter2", "zoom_exit2")
but this is not exactly the reverse of first animation
plz help me tnx