You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
Yes, this feature request is related to issue #2887
Describe the solution you'd like
For com.google.android.material.appbar.MaterialToolbar and androidx.appcompat.widget.Toolbar, a compress effect can be added to the toolbar title in XML by using app:layout_scrollEffect="compress".
However, trying to programmatically set that scroll effect (e.g. for certain API levels only) by using setScrollEffect (see documentation) isn't possible. Reason: The scroll effect flag SCROLL_EFFECT_COMPRESS declared in AppBarLayout class is not publicly accessible and can therefore not be set.
Currently, a globally set compress effect can just be unset if null is passed to setScrollEffect but not the other way round.
Therefore, it would be great to have a possiblity to set the scroll effect "compress" programmatically via setScrollEffect by using the SCROLL_EFFECT_COMPRESS flag.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Yes, this feature request is related to issue #2887
Describe the solution you'd like
com.google.android.material.appbar.MaterialToolbar
andandroidx.appcompat.widget.Toolbar
, a compress effect can be added to the toolbar title in XML by usingapp:layout_scrollEffect="compress"
.setScrollEffect
(see documentation) isn't possible. Reason: The scroll effect flagSCROLL_EFFECT_COMPRESS
declared inAppBarLayout
class is not publicly accessible and can therefore not be set.setScrollEffect
but not the other way round.setScrollEffect
by using theSCROLL_EFFECT_COMPRESS
flag.The text was updated successfully, but these errors were encountered: