drawer.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2016 Andy Scherzinger
  5. Copyright (C) 2016 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. <merge xmlns:android="http://schemas.android.com/apk/res/android"
  18. xmlns:app="http://schemas.android.com/apk/res-auto">
  19. <android.support.design.widget.NavigationView
  20. android:id="@+id/nav_view"
  21. android:layout_width="wrap_content"
  22. android:layout_height="match_parent"
  23. android:layout_gravity="start"
  24. android:layout_weight="1"
  25. android:fitsSystemWindows="true"
  26. app:headerLayout="@layout/drawer_header"
  27. app:menu="@menu/drawer_menu"
  28. app:theme="@style/NavigationView_ItemTextAppearance">
  29. <LinearLayout
  30. android:id="@+id/drawer_quota"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_gravity="bottom"
  34. android:background="@color/white"
  35. android:clickable="false"
  36. android:orientation="vertical"
  37. android:paddingBottom="@dimen/standard_half_padding"
  38. android:paddingLeft="@dimen/standard_padding"
  39. android:paddingRight="@dimen/standard_padding"
  40. android:paddingTop="@dimen/standard_half_padding"
  41. android:visibility="gone">
  42. <TextView
  43. android:id="@+id/drawer_quota_link"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:drawablePadding="@dimen/alternate_half_padding"
  47. />
  48. <ProgressBar
  49. android:id="@+id/drawer_quota_ProgressBar"
  50. style="?android:attr/progressBarStyleHorizontal"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:indeterminate="false"
  54. android:indeterminateOnly="false"
  55. android:text="@string/drawer_quota"
  56. />
  57. <TextView
  58. android:id="@+id/drawer_quota_percentage"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:drawablePadding="@dimen/alternate_half_padding"
  62. android:text="@string/drawer_quota"/>
  63. </LinearLayout>
  64. </android.support.design.widget.NavigationView>
  65. </merge>