视频组件优化
This commit is contained in:
@@ -7,13 +7,66 @@
|
||||
android:background="#F9F9F9"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 视频播放区域 -->
|
||||
<chuangyuan.ycj.videolibrary.widget.VideoPlayerView
|
||||
android:id="@+id/exoPlayContextId"
|
||||
<!-- 视频播放区域和悬浮按钮 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="250dp"
|
||||
android:background="@android:color/transparent"
|
||||
app:use_controller="true"/>
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- 视频播放区域 -->
|
||||
<chuangyuan.ycj.videolibrary.widget.VideoPlayerView
|
||||
android:id="@+id/exoPlayContextId"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="280dp"
|
||||
android:background="@android:color/transparent"
|
||||
app:use_controller="true" />
|
||||
<!-- 右上角按钮区域 - 下载和删除横向排列 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/functionBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top|end"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivDownload"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/download"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivDelete"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/delete"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 右下角按钮区域 - 静音按钮 -->
|
||||
<LinearLayout
|
||||
android:layout_marginBottom="40dp"
|
||||
android:id="@+id/muteBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivMute"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/mute"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
android:background="#F5F6F6"
|
||||
android:name=".liveVideo.LiveVideoActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:screenOrientation="portrait"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 顶部导航栏 -->
|
||||
@@ -50,7 +49,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="250dp"
|
||||
android:background="@android:color/transparent"
|
||||
app:use_controller="false"/>
|
||||
app:use_controller="true"/>
|
||||
|
||||
<!-- 功能按钮区域 -->
|
||||
<LinearLayout
|
||||
|
||||
@@ -347,6 +347,7 @@
|
||||
<string name="exited_fullscreen">已退出全屏</string>
|
||||
<string name="sound_on">声音已开启</string>
|
||||
<string name="sound_off">声音已关闭</string>
|
||||
<string name="download">下载</string>
|
||||
<string name="light_on">灯光已开启</string>
|
||||
<string name="light_off">灯光已关闭</string>
|
||||
<string name="start_control_mode">开始控制模式</string>
|
||||
|
||||
@@ -338,6 +338,7 @@
|
||||
<string name="exited_fullscreen">Exited fullscreen</string>
|
||||
<string name="sound_on">Sound on</string>
|
||||
<string name="sound_off">Sound off</string>
|
||||
<string name="download">Download</string>
|
||||
<string name="light_on">Light on</string>
|
||||
<string name="light_off">Light off</string>
|
||||
<string name="start_control_mode">Start control mode</string>
|
||||
|
||||
Reference in New Issue
Block a user