2

导航组件是否支持 DialogFragment 的动画转换?

我的对话:

<dialog
        android:id="@+id/loginBottomSheetDialog"
        android:name="com.app.tlbx.mvvm.bottomsheetdialogs.authenticationbottomsheetdialog.LoginBottomSheetDialog"
        android:label="LoginBottomSheetDialog">

     <action
          android:id="@+id/action_loginBottomSheetDialog_to_verificationBottomSheetDialog"
          app:destination="@id/verificationBottomSheetDialog"
          app:popUpTo="@id/loginBottomSheetDialog"
          app:popUpToInclusive="true"
          app:popEnterAnim="@anim/no_animation"
          app:popExitAnim="@anim/no_animation"
          app:enterAnim="@anim/no_animation"
          app:exitAnim="@anim/no_animation"/>
</dialog>

anim/no_animation

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
     //Empty
</set>

当我导航到动作中声明的目的地时,将显示其默认动画,而不是在@anim/no_animation.

4

0 回答 0