How to get a non scrollable ListView?

android

Solution

Don't put a listview in a scrollview, it doesn't work. If you want a list of items that doesn't scroll, it's called a linearlayout.

Problem

I should want a non scrollable ListView, and show the entire ListView. It's because my entire screen is a ScrollView, and I dispatch widgets with a RelativeLayout, so I don't need the ListView scroll. I set my ui with code, not with xml. I've used `listView.setScrollContainer(false)`, but it's not work, I don't understand why. Thanks.

Original source

Related problems