How to set onClickListener() for view of Spinner?

What they might mean is to Override the setOnItemClickListener and then call that in the constructor. So in your mySpinner class you would need to add: notice it is called on ITEM click listener, that might also be part of your issue Override public void setOnItemClickListener( android.widget.AdapterView. OnItemClickListener l) { super.

SetOnItemClickListener(l); //... do action here that you want to happen when item in spinner is clicked } Dunno if that will fix your issue but I hope it helps. Good Luck also it might be worthwhile to possibly use public void onItemSelected(AdapterView parent, View view, int pos, long id) { //do stuff }.

What they might mean is to Override the setOnItemClickListener and then call that in the constructor. So in your mySpinner class you would need to add: notice it is called on ITEM click listener, that might also be part of your issue @Override public void setOnItemClickListener( android.widget.AdapterView. OnItemClickListener l) { super.

SetOnItemClickListener(l); //... do action here that you want to happen when item in spinner is clicked } Dunno if that will fix your issue but I hope it helps. Good Luck. Also it might be worthwhile to possibly use public void onItemSelected(AdapterView parent, View view, int pos, long id) { //do stuff }.

Not sure why you are needing to extend Spinnner or why you are assigning a click listener on the TextView. You should be assigning a selection listener on the spinner. As per the Spiner example consider: 1) Having a layout with a Spinner control 2) Having a 'Spinner' member of your activity 3) Inflate the layout via setContentView and then assign the spinner member via findViewById 4) Set the adapter for the spinner and call setOnItemSelectedListener on your spinner to assign a selection listener.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions