Forums Register Login

Can not click on listView

+Pie Number of slices to send: Send
Hi,

I am facing a strange problem.I made a custom array Adapter which displays thing in list view.This works fine but when I click on list items. I am not able to click them.

The following is a bit of a code which I did for that.



Sorry I am not giving the full code,because it will become clumsy.

please help..
+Pie Number of slices to send: Send
hi try to use setOnItemClickListener event
for example---

dgame.setOnItemClickListener(new OnItemClickListener() {

public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {

---------------------
}
});
+Pie Number of slices to send: Send
Do you have focusable items in your rows of your ListView?
+Pie Number of slices to send: Send
 

Hardik Trivedi wrote: getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);


Since you have used Choice Mode, Use setOnItemSelectedListener

+Pie Number of slices to send: Send
hey guys I am not still clear.

can I post full code?
+Pie Number of slices to send: Send
yes, send the code it will be easy to solve your problem.
+Pie Number of slices to send: Send
following is the code..



ArrayAdapter works fine.
There is some other problem in setting the listener.
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2268 times.
Similar Threads
how to add multiple frames
How to get View from customised ListView?
what it the best from ListActivity andActivity
webview help......
Problems with listview and checkbox event
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 23:14:42.