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.

activity_main.xml 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <androidx.viewpager.widget.ViewPager
  9. android:id="@+id/view_pager"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  13. <com.google.android.material.appbar.AppBarLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:theme="@style/AppTheme.AppBarOverlay">
  17. <TextView
  18. android:id="@+id/title"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:gravity="center"
  22. android:minHeight="?actionBarSize"
  23. android:padding="@dimen/appbar_padding"
  24. android:text="@string/app_name"
  25. android:textAppearance="@style/TextAppearance.Widget.AppCompat.Toolbar.Title" />
  26. <com.google.android.material.tabs.TabLayout
  27. android:id="@+id/tabs"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:background="?attr/colorPrimary" />
  31. </com.google.android.material.appbar.AppBarLayout>
  32. <com.google.android.material.floatingactionbutton.FloatingActionButton
  33. android:id="@+id/fab"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_gravity="bottom|end"
  37. android:layout_margin="@dimen/fab_margin"
  38. app:srcCompat="@android:drawable/ic_dialog_email" />
  39. </androidx.coordinatorlayout.widget.CoordinatorLayout>