media_control.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012-2013 ownCloud Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License version 2,
  7. as published by the Free Software Foundation.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="vertical">
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:gravity="center"
  23. android:paddingTop="4dip"
  24. android:orientation="horizontal"
  25. >
  26. <ImageButton
  27. android:id="@+id/rewindBtn"
  28. style="@android:style/MediaButton.Rew"
  29. android:contentDescription="@string/media_rewind_description"
  30. />
  31. <ImageButton
  32. android:id="@+id/playBtn"
  33. style="@android:style/MediaButton.Play"
  34. android:contentDescription="@string/media_play_pause_description"
  35. />
  36. <ImageButton
  37. android:id="@+id/forwardBtn"
  38. style="@android:style/MediaButton.Ffwd"
  39. android:contentDescription="@string/media_forward_description"
  40. />
  41. </LinearLayout>
  42. <LinearLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:orientation="horizontal">
  46. <TextView
  47. android:id="@+id/currentTimeText"
  48. android:textSize="14sp"
  49. android:textStyle="bold"
  50. android:paddingTop="4dip"
  51. android:paddingStart="4dip"
  52. android:layout_gravity="center_horizontal"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:paddingEnd="4dip"
  56. android:text="@string/placeholder_media_time"
  57. />
  58. <SeekBar
  59. android:id="@+id/progressBar"
  60. style="?android:attr/progressBarStyleHorizontal"
  61. android:layout_width="0dip"
  62. android:layout_weight="1"
  63. android:layout_height="32dip"
  64. android:layout_alignParentStart="true"
  65. android:layout_alignParentEnd="true" />
  66. <TextView android:id="@+id/totalTimeText"
  67. android:textSize="14sp"
  68. android:textStyle="bold"
  69. android:paddingTop="4dip"
  70. android:paddingEnd="4dip"
  71. android:layout_gravity="center_horizontal"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:paddingStart="4dip"
  75. android:text="@string/placeholder_media_time"
  76. />
  77. </LinearLayout>
  78. </LinearLayout>