Skip to content Skip to sidebar Skip to footer

Edittext Not Scrollable Inside The Listview?

I have ListView which is also scrollable and inside it there is MultiLine EditText which is not scrollable properly when I wanted to scroll the EdiText then Listview's scroll work

Solution 1:

You shouldn't put a ListView inside a ScrollView 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.

Solution 2:

remove the line android:maxHeight="75dp" and give android:layout_height="wrap_content" for the edittext. It will automaticcaly wrap its content and there is no necessity to scroll it, to view its content.

Post a Comment for "Edittext Not Scrollable Inside The Listview?"