完成主要服务开关与启动

This commit is contained in:
ZhanGSKen
2025-10-01 15:48:56 +08:00
parent cf6209e2b4
commit 894edd5fa4
15 changed files with 1825 additions and 1020 deletions

View File

@@ -6,7 +6,6 @@
android:layout_height="match_parent"
android:orientation="vertical">
<!-- 顶部 Toolbar -->
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
@@ -14,15 +13,13 @@
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
<!-- 服务控制开关 -->
<androidx.appcompat.widget.SwitchCompat
<Switch
android:id="@+id/switch_service_control"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:text="位置服务"/>
android:text="主要服务开关"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<!-- 跳转按钮:位置管理页 -->
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -30,14 +27,12 @@
android:onClick="onPositions"
android:text="进入位置管理"/>
<!-- 跳转按钮:日志页 -->
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:onClick="onLog"
android:text="查看操作日志"/>
</LinearLayout>