sorting_order_fragment.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. <TextView
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. style="@style/Base.DialogWindowTitle.AppCompat"
  27. android:layout_marginBottom="@dimen/standard_margin"
  28. android:text="Sort by" />
  29. <LinearLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_marginBottom="@dimen/standard_margin"
  33. android:orientation="horizontal">
  34. <TextView
  35. android:id="@+id/sortByNameText"
  36. android:layout_width="0dp"
  37. android:layout_height="wrap_content"
  38. android:layout_gravity="center_vertical"
  39. android:layout_marginBottom="@dimen/standard_half_margin"
  40. android:layout_marginTop="@dimen/standard_half_margin"
  41. android:layout_marginRight="@dimen/standard_margin"
  42. android:layout_weight="1"
  43. android:ellipsize="middle"
  44. android:maxLines="1"
  45. android:text="Name"
  46. android:textColor="@color/textColor"
  47. android:textSize="@dimen/two_line_primary_text_size"/>
  48. <ImageButton
  49. android:id="@+id/sortByNameAscending"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_gravity="center_vertical"
  53. android:background="@color/white"
  54. android:padding="@dimen/standard_padding"
  55. android:src="@drawable/ic_alphabetical_asc"/>
  56. <ImageButton
  57. android:id="@+id/sortByNameDescending"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_gravity="center_vertical"
  61. android:background="@color/white"
  62. android:padding="@dimen/standard_padding"
  63. android:src="@drawable/ic_alphabetical_desc"/>
  64. </LinearLayout>
  65. <LinearLayout
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_marginBottom="@dimen/standard_margin"
  69. android:orientation="horizontal">
  70. <TextView
  71. android:id="@+id/sortByModificationDateText"
  72. android:layout_width="0dp"
  73. android:layout_height="wrap_content"
  74. android:layout_gravity="center_vertical"
  75. android:layout_marginBottom="@dimen/standard_half_margin"
  76. android:layout_marginTop="@dimen/standard_half_margin"
  77. android:layout_marginRight="@dimen/standard_margin"
  78. android:layout_weight="1"
  79. android:ellipsize="middle"
  80. android:maxLines="1"
  81. android:text="Modification Date"
  82. android:textColor="@color/textColor"
  83. android:textSize="@dimen/two_line_primary_text_size"/>
  84. <ImageButton
  85. android:id="@+id/sortByModificationDateAscending"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:layout_gravity="center_vertical"
  89. android:background="@color/white"
  90. android:padding="@dimen/standard_padding"
  91. android:src="@drawable/ic_modification_asc"/>
  92. <ImageButton
  93. android:id="@+id/sortByModificationDateDescending"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:layout_gravity="center_vertical"
  97. android:background="@color/white"
  98. android:padding="@dimen/standard_padding"
  99. android:src="@drawable/ic_modification_desc"/>
  100. </LinearLayout>
  101. <LinearLayout
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_marginBottom="@dimen/standard_margin"
  105. android:orientation="horizontal">
  106. <TextView
  107. android:id="@+id/sortBySizeText"
  108. android:layout_width="0dp"
  109. android:layout_height="wrap_content"
  110. android:layout_gravity="center_vertical"
  111. android:layout_marginBottom="@dimen/standard_half_margin"
  112. android:layout_marginTop="@dimen/standard_half_margin"
  113. android:layout_marginRight="@dimen/standard_margin"
  114. android:layout_weight="1"
  115. android:ellipsize="middle"
  116. android:maxLines="1"
  117. android:text="Size"
  118. android:textColor="@color/textColor"
  119. android:textSize="@dimen/two_line_primary_text_size"/>
  120. <ImageButton
  121. android:id="@+id/sortBySizeAscending"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_gravity="center_vertical"
  125. android:background="@color/white"
  126. android:padding="@dimen/standard_padding"
  127. android:src="@drawable/ic_size_asc"/>
  128. <ImageButton
  129. android:id="@+id/sortBySizeDescending"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:layout_gravity="center_vertical"
  133. android:background="@color/white"
  134. android:padding="@dimen/standard_padding"
  135. android:src="@drawable/ic_size_desc"/>
  136. </LinearLayout>
  137. <LinearLayout
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:gravity="right">
  141. <android.support.v7.widget.AppCompatButton
  142. android:id="@+id/cancel"
  143. style="@style/Button.Borderless"
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:text="@string/common_cancel"/>
  147. </LinearLayout>
  148. </LinearLayout>