<?xml version="1.0" encoding="utf-8"?>
|
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:id="@+id/drawer_main"
|
android:layout_height="match_parent">
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<RelativeLayout
|
android:id="@+id/rl_header_title"
|
android:layout_width="match_parent"
|
android:layout_height="30dp"
|
app:layout_constraintTop_toTopOf="parent"
|
android:background="@drawable/bg_gradient"/>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
app:layout_constraintTop_toBottomOf="@+id/rl_header_title"
|
android:background="@drawable/bg_gradient">
|
|
<TextView
|
android:id="@+id/iv_mine"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_centerVertical="true"
|
android:background="@drawable/bg_clicker"
|
android:drawableStart="@mipmap/icon_nav_user"
|
android:gravity="center"
|
android:paddingStart="@dimen/dp_10"
|
android:paddingEnd="@dimen/dp_15"
|
android:textColor="#333333"
|
android:textSize="16sp" />
|
|
<TextView
|
android:id="@+id/tv_title"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:drawablePadding="3dp"
|
android:maxWidth="280dp"
|
android:maxLines="1"
|
android:text="芳华代驾司机"
|
android:singleLine="true"
|
android:textColor="@color/white"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
|
<ImageView
|
android:id="@+id/iv_right"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_alignParentEnd="true"
|
android:layout_centerVertical="true"
|
android:src="@mipmap/ic_nav_news"
|
android:layout_marginEnd="@dimen/dp_10"
|
android:padding="@dimen/dp_5" />
|
|
|
<View
|
android:id="@+id/view_bottom_title"
|
android:layout_width="match_parent"
|
android:layout_height="0.5dp"
|
android:alpha="0.2"
|
android:layout_alignParentBottom="true"
|
android:background="@color/bg_line" />
|
|
|
</RelativeLayout>
|
|
<com.amap.api.maps.MapView
|
android:id="@+id/map_view"
|
android:layout_width="match_parent"
|
android:layout_marginTop="80dp"
|
android:layout_height="match_parent"/>
|
|
<ImageView
|
android:id="@+id/iv_add"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@mipmap/icon_add"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="@id/map_view"
|
android:layout_marginTop="10dp"
|
android:layout_marginEnd="6dp"/>
|
|
<ImageView
|
android:id="@+id/iv_order_home"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@mipmap/order_home"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="@id/map_view"
|
android:layout_marginTop="8dp"
|
android:layout_marginStart="6dp"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_online_duration"
|
app:layout_constraintTop_toTopOf="@id/map_view"
|
android:layout_marginTop="10dp"
|
android:layout_marginHorizontal="65dp"
|
android:paddingVertical="7dp"
|
android:textColor="@color/red_main"
|
android:text="今日在线:00:00:00"
|
android:gravity="center"
|
android:textSize="14sp"
|
android:textStyle="bold"
|
android:background="@drawable/bg_red_half_8"/>
|
|
<com.wang.avi.AVLoadingIndicatorView
|
android:id="@+id/avv_anim"
|
style="@style/AVLoadingIndicatorView"
|
android:layout_width="180dp"
|
android:layout_height="180dp"
|
app:indicatorColor="#2F72EC"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:indicatorName="BallScaleMultipleIndicator" />
|
|
<TextView
|
android:id="@+id/tv_car"
|
android:layout_width="90dp"
|
android:layout_height="90dp"
|
android:gravity="center"
|
android:text="开始听单"
|
android:textColor="#ffffffff"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginBottom="45dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:background="@drawable/bg_blue_50dp"
|
android:textSize="19sp"
|
android:textStyle="bold" />
|
|
<ImageView
|
android:id="@+id/iv_position"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginEnd="6dp"
|
android:layout_marginBottom="160dp"
|
android:src="@mipmap/pos"/>
|
|
<TextView
|
android:id="@+id/tv_order"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="有1个进行中的订单"
|
android:paddingVertical="8dp"
|
android:drawablePadding="12dp"
|
android:paddingHorizontal="15dp"
|
android:elevation="2dp"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"
|
android:background="@drawable/bg_white_20_line"
|
android:drawableEnd="@mipmap/more_black"
|
app:layout_constraintBottom_toBottomOf="@id/iv_position"
|
android:layout_marginBottom="20dp"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<include
|
layout="@layout/drawer_mine"
|
android:layout_width="300dp"
|
android:layout_height="match_parent"
|
android:layout_gravity="start"
|
android:background="@color/white" />
|
</androidx.drawerlayout.widget.DrawerLayout>
|