AndroidSupportComponents icon indicating copy to clipboard operation
AndroidSupportComponents copied to clipboard

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

Open KarthikRajaAKR opened this issue 5 years ago • 2 comments

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 avatar Mar 28 '19 05:03 KarthikRajaAKR

Any update on this?

KarthikRajaAKR avatar Apr 04 '19 06:04 KarthikRajaAKR

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

Bustillox avatar Oct 06 '20 22:10 Bustillox