How to disable STATE_COLLAPSED?
hi, i wonder how to disable state collapsed? i just need the parallax effect. thank you
+1
@miguelhincapie
@nugrahaga
on activity creation set behavior.setState(BottomSheetBehaviorLikeGoogleMaps.STATE_HIDDEN);
when you want to show then set it for behavior.setState(BottomSheetBehaviorLikeGoogleMaps.STATE_ANCHOR_POINT);
its just hide in first look, how i can disable one of state of them, disable not hidden @rakesh1988
Hi there, I busy with another project.
At the moment this library doesn't have the option you want. But it can be implemented easily: if you are listening for bottomSheet state changes, you can know when it reaches the collapsed state, immediately you can use behavior.setState(BottomSheetBehaviorLikeGoogleMaps.STATE_HIDDEN);.
I know that could be better if the lib has some options to set what states we want to use/disable but I have not had time to improve this lib, if you wanna do it I will appreciate it.