Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Jul 18, 2017
Embed
What would you like to do?
Spinner spinner = (Spinner) findViewById(R.id.statistics_spinner);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.statistics_items, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment