为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

1 回答

<LinearLayout
   android:orientation="vertical"
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   tools:context="com.example.videoplayertest.MainActivity">

<RelativeLayout
   android:id="@+id/videoLayout"
   android:layout_width="match_parent"
   android:layout_height="240dp">

   <VideoView
       android:id="@+id/videoView"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"/>

   <LinearLayout
       android:orientation="vertical"
       android:layout_alignParentBottom="true"
       android:layout_width="match_parent"
       android:layout_height="50dp">

       <SeekBar
           android:paddingEnd="5dp"
           android:paddingStart="5dp"
           android:thumb="@null"
           android:id="@+id/pos_seekBar"
           android:layout_width="match_parent"
           android:layout_height="4dp"
           android:indeterminate="false"
           android:progress="20"
           android:max="1000"/>

       <RelativeLayout
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:background="#101010"
           android:layout_gravity="center_vertical">

           <LinearLayout
               android:gravity="center_vertical"
               android:orientation="horizontal"
               android:id="@+id/left_layout"
               android:layout_width="wrap_content"
               android:layout_height="match_parent">
               <ImageView
                   android:layout_marginStart="16dp"
                   android:src="@drawable/bili_player_play_can_pause"
                   android:id="@+id/pause"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>
               <TextView
                   android:id="@+id/current_time_tv"
                   android:textSize="14sp"
                   android:textColor="#fff"
                   android:layout_marginStart="32dp"
                   android:text="currentTime"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>

               <TextView
                   android:textColor="#4c4c4c"
                   android:layout_marginStart="5dp"
                   android:text="/"
                   android:textSize="14sp"
                   android:id="@+id/divider_lint"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>
               <TextView
                   android:textColor="#4c4c4c"
                   android:id="@+id/total_time"
                   android:text="totalTime"
                   android:layout_marginStart="5dp"
                   android:textSize="14sp"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>
           </LinearLayout>

           <LinearLayout
               android:layout_width="10dp"
               android:layout_height="match_parent"
               android:layout_toRightOf="@id/left_layout"
               android:layout_alignParentRight="true"
               android:orientation="horizontal"
               android:gravity="center_vertical|right">

               <ImageView
                   android:src="@mipmap/last_video_df"
                   android:id="@+id/volume_img"
                   android:visibility="gone"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>

               <SeekBar
                   android:id="@+id/volume_seek"
                   android:layout_width="90dp"
                   android:layout_height="4dp"
                   android:indeterminate="false"
                   android:thumb="@null"
                   android:progressDrawable="@drawable/seekbar_style"
                   android:progress="20"
                   android:max="100"
                   android:visibility="gone"/>

               <View
                   android:layout_width="1dp"
                   android:layout_height="match_parent"
                   android:layout_marginBottom="5dp"
                   android:layout_marginTop="5dp"
                   android:layout_marginStart="5dp"
                   android:background="#1e1e1e"/>

               <ImageView
                   android:id="@+id/change_screen"
                   android:layout_marginStart="16dp"
                   android:layout_marginEnd="16dp"
                   android:src="@mipmap/big_screen_df"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>
           </LinearLayout>
       </RelativeLayout>
   </LinearLayout>
</RelativeLayout>
</LinearLayout>

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

求布局文件

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号