xamarin / AndroidSupportComponents

Xamarin bindings for Android Support libraries - For AndroidX see https://github.com/xamarin/AndroidX
MIT License
146 stars 56 forks source link

NumberPicker shows 0 when empty string is added as an option to SetDisplayValues #162

Open KarthikRajaAKR opened 5 years ago

KarthikRajaAKR commented 5 years ago

Xamarin.Android Version:

9.1.7.0

Operating System & Version:

Android 7.1 - API 25

Support Libraries Version :

Xamarin.Android.Support.Design : 27.0.2.1

Describe your Issue:

I have used NnumberPicker to show picker window. I added display values with a string list, which consists of one empty string and two string values. I wanted that the empty string value should shown as empty option but it is showing as 0.

Steps to Reproduce (with link to sample solution if possible):

  1. Run the attached Sample_Android sample
  2. Click the button
  3. Note that 0 is in picker list

Please check the link that I reported in Xamarin.Android forum - https://github.com/xamarin/xamarin-android/issues/2874

Sample_Android.zip

KarthikRajaAKR commented 5 years ago

Any update on this?

Bustillox commented 3 years ago

Hi, is there any update on this issue???