Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: using Activity's default animation for Fragments

I need to use the Activities default animation in a Fragment replace, but using android.R.anim I can't find it.

How can I find the name of it? Is it possible to use it by default, or would I have to create the animation manually in order to use it?

Thanks a lot in advance.

like image 352
noloman Avatar asked Jan 17 '13 10:01

noloman


People also ask

Are fragments faster than activity?

Each tab will have a fragment to hold the products. The tabs could either held in activity or a fragment. I do find fragments a slightly faster than activities but really its not something you would really notice in most cases. Regardless if they was intended for speed or not they still seem/feel little quicker.

Which are the types of animations supported in Android explain any one in detail?

The animations are basically of three types as follows: Property Animation. View Animation. Drawable Animation.

What is transition animation in Android?

Android's transition framework allows you to animate all kinds of motion in your UI by simply providing the starting layout and the ending layout.


1 Answers

Having searched for this exact issue, I've found this resource on the Google forums (oddly not in Android-Developers):

https://groups.google.com/d/topic/android-porting/c75-7TMgn3A/discussion

like image 111
Andre Avatar answered Oct 20 '22 12:10

Andre