2
我很困惑,我可以從微調框中選擇一個項目並將其顯示在彈出消息中。我有這個,如何將選定的微調項目獲取到字符串?
btnSubmitRequest.Click += (sender, e) =>
{
spinnerJobTypes.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs>(spinnerJobTypes_ItemSelected);
}
private void spinnerJobTypes_ItemSelected(object sender, AdapterView.ItemSelectedEventArgs e)
{
Spinner spinner = (Spinner)sender;
string toast = string.Format("{0}", spinner.GetItemAtPosition(e.Position));
Toast.MakeText(this, toast, ToastLength.Long).Show();
}
我怎樣才能從spinnerJobTypes_ItemSelected爲字符串的響應,這樣我可以提交到數據庫?
任何幫助是極大的讚賞
非常感謝。完美的作品:) – KMR
歡迎您! ;) –