VitaliiBlagodir / cordova-plugin-datepicker

MIT License
318 stars 350 forks source link

Android theme..can't get it work #142

Open quedicesebas opened 8 years ago

quedicesebas commented 8 years ago

No mather wht I use, I got this:

screenshot_20151202-203648

That's how it looks if I don't use the andorid Theme options, or if I use this androidTheme: 'THEME_HOLO_LIGHT', or androidTheme: 'THEME_DEVICE_DEFAULT_LIGHT'

This is happening on Andorid 6, 5.1 and 5 (the ones I tested it)

derksacklowski commented 8 years ago

is there a solution for this problem?

quedicesebas commented 8 years ago

Anyone? please

flynnplatt commented 8 years ago

The value for androidTheme is the int index value, starting at 1, for the themes in the list. So: THEME_TRADITIONAL = 1 THEME_HOLO_DARK = 2 THEME_HOLO_LIGHT = 3 THEME_DEVICE_DEFAULT_DARK = 4 THEME_DEVICE_DEFAULT_LIGHT = 5

EDIT: just a little clarification

quedicesebas commented 8 years ago

I see. I found the enumeration in the Android js file. I think docs should be updated showing how to set the androidTheme option with the window.datePicker.ANDROID_THEMES enum

fknop commented 8 years ago

Hi, I'm having the same issue, I'm setting androidTheme to 5 tho.

Edit: I'm using Ionic and it looks like it's just an issue with Ionic View that does not support every cordova plugins.