SearchableSpinner icon indicating copy to clipboard operation
SearchableSpinner copied to clipboard

setSelection() and app:hintText related issue

Open Avinash4201 opened this issue 7 years ago • 2 comments

When I am writing app:hintText = "Please Select" then setSelection(int Position) is not working and If I remove app:hintText then setSelection(int position) is working. Please resolve it asap.

Avinash4201 avatar Feb 13 '18 09:02 Avinash4201

I've added the following to the SearchSpinner 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); } } }

ZeeOne avatar Jun 18 '18 09:06 ZeeOne

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

how please explain me in details

Avinash4201 avatar Nov 22 '18 05:11 Avinash4201