添加实时距离计算功能

This commit is contained in:
ZhanGSKen
2025-09-30 02:39:01 +08:00
parent dee9586748
commit 94054c39e8
6 changed files with 506 additions and 257 deletions

View File

@@ -1,5 +1,5 @@
<?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"
@@ -35,5 +35,15 @@
android:textStyle="bold"
android:layout_marginTop="8dp"/>
<!-- 新增:实时距离显示(距离计算结果/未启用提示) -->
<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时显示 -->
</LinearLayout>