activity_main.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:fitsSystemWindows="true"
  9. tools:context="com.uddream.plugin.MainActivity">
  10. <android.support.design.widget.AppBarLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:theme="@style/AppTheme.AppBarOverlay">
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. android:background="?attr/colorPrimary"
  19. app:popupTheme="@style/AppTheme.PopupOverlay"/>
  20. </android.support.design.widget.AppBarLayout>
  21. <include layout="@layout/content_main"/>
  22. <android.support.design.widget.FloatingActionButton
  23. android:id="@+id/fab"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_gravity="bottom|end"
  27. android:layout_margin="@dimen/fab_margin"
  28. android:src="@android:drawable/ic_dialog_email"/>
  29. </android.support.design.widget.CoordinatorLayout>