Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:background="@color/selection_border"
  7. android:orientation="horizontal"
  8. android:padding="10dp">
  9.  
  10.  
  11. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12. android:id="@+id/title_background"
  13. android:layout_width="50dp"
  14. android:layout_height="50dp"
  15. android:layout_alignParentLeft="true"
  16. android:layout_marginRight="5dp"
  17. android:background="@drawable/track_preview">
  18.  
  19. <ImageView
  20. android:id="@+id/imTitle"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:scaleType="centerCrop" />
  24.  
  25. <ProgressBar
  26. android:id="@+id/load_track_progress"
  27. android:layout_width="50dp"
  28. android:layout_height="50dp"
  29. android:background="@color/white"
  30. android:indeterminate="true"
  31. android:visibility="gone" />
  32. </FrameLayout>
  33.  
  34. <LinearLayout
  35. android:id="@+id/controls"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_alignParentRight="true"
  39. android:layout_centerVertical="true">
  40.  
  41. <View
  42. android:id="@+id/download_track"
  43. android:layout_width="35dp"
  44. android:layout_height="35dp"
  45. android:layout_alignParentRight="true"
  46. android:layout_centerVertical="true"
  47. android:background="@drawable/ic_save_black"
  48. android:clickable="true"
  49. android:contentDescription="@string/download_track" />
  50.  
  51. <ProgressBar
  52. android:id="@+id/download_progress"
  53. style="?android:attr/progressBarStyleHorizontal"
  54. android:layout_width="35dp"
  55. android:layout_height="35dp"
  56. android:background="@drawable/circle_shape"
  57. android:indeterminate="false"
  58. android:max="100"
  59. android:progressDrawable="@drawable/circular_progress_bar"
  60. android:visibility="gone" />
  61.  
  62. <ProgressBar
  63. android:id="@+id/prepare_download_progress"
  64. android:layout_width="35dp"
  65. android:layout_height="35dp"
  66. android:background="@color/white"
  67. android:indeterminate="true"
  68. android:visibility="gone" />
  69.  
  70. <View
  71. android:id="@+id/download_complete"
  72. android:layout_width="35dp"
  73. android:layout_height="35dp"
  74. android:background="@drawable/ic_cab_done_mtrl_alpha"
  75. android:visibility="gone" />
  76. </LinearLayout>
  77.  
  78.  
  79. <com.devspark.robototextview.widget.RobotoTextView
  80. android:id="@+id/upper_text"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_alignParentTop="true"
  84. android:layout_margin="5dp"
  85. android:layout_toLeftOf="@+id/controls"
  86. android:layout_toRightOf="@+id/title_background"
  87. android:ellipsize="end"
  88. android:maxLines="1"
  89. android:text="@string/placeholder_title"
  90. android:textColor="@color/primary_text"
  91. android:textSize="16sp"
  92. app:fontFamily="roboto"
  93. app:textStyle="normal"
  94. app:textWeight="normal" />
  95.  
  96. <LinearLayout
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:layout_below="@+id/upper_text"
  100. android:layout_toLeftOf="@+id/controls"
  101. android:layout_toRightOf="@+id/title_background">
  102.  
  103. <com.devspark.robototextview.widget.RobotoTextView
  104. android:id="@+id/lower_text"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:layout_marginLeft="5dp"
  108. android:layout_marginTop="1dp"
  109. android:ellipsize="end"
  110. android:maxLines="1"
  111. android:text="@string/placeholder_artist"
  112. android:textColor="@color/secondary_text"
  113. android:textSize="12sp" />
  114.  
  115. <com.devspark.robototextview.widget.RobotoTextView
  116. android:id="@+id/tvDuration"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_marginLeft="10dp"
  120. android:layout_marginTop="1dp"
  121. android:layout_weight="1"
  122. android:maxLines="1"
  123. android:textSize="12sp"
  124. app:typeface="roboto_light" />
  125. </LinearLayout>
  126. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement