app_bar_main.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".MainActivity">
  8. <com.google.android.material.appbar.AppBarLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:theme="@style/Theme.MiniProjekt.AppBarOverlay">
  12. </com.google.android.material.appbar.AppBarLayout>
  13. <include layout="@layout/content_main" />
  14. <!--<com.google.android.material.floatingactionbutton.FloatingActionButton
  15. android:id="@+id/fab"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_gravity="center|right"
  19. android:layout_margin="@dimen/fab_margin"
  20. app:srcCompat="@android:drawable/ic_dialog_email" />-->
  21. <androidx.appcompat.widget.Toolbar
  22. android:id="@+id/toolbar"
  23. android:layout_width="match_parent"
  24. android:layout_height="?attr/actionBarSize"
  25. android:layout_gravity="top"
  26. android:background="?attr/colorPrimary"
  27. app:titleTextColor="@android:color/white"
  28. app:popupTheme="@style/Theme.MiniProjekt.PopupOverlay" />
  29. </androidx.coordinatorlayout.widget.CoordinatorLayout>