<?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">
|
|
<data>
|
|
<variable
|
name="viewModel"
|
type="com.xw.yunwei.ui.work.car.manage.CarManageVM" />
|
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<FrameLayout
|
android:id="@+id/map_container"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:background="@mipmap/img_test_map" />
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/topLayout"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/white"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:id="@+id/back"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_20"
|
android:layout_marginTop="@dimen/dp_56"
|
android:onClick="@{viewModel::onBack}"
|
android:src="@drawable/svg_back"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="车辆管理"
|
android:textColor="@color/gray_10"
|
android:textSize="@dimen/sp_16"
|
android:textStyle="bold"
|
app:layout_constraintBottom_toBottomOf="@+id/back"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/back" />
|
|
<LinearLayout
|
android:id="@+id/searchLayout"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_56"
|
android:layout_marginTop="@dimen/dp_88"
|
android:gravity="center_vertical"
|
android:paddingHorizontal="@dimen/dp_10"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<androidx.appcompat.widget.AppCompatEditText
|
android:id="@+id/searchEt"
|
android:layout_width="0dp"
|
android:layout_height="@dimen/dp_34"
|
android:layout_marginHorizontal="@dimen/dp_10"
|
android:layout_weight="1"
|
android:background="@drawable/shape_f8f9fa_bg_4"
|
android:drawableStart="@drawable/svg_search"
|
android:drawablePadding="@dimen/dp_10"
|
android:hint="请输入车牌号"
|
android:imeOptions="actionSearch"
|
android:paddingHorizontal="@dimen/dp_10"
|
android:singleLine="true"
|
android:text="@={viewModel.search}"
|
android:textColor="@color/gray_9"
|
android:textColorHint="@color/gray_6"
|
android:textSize="@dimen/sp_12" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/filter"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:drawableEnd="@drawable/svg_filter"
|
android:drawablePadding="@dimen/dp_6"
|
android:gravity="center_vertical"
|
android:paddingHorizontal="@dimen/dp_10"
|
android:text="筛选"
|
android:textColor="@color/gray_9"
|
android:textColorHint="@color/gray_6"
|
android:textSize="@dimen/sp_12"
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/topLayout">
|
|
<!-- 底部滑动面板 -->
|
<LinearLayout
|
android:id="@+id/bottom_sheet"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@drawable/shape_update"
|
android:orientation="vertical"
|
app:behavior_fitToContents="false"
|
app:behavior_halfExpandedRatio="0.58"
|
app:behavior_peekHeight="@dimen/dp_82"
|
app:behavior_skipCollapsed="false"
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:id="@+id/location"
|
android:layout_width="@dimen/dp_32"
|
android:layout_height="@dimen/dp_32"
|
android:layout_gravity="end"
|
android:layout_marginEnd="@dimen/dp_12"
|
android:layout_marginBottom="@dimen/dp_12"
|
android:elevation="2dp"
|
android:src="@drawable/svg_location1" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/shape_white_bg_top_12"
|
android:minHeight="@dimen/dp_300"
|
android:orientation="vertical">
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_40">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:id="@+id/arrow"
|
android:layout_width="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
android:layout_centerInParent="true"
|
android:background="@drawable/svg_arrow_d1" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/title1"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_40"
|
android:gravity="center_vertical"
|
android:paddingHorizontal="@dimen/dp_20"
|
android:text="车辆列表"
|
android:textColor="@color/gray_10"
|
android:textSize="@dimen/sp_16"
|
android:textStyle="bold"
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
<androidx.core.widget.NestedScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:fillViewport="true">
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/carRv"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:nestedScrollingEnabled="false" />
|
|
</androidx.core.widget.NestedScrollView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|