Added animation + white background to settings page

This commit is contained in:
Sylvain Berfini 2023-09-29 14:17:08 +02:00
parent 82c041329b
commit 377f5000a5
3 changed files with 18 additions and 3 deletions

View file

@ -70,6 +70,8 @@ class SettingsFragment : GenericFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
postponeEnterTransition()
binding.lifecycleOwner = viewLifecycleOwner
binding.viewModel = viewModel
@ -112,5 +114,7 @@ class SettingsFragment : GenericFragment() {
}
binding.themeSpinner.onItemSelectedListener = themeListener
startPostponedEnterTransition()
}
}

View file

@ -15,7 +15,8 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/white">
<ImageView
android:id="@+id/back"

View file

@ -99,7 +99,12 @@
<action
android:id="@+id/action_global_helpFragment"
app:destination="@id/helpFragment"/>
app:destination="@id/helpFragment"
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/slide_out_left"
app:popEnterAnim="@anim/slide_in_left"
app:popExitAnim="@anim/slide_out_right"
app:launchSingleTop="true"/>
<fragment
android:id="@+id/recordingsFragment"
@ -109,7 +114,12 @@
<action
android:id="@+id/action_global_recordingsFragment"
app:destination="@id/recordingsFragment"/>
app:destination="@id/recordingsFragment"
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/slide_out_left"
app:popEnterAnim="@anim/slide_in_left"
app:popExitAnim="@anim/slide_out_right"
app:launchSingleTop="true"/>
<fragment
android:id="@+id/startCallFragment"