Skip to content Skip to sidebar Skip to footer

How To Change My Listview To Linearlayout In Android?

I am building an Android application where I am fetching data from a local DB and displaying it in a custom ListView. Now the problem is I want to use LinearLayout in place of List

Solution 1:

Please, describe all scope of issue.

As I see from question and comments, you've got a ListView, which scrolls on some part of the screen, but you need to scroll all the screen. And you want to cast ListView to LinearLayout. Is that correct? If yes, it's not good idea, specially if your ListView contains a lot of items. It's better to add header to your ListView or use custom NonScrollableListView class. But as for me first option is preferable.

Waiting comments from you, it'll be a bit more clear for me after your response.

Post a Comment for "How To Change My Listview To Linearlayout In Android?"