list_item.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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="56dp"
  24. android:layout_height="56dp"
  25. android:focusable="false"
  26. android:focusableInTouchMode="false">
  27. <ImageView
  28. android:id="@+id/imageView2"
  29. android:layout_width="32dp"
  30. android:layout_height="32dp"
  31. android:layout_gravity="center_vertical"
  32. android:layout_marginLeft="22dp"
  33. android:src="@drawable/local_file_indicator" />
  34. <ImageView
  35. android:id="@+id/imageView1"
  36. android:layout_width="32dp"
  37. android:layout_height="32dp"
  38. android:layout_gravity="center_vertical"
  39. android:layout_marginLeft="9dp"
  40. android:src="@drawable/ic_menu_archive" />
  41. <ImageView
  42. android:id="@+id/imageView3"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_gravity="bottom|right"
  46. android:layout_marginBottom="10dp"
  47. android:layout_marginRight="2dp"
  48. android:src="@drawable/ic_favorite" />
  49. </FrameLayout>
  50. <LinearLayout
  51. android:layout_width="0dp"
  52. android:layout_height="match_parent"
  53. android:layout_weight="1"
  54. android:gravity="center_vertical"
  55. android:orientation="vertical" >
  56. <TextView
  57. android:id="@+id/Filename"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_gravity="center_vertical"
  61. android:layout_marginLeft="4dp"
  62. android:layout_marginRight="4dp"
  63. android:ellipsize="middle"
  64. android:singleLine="true"
  65. android:text="TextView"
  66. android:textColor="#303030"
  67. android:textSize="16dip" />
  68. <LinearLayout
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:layout_marginLeft="4dp"
  72. android:layout_marginRight="4dp"
  73. android:weightSum="1">
  74. <TextView
  75. android:id="@+id/last_mod"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:text="TextView"
  79. android:layout_weight=".5"
  80. android:textColor="@color/list_item_lastmod_and_filesize_text"
  81. android:textSize="12dip"/>
  82. <TextView
  83. android:id="@+id/file_size"
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:gravity="right"
  87. android:text="TextView"
  88. android:textColor="@color/list_item_lastmod_and_filesize_text"
  89. android:layout_weight=".5"
  90. android:textSize="12dip"/>
  91. </LinearLayout>
  92. </LinearLayout>
  93. <LinearLayout
  94. android:layout_width="25dp"
  95. android:layout_height="match_parent"
  96. android:gravity="center_vertical"
  97. android:orientation="vertical">
  98. <ImageView
  99. android:id="@+id/sharedIcon"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_gravity="center"
  103. android:layout_marginLeft="4dp"
  104. android:layout_marginBottom="4dp"
  105. android:layout_marginRight="4dp"
  106. android:src="@drawable/sharedlink" />
  107. <ImageView
  108. android:id="@+id/sharedWithMeIcon"
  109. android:layout_width="wrap_content"
  110. android:layout_height="wrap_content"
  111. android:layout_gravity="center"
  112. android:layout_marginLeft="4dp"
  113. android:layout_marginRight="4dp"
  114. android:layout_marginTop="4dp"
  115. android:src="@drawable/shared_with_me" />
  116. </LinearLayout>
  117. <ImageView
  118. android:id="@+id/custom_checkbox"
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:layout_gravity="center_vertical"
  122. android:layout_marginLeft="4dp"
  123. android:layout_marginRight="4dp"
  124. android:gravity=""
  125. android:src="@android:drawable/checkbox_off_background" />
  126. </LinearLayout>