activity_list_item.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2017 Andy Scherzinger
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  7. License as published by the Free Software Foundation; either
  8. version 3 of the License, or any later version.
  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 AFFERO GENERAL PUBLIC LICENSE for more details.
  13. You should have received a copy of the GNU Affero General Public
  14. License along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <RelativeLayout
  17. xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:orientation="horizontal"
  21. android:paddingTop="@dimen/standard_padding"
  22. android:paddingRight="@dimen/standard_padding"
  23. android:paddingBottom="@dimen/standard_padding"
  24. android:paddingLeft="@dimen/standard_padding">
  25. <ImageView
  26. android:id="@+id/activity_icon"
  27. android:layout_width="@dimen/activity_icon_width"
  28. android:layout_height="@dimen/activity_icon_height"
  29. android:layout_alignParentTop="true"
  30. android:layout_marginRight="@dimen/activity_icon_layout_right_end_margin"
  31. android:layout_marginEnd="@dimen/activity_icon_layout_right_end_margin"
  32. android:alpha="0.5"
  33. android:src="@drawable/ic_activity"
  34. android:contentDescription="@string/activity_icon"/>
  35. <LinearLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:orientation="vertical"
  39. android:layout_alignTop="@id/activity_icon"
  40. android:layout_toRightOf="@id/activity_icon"
  41. android:layout_toEndOf="@id/activity_icon">
  42. <TextView
  43. android:id="@+id/activity_subject"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:ellipsize="end"
  47. android:text="@string/placeholder_filename"
  48. android:textAppearance="?android:attr/textAppearanceListItem"/>
  49. <TextView
  50. android:id="@+id/activity_message"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:ellipsize="end"
  54. android:text="@string/placeholder_sentence"
  55. android:textColor="?android:attr/textColorSecondary"/>
  56. <GridLayout
  57. android:id="@+id/list"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_marginTop="@dimen/alternate_half_margin"
  61. android:layout_marginLeft="@dimen/activity_list_item_grid_layout_left_start_margin"
  62. android:layout_marginStart="@dimen/activity_list_item_grid_layout_left_start_margin"
  63. android:columnCount="3" />
  64. <TextView
  65. android:id="@+id/activity_datetime"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_gravity="end"
  69. android:ellipsize="end"
  70. android:text="@string/placeholder_sentence"
  71. android:textColor="?android:attr/textColorSecondary"/>
  72. </LinearLayout>
  73. </RelativeLayout>