list_item.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012 Bartek Przybylski
  5. Copyright (C) 2012-2013 ownCloud Inc.
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License version 2,
  8. as published by the Free Software Foundation.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  17. android:id="@+id/ListItemLayout"
  18. android:layout_width="fill_parent"
  19. android:background="@drawable/list_selector"
  20. android:orientation="horizontal"
  21. android:layout_height="56dp">
  22. <FrameLayout
  23. android:layout_width="wrap_content"
  24. android:layout_height="56dp"
  25. android:focusable="false"
  26. android:focusableInTouchMode="false">
  27. <ImageView
  28. android:id="@+id/imageView2"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:src="@drawable/local_file_indicator"/>
  32. <ImageView
  33. android:id="@+id/imageView1"
  34. android:layout_width="20dp"
  35. android:layout_height="20dp"
  36. android:layout_gravity="center_vertical|center"
  37. android:layout_margin="4dp"
  38. android:src="@drawable/ic_menu_archive" />
  39. <ImageView
  40. android:id="@+id/imageView3"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_gravity="bottom"
  44. android:layout_weight=".1"
  45. android:maxHeight="15dip"
  46. android:src="@drawable/ic_favorite" />
  47. </FrameLayout>
  48. <LinearLayout
  49. android:layout_width="0dp"
  50. android:layout_height="match_parent"
  51. android:layout_weight="1"
  52. android:gravity="center_vertical"
  53. android:orientation="vertical" >
  54. <TextView
  55. android:id="@+id/Filename"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_gravity="center_vertical"
  59. android:layout_marginLeft="4dp"
  60. android:layout_marginRight="4dp"
  61. android:ellipsize="middle"
  62. android:singleLine="true"
  63. android:text="TextView"
  64. android:textColor="#303030"
  65. android:textSize="16dip" />
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginLeft="4dp"
  70. android:layout_marginRight="4dp"
  71. android:weightSum="1">
  72. <TextView
  73. android:id="@+id/last_mod"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="TextView"
  77. android:layout_weight=".5"
  78. android:textSize="12dip"/>
  79. <TextView
  80. android:id="@+id/file_size"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:gravity="right"
  84. android:text="TextView"
  85. android:layout_weight=".5"
  86. android:textSize="12dip"/>
  87. </LinearLayout>
  88. </LinearLayout>
  89. <ImageView
  90. android:id="@+id/custom_checkbox"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_gravity="center_vertical"
  94. android:layout_marginLeft="4dp"
  95. android:layout_marginRight="4dp"
  96. android:gravity=""
  97. android:src="@android:drawable/checkbox_off_background" />
  98. </LinearLayout>