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:
In my application the picker it's showed like in picture #2:
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
MobilePickDate: picker appearance
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: MobilePickDate: picker appearance
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 52
- Joined: Sat Sep 08, 2012 10:50 am
Re: MobilePickDate: picker appearance
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
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
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: MobilePickDate: picker appearance
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.
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
HyperActive Software | http://www.hyperactivesw.com