Page 1 of 1

MobilePickDate: picker appearance

Posted: Wed Oct 24, 2018 2:29 pm
by giovanni_c
Hi all guys,
want to share with you a question hoping this can help me to understand what's going on with the date picker (but also other pickers, answer dialog etc.) on Android OSes.
Development context: app developed with latest LC 9.0.1 on MacOS environment
Execution context: app running on an Android Tablet (Asus 3S 10) running Android 7

The question is related to picker appearance.
In every application the picker is used it's showed like in picture #1:
picture_1.jpg

In my application the picker it's showed like in picture #2:
picture_2.jpg

Can someone explain me why doesn't use the system picker's appearance and how I can fix it?
Other than this in my app the selected date is not (and doesn't remain) highlighted (as you can see from the pictures above).
Thank you to all that will find the time to answer to my questions!

Giovanni

Re: MobilePickDate: picker appearance

Posted: Wed Oct 24, 2018 4:55 pm
by jacque
I'm guessing the picker is inheriting the color of the stack. Is the backgroundColor of your stack black?

Re: MobilePickDate: picker appearance

Posted: Thu Oct 25, 2018 10:40 am
by giovanni_c
Hi Jacque, thank you for your reply.
Stack's background color is set to white.
Card's background color is not set.

Anyway I don't think that the picker appearance can depend on the stack background color as it's a system native object. And also the "Cancel" and "OK" buttons appearance is not proper.
As said in my previous message also the answer dialogs appear as if your device is running a very old Android version... I tried to increase the minimum version API level but this doesn't change nothing.

Thank you again

Re: MobilePickDate: picker appearance

Posted: Thu Oct 25, 2018 6:47 pm
by jacque
The reason I thought it was a custom control is because it doesn't look like any Android date picker I've ever seen. The layout is different and if the buttons are using LC's default motif appearance then that would also indicate it isn't a native control. I'm not sure how that could happen though. What phone are you running on? Could the manufacturer have substituted their own calendar?

Edit: Never mind, I just tried it on an older version of Android and I get the same thing. Android 6 provides a black calendar with the layout you're seeing. Seems to be a system thing.