Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
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 onCr...
#5: Post edited
- 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
- ```xml
- <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 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
- ```xml
- <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](https://stackoverflow.com/a/27180740/16897106) and another answer in that question.
#4: Post edited
- 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
```java<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>- <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</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 written following command in themes.xml```xml<item name="android:windowActivityTransitions">true</item>```
- 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
- ```xml
- <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.
#3: Post edited
- 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
- ```java
- <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
- <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</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 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
- ```java
- <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
- <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</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 written following command in themes.xml
- ```xml
- <item name="android:windowActivityTransitions">true</item>
- ```
#2: Post edited
- 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
I had executed it in Android Device (API level : 21). Kitkat... 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
- ```java
- <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
- ```java
- <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
- <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</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 won't work in 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 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.
- ```java
- overridePendingTransition(R.anim.fadein, R.anim.fadeout);
- ```
- 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
- ```java
- <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
- ```java
- <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
- <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</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.
#1: Initial revision
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. ```java overridePendingTransition(R.anim.fadein, R.anim.fadeout); ``` I had executed it in Android Device (API level : 21). Kitkat... 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 ```java <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 ```java <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item> <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</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 won't work in 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.