<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools">
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/cl_driver"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/white"
|
android:paddingBottom="14dp"
|
app:layout_constraintTop_toTopOf="parent">
|
<FrameLayout
|
android:layout_width="@dimen/dp_60"
|
android:layout_height="@dimen/dp_60"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:id="@+id/bg"
|
android:layout_marginStart="12dp"
|
android:background="@drawable/bg_white_30dp"
|
android:elevation="2dp"
|
android:layout_marginTop="14dp">
|
<com.facebook.drawee.view.SimpleDraweeView
|
android:id="@+id/iv_header_home"
|
android:layout_width="@dimen/dp_58"
|
android:layout_height="@dimen/dp_58"
|
app:actualImageScaleType="centerCrop"
|
app:placeholderImage="@mipmap/defaults"
|
android:layout_gravity="center"
|
app:placeholderImageScaleType="centerCrop"
|
app:roundAsCircle="true" />
|
|
</FrameLayout>
|
|
<TextView
|
android:id="@+id/tv_name"
|
style="@style/style_common_text"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="OK司机"
|
android:textStyle="bold"
|
app:layout_constraintStart_toEndOf="@id/bg"
|
app:layout_constraintTop_toTopOf="@id/bg" />
|
|
|
<TextView
|
android:id="@+id/tv_car_info"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/textColor66"
|
android:textSize="12sp"
|
android:layout_marginTop="2dp"
|
app:layout_constraintStart_toStartOf="@id/tv_name"
|
app:layout_constraintTop_toBottomOf="@id/tv_name" />
|
|
<TextView
|
android:id="@+id/tv_score"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:drawableStart="@mipmap/icon_score"
|
android:drawablePadding="4dp"
|
android:gravity="center_vertical"
|
android:layout_marginTop="6dp"
|
android:text="0.0"
|
android:textColor="@color/color_FB692A"
|
android:textSize="12sp"
|
app:layout_constraintTop_toBottomOf="@id/tv_car_info"
|
app:layout_constraintStart_toStartOf="@id/tv_name" />
|
|
<TextView
|
android:id="@+id/tv_count"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="4dp"
|
android:textColor="@color/textColor66"
|
android:textSize="12sp"
|
android:text="0单"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_score"
|
app:layout_constraintStart_toEndOf="@id/tv_score" />
|
|
<ImageView
|
android:id="@+id/iv_call"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="9dp"
|
android:padding="5dp"
|
android:src="@mipmap/icon_dial"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="@id/bg"
|
app:layout_constraintBottom_toBottomOf="@id/bg"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="83dp"
|
android:background="@color/white"
|
android:orientation="vertical"
|
android:id="@+id/ll_info"
|
app:layout_constraintTop_toBottomOf="@id/cl_driver">
|
<View
|
style="@style/style_form_divider_line"
|
android:layout_marginStart="14dp"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:gravity="center_vertical"
|
android:textStyle="bold"
|
android:id="@+id/tv_start"
|
android:layout_marginStart="13dp"
|
android:singleLine="true"
|
android:drawableStart="@mipmap/icon_starting_point"
|
android:drawablePadding="5dp"
|
style="@style/style_common_text"
|
tools:text="柳州市政府"/>
|
<View
|
style="@style/style_form_divider_line"
|
android:layout_marginStart="14dp"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:gravity="center_vertical"
|
android:textStyle="bold"
|
android:id="@+id/tv_end"
|
android:layout_marginStart="13dp"
|
android:singleLine="true"
|
android:drawableStart="@mipmap/icon_end_point"
|
android:drawablePadding="5dp"
|
style="@style/style_common_text"
|
android:hint="您要去哪儿"/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="4dp"
|
app:layout_constraintTop_toBottomOf="@id/ll_info"
|
android:background="@drawable/bg_shadow_top"/>
|
<TextView
|
android:layout_width="match_parent"
|
style="@style/style_tv_action"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="15dp"
|
android:id="@+id/tv_action"
|
android:layout_height="wrap_content"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|