nice-spinner icon indicating copy to clipboard operation
nice-spinner copied to clipboard

get Id of the spinner from onItemSelected interface

Open Mani1124 opened this issue 6 years ago • 2 comments

@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
   
    Log.d("Spinner Id",adapterView.getId()+"");
}

log display Spinner Id -1

Mani1124 avatar Apr 08 '18 08:04 Mani1124

@Thoimanich The same issue. It'd very nice in order to know which spinner fired the onItemSelected event. Grouping on unique method to handle events of multiple spinners of the same view, it reduces boilerplate.

castrojr913 avatar Jun 28 '18 17:06 castrojr913

Is this still valid?

arcadefire avatar May 24 '19 08:05 arcadefire