Xamarin.Forms populate native android spinner

DevJDevJ CHMember ✭✭
edited September 2016 in Xamarin.Forms

I implemented a custom renderer to display a native control in xamarin.forms. Now I'm struggling with populating data into the spinner (android).

My page looks like this (cs):
public partial class DropDownPage : ContentPage { public DropDownPage() { Content = new DropDownView { VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Center }; InitializeComponent(); } }
I would like to use the ArrayAdapter.

public ArrayAdapter(Context context, int textViewResourceId, IList<T> objects);

I assume the textViewResourceId should be my DropDownView in the page right? But how do I get this as int?

Sign In or Register to comment.