Need help with SearchableSpinner?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

rajasharan
204 Stars 47 Forks MIT License 13 Commits 3 Opened issues

Description

An android dropdown widget which allows to easily filter huge list of options

Services available

!
?

Need anything else?

Contributors list

Android Searchable Spinner

An android dropdown widget which allows to easily filter huge list of options

Demo

Usage

Add the

SearchableSpinner
widget to your main layout file and provide an
app:list
string-array reference. See activity_main.xml

Setup OnSelectionChangeListener

public class MainActivity extends ActionBarActivity implements SearchableSpinner.OnSelectionChangeListener {

private SearchableSpinner mSpinner;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    mSpinner = (SearchableSpinner) findViewById(R.id.search);
    mSpinner.setOnSelectionChangeListener(this);
}

@Override
public void onSelectionChanged(String selection) {
    Toast.makeText(this, selection + " selected", Toast.LENGTH_SHORT).show();
}

}

License

The MIT License (MIT)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.