react-native-omplayer
Version:
video player for react-native
139 lines (127 loc) • 5.49 kB
text/xml
<RelativeLayout 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"
android:clipChildren="false"
>
<!--<com.tencent.liteav.demo.play.SuperPlayerView-->
<!--android:id="@+id/video_view_tc"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="200dp" />-->
<com.anren.omplayer.OMScalableVideoViewTc
android:id="@+id/video_view_tc"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/display_text_tc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha=".35"
android:textColor="#fff"
android:textSize="11dp"
android:visibility="invisible" />
<RelativeLayout
android:id="@+id/toolbar_tc"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:background="@drawable/progressbar_smallscreen"
android:layout_gravity="bottom"
android:visibility="visible"
android:clipChildren="false">
<!--android:background="@color/toolbar_background"-->
<!--<SeekBar-->
<!--android:id="@+id/seekbar_tc"-->
<!--style="@style/SeekBarAppTheme"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerVertical="true"-->
<!--android:paddingStart="4dp"-->
<!--android:paddingEnd="4dp"-->
<!--android:paddingLeft="4dp"-->
<!--android:paddingRight="4dp"-->
<!--android:layout_marginLeft="9dp"-->
<!--android:layout_marginStart="9dp"-->
<!--android:layout_marginRight="9dp"-->
<!--android:layout_marginEnd="9dp"-->
<!--android:layout_alignParentTop="true"/>-->
<ImageView
android:id="@+id/play_pause_tc"
android:layout_alignParentBottom="true"
android:layout_width="25dp"
android:layout_height="40dp"
android:layout_marginStart="15dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:src="@drawable/play_smallscreen" />
<!--android:src="@drawable/ic_play" />-->
<SeekBar
android:id="@+id/seekbar_tc"
style="@style/SeekBarAppTheme"
android:maxHeight="4dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/current_time_tc"
android:layout_toRightOf="@+id/play_pause_tc" />
<TextView
android:id="@+id/current_time_tc"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/rate_tc"
android:text="--:--/--:--"
android:gravity="left|center_vertical"
android:textColor="@android:color/white"
android:layout_marginLeft="0dp"
android:layout_marginRight="9dp"
android:textSize="15sp" />
<TextView
android:id="@+id/rate_tc"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_marginRight="20dp"
android:layout_marginEnd="20dp"
android:text="倍速"
android:gravity="center"
android:textColor="@android:color/white"
android:textSize="15sp"
android:layout_toLeftOf="@+id/fullscreen_tc"
android:visibility="gone" />
<ImageView
android:id="@+id/fullscreen_tc"
android:layout_width="25dp"
android:layout_height="40dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="35dp"
android:layout_marginEnd="35dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:src="@drawable/fullscreen" />
<!--android:src="@drawable/enlarge_fullscreen" />-->
</RelativeLayout>
<ImageView
android:id="@+id/lock_tc"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="50dp"
android:src="@drawable/player_unlock" />
<com.anren.omplayer.OMPlayerRateView
android:id="@+id/player_rate_view_tc"
android:layout_width="150dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:visibility="gone">
</com.anren.omplayer.OMPlayerRateView>
<com.anren.omplayer.OMVolumeBrightnessProgressLayout
android:id="@+id/gesture_progress_tc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="30dp" />
</RelativeLayout>