list_item.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This file is part of Zandy.
  4. Zandy is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Zandy is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with Zandy. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:layout_width="fill_parent"
  17. android:layout_height="70dip"
  18. android:padding="3dip">
  19. <ImageView
  20. android:id="@+id/item_type"
  21. android:layout_width="wrap_content"
  22. android:layout_height="fill_parent"
  23. android:layout_alignParentTop="true"
  24. android:layout_alignParentBottom="true"
  25. android:layout_marginRight="6dip"
  26. android:src="@drawable/page_white" />
  27. <TextView
  28. android:id="@+id/item_summary"
  29. android:layout_width="fill_parent"
  30. android:layout_height="20dip"
  31. android:layout_toRightOf="@id/item_type"
  32. android:layout_alignParentBottom="true"
  33. android:layout_alignParentRight="true"
  34. android:singleLine="true"
  35. android:ellipsize="marquee" />
  36. <TextView
  37. android:id="@+id/item_title"
  38. android:textAppearance="?android:attr/textAppearanceMedium"
  39. android:layout_width="fill_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_toRightOf="@id/item_type"
  42. android:layout_alignParentRight="true"
  43. android:layout_alignParentTop="true"
  44. android:layout_above="@id/item_summary"
  45. android:layout_alignWithParentIfMissing="true"
  46. android:ellipsize="marquee"
  47. android:gravity="center_vertical" />
  48. </RelativeLayout>