<?xml version="1.0" encoding="utf-8"?>
|
<android.support.constraint.ConstraintLayout
|
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:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<com.amap.api.maps.MapView
|
android:id="@+id/mapView"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent" />
|
|
<include
|
layout="@layout/layout_button_back"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dimen8"
|
android:layout_marginStart="@dimen/dimen8"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
<android.support.v7.widget.CardView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dimen8"
|
android:layout_marginEnd="@dimen/dimen8"
|
android:layout_marginBottom="@dimen/dimen16"
|
app:cardElevation="@dimen/dimen8"
|
app:cardCornerRadius="@dimen/dimen8"
|
app:layout_constraintBottom_toTopOf="@id/txt_submit"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent">
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:padding="@dimen/dimen8">
|
|
<android.support.constraint.Barrier
|
android:id="@+id/barrier_1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:barrierDirection="end"
|
app:constraint_referenced_ids="txt_location, txt_latitude"/>
|
|
<TextView
|
android:id="@+id/txt_location"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="地址"
|
style="@style/TextStyle.Content.Title"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
<TextView
|
android:id="@+id/txt_location_content"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
tools:text="地址"
|
style="@style/TextStyle.Content.Title"
|
app:layout_constraintStart_toEndOf="@id/barrier_1"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
<View
|
android:id="@+id/divider"
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@color/gray_btn_bg_color"
|
app:layout_constraintTop_toBottomOf="@id/txt_location_content"/>
|
|
<TextView
|
android:id="@+id/txt_latitude"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="经纬度"
|
style="@style/TextStyle.Content.Title"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/divider"/>
|
|
<TextView
|
android:id="@+id/txt_latitude_content"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
tools:text="地址"
|
style="@style/TextStyle.Content.Title"
|
app:layout_constraintStart_toEndOf="@id/barrier_1"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="@id/txt_latitude"/>
|
</android.support.constraint.ConstraintLayout>
|
</android.support.v7.widget.CardView>
|
|
<TextView
|
android:id="@+id/txt_submit"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="确定位置"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:textSize="20sp"
|
android:padding="6dp"
|
android:elevation="@dimen/dimen8"
|
android:layout_marginStart="@dimen/dimen8"
|
android:layout_marginEnd="@dimen/dimen8"
|
android:layout_marginBottom="@dimen/dimen4"
|
android:background="@color/colorPrimary"
|
app:layout_constraintBottom_toBottomOf="parent"
|
tools:ignore="UnusedAttribute" />
|
</android.support.constraint.ConstraintLayout>
|