HowTo make ListView Larger so more than one item visible at a time ?

by Mark Murphy » Fri, 15 Jan 2010 07:22:00 GMT

Sponsored Links

Do not wrap a ListView in a ScrollView. ScrollView is for use with
widgets that do not know how to scroll; ListView already can scroll its
own contents.

Mark Murphy (a Commons Guy)  | 

_The Busy Coder's Guide to Android Development_ Version 2.8

Other Threads

1. Trouble with loud speaker off on Galaxy S

Has anyone else experienced this on the Samsung Galaxy S?

When I use the folowing to turn the Loudspeaker on it works fine:


But when I try the opposite to turn it off:


The Loudspeaker stays on and audio is played via that instead of the
ear piece on the device.

The above works on the Nexus One and HTC Hero, just got a Samsung
Galaxy the other day and it doesn't work, has anyone else encountered
the issue and perhaps know why it is happening and if there is a work


2. Lazy load images into listview

I have an activity in my application that shows a listview of items
with icons next two each item. I would like to lazy load icons for
each item from the Internet using in memory caching and SD caching
(very common Android use case).

I have been using this code from the Google Android developers blog:

And discovered that it is possible for this code to generate > 100

Does anyone have a modified version of this they would be willing to
share using a threadpool or some other mechanism to limit the number
of background threads?


3. SMS from laptop

4. [WTA] File PC36IMG

5. Hai Guys

6. Animation in appWidget

7. [OOT] Ketahanan batt di Moviestar v6.4.1