You can make them whatever size you want. A ListView just displays whatever view the adapter passes to it. So, for the API example that you linked to the Adapter is set like this:
setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mStrings)); This will use the built in android.R.layout.simple_list_item_1 layout file (built into android). Instead you could create a new layout file (my_new_layout.xml) with a TextView named "text1" and pass this new layout into the adapter: setListAdapter(new ArrayAdapter<String>(this, R.layout.my_new_layout, mStrings)); -- Zach Hobbs HelloAndroid.com Android OS news, tutorials, downloads On Tuesday 01 April 2008 17:23:35 Zach wrote: > I'm sorry but I thought more about this and it simply doesn't make any > sense. This ListView currently only shows 6 rows at once. My iPhone, > which is 320 x 480, shows 9 rows in the Notes app and 8 in Safari's > bookmarks view. The rows are simply WAY too big. > > Is there really no way to make them smaller? > > On Apr 1, 2:20 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > > The rows currently have an appropriate size for devices with a touch > > screen. The size of the UI on your computer screen is much bigger than > > its size on an actual device. > > > > On Tue, Apr 1, 2008 at 11:17 AM, Zach <[EMAIL PROTECTED]> wrote: > > > Okay, but is there a way to make the rows the size they were in m3? > > > The rows currently are taking too much space. > > > > > > On Apr 1, 1:49 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > > > Hi Zach, > > > > > > > This screenshot is from m3 and has not been updated for m5. > > > > Thanks for pointing it out, it will be updated. > > > > > > > -Megha > > > > > > > On Tue, Apr 1, 2008 at 8:58 AM, Zach <[EMAIL PROTECTED]> wrote: > > > > > > > > Hey, > > > > > > > > I am confused as to why in the ListView screenshot shown below, > > > the > > rows are quite small: > > > > > > > >http://code.google.com/android/reference/view-gallery.html > > > > > > > > Yet when I run the sample project it comes from, List1.java, the > > > rows > > are about twice as high: > > > > > > > > > > >http://code.google.com/android/samples/ApiDemos/src/com/google/androi. > > >.. > > > > > > > > How can I modify it to make it look like the screenshot? > > > > > > > > Thanks! > > > > -- > > Romain Guywww.curious-creature.org > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

