Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- tools:context="com.example.root.audioplayer.MainActivity"
- tools:showIn="@layout/activity_main">
- <Button
- android:id="@+id/play"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="22dp"
- android:layout_marginStart="22dp"
- android:onClick="play"
- android:text="Play"
- android:layout_alignBottom="@+id/seekBar"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginBottom="112dp" />
- <Button
- android:id="@+id/pause"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:onClick="pause"
- android:text="pause"
- android:layout_alignBaseline="@+id/play"
- android:layout_alignBottom="@+id/play"
- android:layout_centerHorizontal="true" />
- <SeekBar
- android:id="@+id/seekBar"
- android:layout_width="match_parent"
- android:layout_height="30dp"
- android:layout_marginBottom="57dp"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <Button
- android:id="@+id/button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- android:layout_alignTop="@+id/pause"
- android:layout_marginEnd="23dp"
- android:layout_marginRight="23dp"
- android:onClick="stop"
- android:text="Stop" />
- <ImageView
- android:id="@+id/imageView3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:srcCompat="@drawable/music"
- android:layout_above="@+id/pause"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginBottom="46dp" />
- <SeekBar
- android:id="@+id/musicSeek"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/pause"
- android:layout_marginTop="30dp" />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement