I have class
public class User
{
UUID id;
String name;
}
I want to pass into ListView this: List and display only “name”.
But when item in list view will be selected I want to know “id” of the selected item.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
store the object into an arraylist say like
then add the objects to the arraylist using
Next in the onitemclick() get the item clicked and next display it using the arraylist item