Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/drawer_layout"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:fitsSystemWindows="true"
  9. tools:openDrawer="start">
  10.  
  11. <include
  12. layout="@layout/app_bar_main"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent" />
  15.  
  16. <android.support.design.widget.NavigationView
  17. android:id="@+id/nav_view"
  18. android:layout_width="wrap_content"
  19. android:layout_height="match_parent"
  20. android:layout_gravity="start"
  21. android:fitsSystemWindows="true"
  22. app:headerLayout="@layout/nav_header_main"
  23. app:menu="@menu/activity_main_drawer" />
  24.  
  25. </android.support.v4.widget.DrawerLayout>
  26.  
  27. <?xml version="1.0" encoding="utf-8"?>
  28. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  29. xmlns:app="http://schemas.android.com/apk/res-auto"
  30. xmlns:tools="http://schemas.android.com/tools"
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent"
  33. android:fitsSystemWindows="true">
  34.  
  35. <android.support.design.widget.AppBarLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:theme="@style/AppTheme.AppBarOverlay">
  39.  
  40. <android.support.v7.widget.Toolbar
  41. android:id="@+id/toolbar"
  42. android:layout_width="match_parent"
  43. android:layout_height="?attr/actionBarSize"
  44. android:background="?attr/colorPrimary"
  45. app:popupTheme="@style/AppTheme.PopupOverlay" />
  46.  
  47.  
  48. </android.support.design.widget.AppBarLayout>
  49.  
  50. <FrameLayout
  51. android:id="@+id/containerView"
  52. android:layout_width="fill_parent"
  53. android:layout_height="fill_parent"
  54. android:orientation="vertical"></FrameLayout>
  55.  
  56. <!-- <include layout="@layout/content_main" /> -->
  57.  
  58. <android.support.design.widget.FloatingActionButton
  59. android:id="@+id/fab"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_gravity="bottom|end"
  63. android:layout_margin="@dimen/fab_margin"
  64. app:srcCompat="@android:drawable/ic_dialog_email" />
  65.  
  66. </android.support.design.widget.CoordinatorLayout>
  67.  
  68. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  69. xmlns:app="http://schemas.android.com/apk/res-auto"
  70. xmlns:tools="http://schemas.android.com/tools"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:orientation="vertical"
  74. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  75.  
  76. <android.support.design.widget.TabLayout
  77. android:id="@id/sliding_tabs"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_gravity="center"
  81. android:background="@color/colorPrimary"
  82. app:tabGravity="fill"
  83. app:tabMaxWidth="0.0dip"
  84. app:tabMode="fixed"
  85. app:tabTextColor="@android:color/white" />
  86.  
  87.  
  88. <android.support.v4.view.ViewPager
  89. android:id="@id/viewpager"
  90. android:layout_width="match_parent"
  91. android:layout_height="match_parent"
  92. android:background="@color/white" />
  93.  
  94.  
  95. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement