I can not understand how to onClick on my ListAdapter here my code is:
< Code> private zero fillData () {cursor constants = db.fetchAllGames (); ListAdapter Adapter = New SimpleCursorAdapter (this, R.layout.row, constant cursor, new string [] {"title", "console"}, new int [] {R.id.title, R.id.console}); SetListAdapter (adapter); } I want to be able to click on an item from the database, then go into that view, which contains only information for that item. My class currently extends the list . I have tried the OnItemClickListener, but I do not know what else to use to do this work.
If your current activity extension ListActivity then You will need to override to get the clicked view from ListView .
Comments
Post a Comment