CustomBottomSheetBehavior icon indicating copy to clipboard operation
CustomBottomSheetBehavior copied to clipboard

How to disable STATE_COLLAPSED?

Open nugrahaga opened this issue 9 years ago • 5 comments

hi, i wonder how to disable state collapsed? i just need the parallax effect. thank you

nugrahaga avatar Feb 23 '17 06:02 nugrahaga

+1

abdymm avatar Mar 07 '17 00:03 abdymm

@miguelhincapie

abdymm avatar Mar 07 '17 00:03 abdymm

@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);

rakesh1988 avatar Mar 18 '17 02:03 rakesh1988

its just hide in first look, how i can disable one of state of them, disable not hidden @rakesh1988

abdymm avatar Mar 18 '17 03:03 abdymm

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.

miguelhincapie avatar Mar 22 '17 19:03 miguelhincapie