![]() Internal class myItemSelectedListener :, AdapterView.IOnItemSelectedListener (requestCode, permissions, grantResults) īase.OnRequestPermissionsResult(requestCode, permissions, grantResults) Public override void OnRequestPermissionsResult(int requestCode, string permissions, .Permission grantResults) Private void spinner_ItemSelected(object sender, AdapterView.ItemSelectedEventArgs e) Spinner.OnItemSelectedListener = new myItemSelectedListener() Var adapter = new MyAdapter(this, planetNames) Spinner.ItemSelected += new EventHandler(spinner_ItemSelected) Spinner.SetPopupBackgroundDrawable(Resources.GetDrawable(_blue_grey_800)) Spinner spinner = FindViewById(Resource.Id.spinner) Set our view from the "main" layout resource Protected override void OnCreate(Bundle savedInstanceState) ![]() ![]() Public class MainActivity : AppCompatActivity Text color of the dropdown portion of the spinner: you need to create an custom adapter to achieve it. You can change the background color and text color of the dropdown portion of the spinner.Ĭhange the background color: you can use spinner.SetPopupBackgroundDrawable(Resources.GetDrawable(_blue_grey_800))
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |