pdlivexp/live/src/main/res/layout/view_live_play_ksy.xml

169 lines
5.5 KiB
XML
Raw Normal View History

2022-07-18 15:31:45 +08:00
<?xml version="1.0" encoding="utf-8"?>
2022-11-30 09:44:37 +08:00
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-07-18 15:31:45 +08:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2022-07-18 15:31:45 +08:00
android:id="@+id/root"
android:layout_width="match_parent"
2024-04-12 18:29:26 +08:00
android:layout_height="match_parent"
android:animateLayoutChanges="true">
2022-07-18 15:31:45 +08:00
<com.google.android.exoplayer2.ui.StyledPlayerView
2022-07-18 15:31:45 +08:00
android:id="@+id/video_view"
android:layout_width="match_parent"
2024-04-12 18:29:26 +08:00
android:layout_height="match_parent"
2024-04-10 18:31:00 +08:00
android:visibility="gone"
2024-04-12 18:29:26 +08:00
app:surface_type="texture_view"
app:use_controller="false" />
2022-07-18 15:31:45 +08:00
2024-04-12 18:29:26 +08:00
<LinearLayout
2024-04-10 18:31:00 +08:00
android:layout_width="match_parent"
2024-04-12 18:29:26 +08:00
android:layout_height="300dp"
android:layout_centerVertical="true"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/playView"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<FrameLayout
android:id="@+id/playView1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
2024-04-10 18:31:00 +08:00
2022-07-18 15:31:45 +08:00
<ImageView
android:id="@+id/leave"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
2022-11-30 09:44:37 +08:00
android:scaleType="centerCrop"
2022-07-18 15:31:45 +08:00
android:src="@mipmap/zslk"
2022-11-30 09:44:37 +08:00
android:visibility="gone" />
2022-07-18 15:31:45 +08:00
2024-04-19 18:27:56 +08:00
<FrameLayout
2022-07-18 15:31:45 +08:00
android:id="@+id/pk_container"
2024-04-19 18:27:56 +08:00
android:layout_width="match_parent"
android:layout_height="270dp"
android:layout_marginTop="130dp">
2022-07-18 15:31:45 +08:00
<com.yunbao.live.custom.MyFrameLayout4
android:id="@+id/left_container"
android:layout_width="0dp"
android:layout_height="match_parent"
2022-11-30 09:44:37 +08:00
android:layout_marginBottom="20dp" />
2022-07-18 15:31:45 +08:00
<com.yunbao.live.custom.MyFrameLayout4
android:id="@+id/right_container"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="right"
2022-10-17 10:13:17 +08:00
android:layout_marginBottom="20dp" />
2022-07-18 15:31:45 +08:00
2024-04-19 18:27:56 +08:00
</FrameLayout>
<LinearLayout
android:id="@+id/dr_pk_view"
android:layout_width="match_parent"
android:layout_height="270dp"
android:layout_marginTop="130dp"
android:orientation="horizontal"
2024-04-30 18:29:09 +08:00
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<FrameLayout
android:id="@+id/dr1_preview"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@mipmap/live_icon_vacancy"
tools:ignore="NestedWeights" />
<FrameLayout
android:id="@+id/dr3_preview"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@mipmap/live_icon_vacancy" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<FrameLayout
android:id="@+id/dr2_preview"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@mipmap/live_icon_vacancy"
tools:ignore="NestedWeights" />
<FrameLayout
android:id="@+id/dr4_preview"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@mipmap/live_icon_vacancy" />
</LinearLayout>
2022-07-18 15:31:45 +08:00
</LinearLayout>
2022-07-18 15:31:45 +08:00
<com.yunbao.live.custom.MyFrameLayout3
android:id="@+id/small_container"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_alignParentRight="true"
2022-11-30 09:44:37 +08:00
android:layout_alignParentBottom="true"
2022-07-18 15:31:45 +08:00
android:layout_marginBottom="120dp"
2022-11-30 09:44:37 +08:00
app:mfl3_ratio="0.25" />
<FrameLayout
android:id="@+id/ry_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
2022-07-18 15:31:45 +08:00
2022-11-30 09:44:37 +08:00
<ImageView
android:id="@+id/cover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
2022-07-18 15:31:45 +08:00
<ProgressBar
android:id="@+id/loading"
android:layout_width="24dp"
android:layout_height="24dp"
2022-11-30 09:44:37 +08:00
android:layout_centerHorizontal="true"
2024-04-12 18:29:26 +08:00
android:layout_marginTop="240dp"
2022-07-18 15:31:45 +08:00
android:indeterminateBehavior="repeat"
android:indeterminateDrawable="@drawable/anim_loading"
android:indeterminateOnly="true"
2022-11-30 09:44:37 +08:00
android:visibility="invisible" />
2024-04-12 18:29:26 +08:00
2022-11-30 09:44:37 +08:00
<ProgressBar
android:id="@+id/loading2"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerHorizontal="true"
2024-04-12 18:29:26 +08:00
android:layout_marginTop="240dp"
2022-11-30 09:44:37 +08:00
android:indeterminateBehavior="repeat"
android:indeterminateDrawable="@drawable/anim_loading"
android:indeterminateOnly="true"
android:visibility="invisible" />
2022-07-18 15:31:45 +08:00
</RelativeLayout>