问题描述
导航组件是否支持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
中定义的动画。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)