Always collapse appbar when created, set CollapseMode to scale
This commit is contained in:
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user