mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Adjust screen transitions (#8707)
* Fade transition between main navigation tabs * Shared axis X between screen stacks Activity transition is using a "close enough" shared axis X xml animation
This commit is contained in:
		
							
								
								
									
										13
									
								
								app/src/main/res/anim-v33/shared_axis_x_pop_enter.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/src/main/res/anim-v33/shared_axis_x_pop_enter.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="-30dp" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="0" /> | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="0" | ||||
|         android:interpolator="@android:interpolator/linear_out_slow_in" | ||||
|         android:toAlpha="1" /> | ||||
| </set> | ||||
							
								
								
									
										14
									
								
								app/src/main/res/anim-v33/shared_axis_x_pop_exit.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								app/src/main/res/anim-v33/shared_axis_x_pop_exit.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="0" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="30dp" /> | ||||
|  | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="1" | ||||
|         android:interpolator="@android:interpolator/fast_out_linear_in" | ||||
|         android:toAlpha="0" /> | ||||
| </set> | ||||
							
								
								
									
										13
									
								
								app/src/main/res/anim-v33/shared_axis_x_push_enter.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/src/main/res/anim-v33/shared_axis_x_push_enter.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="30dp" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="0" /> | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="0" | ||||
|         android:interpolator="@android:interpolator/linear_out_slow_in" | ||||
|         android:toAlpha="1" /> | ||||
| </set> | ||||
							
								
								
									
										14
									
								
								app/src/main/res/anim-v33/shared_axis_x_push_exit.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								app/src/main/res/anim-v33/shared_axis_x_push_exit.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="0" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="-30dp" /> | ||||
|  | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="1" | ||||
|         android:interpolator="@android:interpolator/fast_out_linear_in" | ||||
|         android:toAlpha="0" /> | ||||
| </set> | ||||
							
								
								
									
										13
									
								
								app/src/main/res/anim/shared_axis_x_pop_enter.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/src/main/res/anim/shared_axis_x_pop_enter.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="-5%p" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="0" /> | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="0" | ||||
|         android:interpolator="@android:interpolator/linear_out_slow_in" | ||||
|         android:toAlpha="1" /> | ||||
| </set> | ||||
							
								
								
									
										14
									
								
								app/src/main/res/anim/shared_axis_x_pop_exit.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								app/src/main/res/anim/shared_axis_x_pop_exit.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="0" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="5%p" /> | ||||
|  | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="1" | ||||
|         android:interpolator="@android:interpolator/fast_out_linear_in" | ||||
|         android:toAlpha="0" /> | ||||
| </set> | ||||
							
								
								
									
										13
									
								
								app/src/main/res/anim/shared_axis_x_push_enter.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/src/main/res/anim/shared_axis_x_push_enter.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="5%p" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="0" /> | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="0" | ||||
|         android:interpolator="@android:interpolator/linear_out_slow_in" | ||||
|         android:toAlpha="1" /> | ||||
| </set> | ||||
							
								
								
									
										14
									
								
								app/src/main/res/anim/shared_axis_x_push_exit.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								app/src/main/res/anim/shared_axis_x_push_exit.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <translate | ||||
|         android:duration="300" | ||||
|         android:fromXDelta="0" | ||||
|         android:interpolator="@android:interpolator/fast_out_slow_in" | ||||
|         android:toXDelta="-5%p" /> | ||||
|  | ||||
|     <alpha | ||||
|         android:duration="195" | ||||
|         android:fromAlpha="1" | ||||
|         android:interpolator="@android:interpolator/fast_out_linear_in" | ||||
|         android:toAlpha="0" /> | ||||
| </set> | ||||
		Reference in New Issue
	
	Block a user