42 lines
1.6 KiB
XML
42 lines
1.6 KiB
XML
<?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="16dp">
|
|
|
|
<!-- 1. 经度显示(灰色小字体,不可编辑) -->
|
|
<TextView
|
|
android:id="@+id/tv_edit_longitude"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:textColor="#666666"
|
|
android:layout_marginBottom="8dp"/>
|
|
|
|
<!-- 2. 纬度显示(灰色小字体,不可编辑) -->
|
|
<TextView
|
|
android:id="@+id/tv_edit_latitude"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:textColor="#666666"
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
<!-- 3. 备注输入框(可编辑,带提示文字,适配多行输入) -->
|
|
<EditText
|
|
android:id="@+id/et_edit_memo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="请输入位置备注(如:公司/家/学校)"
|
|
android:textSize="16sp"
|
|
android:inputType="textMultiLine"
|
|
android:minLines="3"
|
|
android:maxLines="5"
|
|
android:padding="10dp"
|
|
android:background="@drawable/edittext_bg"/> <!-- 输入框背景(带边框,区分普通文本) -->
|
|
|
|
</LinearLayout>
|
|
|