What's the minimum API level for activity transition?
I was trying to show transition on activity changes. I had followed two method from SO. I lost those link so I can't add them here.
My first method was I had used
overridePendingTransition on onCreate method.
I had executed it in Android Device (API level : 21). Lollipop... Version 5.1
To me it was looking like the function doesn't work in under API level 23. I had searched in internet little bit but, didn't find. So, I was trying to do it another way.
I had added following lines to themes.xml
<style name="WindowAnimationTransition"> <item name="android:windowEnterAnimation">@android:anim/fade_in</item> <item name="android:windowExitAnimation">@android:anim/fade_out</item> </style>
And, used following code in Theme.Myapplication
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item> <item name="android:windowActivityTransitions">true</item>
I had copy-pasted the lines from SO. As you can see there's something written
tools:targetApi="l". I think
l is representing Lollipop not sure if it is correct. If It is correct than it should work my device.
I was trying to execute the application in Virtual Android Device. When I was trying to start that Virtual device then my laptop started lagging that's why I didn't use Virtual Device.
I had followed the answer and another answer in that question.