Click here to Skip to main content
16,015,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys,
I'm new to Android development and java so I'm having some issues understanding how this works so could do with some advice.

Im following this tutorial: http://windrealm.org/tutorials/android/android-listview.php[^]

What I want to have is a listview which displays 2 textViews side by side per row, one for a Question and another for a value, both would be loaded from a database table and added to the listview. The tutorial I found above works but it only displays one string per row where as I want multiple values displayed and assigned such as the ID, Question and Answer.

Can I get some advise on what I'm trying to do? I don't know the keywords I am trying to search for to find the solution myself.
Posted
Comments
ridoy 1-Mar-13 11:50am    
This is not as hard as you think,as you are new so i suggest you to learn design pattern of android first.The design you have mentioned above would be a combination of relative and linear layout.For displaying 2 textViews side by side you need to use relative layout inside the layout design of your listview row.Happy coding..:)
Phoenix234 1-Mar-13 12:00pm    
Oh thats not the issue :P im fine with layouts, its more using listviews from database data anf filling the list rows that I struggle with.

1 solution

 
Share this answer
 
Comments
Phoenix234 1-Mar-13 16:07pm    
thank you very much, I was just missing the key words that got me what I was after. I was searching for generic words that brought up results from different platforms :/
ridoy 2-Mar-13 1:07am    
Glad to help you..:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900