sorting_order_fragment.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2017 Andy Scherzinger
  5. Copyright (C) 2017 Nextcloud
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  8. License as published by the Free Software Foundation; either
  9. version 3 of the License, or any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  14. You should have received a copy of the GNU Affero General Public
  15. License along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <LinearLayout android:id="@+id/root"
  18. xmlns:android="http://schemas.android.com/apk/res/android"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:orientation="vertical"
  22. android:padding="@dimen/standard_padding">
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_marginBottom="@dimen/standard_margin"
  27. android:orientation="horizontal">
  28. <TextView
  29. android:id="@+id/sortByNameText"
  30. android:layout_width="0dp"
  31. android:layout_height="wrap_content"
  32. android:layout_gravity="center_vertical"
  33. android:layout_marginBottom="@dimen/standard_half_margin"
  34. android:layout_marginLeft="@dimen/standard_half_margin"
  35. android:layout_marginTop="@dimen/standard_half_margin"
  36. android:layout_weight="1"
  37. android:ellipsize="middle"
  38. android:maxLines="1"
  39. android:text="Name"
  40. android:textColor="@color/textColor"
  41. android:textSize="@dimen/two_line_primary_text_size"/>
  42. <ImageButton
  43. android:id="@+id/sortByNameAscending"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_gravity="center_vertical"
  47. android:background="@color/white"
  48. android:padding="@dimen/standard_padding"
  49. android:src="@drawable/ic_alphabetical_asc"/>
  50. <ImageButton
  51. android:id="@+id/sortByNameDescending"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_gravity="center_vertical"
  55. android:background="@color/white"
  56. android:padding="@dimen/standard_padding"
  57. android:src="@drawable/ic_alphabetical_desc"/>
  58. </LinearLayout>
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:layout_marginBottom="@dimen/standard_margin"
  63. android:orientation="horizontal">
  64. <TextView
  65. android:id="@+id/sortByModificationDateText"
  66. android:layout_width="0dp"
  67. android:layout_height="wrap_content"
  68. android:layout_gravity="center_vertical"
  69. android:layout_marginBottom="@dimen/standard_half_margin"
  70. android:layout_marginLeft="@dimen/standard_half_margin"
  71. android:layout_marginTop="@dimen/standard_half_margin"
  72. android:layout_weight="1"
  73. android:ellipsize="middle"
  74. android:maxLines="1"
  75. android:text="Modification Date"
  76. android:textColor="@color/textColor"
  77. android:textSize="@dimen/two_line_primary_text_size"/>
  78. <ImageButton
  79. android:id="@+id/sortByModificationDateAscending"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_gravity="center_vertical"
  83. android:background="@color/white"
  84. android:padding="@dimen/standard_padding"
  85. android:src="@drawable/ic_modification_asc"/>
  86. <ImageButton
  87. android:id="@+id/sortByModificationDateDescending"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_gravity="center_vertical"
  91. android:background="@color/white"
  92. android:padding="@dimen/standard_padding"
  93. android:src="@drawable/ic_modification_desc"/>
  94. </LinearLayout>
  95. <LinearLayout
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:layout_marginBottom="@dimen/standard_margin"
  99. android:orientation="horizontal">
  100. <TextView
  101. android:id="@+id/sortBySizeText"
  102. android:layout_width="0dp"
  103. android:layout_height="wrap_content"
  104. android:layout_gravity="center_vertical"
  105. android:layout_marginBottom="@dimen/standard_half_margin"
  106. android:layout_marginLeft="@dimen/standard_half_margin"
  107. android:layout_marginTop="@dimen/standard_half_margin"
  108. android:layout_weight="1"
  109. android:ellipsize="middle"
  110. android:maxLines="1"
  111. android:text="Size"
  112. android:textColor="@color/textColor"
  113. android:textSize="@dimen/two_line_primary_text_size"/>
  114. <ImageButton
  115. android:id="@+id/sortBySizeAscending"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:layout_gravity="center_vertical"
  119. android:background="@color/white"
  120. android:padding="@dimen/standard_padding"
  121. android:src="@drawable/ic_size_asc"/>
  122. <ImageButton
  123. android:id="@+id/sortBySizeDescending"
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:layout_gravity="center_vertical"
  127. android:background="@color/white"
  128. android:padding="@dimen/standard_padding"
  129. android:src="@drawable/ic_size_desc"/>
  130. </LinearLayout>
  131. <LinearLayout
  132. android:layout_width="match_parent"
  133. android:layout_height="wrap_content"
  134. android:gravity="right">
  135. <android.support.v7.widget.AppCompatButton
  136. android:id="@+id/cancel"
  137. style="@style/Button.Borderless"
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:text="@string/common_cancel"/>
  141. </LinearLayout>
  142. </LinearLayout>