This commit is contained in:
liujing
2020-10-29 20:19:04 +08:00
parent 681f7d7b6e
commit a22d9671c6
9 changed files with 74 additions and 17 deletions

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!---->
<item>
<shape android:shape="rectangle">
<solid android:color="#00000000" />
<corners android:radius="@dimen/dp_26" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="#00000000" />
<corners android:radius="@dimen/dp_26" />
</shape>
</item>
<!-- 中心背景 -->
<item>
<shape android:shape="rectangle">
<corners android:radius="@dimen/dp_26" />
<gradient
android:angle="135"
android:endColor="#3F4057"
android:startColor="#5E6079"
android:type="linear"
android:useLevel="true" />
</shape>
</item>
</layer-list>

View File

@@ -3,18 +3,18 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/v2x_video_window_height"
android:background="@drawable/v2x_alert_window_bg">
android:layout_height="match_parent"
android:background="@drawable/v2x_alert_window_live_bg"
android:padding="@dimen/dp_20">
<com.mogo.module.v2x.view.V2XLiveGSYVideoView
android:id="@+id/videoPlayer"
android:layout_width="match_parent"
android:layout_height="@dimen/module_v2x_live_window_height"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:roundLayoutRadius="@dimen/dp_30" />
app:layout_constraintTop_toTopOf="parent" />
<com.mogo.service.imageloader.MogoImageView
android:id="@+id/ivReportHead"

View File

@@ -2,14 +2,14 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rlRoadEventDetail"
android:layout_width="wrap_content"
android:layout_height="@dimen/module_v2x_event_window_height"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false">
<include
android:id="@+id/liveVideo"
layout="@layout/item_v2x_live_video"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="match_parent" />
</RelativeLayout>

View File

@@ -5,14 +5,15 @@
android:id="@+id/rlRoadEventDetail"
android:layout_width="match_parent"
android:layout_height="@dimen/v2x_video_window_height"
android:background="@drawable/v2x_alert_window_bg"
android:layout_marginLeft="@dimen/v2x_right_context_magin"
android:layout_marginTop="@dimen/dp_22">
android:background="@drawable/v2x_alert_window_live_bg"
android:layout_marginLeft="@dimen/v2x_right_context_margin"
android:layout_marginRight="@dimen/dp_20"
android:layout_marginTop="@dimen/dp_30">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvRoadEventList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal"
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"

View File

@@ -3,12 +3,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/module_v2x_live_window_height">
android:layout_height="match_parent">
<com.tencent.rtmp.ui.TXCloudVideoView
android:id="@+id/txcVideoView"
android:layout_width="match_parent"
android:layout_height="@dimen/module_v2x_live_window_height"
android:layout_height="@dimen/v2x_video_window_height"
android:gravity="center" />
<androidx.core.widget.ContentLoadingProgressBar

View File

@@ -104,7 +104,7 @@
<dimen name="module_v2x_event_panel_btn_y">384px</dimen>
<!---->
<dimen name="v2x_right_context_magin">460px</dimen>
<dimen name="v2x_right_context_margin">460px</dimen>
<dimen name="v2x_video_window_height">474px</dimen>
</resources>

View File

@@ -105,7 +105,7 @@
<dimen name="module_v2x_event_panel_btn_y">384px</dimen>
<!---->
<dimen name="v2x_right_context_magin">460px</dimen>
<dimen name="v2x_right_context_margin">460px</dimen>
<dimen name="v2x_video_window_height">474px</dimen>
</resources>

View File

@@ -102,7 +102,7 @@
<dimen name="module_v2x_event_panel_btn_y">701px</dimen>
<!--适配直播框-->
<dimen name="v2x_right_context_magin">820px</dimen>
<dimen name="v2x_right_context_margin">830px</dimen>
<dimen name="v2x_video_window_height">674px</dimen>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!---->
<item>
<shape android:shape="rectangle">
<solid android:color="#0DCCCCCC" />
<corners android:radius="@dimen/dp_26" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="#26CCCCCC" />
<corners android:radius="@dimen/dp_26" />
</shape>
</item>
<!-- 中心背景 -->
<item>
<shape android:shape="rectangle">
<corners android:radius="@dimen/dp_26" />
<gradient
android:angle="135"
android:endColor="#F5F5F5"
android:startColor="#FFFFFF"
android:type="linear"
android:useLevel="true" />
</shape>
</item>
</layer-list>