mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
WIP
This commit is contained in:
parent
f9f537b56a
commit
a0e5e77dcb
|
@ -6,13 +6,25 @@
|
|||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!"
|
||||
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/fragmentContainerView2"
|
||||
android:name="androidx.navigation.fragment.NavHostFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
||||
app:defaultNavHost="true"
|
||||
app:navGraph="@navigation/app_nav_graph"/>
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
|
||||
</com.google.android.material.bottomnavigation.BottomNavigationView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
8
app/src/main/res/menu/bottom_menu.xml
Normal file
8
app/src/main/res/menu/bottom_menu.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/homeTestUi"
|
||||
android:title="HomeTestUi" />
|
||||
|
||||
</menu>
|
15
app/src/main/res/navigation/app_nav_graph.xml
Normal file
15
app/src/main/res/navigation/app_nav_graph.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/app_nav_graph"
|
||||
app:startDestination="@id/placeholder">
|
||||
|
||||
<include app:graph="@navigation/ui_home_nav_graph" />
|
||||
<fragment android:id="@+id/placeholder" >
|
||||
<action
|
||||
android:id="@+id/action_placeholder_to_ui_home_nav_graph"
|
||||
app:destination="@id/ui_home_nav_graph" />
|
||||
</fragment>
|
||||
|
||||
|
||||
</navigation>
|
11
ui/home/src/main/res/navigation/ui_home_nav_graph.xml
Normal file
11
ui/home/src/main/res/navigation/ui_home_nav_graph.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/ui_home_nav_graph"
|
||||
app:startDestination="@id/homeTestUi">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/homeTestUi"
|
||||
android:name="one.nem.ui.home.HomeTestUi"
|
||||
android:label="HomeTestUi" />
|
||||
</navigation>
|
Loading…
Reference in New Issue
Block a user