How to install extendedTitleMarginBottom for CollapsingToolbarLayout programmatically

We have hidden views inside CollapsingToolbarLayout. Therefore, when we make this view visible, the alignment of the name changes. so we need to change the value expandedTitleMarginBottomto adjust the alignment.

How can we programmatically install expandedTitleMarginBottomfor CollapsingToolbarLayout?

+5
source share
1 answer

For those who are looking for this: you can call setExpandedTitleMarginBottom(int px)

0
source

All Articles