Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. android:orientation="horizontal"
  4. tools:context="com.example.bpavel.navigationnew.MainActivity">
  5.  
  6. <android.support.design.widget.AppBarLayout
  7. android:id="@+id/appbar"
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:fitsSystemWindows="true"
  11. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  12.  
  13.  
  14. <include layout="@layout/toolbar" />
  15.  
  16.  
  17. </android.support.design.widget.AppBarLayout>
  18.  
  19. <!-- Контейнер для остальных компонeнтов фрагмента или активности -->
  20. <android.support.v4.widget.SlidingPaneLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  24.  
  25. <fragment
  26. android:id="@+id/fragment1"
  27.  
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. class = "com.example.bpavel.navigationnew.Fragment1"
  31. tools:layout="@layout/fragment1" />
  32.  
  33. <fragment
  34. android:id="@+id/fragment2"
  35. class = "com.example.bpavel.navigationnew.Fragment2"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38.  
  39. tools:layout="@layout/fragment2" />
  40.  
  41. <fragment
  42. android:id="@+id/fragment3"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. class = "com.example.bpavel.navigationnew.Fragment3"
  46. tools:layout="@layout/fragment3" />
  47. </android.support.v4.widget.SlidingPaneLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement