Simple question, but I can't find an answer. How can I collapse or expand the CollapsingToolbarLayout programmatically?
CollapsingToolbarLayout
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Using Support Library v23, you can call appBarLayout.setExpanded(true/false).
appBarLayout.setExpanded(true/false)
Further reading: AppBarLayout.setExpanded(boolean)
2.1m questions
2.1m answers
60 comments
57.0k users