You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app_bar_main.xml 1.6KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.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. android:fitsSystemWindows="true"
  8. tools:context=".ui.activities.MainActivity">
  9. <android.support.design.widget.AppBarLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:theme="@style/AppTheme.AppBarOverlay">
  13. <android.support.v7.widget.Toolbar
  14. android:id="@+id/toolbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="?attr/actionBarSize"
  17. android:background="?attr/colorPrimary"
  18. app:popupTheme="@style/AppTheme.PopupOverlay" />
  19. </android.support.design.widget.AppBarLayout>
  20. <include layout="@layout/content_main" />
  21. <android.support.design.widget.FloatingActionButton
  22. android:id="@+id/fab"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_gravity="bottom|end"
  26. android:layout_margin="@dimen/fab_margin"
  27. android:src="@drawable/ic_add_black_24dp"/>
  28. </android.support.design.widget.CoordinatorLayout>