Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old November 8th, 2011, 08:52 AM   #1 (permalink)
Junior Member
 
Join Date: Oct 2011
Posts: 21
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tableview or Listview

Hi all,

I'm building an app which gets a ksoap reponse back from a web service that I then need to display in a table of some kind which can then have selectable rows.

Each row would need to be broken out into a number of columns. Should this be achieved using a tableview or a listview ideally?

the phantom is offline  
Reply With Quote
Sponsors
Old November 9th, 2011, 10:24 AM   #2 (permalink)
Senior Member
 
TheCompBoy's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 594
 
Device(s): Samsung Galaxy S w DarkyROM v10.1
Thanks: 4
Thanked 56 Times in 51 Posts
Send a message via Skype™ to TheCompBoy
Default

You can use which view that you feel most comfortable with.. Some developers like Listview some do like Tableview.. Myself i like to use RelativeLayout for my apps.. Its all about how you like to work.
__________________
Please check out my blogg: www.thecompboy.blogspot.com
If you want to support me please subscribe / follow the blogg!

OCalc - First App: https://market.android.com/details?id=mendel.calculator.simple&feature=search _result
TheCompBoy is offline  
Reply With Quote
Old November 9th, 2011, 10:48 AM   #3 (permalink)
Junior Member
 
Join Date: Oct 2011
Posts: 21
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks CompBoy. I've created a TableView which is built by looping through my ksoap web service response and programatically creates the rows in Java. I can add an event listener so that if I click on a row it changes the background color, however is there any way to assign the individual cell values from the selected row to variables when it is clicked?

As essentially I need to select a row and then be able to click a button so that the values from the selected row are passed over to a new intent.

Hope that makes sense!?
the phantom is offline  
Reply With Quote
Old November 9th, 2011, 12:36 PM   #4 (permalink)
Senior Member
 
TheCompBoy's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 594
 
Device(s): Samsung Galaxy S w DarkyROM v10.1
Thanks: 4
Thanked 56 Times in 51 Posts
Send a message via Skype™ to TheCompBoy
Default

I'm not sure i can help you with this. Sorry!
TheCompBoy is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:12 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo