Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 08-14-2008, 06:08 PM   #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
 

Thread Tools
Display Modes




Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.