<?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">
|
|
<data>
|
|
</data>
|
|
<LinearLayout
|
android:id="@+id/parent"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
android:id="@+id/icon"
|
android:layout_width="@dimen/dp_68"
|
android:layout_height="@dimen/dp_92"
|
android:layout_marginStart="@dimen/dp_20"
|
android:layout_marginTop="@dimen/dp_8"
|
android:adjustViewBounds="true"
|
android:scaleType="centerCrop"
|
android:src="@mipmap/img_site_bg"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:riv_corner_radius="@dimen/dp_5" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/name"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_8"
|
android:layout_marginEnd="@dimen/dp_20"
|
android:maxLines="1"
|
android:text="广州市白云机场T2航站楼"
|
android:textColor="@color/gray_9"
|
android:textSize="@dimen/sp_14"
|
android:textStyle="bold"
|
app:layout_constraintLeft_toRightOf="@+id/icon"
|
app:layout_constraintRight_toLeftOf="@+id/nav"
|
app:layout_constraintTop_toTopOf="@+id/icon" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/address"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_4"
|
android:layout_marginRight="@dimen/dp_20"
|
android:maxLines="2"
|
android:text="深圳市宝安区西大街阳光绿色温馨家园17号楼313"
|
android:textColor="@color/gray_6"
|
android:textSize="@dimen/sp_12"
|
app:layout_constraintLeft_toLeftOf="@+id/name"
|
app:layout_constraintRight_toLeftOf="@+id/nav"
|
app:layout_constraintTop_toBottomOf="@+id/name" />
|
|
<com.google.android.flexbox.FlexboxLayout
|
android:id="@+id/tagLayout"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_gravity="right"
|
android:layout_marginTop="@dimen/dp_4"
|
app:flexWrap="wrap"
|
app:justifyContent="flex_start"
|
app:layout_constraintLeft_toLeftOf="@+id/name"
|
app:layout_constraintRight_toLeftOf="@+id/arrow"
|
app:layout_constraintTop_toBottomOf="@+id/address"
|
app:showDivider="middle" />
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:id="@+id/arrow"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="@dimen/dp_20"
|
android:layout_marginTop="@dimen/dp_8"
|
android:src="@drawable/svg_arrow_r"
|
app:layout_constraintTop_toBottomOf="@+id/address"
|
app:layout_constraintRight_toRightOf="parent" />
|
|
<LinearLayout
|
android:id="@+id/nav"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_8"
|
android:layout_marginEnd="@dimen/dp_20"
|
android:orientation="vertical"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="@dimen/dp_20"
|
android:layout_height="@dimen/dp_20"
|
android:layout_gravity="end|center_vertical"
|
android:src="@drawable/svg_map_nav" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="导航"
|
android:textColor="@color/blue_5"
|
android:textSize="@dimen/sp_10"
|
app:layout_constraintRight_toRightOf="parent" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginHorizontal="@dimen/dp_20"
|
android:layout_marginTop="@dimen/dp_8"
|
android:background="@color/gray_4"
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
</LinearLayout>
|
|
</layout>
|