row_home_blog.xml 2.0 KB

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