SearchableSpinner icon indicating copy to clipboard operation
SearchableSpinner copied to clipboard

setSelction(int Position) function is not working

Open Avinash4201 opened this issue 7 years ago • 2 comments

setSelection(int position) is not working in your spinner but same is working in normal spinner. please resolve it asap.

Avinash4201 avatar Feb 06 '18 09:02 Avinash4201

Refer this :+1:

https://github.com/AnithJo/android_searchable_spinner/

AnithJo avatar Mar 06 '18 10:03 AnithJo

@Avinash4201 I've added the following to the SearchableSpinner class, and it seems to be working so far:

@override public void setSelection(int position) { if (position != NO_ITEM_SELECTED) { if (!_isDirty) { _isDirty = true; setAdapter(_arrayAdapter); super.setSelection(position); } } }

dhavalshah60 avatar Aug 29 '18 07:08 dhavalshah60