nafiefn_10

Untitled

Jun 20th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:id="@+id/container"
  5.    android:padding="20dp"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:layout_gravity="center"
  9.    android:background="#D67DFF"
  10.    android:orientation="vertical">
  11.  
  12.     <TextView
  13.        android:id="@+id/songName"
  14.        android:layout_width="wrap_content"
  15.        android:layout_height="wrap_content"
  16.        android:layout_gravity="center"
  17.        android:textStyle="bold"
  18.        android:layout_margin="20dp"
  19.        android:textColor="#ffffff"
  20.        android:text="Judul Video" />
  21.     <VideoView
  22.        android:id="@+id/videoplay"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="200dp"
  25.        android:padding="10dp"
  26.        android:layout_margin="10dp" />
  27.     <TextView
  28.        android:id="@+id/songDuration"
  29.        android:layout_width="wrap_content"
  30.        android:layout_height="wrap_content"
  31.        android:layout_gravity="center"
  32.        android:textColor="#ffffff"
  33.        android:text="Durasi Video" />
  34.     <SeekBar
  35.        android:id="@+id/seekBar"
  36.        android:layout_width="match_parent"
  37.        android:layout_height="wrap_content"/>
  38.     <LinearLayout
  39.        android:layout_width="match_parent"
  40.        android:layout_height="match_parent"
  41.        android:layout_marginTop="30dp"
  42.        android:gravity="center_horizontal"
  43.        android:orientation="horizontal">
  44.  
  45.         <ImageButton
  46.            android:id="@+id/btn_back"
  47.            android:layout_width="wrap_content"
  48.            android:layout_height="wrap_content"
  49.            android:layout_marginLeft="14dp"
  50.            android:onClick="backforward"
  51.            android:src="@android:drawable/ic_media_rew" />
  52.  
  53.         <ImageButton
  54.            android:id="@+id/btn_pause"
  55.            android:layout_width="wrap_content"
  56.            android:layout_height="wrap_content"
  57.            android:layout_marginLeft="14dp"
  58.            android:onClick="Pause"
  59.            android:src="@android:drawable/ic_media_pause" />
  60.         <ImageButton
  61.            android:id="@+id/btn_Play"
  62.            android:layout_width="wrap_content"
  63.            android:layout_height="wrap_content"
  64.            android:layout_marginLeft="14dp"
  65.            android:onClick="play"
  66.            android:src="@android:drawable/ic_media_play" />
  67.         <ImageButton
  68.            android:id="@+id/btn_forward"
  69.            android:layout_width="wrap_content"
  70.            android:layout_height="wrap_content"
  71.            android:layout_marginLeft="14dp"
  72.            android:onClick="forward"
  73.            android:src="@android:drawable/ic_media_ff" />
  74.     </LinearLayout>
  75. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment