Android Forums

Go Back   Android Forums > Google Android > Android Development

Click Here To Register!
Reply
 
Thread Tools Search this Thread Display Modes
Old 08-15-2008, 01:08 AM   #1
Junior Member
 
Join Date: Aug 2008
Posts: 1
Friends: 0
View spinifu's Profile   View spinifu's Photo Album   View spinifu's Blog   View Social Groups
Hi there:

First, is it necessary to create a new class that extends BaseAdapter if i want my ListView to contain icons? I've read that SimpleAdapter is not able to handle them.

And then, i've been trying to extend this BaseAdapter with some sample code i found at http://mylifewithandroid.blogspot.co...-adapters.html. My problem is that, as opposed to that web's code, i need to update my ListView dinamically. The approach i was taking was to add or remove objects from my list object, and then reset the listAdapter with setListAdapter(my_list); That code is located inside my buttonListener. And i always get this error:

"List views can't have UNSPECIFIED size", which is the same error you get if you dont set the list adapter inside the "onCreate" method.

Hope i made myself clear, and thanks in advance for any possible help.
spinifu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Unlocked G1 Phones

All times are GMT. The time now is 11:21 PM.



SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.
Copyright (c) 2008 TalkAndroid.com. All rights reserved.