All Questions

1649
votes
37answers
503357 views

Lazy load of images in ListView

I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load the images so while the text displays, th...
121
votes
3answers
62028 views

How ListView's recycling mechanism works

So I have this problem I had before, and naturally I asked for help on here. Luksprog's answer was great because I had no idea about how ListView and GridView optimized itself with recycling Views. So...
184
votes
12answers
299994 views

Custom Adapter for List View

I want to create a custom adapter for my list view. Is there any article which can walk me through how to create one and also explain how it works?
326
votes
27answers
221980 views

How can I put a ListView into a ScrollView without it collapsing?

I've searched around for solutions to this problem, and the only answer I can find seems to be "don't put a ListView into a ScrollView". I have yet to see any real explanation for why though. The on...
130
votes
23answers
162864 views

ListView inside ScrollView is not scrolling on Android

I am having trouble with a scrolling ListView inside a ScrollView. I have an Activity which has some EditTexts in the top part and then a tab host with two tabs which have one ListView each. When the ...
315
votes
6answers
169211 views

Android ListView with different layouts for each row

I am trying to determine the best way to have a single ListView that contains different layouts for each row. I know how to create a custom row + custom array adapter to support a custom row for the e...
2190
votes
45answers
542898 views

Stop EditText from gaining focus at Activity startup

I have an Activity in Android, with two elements: EditText ListView When my Activity starts, the EditText immediately has input focus (flashing cursor). I don't want any control to have input foc...
356
votes
15answers
175116 views

Maintain/Save/Restore scroll position when returning to a ListView

I have a long ListView that the user can scroll around before returning to the previous screen. When the user opens this ListView again, I want the list to be scrolled to the same point that it was pr...
110
votes
12answers
100228 views

Focusable EditText inside ListView

I've spent about 6 hours on this so far, and been hitting nothing but roadblocks. The general premise is that there is some row in a ListView (whether it's generated by the adapter, or added as a hea...
378
votes
21answers
406213 views

How to refresh Android listview?

How to refresh an Android ListView after adding/deleting dynamic data?

Previous Next