mirror of
				https://gitlab.com/xynngh/YetAnotherCallBlocker.git
				synced 2025-06-05 22:19:12 +02:00 
			
		
		
		
	Add basic animations to settings fragment transitions
This commit is contained in:
		@@ -65,6 +65,8 @@ public class SettingsActivity extends AppCompatActivity
 | 
			
		||||
        fragment.setArguments(args);
 | 
			
		||||
 | 
			
		||||
        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
 | 
			
		||||
        ft.setCustomAnimations(R.anim.enter_from_right, R.anim.exit_to_left,
 | 
			
		||||
                R.anim.enter_from_left, R.anim.exit_to_right);
 | 
			
		||||
        ft.replace(R.id.settings, fragment, preferenceScreen.getKey());
 | 
			
		||||
        ft.addToBackStack(preferenceScreen.getKey());
 | 
			
		||||
        ft.commit();
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								app/src/main/res/anim/enter_from_left.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								app/src/main/res/anim/enter_from_left.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:shareInterpolator="false">
 | 
			
		||||
    <translate
 | 
			
		||||
        android:duration="300"
 | 
			
		||||
        android:fromXDelta="-100%"
 | 
			
		||||
        android:fromYDelta="0%"
 | 
			
		||||
        android:toXDelta="0%"
 | 
			
		||||
        android:toYDelta="0%" />
 | 
			
		||||
</set>
 | 
			
		||||
							
								
								
									
										10
									
								
								app/src/main/res/anim/enter_from_right.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								app/src/main/res/anim/enter_from_right.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:shareInterpolator="false">
 | 
			
		||||
    <translate
 | 
			
		||||
        android:duration="300"
 | 
			
		||||
        android:fromXDelta="100%"
 | 
			
		||||
        android:fromYDelta="0%"
 | 
			
		||||
        android:toXDelta="0%"
 | 
			
		||||
        android:toYDelta="0%" />
 | 
			
		||||
</set>
 | 
			
		||||
							
								
								
									
										10
									
								
								app/src/main/res/anim/exit_to_left.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								app/src/main/res/anim/exit_to_left.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:shareInterpolator="false">
 | 
			
		||||
    <translate
 | 
			
		||||
        android:duration="300"
 | 
			
		||||
        android:fromXDelta="0%"
 | 
			
		||||
        android:fromYDelta="0%"
 | 
			
		||||
        android:toXDelta="-100%"
 | 
			
		||||
        android:toYDelta="0%" />
 | 
			
		||||
</set>
 | 
			
		||||
							
								
								
									
										10
									
								
								app/src/main/res/anim/exit_to_right.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								app/src/main/res/anim/exit_to_right.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:shareInterpolator="false">
 | 
			
		||||
    <translate
 | 
			
		||||
        android:duration="300"
 | 
			
		||||
        android:fromXDelta="0%"
 | 
			
		||||
        android:fromYDelta="0%"
 | 
			
		||||
        android:toXDelta="100%"
 | 
			
		||||
        android:toYDelta="0%" />
 | 
			
		||||
</set>
 | 
			
		||||
		Reference in New Issue
	
	Block a user