notifications_layout.xml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2017 Andy Scherzinger
  5. Copyright (C) 2017 Mario Danic
  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. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18. xmlns:app="http://schemas.android.com/apk/res-auto"
  19. android:id="@+id/drawer_layout"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:clickable="true"
  23. android:fitsSystemWindows="true">
  24. <!-- The main content view -->
  25. <RelativeLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:orientation="vertical">
  29. <include
  30. android:id="@+id/navigation_bar"
  31. layout="@layout/toolbar_standard"/>
  32. <FrameLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:layout_above="@+id/bottom_navigation_view"
  36. android:layout_below="@+id/navigation_bar">
  37. <android.support.v4.widget.SwipeRefreshLayout
  38. android:id="@+id/swipe_containing_list"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:footerDividersEnabled="false"
  42. android:visibility="visible">
  43. <android.support.v7.widget.RecyclerView
  44. android:id="@android:id/list"
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent"
  47. android:layout_marginBottom="-3dp"
  48. android:layout_marginLeft="-3dp"
  49. android:layout_marginRight="-3dp"
  50. android:clipToPadding="false"
  51. android:scrollbarStyle="outsideOverlay"
  52. android:scrollbars="vertical"
  53. android:visibility="visible"/>
  54. </android.support.v4.widget.SwipeRefreshLayout>
  55. <android.support.v4.widget.SwipeRefreshLayout
  56. android:id="@+id/swipe_containing_empty"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:footerDividersEnabled="false"
  60. android:visibility="visible">
  61. <include layout="@layout/empty_list"/>
  62. </android.support.v4.widget.SwipeRefreshLayout>
  63. </FrameLayout>
  64. <android.support.design.widget.BottomNavigationView
  65. android:id="@+id/bottom_navigation_view"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_alignParentBottom="true"
  69. android:visibility="gone"
  70. app:itemBackground="@color/primary_button_background_color"
  71. app:itemIconTint="@color/primary_button_text_color"
  72. app:itemTextColor="@color/primary_button_text_color"
  73. app:menu="@menu/navigation_bar_menu"/>
  74. </RelativeLayout>
  75. <include
  76. layout="@layout/drawer"
  77. android:layout_width="240dp"
  78. android:layout_height="match_parent"
  79. android:layout_gravity="start"/>
  80. </android.support.v4.widget.DrawerLayout>