Guest User

Untitled

a guest
Apr 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1. <LinearLayout
  2. android:layout_height="match_parent"
  3. android:layout_width="match_parent"
  4. android:orientation="vertical">
  5.  
  6. <RelativeLayout
  7. android:layout_weight="2"
  8. android:layout_width="match_parent"
  9. android:layout_height="0dp">
  10.  
  11.  
  12. <TextView
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:id="@+id/maintext"
  16. android:text="Latest Albums"
  17. android:textSize="45dp"
  18. android:layout_marginLeft="85dp"/>
  19. </RelativeLayout>
  20.  
  21.  
  22. <GridLayout
  23. android:columnCount="2"
  24. android:rowCount="3"
  25. android:alignmentMode="alignMargins"
  26. android:columnOrderPreserved="false"
  27. android:layout_weight="8"
  28. android:layout_width="match_parent"
  29. android:padding="14dp"
  30. android:layout_height="0dp">
  31.  
  32.  
  33. <android.support.v7.widget.CardView
  34. android:layout_width="0dp"
  35. android:layout_height="0dp"
  36. android:layout_columnWeight="1"
  37. android:layout_rowWeight="1"
  38. android:layout_marginBottom="16dp"
  39. android:layout_marginRight="16dp"
  40. app:cardElevation="8dp"
  41. app:cardCornerRadius="8dp"
  42. >
  43.  
  44. <LinearLayout
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_gravity="center_horizontal|center_vertical"
  48. android:layout_margin="16dp"
  49. android:orientation="vertical">
  50.  
  51. <ImageView
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:src="@drawable/revival"
  55. android:layout_gravity="center_horizontal"
  56. />
  57.  
  58. <TextView
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:textSize="28sp"
  62. android:textStyle="bold"
  63. android:text="Revival"/>
  64.  
  65.  
  66.  
  67. </LinearLayout>
  68.  
  69. </android.support.v7.widget.CardView>
  70.  
  71. <android.support.v7.widget.CardView
  72. android:layout_width="0dp"
  73. android:layout_height="0dp"
  74. android:layout_columnWeight="1"
  75. android:layout_rowWeight="1"
  76. android:layout_marginBottom="16dp"
  77. android:layout_marginRight="16dp"
  78. app:cardElevation="8dp"
  79. app:cardCornerRadius="8dp"
  80. >
  81.  
  82. <LinearLayout
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:layout_gravity="center_horizontal|center_vertical"
  86. android:layout_margin="16dp"
  87. android:orientation="vertical">
  88.  
  89. <ImageView
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:src="@drawable/cokestudio"
  93. android:layout_gravity="center_horizontal"
  94. />
  95.  
  96. <TextView
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:textSize="28sp"
  100. android:textStyle="bold"
  101. android:text="October"/>
  102.  
  103.  
  104.  
  105. </LinearLayout>
  106.  
  107.  
  108. </android.support.v7.widget.CardView>
  109.  
  110. <android.support.v7.widget.CardView
  111. android:layout_width="0dp"
  112. android:layout_height="0dp"
  113. android:layout_columnWeight="1"
  114. android:layout_rowWeight="1"
  115. android:layout_marginBottom="16dp"
  116. android:layout_marginRight="16dp"
  117. app:cardElevation="8dp"
  118. app:cardCornerRadius="8dp"
  119. >
  120.  
  121. <LinearLayout
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_gravity="center_horizontal|center_vertical"
  125. android:layout_margin="16dp"
  126. android:orientation="vertical">
  127.  
  128. <ImageView
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:src="@drawable/october"
  132. android:layout_gravity="center_horizontal"
  133. />
  134.  
  135. <TextView
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:textSize="28sp"
  139. android:textStyle="bold"
  140. android:text="Padmavat"/>
  141. </LinearLayout>
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. </android.support.v7.widget.CardView>
  154.  
  155.  
  156. <android.support.v7.widget.CardView
  157. android:layout_width="0dp"
  158. android:layout_height="0dp"
  159. android:layout_columnWeight="1"
  160. android:layout_rowWeight="1"
  161. android:layout_marginBottom="16dp"
  162. android:layout_marginRight="16dp"
  163. app:cardElevation="8dp"
  164. app:cardCornerRadius="8dp"
  165. >
  166.  
  167. <LinearLayout
  168. android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. android:layout_gravity="center_horizontal|center_vertical"
  171. android:layout_margin="16dp"
  172. android:orientation="vertical">
  173.  
  174. <ImageView
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:src="@drawable/padmavat"
  178. android:layout_gravity="center_horizontal"
  179. />
  180.  
  181. <TextView
  182. android:layout_width="wrap_content"
  183. android:layout_height="wrap_content"
  184. android:textSize="28sp"
  185. android:textStyle="bold"
  186. android:text="Padmavat"/>
  187. </LinearLayout>
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. </android.support.v7.widget.CardView>
  200.  
  201.  
  202. </GridLayout>
Add Comment
Please, Sign In to add comment