navigationcomponent-navgraph的id

o7jaxewo  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(211)

navgraph的id将生成/使用哪个类或属性?哪个班级将使用它?例如,android studio将使用哪个类“nav2”?

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <navigation xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/nav2"
  6. app:startDestination="@id/forthFragment">
  7. <fragment
  8. android:id="@+id/forthFragment"
  9. android:name="com.ui.main.UiFragmentA"
  10. android:label="fragment_forth"
  11. tools:layout="@layout/fragment_forth" >
  12. </fragment>
  13. </navigation>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题