Android listview not scrolling

前端 未结 7 1392
离开以前
离开以前 2020-12-21 15:21

i have a layout whose starting tag(parent tag is ) is



        
7条回答
  •  一整个雨季
    2020-12-21 16:18

    Simply, remove the ScrollView from your layout. And, make the LinearLayout as parent. And, try to run your app. It will scroll the list.

    Because the ListView class implements its own scrolling and it just doesn't receive gestures because they all are handled by the parent ScrollView I strongly recommend you to simplify your layout somehow. For example you can add views you want to be scrolled to the ListView as headers or footers.

    Have a look at this

    Update

    Take one parent layout with two child. And, in one layout it should contain ScrollView with your contents. And, on another layout contain your ListView Try like this He has done like that one.

提交回复
热议问题