How can i have a ListView inside a NestedScrollView

后端 未结 4 1645
盖世英雄少女心
盖世英雄少女心 2021-01-05 07:52

I have created an app with a page that need to load content dynamically from web service. I want to have listview that can scroll together with a linear layout inside Nested

4条回答
  •  抹茶落季
    2021-01-05 08:02

    on Lollipop onwards you can use

    yourtListView.setNestedScrollingEnabled(true);
    

    This enable or disable nested scrolling for this view if you need backwards compatibility with older version of the OS you'll have to use the RecyclerView.

提交回复
热议问题