Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8.  
  9. <android.support.design.widget.AppBarLayout
  10. android:id="@+id/appBarLayout"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content">
  13.  
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/my_toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. android:background="?attr/colorPrimary"
  19. android:elevation="4dp"
  20. app:contentInsetEnd="0dp"
  21. app:contentInsetStart="0dp"
  22. app:layout_scrollFlags="scroll|enterAlways"
  23. app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
  24.  
  25. <ImageView
  26. android:id="@+id/toolbar_icon_image_view"
  27. android:layout_width="wrap_content"
  28. android:layout_height="match_parent"
  29. android:adjustViewBounds="true"
  30. android:paddingBottom="7dp"
  31. android:paddingLeft="5dp"
  32. android:paddingTop="7dp"
  33. android:scaleType="centerInside"
  34. android:src="@drawable/toolbar_icon"/>
  35.  
  36. </android.support.v7.widget.Toolbar>
  37.  
  38. </android.support.design.widget.AppBarLayout>
  39.  
  40. <android.support.v4.widget.DrawerLayout
  41. android:id="@+id/drawer_layout"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  45.  
  46. <android.support.v4.widget.SwipeRefreshLayout
  47. android:id="@+id/swipeRefreshLayout"
  48. android:layout_width="match_parent"
  49. android:layout_height="match_parent">
  50.  
  51. <RelativeLayout
  52. android:id="@+id/main_grid_layout"
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent">
  55.  
  56. <android.support.v4.view.ViewPager
  57. android:id="@+id/content_pager"
  58. android:layout_width="match_parent"
  59. android:layout_height="match_parent"
  60. android:layout_above="@+id/sliding_tabs"/>
  61.  
  62. <com.ili.view.SlidingTabLayout
  63. android:id="@+id/sliding_tabs"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_alignParentBottom="true"/>
  67.  
  68. </RelativeLayout>
  69. </android.support.v4.widget.SwipeRefreshLayout>
  70.  
  71. <!-- The navigation drawer -->
  72.  
  73. <ListView
  74. android:id="@+id/left_drawer"
  75. android:layout_width="275dp"
  76. android:layout_height="match_parent"
  77. android:layout_gravity="left"
  78. android:choiceMode="singleChoice"
  79. android:descendantFocusability="beforeDescendants"/>
  80.  
  81. </android.support.v4.widget.DrawerLayout
  82. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement