Questions tagged [onitemclick]

OnItemClick is a callback method invoked when an item in an Android AdapterView has been clicked.

274 questions
-2
votes
1 answer

OnItemClickListener does not work with BaseAdapter

I'm trying to add a clickable list to my first android app with Custom Adapter all is fine but when i use mItemList.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() { @Override public void…
Ahmed Atef
  • 55
  • 1
  • 8
-3
votes
1 answer

Why can OnItemClickListener not work with a Spinner?

I want to know if there is a specific reason why you cannot use OnItemClickListener with a spinner in Android? Looking through older posts ( setOnItemClickListener Not Works with Spinner and I have an error: setOnItemClickListener cannot be used…
Code Vader
  • 739
  • 3
  • 9
  • 26
-4
votes
2 answers

Use selected item from Spinner in conditional Operation (if statement)

Please, I have two spinners. I am trying to get string values from spinnerA and then, to use these values as condition for display other values from spinnerB. I get these values from the database (mySql). A part of the code is below. The syntax is…
Mary
  • 41
  • 11
-4
votes
1 answer

start of next activity upon clicking buttons in android gridview

I am creating an android app where i am required to do the following: start of next activity upon clicking buttons in android gridview.my question is as follows: can we create buttons in android grid view XML?? how can we link these buttons with…
manish
  • 1
  • 2
1 2 3
18
19