Note that there are some explanatory texts on larger screens.

plurals
  1. POOverridePendingTransition for Fragmentbased Preferenceactivity
    primarykey
    data
    text
    <p>In my currenct project I am using a custom animation to switch between activities which works fine.</p> <p>But since this animations is used on every activity switch my fragment based <a href="http://developer.android.com/reference/android/preference/PreferenceActivity.html" rel="nofollow">PreferenceActivity</a> looks a little bit out of place.</p> <p>I tried already to override the Transition in onBuildStartFragmentIntent (which for me seems to be the only indicator that a new activity will be started.</p> <pre><code> @Override public Intent onBuildStartFragmentIntent (String fragmentName, Bundle args, int titleRes, int shortTitleRes) { this.overridePendingTransition(R.anim.slideinleft, R.anim.slideoutleft); return super.onBuildStartFragmentIntent(fragmentName, args, titleRes, shortTitleRes); } </code></pre> <p>But this is not working.</p> <p><strong>Edit:</strong> After Blundell's comment I read the question again I need to be more specific. It is actually not the PreferenceActivity itselfe where the overridePendingTransition is not working. When opening the PreferenceActivity form another Activiy it is working with a similar method like in Blundell's blog described. </p> <p>What I meant was, when the PreferenceActivity is used on a small screns it has only one pane. When then a header is clicked a new Activity is openened. But all this behavior is handeled by the PreferenceActivity. If the header is clicked and the PreferenceActivity opens a new Activity, I would like to open this new screen with a custom animation.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload