refactor: 调整包结构

This commit is contained in:
niushuai233 2022-10-17 17:28:50 +08:00
parent 14c849d44f
commit 7278eb371b
10 changed files with 12 additions and 15 deletions

View File

@ -1,4 +1,4 @@
package cc.niushuai.project.devcontrol.ui.nav.main.device;
package cc.niushuai.project.devcontrol.ui.nav.device;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
@ -12,15 +12,12 @@ import android.widget.SimpleAdapter;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.gridlayout.widget.GridLayout;
import androidx.lifecycle.ViewModelProvider;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import cc.niushuai.project.devcontrol.R;
import cc.niushuai.project.devcontrol.base.entity.device.DeviceInfo;

View File

@ -1,4 +1,4 @@
package cc.niushuai.project.devcontrol.ui.nav.main.device;
package cc.niushuai.project.devcontrol.ui.nav.device;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

View File

@ -1,4 +1,4 @@
package cc.niushuai.project.devcontrol.ui.nav.main.log;
package cc.niushuai.project.devcontrol.ui.nav.log;
import android.os.Bundle;
import android.view.LayoutInflater;

View File

@ -1,4 +1,4 @@
package cc.niushuai.project.devcontrol.ui.nav.main.log;
package cc.niushuai.project.devcontrol.ui.nav.log;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

View File

@ -1,4 +1,4 @@
package cc.niushuai.project.devcontrol.ui.nav.main.setup;
package cc.niushuai.project.devcontrol.ui.nav.setup;
import android.os.Bundle;
import android.view.LayoutInflater;

View File

@ -1,4 +1,4 @@
package cc.niushuai.project.devcontrol.ui.nav.main.setup;
package cc.niushuai.project.devcontrol.ui.nav.setup;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

View File

@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".ui.nav.main.device.NavDeviceFragment">
tools:context=".ui.nav.device.NavDeviceFragment">
<RelativeLayout
android:layout_width="match_parent"

View File

@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".ui.nav.main.log.NavLogFragment">
tools:context=".ui.nav.log.NavLogFragment">
<TextView
android:id="@+id/nav_log_fragment_textview"

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.nav.main.setup.NavSetUpFragment">
tools:context=".ui.nav.setup.NavSetUpFragment">
<TextView
android:id="@+id/nav_setup_fragment_textview"

View File

@ -8,19 +8,19 @@
<fragment
android:id="@id/bottom_nav_log"
android:name="cc.niushuai.project.devcontrol.ui.nav.main.log.NavLogFragment"
android:name="cc.niushuai.project.devcontrol.ui.nav.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:name="cc.niushuai.project.devcontrol.ui.nav.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"
android:name="cc.niushuai.project.devcontrol.ui.nav.setup.NavSetUpFragment"
android:label="@string/title_bottom_nav_menu_set"
tools:layout="@layout/main_nav_fragment_set_up" />
</navigation>