SearchableSpinner
SearchableSpinner copied to clipboard
setSelection(position) inside Activity
I am trying to implement setSelection(position) inside Activity but every time it crashes the app. Please suggest and update if any one resolved this issue
@abhishekraics001 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); } } }