base_toolbar.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:gravity="center_horizontal|center">
  7. <android.support.v7.widget.Toolbar
  8. style="@style/fullToolbarStyle"
  9. android:id="@+id/sub_toolbar"
  10. android:layout_width="match_parent"
  11. android:layout_height="56dp"
  12. android:background="@color/colorPrimary"
  13. app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
  14. app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  15. <FrameLayout
  16. android:id="@+id/toolbar_layout"
  17. android:layout_width="match_parent"
  18. android:layout_height="?attr/actionBarSize"
  19. android:background="@color/colorPrimary"
  20. android:gravity="center">
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:gravity="center|center_vertical"
  25. android:orientation="horizontal">
  26. <Button
  27. android:id="@+id/toolbar_btn"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"
  30. android:layout_marginLeft="60dp"
  31. android:layout_marginRight="60dp"
  32. android:background="#00000000"
  33. android:text="" />
  34. </LinearLayout>
  35. <LinearLayout
  36. android:id="@+id/toolbar_left_items"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:gravity="left|center_vertical"
  40. android:orientation="horizontal">
  41. </LinearLayout>
  42. <LinearLayout
  43. android:id="@+id/toolbar_right_items"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:layout_marginRight="10dp"
  47. android:gravity="right|center_vertical"
  48. android:orientation="horizontal">
  49. </LinearLayout>
  50. </FrameLayout>
  51. </android.support.v7.widget.Toolbar>
  52. <TextView
  53. android:id="@+id/toolbar_title_text"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_marginTop="15dp"
  57. android:background="@null"
  58. android:ems="10"
  59. android:enabled="false"
  60. android:inputType="none"
  61. android:textAlignment="center"
  62. android:textColor="@android:color/white"
  63. android:textSize="18sp" />
  64. </RelativeLayout>