Advertisement
CaFc_Br40ck

activity_main MusicPlayer PAB

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