Thursday, September 5, 2013

[android-developers] No exit transition when Translucent theme is set

Hello!

Following problem, if I set the theme in manifest.xml to Translucent for my second activity and I use the method overridePendingTransition(enterAnim, exitAnim) in my first activity, the exit animation isn't applied.

Manifest.xml
<activity
    android:name="com.example.activitytransition.SecondActivity" 
    android:label="Second activity" 
    android:theme="@android:style/Theme.Translucent" > 
</activity>

MainActivity.java
Intent intent = new Intent(MainActivity.this, SecondActivity.class);
startActivity(intent); 
MainActivity.this.overridePendingTransition(0, R.anim.push_down_out);

R.anim.push_down_out
<set xmlns:android="http://schemas.android.com/apk/res/android" android:zAdjustment="top">
        <translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="600" /> 
</set>

Thanks in advance!
Lukasz

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate