位置任务参数数据管理模块完成

This commit is contained in:
ZhanGSKen
2025-09-30 14:47:08 +08:00
parent f7d9478f9e
commit 12f4fd3f45
18 changed files with 1777 additions and 536 deletions

View File

@@ -1,49 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 简单视图:新增实时距离显示控件(备注下方) -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="12dp"
android:background="@drawable/item_position_bg"
android:layout_marginBottom="8dp">
<!-- 经度 -->
android:background="@drawable/item_bg_simple">
<TextView
android:id="@+id/tv_simple_longitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="#666666"/>
android:textColor="#333333"/>
<!-- 纬度 -->
<TextView
android:id="@+id/tv_simple_latitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="#666666"
android:layout_marginTop="5dp"/>
android:textColor="#333333"
android:layout_marginTop="4dp"/>
<!-- 备注(加粗突出) -->
<TextView
android:id="@+id/tv_simple_memo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:textColor="#000000"
android:textStyle="bold"
android:layout_marginTop="8dp"/>
android:textSize="14sp"
android:textColor="#666666"
android:layout_marginTop="4dp"/>
<!-- 新增:实时距离显示(距离计算结果/未启用提示) -->
<TextView
android:id="@+id/tv_simple_real_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="#2196F3"
android:layout_marginTop="6dp"
android:text="实时距离未启用"/> <!-- 默认提示isEnable=false时显示 -->
android:textColor="#2E8B57"
android:layout_marginTop="6dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="关联任务(已启用):"
android:textSize="14sp"
android:textColor="#333333"
android:layout_marginTop="8dp"
android:layout_marginBottom="4dp"/>
<cc.winboll.studio.positions.views.PositionTaskListView
android:id="@+id/ptlv_simple_tasks"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="4dp"/>
</LinearLayout>