activity_config.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7. <com.google.android.material.appbar.AppBarLayout
  8. android:id="@+id/title_bar"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:fitsSystemWindows="true"
  12. app:liftOnScroll="false"
  13. android:stateListAnimator="@null">
  14. <com.google.android.material.appbar.CollapsingToolbarLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="?attr/collapsingToolbarLayoutLargeSize"
  17. style="?attr/collapsingToolbarLayoutLargeSize"
  18. app:collapsedTitleTextAppearance="?attr/textAppearanceTitleLarge"
  19. app:expandedTitleTextAppearance="?attr/textAppearanceHeadlineLarge"
  20. app:titleCollapseMode="scale"
  21. app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
  22. <com.google.android.material.appbar.MaterialToolbar
  23. android:id="@+id/top_bar"
  24. android:layout_width="match_parent"
  25. android:layout_height="?attr/actionBarSize"
  26. app:navigationIcon="@drawable/ic_arrow_back"
  27. app:layout_collapseMode="pin" />
  28. </com.google.android.material.appbar.CollapsingToolbarLayout>
  29. </com.google.android.material.appbar.AppBarLayout>
  30. <androidx.core.widget.NestedScrollView
  31. android:id="@+id/configScrollView"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  35. android:fillViewport="true">
  36. <LinearLayout
  37. android:id="@+id/configFrameLayout"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:orientation="vertical" />
  41. </androidx.core.widget.NestedScrollView>
  42. </androidx.coordinatorlayout.widget.CoordinatorLayout>