I have one Relative Layout and i have set it’s background as drawable, which is a selector.
There are total tow background to this Relative Layout and one is in state as selected and one is in non selected mode, both the states are handled in the drawable selector xml file.
What i want to implement is when selector switch the background image from selected to not selected or vice-versa i want to display fade in/out animation.
I found out that i need to use android:exitFadeDuration="@android:integer/config_mediumAnimTime for implementing this in xml file but i am using Android API level 8 and it does not have this property.
So do i need to implement this in java code, how should i implement this in java?
Is there any other option to implement it in xml?
Thanks.
Please use the following line it will solve your problem.
instead of animation_big_to_small_rotate use the xml file which you have for animation. and you can change the images as your wish.