Foggy day
Android - screen flickering whilefragment transaction 본문
when you use a animation in a fragment transaction, screen would flicker.
It is caused because of animation drawable.
If you use animation drawable like below, obviously flickering occurs
slide_in_right.xml
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="300"
android:fromXDelta="100%p"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:toXDelta="0" />
</set>
The cause is set.
Remove <set/>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="100%p"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:toXDelta="0" />
'Android' 카테고리의 다른 글
Android(Kotlin) - 공휴일, 주말 날짜 얻어오기 (0) | 2021.04.18 |
---|---|
Android(Kotlin) - Setting the viewpager2 height according to the height of the items (0) | 2021.04.18 |
Android(Kotlin) - RxKotlin -2 : Map, flatMap (0) | 2021.03.23 |
Android(Kotlin) - RxKotlin -2 : Observable (0) | 2021.03.23 |
Android(Kotlin) - RxKotlin -1 : PublishSubject (0) | 2021.03.23 |