Can anyone tell me how to make text items selectable ?
Here is my current adapter code:
final ParseQueryAdapter adapter = new ParseQueryAdapter(this, "Prem");
adapter.setTextKey("des");
ListView listView = (ListView) findViewById(R.id.newslistview);
listView.setAdapter(adapter);
What is missing ?
The ListView
s default choice mode should be set to CHOICE_MODE_SINGLE
which means it should allow you to select one item. I suppose this could be affecte by ParseQueryAdapter
s pagination. Try to disable it with adapter.setPaginationEnabled(false)
. Also call setChoiceMode()
manually on your ListView
to specify it.