Hi friends I am using custom list view .I have trying to get user clicked row value can anybody tell how to get the value?
Thanks
Hi friends I am using custom list view .I have trying to get user clicked row value can anybody tell how to get the value?
Thanks
You may want to implement a new method in your class, specifically onItemClick
:
[...]
private ListView lv;
[...]
public void onItemClick(AdapterView<?> a, View v, int position, long id) {
String itemValue = lv.getItemAtPosition(position);
[... do something ...]
}
Then you can do whatever you want with with itemValue
.
Hope this helps.