Always collapse appbar when created, set CollapseMode to scale

This commit is contained in:
tarsin committed 2022-12-08 10:37:59 +08:00
1 parent 6a100b8250
commit 263853d6a7
2 files changed
+8 -1

No files matched your search

@@ -18,4 +18,9 @@ abstract class CollapsingToolbarScene : ToolbarScene() {
val contentView = onCreateViewWithToolbar(inflater, view, savedInstanceState)
return view.apply { addView(contentView, 0) }
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
mAppBarLayout?.setExpanded(false, true)
}
}