151 lines
7.2 KiB
XML
151 lines
7.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".activity.location.LocationAcivity">
|
|
|
|
<data>
|
|
<variable
|
|
name="click"
|
|
type="com.uiuios.aios.activity.location.LocationAcivity.Click" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/bg"
|
|
android:onClick="@{click::exit}"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/root"
|
|
android:layout_width="@dimen/dp_350"
|
|
android:layout_height="@dimen/dp_400"
|
|
android:onClick="@{click::hideArea}"
|
|
android:background="@drawable/location_background"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/textView2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_18"
|
|
android:text="选择城市"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginStart="@dimen/dp_20"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_20"
|
|
android:layout_marginBottom="@dimen/dp_8"
|
|
app:layout_constraintBottom_toTopOf="@+id/cl_location"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/textView2">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout6"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
android:background="@drawable/location_search_background"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView10"
|
|
android:layout_width="@dimen/dp_18"
|
|
android:layout_height="@dimen/dp_18"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_search"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<EditText
|
|
android:id="@+id/edit_search"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:background="@null"
|
|
android:hint="搜索城市"
|
|
android:maxLines="1"
|
|
android:paddingStart="@dimen/dp_8"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/imageView10"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/textView22"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:text="热门城市"
|
|
android:textColor="#535353"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout6" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_city"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/textView22" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_area"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_160"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="@+id/constraintLayout6"
|
|
app:layout_constraintStart_toStartOf="@+id/constraintLayout6"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout6" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/cl_location"
|
|
android:layout_width="wrap_content"
|
|
android:onClick="@{click::setLocal}"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dp_16"
|
|
android:background="@drawable/position_background"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="我的位置"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |