The ListView is not that difficult to use once you understand it. Also, what your trying to do is not that complicated. You might want to look into creating your own adapter and not using a "SimpleAdapter" in this case - this will provide you some flexibility in the UI and the ability to step through the creation of the adapter and determine your problems. This can easily be done via "code" and not "xml". It doesn't look like the ListView is the thing you are struggling with it looks like the "adapter" is the thing giving you the issue - so you might want to start there.
http://www.ezzylearning.com/tutorial.aspx?tid=1763429 - This shows you how to create a custom adapter. It uses XML so you'll have to adapt it for your needs. I might also suggest you get it working with XML first then port it to be "all native code". On Monday, June 18, 2012 11:07:16 AM UTC-4, Felipe Monteiro de Carvalho wrote: > > Hello, > > I am trying to create a ListView where each item has a Title (bigger text) > and a Description (smaller text under the other one), and I need it to be > 100% pure code, without any kind of XML, but I am having a lot of > difficulty as ListView seams to be an absurdely hard to use class. > > Ok, so, I read some tutorials and here is the code that I have so far: > http://pastebin.com/ifHEb7Mk > > But it fails to compile: http://pastebin.com/ZYhaNsaQ > > Any ideas where am I getting it wrong? I am 100% lost here at why it > refuses to accept my list =( > > thanks for any help, > > Felipe Monteiro de Carvalho > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

