已完成的模块: 1. 项目脚手架 - Gradle配置、28个包目录、核心基类 2. 权限管理 - 确认定制ROM已预授权所有权限 3. 工具类 - DateUtil/DeviceUtil/NetworkUtil/Md5Util 4. 设备信息 - DevicePrefs/UserPrefs (SharedPreferences) 5. 网络层 - OkHttp+Retrofit+MD5签名拦截器+解绑拦截器 6. 基础UI组件 - NavBarView/QuTipDialog/QuConfirmDialog/ActionButton/iconfont Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- MainActivity 布局:NavBar 已移入各 Fragment 自行管理
|
||
只保留 NavHostFragment(主内容)和 dialog_container(全局弹窗层) -->
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
xmlns:tools="http://schemas.android.com/tools"
|
||
android:id="@+id/main"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:background="@color/background"
|
||
tools:context=".app.MainActivity">
|
||
|
||
<!-- Layer 1: 主内容区(NavHostFragment) -->
|
||
<androidx.fragment.app.FragmentContainerView
|
||
android:id="@+id/nav_host_fragment"
|
||
android:name="androidx.navigation.fragment.NavHostFragment"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
app:defaultNavHost="true"
|
||
app:navGraph="@navigation/nav_main" />
|
||
|
||
<!-- Layer 2: 全局弹窗层(QuTipDialog / QuConfirmDialog 动态添加,默认隐藏) -->
|
||
<FrameLayout
|
||
android:id="@+id/dialog_container"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:visibility="gone" />
|
||
|
||
</FrameLayout>
|