Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

ListView issues

OP coolbud012

22nd January 2014, 07:59 AM   |  #1  
coolbud012's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 24
 
208 posts
Join Date:Joined: Sep 2012
More
Hey guys I need help.

I know how to create a listview but where I'm struck and confused is,

1.) Like when we click on 1st item of the listview another activity with another list view comes up and when we click on any of the item from that list view then a resource xml file with a table comes up.

2.) When I click on the second item of the LV an image is displayed.

3.) When I click on the 3rd item another list view comes up and then if click any of the item an image comes up.

I just tried to explain my problem. There are around 10-12 items in each list. So I am not getting what exactly to do.

I tried to make simple listview but now not getting how to modify it to match my needs...

Thanks
22nd January 2014, 07:23 PM   |  #2  
Member
Thanks Meter: 21
 
88 posts
Join Date:Joined: Sep 2013
Just set an onItemClickedListener and watch, which item is clicked. Then start the different operations.
22nd January 2014, 08:53 PM   |  #3  
EatHeat's Avatar
Recognized Developer
Flag Calcutta
Thanks Meter: 1,433
 
914 posts
Join Date:Joined: Jan 2013
More
If the ListView does not change dynamically, it would be better to use a PreferenceActivity or a PreferenceFragment. It would be far easier to do what you wanted with this.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes