Setting maximum expanded height for bottomsheet dynamically
问题 How to set maximum expanded height in android support design bottom sheet? The question is an extension to the above question, i want to set the max expanded height of the sheet but dynamically according to the screen size. I have tried setting new layout params to the view implementing bottomsheet behaviour but it does nothing good. 回答1: Finally found it, This question troubled me a lot with no solution reported anywhere, and the answer lies in the behavior itself. The minimum offset is the