Android中使Navigation传递集合
作者:互联网
将集合通过Bundle传递
val bundle = Bundle() Navigation.findNavController(binding.root).navigate(R.id.actionShowDeviceAddFromAutoDetection,bundle)
动作Id:
actionShowDeviceAddFromAutoDetection
<action android:id="@+id/actionShowDeviceAddFromAutoDetection" app:destination="@id/deviceAddFragment" app:popUpTo="@id/mainFragment" app:popUpToInclusive="false" app:enterAnim="@anim/nav_default_enter_anim" app:exitAnim="@anim/nav_default_exit_anim" app:popEnterAnim="@anim/nav_default_pop_enter_anim" app:popExitAnim="@anim/nav_default_pop_exit_anim" />
标签:actionShowDeviceAddFromAutoDetection,bundle,传递,Bundle,集合,Android,Navigation,中使 来源: https://www.cnblogs.com/changyiqiang/p/15916417.html