row_blog.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:background="@drawable/entry"
  8. android:padding="7dp"
  9. android:layout_margin="8dp">
  10. <TextView
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:textAppearance="?android:attr/textAppearanceMedium"
  14. android:textColor="@color/entry_title"
  15. android:textStyle="bold"
  16. android:id="@+id/tv_row_blog_title" />
  17. <TextView
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:text="New Text"
  21. android:id="@+id/tv_row_blog_hidden"
  22. android:visibility="gone" />
  23. <LinearLayout
  24. android:orientation="horizontal"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent">
  27. <ImageView
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:id="@+id/iv_row_blog_image"
  31. android:maxWidth="110dp"
  32. android:contentDescription="@string/app_cdesc"
  33. android:minHeight="30dp"
  34. android:minWidth="30dp"
  35. android:layout_gravity="top|center_vertical"
  36. android:background="@color/image_border"
  37. android:padding="0.5dp"
  38. android:layout_margin="3dp"
  39. android:adjustViewBounds="true"
  40. android:maxHeight="100dp"/>
  41. <LinearLayout
  42. android:orientation="vertical"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_gravity="top">
  46. <TextView
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:id="@+id/tv_row_blog_text"
  50. android:textAppearance="@android:style/TextAppearance.Medium"
  51. android:layout_margin="5dp"
  52. android:maxLines="4"
  53. android:minHeight="30dp"/>
  54. <ImageView
  55. android:layout_width="match_parent"
  56. android:layout_weight="1"
  57. android:layout_height="40dp"
  58. android:layout_marginTop="-40dp"
  59. android:background="@drawable/gradient_v_white"
  60. android:adjustViewBounds="true"/>
  61. </LinearLayout>
  62. </LinearLayout>
  63. <ImageView
  64. android:layout_width="match_parent"
  65. android:layout_height="0.5dp"
  66. android:background="@color/image_border"
  67. android:layout_margin="10dp"
  68. android:layout_marginBottom="1dp"
  69. android:layout_marginEnd="10dp"
  70. android:layout_marginLeft="10dp"
  71. android:layout_marginRight="10dp"
  72. android:layout_marginStart="10dp"
  73. android:layout_marginTop="3dp"
  74. android:alpha="0.5"
  75. android:adjustViewBounds="false"/>
  76. <LinearLayout
  77. android:orientation="horizontal"
  78. android:layout_width="match_parent"
  79. android:layout_height="match_parent"
  80. android:gravity="center_vertical"
  81. android:layout_marginLeft="10dp"
  82. android:layout_marginRight="10dp">
  83. <TextView
  84. android:layout_width="fill_parent"
  85. android:layout_height="wrap_content"
  86. android:textAppearance="?android:attr/textAppearanceSmall"
  87. android:id="@+id/tv_row_blog_date"
  88. android:layout_weight=".5" />
  89. <TextView
  90. android:layout_width="fill_parent"
  91. android:layout_height="wrap_content"
  92. android:textAppearance="?android:attr/textAppearanceSmall"
  93. android:id="@+id/tv_row_blog_details"
  94. android:layout_weight=".5"
  95. android:gravity="end" />
  96. <ImageView
  97. android:layout_width="10dp"
  98. android:layout_height="10dp"
  99. android:id="@+id/imageView"
  100. android:src="@drawable/comment"
  101. android:contentDescription="@string/app_cdesc"
  102. android:layout_marginStart="5dp" />
  103. </LinearLayout>
  104. </LinearLayout>