row_home_blog.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical" android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@drawable/entry"
  6. android:padding="7dp"
  7. android:layout_margin="8dp">
  8. <TextView
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:textAppearance="?android:attr/textAppearanceMedium"
  12. android:id="@+id/tv_row_home_blog_title"
  13. android:textColor="@color/entry_title"
  14. android:textStyle="bold"/>
  15. <TextView
  16. android:layout_width="match_parent"
  17. android:layout_height="0dp"
  18. android:textAppearance="?android:attr/textAppearanceSmall"
  19. android:id="@+id/tv_row_home_blog_date"
  20. android:layout_weight=".5"
  21. android:textStyle="italic"/>
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:text="New Text"
  26. android:id="@+id/tv_row_home_blog_hidden"
  27. android:visibility="gone" />
  28. <LinearLayout
  29. android:orientation="horizontal"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent">
  32. <ImageView
  33. android:contentDescription="@string/app_cdesc"
  34. android:layout_width="fill_parent"
  35. android:layout_height="wrap_content"
  36. android:id="@+id/iv_row_home_blog_image"
  37. android:maxWidth="130dp"
  38. android:layout_weight=".7"
  39. android:layout_margin="3dp"
  40. android:layout_gravity="center_vertical"
  41. android:adjustViewBounds="true"/>
  42. <TextView
  43. android:layout_width="fill_parent"
  44. android:layout_height="wrap_content"
  45. android:id="@+id/tv_row_home_blog_text"
  46. android:layout_weight=".3"
  47. android:textAppearance="@android:style/TextAppearance.Medium"
  48. android:layout_margin="5dp" />
  49. </LinearLayout>
  50. </LinearLayout>