Maybe easy question on Forms Picker thats driving me crazy.

BsaferBsafer USMember ✭✭
edited November 2017 in Xamarin.Forms

Same picker looks different in two different projects.
I have two projects with the same page.xaml. Same Android compile level 7.1, same Xamarin.Forms and Xamarin.Forms.Pages (, running Kitkat 4.4 API 19 emulator.
First is a larger project that been working on for long time, has may nugets but none about picker and no custom renderers. Second very basic project.
The first picker shows like this (all pickers in that app look like this (big popup with all selections).

Second smaller app - Looks like a spinner:

The picker is as simple as it gets and is same on both.

abc 1
def 2
ghi 3
jkh 4
lmn 5
def 6

Does anyone know how this can be? What else can I look at?


  • RasmusVindRasmusVind USMember ✭✭

    what are the android themes in the MainActivity in the android project?
    above the class declaration and below the namespace...

  • BsaferBsafer USMember ✭✭

    Based on your question I found what is difference. i don't know why it would make it different, but obviously different programs.
    in MainActivity.cs
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity

    second smaller project with spinner type picker.
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity

    I use the FormsAppCompatActivity in larger project so I can have the TabLayoutResource/ToolbarResource control in android.

    This makes picker different. What else does it affect? I wonder.

Sign In or Register to comment.