version_list_item.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. @author Tobias Kaminsky
  5. Copyright (C) 2018 Tobias Kaminsky
  6. Copyright (C) 2018 Nextcloud GmbH.
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. -->
  18. <LinearLayout
  19. xmlns:android="http://schemas.android.com/apk/res/android"
  20. xmlns:tools="http://schemas.android.com/tools"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:orientation="horizontal"
  24. android:paddingTop="@dimen/standard_padding"
  25. android:paddingRight="@dimen/standard_padding"
  26. android:paddingBottom="@dimen/standard_padding"
  27. android:paddingLeft="@dimen/standard_padding">
  28. <ImageView
  29. android:id="@+id/thumbnail"
  30. android:layout_width="@dimen/activity_icon_width"
  31. android:layout_height="@dimen/activity_icon_height"
  32. android:layout_marginEnd="@dimen/activity_icon_layout_right_end_margin"
  33. android:layout_marginRight="@dimen/activity_icon_layout_right_end_margin"
  34. android:alpha="0.5"
  35. android:contentDescription="@null"
  36. android:src="@drawable/ic_activity"/>
  37. <LinearLayout
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:orientation="vertical">
  41. <TextView
  42. android:id="@+id/version_created"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:ellipsize="end"
  46. android:text="@string/new_version_was_created"
  47. android:textAppearance="?android:attr/textAppearanceListItem"/>
  48. <TextView
  49. android:id="@+id/size"
  50. android:layout_width="match_parent"
  51. android:layout_height="0dp"
  52. android:layout_weight="1"
  53. android:ellipsize="end"
  54. tools:text="256 KB"
  55. android:textColor="?android:attr/textColorSecondary"/>
  56. </LinearLayout>
  57. <ImageView
  58. android:id="@+id/restore"
  59. android:layout_width="@dimen/restore_icon_width"
  60. android:layout_height="@dimen/restore_icon_height"
  61. android:layout_marginEnd="@dimen/restore_icon_layout_right_end_margin"
  62. android:layout_marginRight="@dimen/restore_icon_layout_right_end_margin"
  63. android:layout_weight="1"
  64. android:alpha="0.5"
  65. android:contentDescription="@string/restore"
  66. android:src="@drawable/ic_history"/>
  67. <TextView
  68. android:id="@+id/time"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_gravity="end"
  72. android:layout_weight="1"
  73. android:ellipsize="end"
  74. android:textAlignment="textEnd"
  75. tools:text="13:24"
  76. android:textColor="?android:attr/textColorSecondary"/>
  77. </LinearLayout>