解决bug

【Launcher二期】道路事件查看时偶从白天切换夜间模式,未适配
http://jira.zhidaohulian.com/browse/FX-448
This commit is contained in:
董宏宇
2020-09-15 18:46:41 +08:00
parent 28729b7659
commit 47bf186486
7 changed files with 110 additions and 71 deletions

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
android:background="@drawable/v2x_alert_window_bg">
<com.mogo.module.v2x.view.V2XLiveGSYVideoView
android:id="@+id/videoPlayer"

View File

@@ -6,52 +6,44 @@
android:layout_width="match_parent"
android:layout_height="@dimen/module_v2x_event_window_height">
<androidx.cardview.widget.CardView
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvRoadEventList"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardBackgroundColor="#FFFFFF"
app:cardCornerRadius="12px"
app:layout_constraintTop_toTopOf="parent">
android:layout_height="wrap_content"
android:orientation="horizontal"
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/item_v2x_live_video" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvRoadEventList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/item_v2x_live_video" />
<TextView
android:id="@+id/tvEventStubClose"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_20"
android:background="@drawable/bg_count_down"
android:paddingLeft="@dimen/dp_12"
android:paddingTop="@dimen/dp_3"
android:paddingRight="@dimen/dp_12"
android:paddingBottom="@dimen/dp_3"
android:text="30s"
android:textColor="#FFFFFF"
android:textSize="@dimen/dp_30"
app:layout_constraintStart_toStartOf="@+id/rvRoadEventList"
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
<TextView
android:id="@+id/tvEventStubClose"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_20"
android:background="@drawable/bg_count_down"
android:paddingLeft="@dimen/dp_12"
android:paddingTop="@dimen/dp_3"
android:paddingRight="@dimen/dp_12"
android:paddingBottom="@dimen/dp_3"
android:text="30s"
android:textColor="#FFFFFF"
android:textSize="@dimen/dp_30"
app:layout_constraintStart_toStartOf="@+id/rvRoadEventList"
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
<ImageView
android:layout_width="@dimen/dp_130"
android:layout_height="@dimen/dp_46"
android:layout_alignParentEnd="true"
android:layout_marginTop="@dimen/dp_28"
android:layout_marginEnd="@dimen/dp_28"
android:src="@drawable/v2x_icon_event_live_top"
app:layout_constraintEnd_toEndOf="@+id/rvRoadEventList"
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
</androidx.cardview.widget.CardView>
<ImageView
android:layout_width="@dimen/dp_130"
android:layout_height="@dimen/dp_46"
android:layout_alignParentEnd="true"
android:layout_marginTop="@dimen/dp_28"
android:layout_marginEnd="@dimen/dp_28"
android:src="@drawable/v2x_icon_event_live_top"
app:layout_constraintEnd_toEndOf="@+id/rvRoadEventList"
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -15,7 +15,10 @@
android:layout_width="match_parent"
android:layout_height="@dimen/dp_154"
android:gravity="center_vertical"
android:orientation="horizontal">
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<RadioButton
android:id="@+id/rbScenarioHistory"

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/module_v2x_event_window_height"
android:background="@drawable/v2x_alert_window_bg">
>
<com.tencent.rtmp.ui.TXCloudVideoView
android:id="@+id/txcVideoView"