Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
M4A Spinner Focus
var spinMeUp = FindViewById<Spinner>(Resource.Id.spinMeUp);
var items = new string[] {"Up", "Down", "Left", "Right", "B", "A", "Select", "Start" };
var adapter = new ArrayAdapter(this, Android.Resource.Layout.SimpleSpinnerItem, items);
spinMeUp.Adapter = adapter;
spinMeUp.Focusable = true;
spinMeUp.FocusableInTouchMode = true;
spinMeUp.RequestFocus (FocusSearchDirection.Up);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.