Advertisement
Guest User

Untitled

a guest
May 28th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  9. tools:context="com.example.root.audioplayer.MainActivity"
  10. tools:showIn="@layout/activity_main">
  11.  
  12. <Button
  13. android:id="@+id/play"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_marginLeft="22dp"
  17. android:layout_marginStart="22dp"
  18. android:onClick="play"
  19. android:text="Play"
  20. android:layout_alignBottom="@+id/seekBar"
  21. android:layout_alignParentLeft="true"
  22. android:layout_alignParentStart="true"
  23. android:layout_marginBottom="112dp" />
  24.  
  25. <Button
  26. android:id="@+id/pause"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:onClick="pause"
  30. android:text="pause"
  31. android:layout_alignBaseline="@+id/play"
  32. android:layout_alignBottom="@+id/play"
  33. android:layout_centerHorizontal="true" />
  34.  
  35. <SeekBar
  36. android:id="@+id/seekBar"
  37. android:layout_width="match_parent"
  38. android:layout_height="30dp"
  39. android:layout_marginBottom="57dp"
  40. android:layout_alignParentBottom="true"
  41. android:layout_alignParentLeft="true"
  42. android:layout_alignParentStart="true" />
  43.  
  44. <Button
  45. android:id="@+id/button"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_alignParentEnd="true"
  49. android:layout_alignParentRight="true"
  50. android:layout_alignTop="@+id/pause"
  51. android:layout_marginEnd="23dp"
  52. android:layout_marginRight="23dp"
  53. android:onClick="stop"
  54. android:text="Stop" />
  55.  
  56. <ImageView
  57. android:id="@+id/imageView3"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. app:srcCompat="@drawable/music"
  61. android:layout_above="@+id/pause"
  62. android:layout_alignParentLeft="true"
  63. android:layout_alignParentStart="true"
  64. android:layout_marginBottom="46dp" />
  65.  
  66. <SeekBar
  67. android:id="@+id/musicSeek"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_below="@+id/pause"
  71. android:layout_marginTop="30dp" />
  72.  
  73. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement