Aditya Anand
- Forum posts: 2
Jul 19, 2013, 1:04:05 PM via Website
Jul 19, 2013 1:04:05 PM via Website
Okay, so I have an app with a few tutorials.(around 20)
(Each tut is just some text filled in an activity screen)
I want to create a button on the main menu, that points to a listview activity containing the names of all the tutorial's activities - alphabetically.
Not perfect navigation, I know. But I think it's the best quick and easy solution till I learn more.
Here's the problem:
I just want to say find out which listview item was clicked, and put a normal onclick() which opens up the corresponding tutorial activity.
How exactly do I set up the listview ?
I know how the normal onclick works... but how to do it with a listview item ?
(Each tut is just some text filled in an activity screen)
I want to create a button on the main menu, that points to a listview activity containing the names of all the tutorial's activities - alphabetically.
Not perfect navigation, I know. But I think it's the best quick and easy solution till I learn more.
Here's the problem:
I just want to say find out which listview item was clicked, and put a normal onclick() which opens up the corresponding tutorial activity.
How exactly do I set up the listview ?
I know how the normal onclick works... but how to do it with a listview item ?
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.