[driver passenger ] bus 司机屏UI优化

This commit is contained in:
wangmingjun
2022-04-11 21:01:28 +08:00
parent c946f7ca94
commit 7f108ea746
2 changed files with 26 additions and 13 deletions

View File

@@ -31,18 +31,19 @@
android:layout_height="@dimen/bus_p_curent_station_panel_height"
android:layout_marginLeft="@dimen/bus_p_curent_station_panel_margin"
android:layout_marginBottom="@dimen/bus_p_curent_station_panel_margin"
app:cardBackgroundColor="@color/bus_p_panel_cur_station_panel_color"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:alpha="0.99"
app:cardElevation="@dimen/dp_5"
app:cardBackgroundColor="@color/bus_p_panel_cur_station_panel_color"
app:cardCornerRadius="20px"/>
<TextView
android:id="@+id/bus_p_cur_station_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_27"
android:layout_marginTop="@dimen/dp_40"
android:elevation="4px"
android:elevation="@dimen/dp_10"
android:text="@string/bus_p_cur_station_title"
android:textStyle="bold"
android:textColor="@color/bus_p_panel_cur_txt_color"
@@ -58,7 +59,8 @@
android:textColor="@color/bus_p_panel_cur_station_txt_color"
android:textSize="@dimen/bus_p_curent_station_txt_size1"
android:textStyle="bold"
android:elevation="4px"
android:text="-- --"
android:elevation="@dimen/dp_10"
app:layout_constraintLeft_toLeftOf="@+id/bus_p_cur_station_title"
app:layout_constraintTop_toBottomOf="@+id/bus_p_cur_station_title" />
@@ -68,10 +70,11 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20"
android:text="@string/bus_p_cur_station_arrived_tip"
android:elevation="4px"
android:elevation="@dimen/dp_10"
android:textColor="@color/bus_p_panel_cur_station_tips_color"
android:textSize="@dimen/bus_p_curent_station_tip_size1"
app:layout_constraintLeft_toLeftOf="@+id/bus_p_cur_station_name"
app:layout_constraintTop_toBottomOf="@+id/bus_p_cur_station_name" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -5,20 +5,30 @@
android:layout_height="match_parent"
android:background="@android:color/transparent">
<ImageView
android:id="@+id/edge_view"
android:layout_width="@dimen/dp_10"
android:layout_height="match_parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="@color/bus_p_route_view_left_edge_shadow"/>
<!-- <ImageView-->
<!-- android:id="@+id/edge_view"-->
<!-- android:layout_width="@dimen/dp_10"-->
<!-- android:layout_height="match_parent"-->
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent"-->
<!-- android:background="@color/bus_p_route_view_left_edge_shadow"/>-->
<!-- <androidx.cardview.widget.CardView-->
<!-- android:layout_width="@dimen/dp_10"-->
<!-- android:layout_height="match_parent"-->
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent"-->
<!-- app:cardCornerRadius="0px"-->
<!-- app:cardBackgroundColor="@color/bus_p_route_view_left_edge_shadow"-->
<!-- app:cardElevation="@dimen/dp_10">-->
<!-- </androidx.cardview.widget.CardView>-->
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0px"
android:layout_height="match_parent"
android:background="@drawable/bus_p_route_bg"
app:layout_constraintLeft_toRightOf="@+id/edge_view"
app:layout_constraintTop_toTopOf="parent">
app:layout_constraintTop_toTopOf="parent"
android:elevation="@dimen/dp_10">
<TextView
android:id="@+id/bus_p_speed_tv"