Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.balysv.materialripple.MaterialRippleLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. style="@style/RippleStyleBlack"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content">
  6.  
  7. <LinearLayout
  8. android:id="@+id/lyt_parent"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:clickable="true"
  12. android:orientation="vertical">
  13.  
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:minHeight="50dp"
  18. android:orientation="horizontal"
  19. android:padding="@dimen/spacing_middle">
  20.  
  21. <RelativeLayout
  22. android:layout_width="@dimen/page_row_img"
  23. android:layout_height="@dimen/page_row_img"
  24. android:background="@color/grey_medium">
  25.  
  26. <ImageView
  27. android:layout_width="@dimen/spacing_mxlarge"
  28. android:layout_height="@dimen/spacing_mxlarge"
  29. android:layout_centerInParent="true"
  30. android:src="@drawable/ic_image"
  31. android:tint="@color/grey_hard" />
  32.  
  33. <ImageView
  34. android:id="@+id/image"
  35. android:layout_width="@dimen/page_row_img"
  36. android:layout_height="@dimen/page_row_img"
  37. android:scaleType="centerCrop" />
  38.  
  39. </RelativeLayout>
  40.  
  41. <View
  42. android:layout_width="10dp"
  43. android:layout_height="0dp" />
  44.  
  45. <LinearLayout
  46. android:layout_width="0dp"
  47. android:layout_height="match_parent"
  48. android:layout_gravity="top"
  49. android:layout_weight="1"
  50. android:orientation="vertical">
  51.  
  52. <TextView
  53. android:id="@+id/title"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:maxLines="2"
  57. android:text="Page Title Placed Here"
  58. android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
  59. android:textColor="@color/grey_dark"
  60. android:textStyle="bold" />
  61.  
  62. <TextView
  63. android:id="@+id/short_content"
  64. android:layout_width="wrap_content"
  65. android:layout_height="0dp"
  66. android:layout_weight="1"
  67. android:maxLines="1"
  68. android:text="Post short content will be show here"
  69. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  70. android:textColor="@color/grey_hard" />
  71.  
  72. <LinearLayout
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:layout_gravity="center"
  76. android:gravity="center_vertical"
  77. android:orientation="horizontal">
  78.  
  79. <ImageView
  80. android:layout_width="@dimen/spacing_large"
  81. android:layout_height="@dimen/spacing_large"
  82. android:layout_marginRight="@dimen/spacing_small"
  83. android:src="@drawable/ic_date"
  84. android:tint="@color/grey_hard" />
  85.  
  86. <TextView
  87. android:id="@+id/date"
  88. android:layout_width="0dp"
  89. android:layout_height="wrap_content"
  90. android:layout_weight="1"
  91. android:text="16 Mar 2016"
  92. android:textAppearance="@style/TextAppearance.AppCompat.Caption"
  93. android:textColor="@color/grey_hard" />
  94.  
  95. </LinearLayout>
  96.  
  97. </LinearLayout>
  98.  
  99. </LinearLayout>
  100.  
  101. <View
  102. android:layout_width="match_parent"
  103. android:layout_height="1px"
  104. android:layout_marginLeft="@dimen/spacing_middle"
  105. android:layout_marginRight="@dimen/spacing_middle"
  106. android:background="@color/grey_bg" />
  107.  
  108. </LinearLayout>
  109.  
  110. </com.balysv.materialripple.MaterialRippleLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement