SearchableSpinner
SearchableSpinner copied to clipboard
setSelection() and app:hintText related issue
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.
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); } } }
@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