grid_item.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2015 ownCloud Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License version 2,
  7. as published by the Free Software Foundation.
  8. This program 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 General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <com.owncloud.android.ui.SquareLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:id="@+id/ListItemLayout"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:layout_gravity="center_horizontal"
  20. android:background="@drawable/list_selector"
  21. android:gravity="center"
  22. android:orientation="vertical" >
  23. <FrameLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_gravity="center_horizontal" >
  27. <ImageView
  28. android:id="@+id/thumbnail"
  29. android:layout_width="@dimen/standard_list_item_size"
  30. android:layout_height="@dimen/standard_list_item_size"
  31. android:layout_gravity="center_horizontal"
  32. android:layout_marginLeft="10dp"
  33. android:layout_marginRight="10dp"
  34. android:src="@drawable/ic_menu_archive" />
  35. <ImageView
  36. android:id="@+id/sharedIcon"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_margin="4dp"
  40. android:layout_gravity="top|right"
  41. android:src="@drawable/shared_via_link" />
  42. <ImageView
  43. android:id="@+id/localFileIndicator"
  44. android:layout_width="@dimen/file_icon_size"
  45. android:layout_height="@dimen/file_icon_size"
  46. android:layout_gravity="bottom|right"
  47. android:layout_marginTop="2dp"
  48. android:layout_marginRight="2dp"
  49. android:src="@drawable/ic_synced" />
  50. <ImageView
  51. android:id="@+id/favoriteIcon"
  52. android:layout_width="15dp"
  53. android:layout_height="15dp"
  54. android:layout_gravity="bottom|right"
  55. android:layout_marginBottom="2dp"
  56. android:layout_marginRight="2dp"
  57. android:src="@drawable/ic_available_offline" />
  58. </FrameLayout>
  59. <TextView
  60. android:id="@+id/Filename"
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_marginLeft="4dp"
  64. android:layout_marginRight="4dp"
  65. android:ellipsize="middle"
  66. android:gravity="center_horizontal"
  67. android:singleLine="true"
  68. android:text="TextView"
  69. android:textColor="@color/textColor"
  70. android:textSize="16dip" />
  71. </com.owncloud.android.ui.SquareLinearLayout>