Thursday, 15 May 2014

android - overridePendingTransition behaiving different with intent flags -


I am using a slide in the animation to open the activities in my app using override pending transition. Earlier when I used the flag with intent with the initial statement (intent), it was working fine. This was not working with the flag of intent, so I used the Oversearid Pending Transition On On Resume () method, when the animation was introduced for the first time, but when the same example is brought to the fore due to the event flag Animation is working, but its not a smooth second time activity starts from right (which is right), but it appears with shock.

These are the intentions I am using

  intent.setFlags (intent. FLAG_ACTIVITY_CLEAR_TOP; inti.FLAG_ACTIVITY_NEW_TASK);   

What should be done to solve it. Support Plz

This is the code that I use for slides in animation ie enter_anim

  & lt; Android: toxDelta = "0%" Android   

Because I do not want to give any exit_anim

  & lt; Android: toxDelta = "0%" Android: fromY   

Try the following code < Pre> override pending transition (R.anim.slide_in_left_first, R.anim.slide_out_left_first); Slide_in_left_first: - & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Translation xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Period = "200" Android: fromXDelta = "100% p" Android: toXDelta = "0% p" /> ; Slide_out_left_first: - & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Translation xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Period = "200" Android: fromXDelta = "0%" Android: toXDelta = "0%" />

No comments:

Post a Comment