MobilePickDate: picker appearance

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

MobilePickDate: picker appearance

Post by giovanni_c » Wed Oct 24, 2018 2:29 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: MobilePickDate: picker appearance

Post by jacque » Wed Oct 24, 2018 4:55 pm

I'm guessing the picker is inheriting the color of the stack. Is the backgroundColor of your stack black?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: MobilePickDate: picker appearance

Post by giovanni_c » Thu Oct 25, 2018 10:40 am

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: MobilePickDate: picker appearance

Post by jacque » Thu Oct 25, 2018 6:47 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”