how to get bottomSheet to open from the top?

后端 未结 2 1571
长发绾君心
长发绾君心 2021-02-15 18:38

I\'m opening a NestedScrollView in my app and so far it opens from the bottom of the screen. How do I make it open from the top?

I tried removing the following line:

2条回答
  •  盖世英雄少女心
    2021-02-15 19:08

    I guess it is not possible using google's design library, since by design this is meant to appear from the bottom.

    https://material.io/guidelines/components/bottom-sheets.html
    "Bottom sheets slide up from the bottom of the screen to reveal more content."

    Trying using this modified version of flipboard's bottomsheet

    https://github.com/jernkuan/bottomsheet

    I have added an attr to control whether the bottomsheet should appear from the top.

提交回复
热议问题