Guest User

Untitled

a guest
Oct 25th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <!-- material design actionbar & toolbar -->
  2. <android.support.design.widget.AppBarLayout
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:theme="@style/AppTheme.AppBarOverlay">
  6.  
  7. <android.support.v7.widget.Toolbar
  8. android:id="@+id/toolbar"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:minHeight="?attr/actionBarSize"
  12. android:theme="@style/AppTheme.AppBarOverlay"
  13. app:popupTheme="@style/AppTheme.PopupOverlay"
  14. />
  15.  
  16. </android.support.design.widget.AppBarLayout>
  17.  
  18. android:theme="@style/AppTheme.AppBarOverlay"
  19. android:theme="@style/AppTheme.AppBarOverlay"
  20. app:popupTheme="@style/AppTheme.PopupOverlay"
  21.  
  22. <?xml version="1.0" encoding="utf-8"?>
  23. <android.support.v7.widget.Toolbar
  24. xmlns:android="http://schemas.android.com/apk/res/android"
  25. xmlns:app="http://schemas.android.com/apk/res-auto"
  26. app:popupTheme="@style/AppTheme.PopupOverlay"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:theme="@style/AppTheme.AppBarOverlay"
  30. app:popupTheme="@style/AppTheme.PopupOverlay"
  31. />
  32.  
  33. <include layout="@layout/toolbar" android:id="@+id/toolbar">
  34.  
  35. <!-- Base application theme. -->
  36. <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  37. <!-- Customize your theme here. -->
  38. <item name="colorPrimary">@color/colorPrimary</item>
  39. <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
  40. <item name="colorAccent">@color/colorAccent</item>
  41. </style>
  42.  
  43. <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
  44. <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
Add Comment
Please, Sign In to add comment