Android Fragment standard transition not animating?

I finally got this to work after much trial and error.

I finally got this to work after much trial and error. First and foremost, get the lastest ACL, it did fix custom animations, and while this wasnt my exact problem, once those worked I ended up using them instead of standard transitions. Right now im using: ft.SetCustomAnimations(android.R.anim.

Fade_in,android.R.anim. Fade_out,android.R.anim. Fade_in,android.R.anim.

Fade_out); The key to making it work on both Android 2.1, 2.2 and 2.3, as well as Android 3.0+ was to do the following: Make sure you are using ONLY API´s available to the lowest API LEVEL you wish to support (in my case 2.1). Compile using Android 3.0.In the manifest file, set android:hardwareAccelerated="true" inside your application tag. Fragment animations now work on all devices.

If you don't set the extra info in the application tag, the animation will ocurr, but in a very very choppy way, making it seem it didn't happen at all. Hope this helps someone in the future! As a note, there are some API checking tools so you are sure you arent using any APIs that arent available to you.

I prefer to work on 2.1 so the IDE doesn't show anything I cant use, once I have stable code I jump back to compiling on 3.0.

Try getting the most recent ACL again, they have fixed it: code.google.com/p/android/issues/detail?... Also I noticed that for setCustomAnimations, it needs to be set before transaction calls like replace in order to take effect. FragmentTransaction ft = getSupportFragmentManager(). BeginTransaction(); ft.SetCustomAnimations(R.anim.

In_from_left, R.anim. Out_to_right, R.anim. In_from_right, R.anim.

Out_to_left); ft. Replace(android.R.id. Content, newFrag); ft. AddToBackStack(null); ft.commit().

I have done both things you describe, I did state that in the comments as to give follow up to my question. I got it to work already, but im just testing before I give an answer that im not 100% sure. I got it to work with the Galaxy Tab, on the XOOM the animations look like crap.

– blindstuff Oct 25 at 3:49 sorry, I couldn't comment on other people's post (not enough reputation). Glad to hear you solved it though! – dvd Oct 25 at 16:46 Thank you for your help, +1'ed, it was helpful to use ft.SetCustomAnimations(R.anim.

In_from_left, R.anim. Out_to_right, R.anim. In_from_right, R.anim.

Out_to_left); instead of just ft. SetCustomAnimations(R.anim. In_from_left, R.anim. Out_to_right); – blindstuff Oct 25 at 16:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions