nafiefn_10

Untitled

Jun 20th, 2021
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.86 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.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:id="@+id/container"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:layout_gravity="center"
  9.    android:background="#003f75"
  10.    android:orientation="vertical"
  11.    android:padding="20dp"
  12.    tools:context=".MainActivity">
  13.  
  14.     <TextView
  15.        android:id="@+id/songName"
  16.        android:layout_width="wrap_content"
  17.        android:layout_height="wrap_content"
  18.        android:layout_gravity="center"
  19.        android:text="Judul Lagu"
  20.        android:textColor="#ffffff"/>
  21.  
  22.     <ImageView
  23.        android:id="@+id/mp3Icon"
  24.        android:layout_width="match_parent"
  25.        android:layout_height="200dp"
  26.        android:layout_margin="30dp"
  27.        android:background="#ffffff"
  28.        android:padding="30dp"
  29.        android:src="@drawable/headphone2"/>
  30.  
  31.     <TextView
  32.        android:id="@+id/songDuration"
  33.        android:layout_width="wrap_content"
  34.        android:layout_height="wrap_content"
  35.        android:layout_gravity="center"
  36.        android:text="Durasi Lagu"
  37.        android:textColor="#ffffff"/>
  38.     <SeekBar
  39.        android:id="@+id/seekBar"
  40.        android:layout_width="match_parent"
  41.        android:layout_height="wrap_content"/>
  42.     <LinearLayout
  43.        android:layout_width="match_parent"
  44.        android:layout_height="match_parent"
  45.        android:layout_marginTop="30dp"
  46.        android:gravity="center_horizontal">
  47.         <ImageButton
  48.            android:id="@+id/btn_back"
  49.            android:layout_width="wrap_content"
  50.            android:layout_height="wrap_content"
  51.            android:layout_marginLeft="14dp"
  52.            android:onClick="backforward"
  53.            android:src="@android:drawable/ic_media_rew"/>
  54.         <ImageButton
  55.            android:id="@+id/btn_pause"
  56.            android:layout_width="wrap_content"
  57.            android:layout_height="wrap_content"
  58.            android:layout_marginLeft="14dp"
  59.            android:onClick="pause"
  60.            android:src="@android:drawable/ic_media_pause"/>
  61.         <ImageButton
  62.            android:id="@+id/btn_Play"
  63.            android:layout_width="wrap_content"
  64.            android:layout_height="wrap_content"
  65.            android:layout_marginLeft="14dp"
  66.            android:onClick="play"
  67.            android:src="@android:drawable/ic_media_play"/>
  68.         <ImageButton
  69.            android:id="@+id/btn_forward"
  70.            android:layout_width="wrap_content"
  71.            android:layout_height="wrap_content"
  72.            android:layout_marginLeft="14dp"
  73.            android:onClick="forward"
  74.            android:src="@android:drawable/ic_media_ff"/>
  75.     </LinearLayout>
  76.  
  77. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment