ListView in BottomSheet

前端 未结 8 2337
梦毁少年i
梦毁少年i 2020-12-13 07:39

I ran into a problem where I had a simple ListView in a BottomSheet and ListView had enough items to fill the screen and scroll even m

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 08:09

    Starting from version 22.1.0, you might want to try setNestedScrollingEnabled=true

    If this property is set to true the view will be permitted to initiate nested scrolling operations with a compatible parent view in the current hierarchy. If this view does not implement nested scrolling this will have no effect. Disabling nested scrolling while a nested scroll is in progress has the effect of stopping the nested scroll.

    Reference to Google API

提交回复
热议问题