Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.88 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. android:id="@+id/passive"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="#BA88EC">
  8. <FrameLayout
  9. android:id="@+id/rectangle"
  10. android:layout_width="0dp"
  11. android:layout_height="wrap_content"
  12. android:layout_alignParentLeft="true"
  13. android:layout_alignParentRight="true"
  14. android:layout_alignParentTop="true"
  15. android:background="@drawable/ic_rectangle">
  16. <ImageView
  17. android:layout_gravity="center_vertical"
  18. android:layout_width="wrap_content"
  19. android:layout_height="15dp"
  20. android:src="@drawable/ic_menu"
  21. android:paddingStart="10dp"
  22. android:paddingLeft="10dp"/>
  23. </FrameLayout>
  24. <RelativeLayout
  25. android:id="@+id/info"
  26. android:layout_width="match_parent"
  27. android:layout_height="70dp"
  28. android:layout_above="@id/progressBar"
  29. >
  30. <View
  31. android:layout_centerInParent="true"
  32. android:id="@+id/info_center"
  33. android:layout_width="0dp"
  34. android:layout_height="0dp"/>
  35. <TextView
  36. android:textSize="20sp"
  37. android:textColor="@android:color/white"
  38. android:text="Название произведения"
  39. android:layout_centerHorizontal="true"
  40. android:layout_above="@id/info_center"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"/>
  43. <TextView
  44. android:textSize="15sp"
  45. android:textColor="#DBDBDB"
  46. android:layout_centerHorizontal="true"
  47. android:layout_below="@id/info_center"
  48. android:text="Исполнитель"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"/>
  51. </RelativeLayout>
  52. <ImageView
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:src="@drawable/ic_story"
  56. android:layout_below="@+id/rectangle"
  57. android:layout_marginTop="40dp"
  58. android:layout_marginLeft="20dp"
  59. android:layout_marginStart="20dp"/>
  60.  
  61. <ImageView
  62. android:id="@+id/settings"
  63. android:layout_alignParentRight="true"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_below="@+id/rectangle"
  67. android:src="@drawable/ic_settings"
  68. android:layout_marginTop="40dp"
  69. android:layout_marginEnd="20dp"
  70. android:layout_marginRight="20dp"/>
  71.  
  72. <ImageView
  73. android:layout_above="@id/info"
  74. android:layout_below="@+id/settings"
  75. android:id="@+id/album"
  76. android:paddingTop="10dp"
  77. android:scaleType="fitCenter"
  78. android:layout_alignParentLeft="true"
  79. android:layout_alignParentRight="true"
  80. android:src="@drawable/ic_album"
  81. android:layout_width="match_parent"
  82. android:layout_height="match_parent"
  83. android:layout_marginLeft="10dp"
  84. android:layout_marginRight="10dp"/>
  85.  
  86. <SeekBar
  87. android:max="100"
  88. android:progress="50"
  89. android:layout_above="@id/time"
  90. style="?android:attr/progressBarStyleHorizontal"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:id="@+id/progressBar"
  94. android:layout_marginBottom="10dp"
  95. android:thumb="@drawable/ic_ellipse"
  96. android:theme="@style/CustomProgress"
  97. />
  98. <TextView
  99. android:textSize="15sp"
  100. android:layout_above="@id/panel"
  101. android:text="0:00"
  102. android:textColor="#ECECEC"
  103. android:paddingLeft="15dp"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:id="@+id/time"/>
  107. <TextView
  108. android:layout_alignParentRight="true"
  109. android:textSize="15sp"
  110. android:layout_above="@id/panel"
  111. android:text="15:15"
  112. android:textColor="#ECECEC"
  113. android:paddingRight="15dp"
  114. android:layout_width="wrap_content"
  115. android:layout_height="wrap_content"
  116. android:id="@+id/duration"/>
  117. <RelativeLayout
  118. android:layout_width="match_parent"
  119. android:layout_height="80dp"
  120. android:layout_alignParentBottom="true"
  121. android:layout_marginBottom="50dp"
  122. android:id="@+id/panel"
  123. >
  124. <ImageView
  125. android:id="@+id/pause"
  126. android:layout_width="70dp"
  127. android:layout_height="80dp"
  128. android:src="@drawable/ic_pause_button"
  129. android:layout_alignParentBottom="true"
  130. android:layout_centerHorizontal="true"
  131. />
  132. <ImageView
  133. android:id="@+id/forward"
  134. android:src="@drawable/ic_forward"
  135. android:layout_width="30dp"
  136. android:layout_height="20dp"
  137. android:layout_centerVertical="true"
  138. android:layout_toRightOf="@+id/pause"
  139. android:layout_marginLeft="40dp"
  140. />
  141. <ImageView
  142. android:id="@+id/advanced"
  143. android:src="@drawable/ic_advanced"
  144. android:layout_width="40dp"
  145. android:layout_height="30dp"
  146. android:layout_centerVertical="true"
  147. android:layout_toRightOf="@+id/forward"
  148. android:layout_marginLeft="40dp"
  149. android:paddingRight="10dp"/>
  150. <ImageView
  151. android:id="@+id/like"
  152. android:src="@drawable/ic_like_passive"
  153. android:layout_width="30dp"
  154. android:layout_height="20dp"
  155. android:layout_centerVertical="true"
  156. android:layout_toLeftOf="@id/pause"
  157. android:layout_marginRight="40dp"/>
  158. <ImageView
  159. android:id="@+id/dislike"
  160. android:src="@drawable/ic_dislike_passive"
  161. android:layout_width="30dp"
  162. android:layout_height="20dp"
  163. android:layout_centerVertical="true"
  164. android:layout_toLeftOf="@id/like"
  165. android:layout_marginRight="40dp"
  166. android:paddingLeft="10dp"/>
  167. </RelativeLayout>
  168. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement