abc_screen_toolbar.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2017 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <android.support.v7.widget.ActionBarOverlayLayout
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. xmlns:app="http://schemas.android.com/apk/res-auto"
  16. android:id="@+id/decor_content_parent"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:fitsSystemWindows="true">
  20. <include layout="@layout/abc_screen_content_include"/>
  21. <android.support.v7.widget.ActionBarContainer
  22. android:id="@+id/action_bar_container"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_alignParentTop="true"
  26. style="?attr/actionBarStyle"
  27. android:touchscreenBlocksFocus="true"
  28. android:keyboardNavigationCluster="true"
  29. android:gravity="top">
  30. <android.support.v7.widget.Toolbar
  31. android:id="@+id/action_bar"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. app:navigationContentDescription="@string/abc_action_bar_up_description"
  35. style="?attr/toolbarStyle"/>
  36. <android.support.v7.widget.ActionBarContextView
  37. android:id="@+id/action_context_bar"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:visibility="gone"
  41. android:theme="?attr/actionBarTheme"
  42. style="?attr/actionModeStyle"/>
  43. </android.support.v7.widget.ActionBarContainer>
  44. </android.support.v7.widget.ActionBarOverlayLayout>