Android ListView StringArray -
my android project contains listview filled xml-file. xml file contains node:
<item id=xxxx>value</item>
i'm using arraylist stores node value , binded in listview. on itemclick new activity called need id.
now don't know how achive this:
get values xml-> bind value listview-> onitemclick id , give parameter other activity (currently giving parameter other activity working arraylist)
1) create object holds id , value
2) crate custom adapter based on arraydapter
3) populate adapter objects collection
4) implement on item click , able object
5) id object , fire it
if seek google "android listview custom adapter" find many examples
android
No comments:
Post a Comment