Closed davidbilik closed 5 years ago
Not with the current behavior. You could try temporarily switching to a different state, e.g.
state = STATE_EXPANDED
peekHeight = newPeekHeight
state = STATE_COLLAPSED
although I haven't tested if this would work.
It works 💪 thanks :)
Hello, I am switching content in BottomSheet with attached AnchorBottomSheetBehavior and each content has different peek height. It works fine if I call something like
and the behavior is not in COLLAPSED state. However if it is COLLAPSED, the peek height changes abruptly without animation and without onSlide callback so I cannot react to this change. Is there any way how to perform animation of the peekHeight (without manual animating this property) and to make callback to fire? Thanks