I want to have a Spinner in my Toolbar. However, the Spinner doesn't have 
any dropdown arrow, as the default Android Spinner does.

How do I make it have an arrow?

This is my code:

 <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="104dp"
        android:gravity="top"
        app:titleTextColor="@color/White"
        android:layout_gravity="right"
        android:layoutDirection="rtl"
        app:layout_scrollFlags="scroll|enterAlways"
        app:layout_collapseMode="pin"
        app:contentScrim="?attr/colorPrimary"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
        app:titleMarginTop="15dp">
      <Spinner
         android:id="@+id/Location_Spinner"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginLeft="10dp"/>

Fragment where I show the spinner:

 var spinner = Activity.FindViewById<Spinner>(Resource.Id.Location_Spinner);
 var adapter = ArrayAdapter.CreateFromResource(Activity, 
Resource.Array.locations_array, Android.Resource.Layout.SimpleSpinnerItem);
 
adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
 spinner.Adapter = adapter;

Any ideas why there isn't an arrow?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c39f7378-b30e-41db-8b18-30018594f224%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to