activity_main.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context="${relativePackage}.${activityClass}" >
  6. <ImageButton
  7. android:id="@+id/playButton"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_alignParentBottom="true"
  11. android:layout_centerHorizontal="true"
  12. android:layout_marginBottom="10dp"
  13. android:src="@drawable/play"
  14. android:contentDescription="@string/playDescription" />
  15. <ImageButton
  16. android:id="@+id/pauseButton"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_alignBottom="@+id/playButton"
  20. android:layout_toRightOf="@+id/playButton"
  21. android:src="@drawable/pause"
  22. android:contentDescription="@string/pauseDescription" />
  23. <ImageButton
  24. android:id="@+id/stopButton"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_alignBottom="@+id/playButton"
  28. android:layout_toLeftOf="@+id/playButton"
  29. android:src="@drawable/stop"
  30. android:contentDescription="@string/stopDescription" />
  31. <TextView
  32. android:id="@+id/songName"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_centerHorizontal="true"
  36. android:layout_centerVertical="true"
  37. android:textAppearance="?android:attr/textAppearanceLarge" />
  38. <TextView
  39. android:id="@+id/mediaPlayerStatus"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_above="@+id/playButton"
  43. android:layout_centerHorizontal="true"
  44. android:layout_marginBottom="42dp" />
  45. </RelativeLayout>