Merge "Add alpha animation for 180 rotation" into rvc-dev am: 04e81462ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12033206 Change-Id: I232b8eef7cc2873c418a1c29097023b4910076a4
This commit is contained in:
@@ -25,4 +25,10 @@
|
|||||||
android:fillBefore="true" android:fillAfter="true"
|
android:fillBefore="true" android:fillAfter="true"
|
||||||
android:interpolator="@interpolator/fast_out_slow_in"
|
android:interpolator="@interpolator/fast_out_slow_in"
|
||||||
android:duration="@android:integer/config_screen_rotation_total_180" />
|
android:duration="@android:integer/config_screen_rotation_total_180" />
|
||||||
|
<alpha android:fromAlpha="0.0" android:toAlpha="1.0"
|
||||||
|
android:fillEnabled="true"
|
||||||
|
android:fillBefore="true" android:fillAfter="true"
|
||||||
|
android:interpolator="@interpolator/screen_rotation_alpha_in"
|
||||||
|
android:startOffset="@android:integer/config_screen_rotation_fade_in_delay"
|
||||||
|
android:duration="@android:integer/config_screen_rotation_fade_in" />
|
||||||
</set>
|
</set>
|
||||||
|
|||||||
@@ -25,4 +25,9 @@
|
|||||||
android:fillBefore="true" android:fillAfter="true"
|
android:fillBefore="true" android:fillAfter="true"
|
||||||
android:interpolator="@interpolator/fast_out_slow_in"
|
android:interpolator="@interpolator/fast_out_slow_in"
|
||||||
android:duration="@android:integer/config_screen_rotation_total_180" />
|
android:duration="@android:integer/config_screen_rotation_total_180" />
|
||||||
|
<alpha android:fromAlpha="1.0" android:toAlpha="0.0"
|
||||||
|
android:fillEnabled="true"
|
||||||
|
android:fillBefore="true" android:fillAfter="true"
|
||||||
|
android:interpolator="@interpolator/screen_rotation_alpha_out"
|
||||||
|
android:duration="@android:integer/config_screen_rotation_fade_out" />
|
||||||
</set>
|
</set>
|
||||||
Reference in New Issue
Block a user