mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3375 Settings | Enhancement | Add animation for space settings (#2273)
This commit is contained in:
parent
663721363b
commit
05a7d644b3
6 changed files with 33 additions and 2 deletions
|
@ -518,7 +518,7 @@ class HomeScreenFragment : BaseComposeFragment(),
|
|||
runCatching {
|
||||
findNavController()
|
||||
.navigate(
|
||||
R.id.spaceSettingsScreen,
|
||||
R.id.actionOpenSpaceSettings,
|
||||
SpaceSettingsFragment.args(
|
||||
space = SpaceId(space)
|
||||
)
|
||||
|
|
6
app/src/main/res/anim/slide_in_left.xml
Normal file
6
app/src/main/res/anim/slide_in_left.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="300"
|
||||
android:fromXDelta="-100%"
|
||||
android:toXDelta="0%"
|
||||
android:interpolator="@android:anim/decelerate_interpolator" />
|
6
app/src/main/res/anim/slide_in_right.xml
Normal file
6
app/src/main/res/anim/slide_in_right.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="300"
|
||||
android:fromXDelta="100%"
|
||||
android:toXDelta="0%"
|
||||
android:interpolator="@android:anim/decelerate_interpolator" />
|
6
app/src/main/res/anim/slide_out_left.xml
Normal file
6
app/src/main/res/anim/slide_out_left.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="300"
|
||||
android:fromXDelta="0%"
|
||||
android:toXDelta="-100%"
|
||||
android:interpolator="@android:anim/accelerate_interpolator" />
|
6
app/src/main/res/anim/slide_out_right.xml
Normal file
6
app/src/main/res/anim/slide_out_right.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="300"
|
||||
android:fromXDelta="0%"
|
||||
android:toXDelta="100%"
|
||||
android:interpolator="@android:anim/accelerate_interpolator" />
|
|
@ -213,6 +213,13 @@
|
|||
<action
|
||||
android:id="@+id/actionOpenSpaceSwitcher"
|
||||
app:destination="@id/selectSpaceScreen"/>
|
||||
<action
|
||||
android:id="@+id/actionOpenSpaceSettings"
|
||||
app:destination="@id/spaceSettingsScreen"
|
||||
app:enterAnim="@anim/slide_in_right"
|
||||
app:exitAnim="@anim/slide_out_left"
|
||||
app:popEnterAnim="@anim/slide_in_left"
|
||||
app:popExitAnim="@anim/slide_out_right" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
|
@ -332,7 +339,7 @@
|
|||
<fragment
|
||||
android:id="@+id/spaceSettingsScreen"
|
||||
android:name="com.anytypeio.anytype.ui.settings.space.SpaceSettingsFragment"
|
||||
android:label="SpaceSettingsScreen"/>
|
||||
android:label="SpaceSettingsScreen" />
|
||||
|
||||
<dialog
|
||||
android:id="@+id/spaceListScreen"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue