I created a custom ListView with ImageView and TextViews , and everything worked fine until I tried to implement onItemClick , which so far only shows a toast.
The problem arises when I view my ListView : it will not receive any clicks.
It's funny that when I use the keyboard to move from an element to the element that it works, and when I'm in, type Toast .
This is the code I used for the onItemClick listener.
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { RestaurantReservationBean clickedItem = resultArray.get(position); Toast.makeText(this, clickedItem.getName()+", "+clickedItem.getCost(), 1000).show(); }
source share