Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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

57%
+2 −1
Q&A 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 onCr...

1 answer  ·  posted 3y ago by Anonymous‭  ·  last activity 3y ago by Anonymous‭

#5: Post edited by user avatar Anonymous‭ · 2021-09-13T08:12:29Z (about 3 years ago)
  • 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 by user avatar Anonymous‭ · 2021-09-13T07:31:36Z (about 3 years ago)
  • 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 by user avatar Anonymous‭ · 2021-09-13T07:26:42Z (about 3 years ago)
  • 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 by user avatar Anonymous‭ · 2021-09-13T07:23:55Z (about 3 years ago)
rechecked my version name
  • 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 by user avatar Anonymous‭ · 2021-09-13T07:03:34Z (about 3 years ago)
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.