TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Qing Ryder
NA
202
17.4k
Xamarin Development: Trying to Create a Spinner
Apr 6 2018 9:13 AM
Hello,
can Someone help me out on this?
an trying to create a spinner on my recent project in Xamarin using the example on https://docs.microsoft.com/en-us/xamarin/android/user-interface/controls/spinner and i get a red curly line error.
i dont know what i have done wrong. please someone help me out.
find screenshot attached
here is the code
protected
override
void
OnCreate(Bundle bundle)
{
base
.OnCreate(bundle);
SetContentView(Resource.Layout.Homepage);
Spinner spinner = FindViewById<Spinner>(Resource.Id.spinner1);
spinner.ItemSelected +=
new
EventHandler<AdapterView.ItemSelectedEventArgs>(spinner_ItemSelected);
var adapter = ArrayAdapter.CreateFromResource(
this
, Resource.Array.Initial_array, Android.Resource.Layout.SimpleSpinnerItem);
adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
spinner.Adapter = adapter;
Reply
Answers (
5
)
how to add images after paragraph using interop,word?
[C#] How to get HH:mm from two datetimes?