fix: 调整按钮位置

This commit is contained in:
niushuai233 2022-10-13 14:46:25 +08:00
parent c3346234fe
commit 68dcedf63a
2 changed files with 13 additions and 10 deletions

View File

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@id/bottom_nav_device"
android:icon="@drawable/ic_home"
android:title="@string/title_bottom_nav_menu_device" />
<item
android:id="@id/bottom_nav_log"
android:icon="@drawable/ic_log"
android:title="@string/title_bottom_nav_menu_log" />
<item
android:id="@id/bottom_nav_device"
android:icon="@drawable/ic_home"
android:title="@string/title_bottom_nav_menu_device" />
<item
android:id="@id/bottom_nav_set"
android:icon="@drawable/ic_dashboard"

View File

@ -5,16 +5,19 @@
android:id="@+id/main_navigation"
app:startDestination="@id/bottom_nav_device">
<fragment
android:id="@id/bottom_nav_device"
android:name="cc.niushuai.project.devcontrol.ui.nav.main.device.NavDeviceFragment"
android:label="@string/title_bottom_nav_menu_device"
tools:layout="@layout/main_nav_fragment_device" />
<fragment
android:id="@id/bottom_nav_log"
android:name="cc.niushuai.project.devcontrol.ui.nav.main.log.NavLogFragment"
android:label="@string/title_bottom_nav_menu_log"
tools:layout="@layout/main_nav_fragment_log" />
<fragment
android:id="@id/bottom_nav_device"
android:name="cc.niushuai.project.devcontrol.ui.nav.main.device.NavDeviceFragment"
android:label="@string/title_bottom_nav_menu_device"
tools:layout="@layout/main_nav_fragment_device" />
<fragment
android:id="@id/bottom_nav_set"
android:name="cc.niushuai.project.devcontrol.ui.nav.main.setup.NavSetUpFragment"