I want to know how to get the listview item value like this
item1
item2
I want to get first item value item1, like this code
if (listview part of value == item1)
{
// do something
}
Can anyone help me to solve this problem?
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.
Your question is very sparse on details so I’ll take my best guess at interpreting it (consider expanding your question).
You want to get an item from the listadapter at a given position, yes? If so…
See also:
http://developer.android.com/reference/android/widget/ListView.html#getAdapter()
http://developer.android.com/reference/android/widget/ListAdapter.html
http://developer.android.com/reference/android/widget/Adapter.html