Mohammed Aouf Zouag
Mohammed Aouf Zouag

Reputation: 17132

Manually collapse a CollapsingToolbarLayout

How can I manually collapse a CollapingToolbarLayout ?

I kept digging, but there are no state setters, no nothing.

Upvotes: 0

Views: 306

Answers (1)

Bartek Lipinski
Bartek Lipinski

Reputation: 31438

As long as you're using Android Support Library version 23 or higher, you can use a method of your AppBarLayout - setExpanded(...).

Upvotes: 1

Related Questions