| | |
| | | <androidx.core.widget.NestedScrollView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:background="@color/color_surface"> |
| | | android:background="@color/white"> |
| | | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:paddingBottom="@dimen/dp_50"> |
| | | |
| | | <View |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_315" |
| | | android:layout_marginHorizontal="@dimen/dp_8" |
| | | android:background="@drawable/shape_0d31456a_0031456a_bg_4" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:id="@+id/carNo" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="@dimen/dp_20" |
| | | android:layout_marginTop="@dimen/dp_20" |
| | | android:layout_marginTop="@dimen/dp_10" |
| | | android:text="@{viewModel.carInfo.plateNumber}" |
| | | android:textColor="@color/gray_9" |
| | | android:textSize="@dimen/sp_24" |
| | |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:id="@+id/icon" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="@dimen/dp_10" |
| | | android:layout_width="@dimen/dp_335" |
| | | android:layout_height="@dimen/dp_168" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:layout_marginTop="@dimen/dp_8" |
| | | android:adjustViewBounds="true" |
| | | android:scaleType="centerCrop" |
| | | android:src="@mipmap/img_work_car1" |
| | | app:layout_constraintTop_toBottomOf="@+id/basicLayout" /> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/unlockLayout" |
| | | android:id="@+id/ll_destination" |
| | | show="@{viewModel.isArrivingAcceptPoint}" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginHorizontal="@dimen/dp_14" |
| | | android:layout_marginHorizontal="@dimen/dp_20" |
| | | android:layout_marginTop="@dimen/dp_12" |
| | | android:baselineAligned="false" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal" |
| | | android:visibility="gone" |
| | | app:layout_constraintLeft_toLeftOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/icon"> |
| | | app:layout_constraintTop_toBottomOf="@+id/icon" |
| | | tools:visibility="visible"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="当前正在前往收车点" |
| | | android:textColor="@color/color_cc31456A" |
| | | android:textSize="@dimen/sp_11" /> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/unlockDoor" |
| | | show="@{viewModel.unlockDoorPermissions}" |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_48" |
| | | android:layout_marginHorizontal="@dimen/dp_6" |
| | | android:layout_weight="1" |
| | | android:background="@drawable/shape_blue1_bg_4" |
| | | android:gravity="center" |
| | | android:orientation="horizontal"> |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_21" |
| | | android:layout_marginStart="@dimen/dp_4" |
| | | android:background="@drawable/shape_blue1_00006be1_bg_4" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal" |
| | | android:paddingHorizontal="@dimen/dp_4"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="@dimen/dp_20" |
| | | android:src="@drawable/svg_car_cmjs" |
| | | android:tint="@color/blue_5" /> |
| | | <ImageView |
| | | android:layout_width="@dimen/dp_12" |
| | | android:layout_height="@dimen/dp_12" |
| | | android:src="@mipmap/icon_location_blue" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginEnd="@dimen/dp_20" |
| | | android:layout_marginStart="@dimen/dp_4" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:text="车门解锁" |
| | | android:ellipsize="end" |
| | | android:singleLine="true" |
| | | android:text="@{viewModel.arrivingAcceptPointAddress}" |
| | | android:textColor="@color/blue_5" |
| | | android:textSize="@dimen/sp_14" /> |
| | | |
| | | android:textSize="@dimen/sp_11" |
| | | tools:text="广州市天河区珠江新城幸福小区东北门广州市天河区珠江新城幸福小区东北门" /> |
| | | </LinearLayout> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/unlockBox" |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_48" |
| | | show="@{viewModel.unlockBoxPermissions}" |
| | | android:layout_marginHorizontal="@dimen/dp_6" |
| | | android:layout_weight="1" |
| | | android:background="@drawable/shape_blue1_bg_4" |
| | | android:gravity="center" |
| | | android:orientation="horizontal"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="@dimen/dp_20" |
| | | android:src="@drawable/svg_car_hbxjs" |
| | | android:tint="@color/blue_5" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginEnd="@dimen/dp_20" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:text="后备箱解锁" |
| | | android:textColor="@color/blue_5" |
| | | android:textSize="@dimen/sp_14" /> |
| | | |
| | | </LinearLayout> |
| | | |
| | | </LinearLayout> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:id="@+id/tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="@dimen/dp_30" |
| | | app:layout_goneMarginTop="@dimen/dp_12" |
| | | show="@{viewModel.departurePermissions}" |
| | | android:text="发车状态" |
| | | android:textColor="@color/gray_9" |
| | | android:textSize="@dimen/sp_16" |
| | | android:textStyle="bold" |
| | | app:layout_constraintLeft_toLeftOf="parent" |
| | | android:layout_marginStart="@dimen/dp_20" |
| | | app:layout_constraintTop_toBottomOf="@+id/unlockLayout" /> |
| | | |
| | | <com.xw.common.custom.SlideButtonView |
| | | android:id="@+id/slideView1" |
| | | show="@{viewModel.departurePermissions}" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_42" |
| | | android:layout_marginHorizontal="@dimen/dp_20" |
| | | show="@{viewModel.departurePermissions}" |
| | | android:layout_marginTop="@dimen/dp_10" |
| | | android:layout_marginTop="@dimen/dp_8" |
| | | app:backgroundCornerRadius="@dimen/dp_4" |
| | | app:layout_constraintTop_toBottomOf="@+id/tv" |
| | | app:layout_constraintTop_toBottomOf="@id/ll_destination" |
| | | app:layout_goneMarginTop="@dimen/dp_12" |
| | | app:slideBackgroundColor="@color/blue_1" |
| | | app:slideDirection="right" |
| | | app:slideText="右滑发车" |
| | |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/layout1" |
| | | show="@{viewModel.couldTakeOrderOrTest}" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | show="@{viewModel.takeOrdersPermissions}" |
| | | android:layout_height="@dimen/dp_72" |
| | | android:layout_marginHorizontal="@dimen/dp_20" |
| | | android:layout_marginTop="@dimen/dp_30" |
| | | android:layout_marginTop="@dimen/dp_12" |
| | | android:layout_marginBottom="8dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal" |
| | | app:layout_constraintTop_toBottomOf="@+id/slideView1"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:text="接单/测试" |
| | | android:textColor="@color/gray_9" |
| | | android:textSize="@dimen/sp_16" |
| | | android:textStyle="bold" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/shape_gray_3_bg_4" |
| | | android:orientation="horizontal" |
| | | android:padding="@dimen/dp_2"> |
| | | android:orientation="vertical"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:id="@+id/takeOrders" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:background="@drawable/shape_white_bg_4" |
| | | android:gravity="center" |
| | | android:paddingHorizontal="@dimen/dp_12" |
| | | android:paddingVertical="@dimen/dp_6" |
| | | android:text="接单" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:text="接单状态" |
| | | android:textColor="@color/gray_9" |
| | | android:textSize="@dimen/sp_12" |
| | | android:textSize="@dimen/sp_14" |
| | | android:textStyle="bold" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:id="@+id/test" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:gravity="center" |
| | | android:paddingHorizontal="@dimen/dp_12" |
| | | android:paddingVertical="@dimen/dp_6" |
| | | android:text="测试" |
| | | android:textColor="@color/gray_9" |
| | | android:textSize="@dimen/sp_12" |
| | | android:textStyle="bold" /> |
| | | |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginTop="@dimen/dp_4" |
| | | android:text="控制平台是否给该车辆派发运营订单" |
| | | android:textColor="@color/gray_7" |
| | | android:textSize="@dimen/sp_12" /> |
| | | </LinearLayout> |
| | | |
| | | <CheckBox |
| | | android:id="@+id/cb_take_order" |
| | | android:layout_width="@dimen/dp_52" |
| | | android:layout_height="@dimen/dp_32" |
| | | android:background="@drawable/selector_switch_off_on" |
| | | android:button="@null" |
| | | android:checked="@{viewModel.hadOpenTakeOrder}" |
| | | android:text="" /> |
| | | </LinearLayout> |
| | | |
| | | <com.xw.common.custom.SlideButtonView |
| | | android:id="@+id/slideView2" |
| | | <LinearLayout |
| | | android:id="@+id/unlockLayout" |
| | | show="@{viewModel.couldOperationDevice}" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_42" |
| | | android:layout_marginHorizontal="@dimen/dp_20" |
| | | show="@{viewModel.takeOrdersPermissions}" |
| | | android:layout_marginTop="@dimen/dp_10" |
| | | app:backgroundCornerRadius="@dimen/dp_4" |
| | | app:layout_constraintTop_toBottomOf="@+id/layout1" |
| | | app:slideBackgroundColor="@color/orange_5" |
| | | app:slideDirection="left" |
| | | app:slideText="左滑关闭接单" |
| | | app:slideTextColor="@color/white" |
| | | app:slideTextSize="@dimen/sp_14" |
| | | app:thumbCornerRadius="@dimen/dp_4" |
| | | app:thumbDrawable="@mipmap/ic_slide_l" |
| | | app:thumbShape="roundRect" /> |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical" |
| | | app:layout_constraintLeft_toLeftOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@id/layout1"> |
| | | |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="1px" |
| | | android:layout_marginHorizontal="@dimen/dp_20" |
| | | android:background="@color/gray_4" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="@dimen/dp_20" |
| | | android:layout_marginTop="@dimen/dp_16" |
| | | android:text="车辆控制" |
| | | android:textColor="@color/gray_9" |
| | | android:textSize="@dimen/sp_14" |
| | | android:textStyle="bold" |
| | | app:layout_constraintLeft_toLeftOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/icon" |
| | | app:layout_goneMarginTop="@dimen/dp_12" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginHorizontal="@dimen/dp_14" |
| | | android:layout_marginTop="@dimen/dp_8" |
| | | android:baselineAligned="false" |
| | | android:orientation="horizontal"> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/unlockDoor" |
| | | show="@{viewModel.unlockDoorPermissions}" |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_48" |
| | | android:layout_marginHorizontal="@dimen/dp_6" |
| | | android:layout_weight="1" |
| | | android:background="@drawable/shape_gray2_bg_4" |
| | | android:gravity="center" |
| | | android:orientation="horizontal"> |
| | | |
| | | <FrameLayout |
| | | android:layout_width="@dimen/dp_32" |
| | | android:layout_height="@dimen/dp_32" |
| | | android:layout_marginStart="@dimen/dp_20"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:id="@+id/iv_door_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:src="@drawable/svg_net_lock_gray" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:id="@+id/iv_door_status_loading" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:visibility="gone" |
| | | android:src="@drawable/svg_circle_loading" /> |
| | | </FrameLayout> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:id="@+id/tv_door_lock" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginEnd="@dimen/dp_20" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:text="车门解锁" |
| | | android:textColor="@color/gray_7" |
| | | android:textSize="@dimen/sp_14" /> |
| | | |
| | | </LinearLayout> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/unlockBox" |
| | | show="@{viewModel.unlockBoxPermissions}" |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_48" |
| | | android:layout_marginHorizontal="@dimen/dp_6" |
| | | android:layout_weight="1" |
| | | android:background="@drawable/shape_gray2_bg_4" |
| | | android:gravity="center" |
| | | android:orientation="horizontal"> |
| | | |
| | | <FrameLayout |
| | | android:layout_width="@dimen/dp_32" |
| | | android:layout_height="@dimen/dp_32" |
| | | android:layout_marginStart="@dimen/dp_20"> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:id="@+id/iv_trunk_status" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:src="@drawable/svg_car_trunk_closed" /> |
| | | |
| | | <androidx.appcompat.widget.AppCompatImageView |
| | | android:id="@+id/iv_trunk_status_loading" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:visibility="gone" |
| | | android:src="@drawable/svg_circle_loading" /> |
| | | </FrameLayout> |
| | | |
| | | <androidx.appcompat.widget.AppCompatTextView |
| | | android:id="@+id/tv_trunk_lock" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginEnd="@dimen/dp_20" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:text="后备箱解锁" |
| | | android:textColor="@color/gray_7" |
| | | android:textSize="@dimen/sp_14" /> |
| | | |
| | | </LinearLayout> |
| | | |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |