Unattractive UI

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ajperks
Posts: 103
Joined: Sat Sep 06, 2014 3:38 pm

Unattractive UI

Post by ajperks » Sat Nov 17, 2018 3:30 pm

I have just produced an APK to see how things fit and work on the phone screen and I was shocked at the appearance.
It looks normal in Windows, the grey scroll bars and field areas are dreadful in Android.
I have coloured the background and decided on white, but I can't see how the controls can be recoloured.
I do have colourful (temporary) image icons for buttons, and I am content with them, but I am a bit disappointed I can't customise the colours of everything from the Stack (4th tab) Inspector.
Any tips?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Unattractive UI

Post by richmond62 » Sat Nov 17, 2018 4:00 pm

I always roll my own; especially with buttons, to guarantee font consistency across different platforms.
-
sucks.png
sucks.png (4.41 KiB) Viewed 6155 times

ajperks
Posts: 103
Joined: Sat Sep 06, 2014 3:38 pm

Re: Unattractive UI

Post by ajperks » Sat Nov 17, 2018 5:04 pm

Buttons are easy, it is the awful black frames around fields and scroll bars. I wasn't able to change much, just the background.

The interface is far from finished, obviously, but not much scope as you see in this android screen shot.

The look I was hoping for.
Image

What I ended up with.
Image
Attachments
Screen 1.JPG

ajperks
Posts: 103
Joined: Sat Sep 06, 2014 3:38 pm

Re: Unattractive UI

Post by ajperks » Sat Nov 17, 2018 5:13 pm

What I ended up with
Image
Attachments
Screenshot_20181117-155103.jpg

ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

Re: Unattractive UI

Post by ClipArtGuy » Sat Nov 17, 2018 5:39 pm


ajperks
Posts: 103
Joined: Sat Sep 06, 2014 3:38 pm

Re: Unattractive UI

Post by ajperks » Sat Nov 17, 2018 10:14 pm

It is very neat scrolling and typically mobile. If I had a choice, I would love to use it.
Not wishing to appear ungrateful, I am not prepared to end up with 2 versions, desktop & mobile. My concern is changing the control borders from a broad black line to a fine line, better still, also in a pleasing colour.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Unattractive UI

Post by bogs » Sat Nov 17, 2018 11:23 pm

Mind you, I don't work with mobile stuff, so I don't know how much of a contribution this is.

Having said that, your first picture shows fields without scrollbars, inside a group that has a single scrollbar, which tells me the fields are not individually scrolling as your second picture shows. That is easy enough to accomplish, anyway, just remove the vScrollbar from the fields.
Selection_005.png
Vertical scroll on fields...
As to the borders around different objects, there are a number of ways you can reduce or even eliminate that. Take off the 3d setting would be one...
Selection_006.png
3d?
...which would reduce the depth illusion, or just remove the border altogether (one lower), or reduce the width to 1 px. instead of 2 that is the default. Aside from those suggestions, you could also change the border color until it blends right in. Just some thoughts.
Image

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: Unattractive UI

Post by SparkOut » Sat Nov 17, 2018 11:42 pm

LiveCode is cross platform which means you can code for all supported platforms and deploy to each, but it doesn't mean that there are no variations in the platform feature set. Mobile deployment is more different than the typical variation between desktop o/s environments.
To get native-looking controls on mobile, you will either have to do a lot of work to style the controls yourself, or use the platform-specific mobileControlCreate (et al) to produce native controls. This doesn't mean that you have to create separate versions, but you WILL have to make some coding structures that check for the platform and display one set for desktop or another mobile-specific set accordingly.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Unattractive UI

Post by bogs » Sun Nov 18, 2018 2:08 pm

SparkOut (and those above my comment) really are laying out the correct way for you. Sure it takes more time, but not a lot more.
Image

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

Re: Unattractive UI

Post by jacque » Sun Nov 18, 2018 6:00 pm

To expand just a bit more, you do need to use native mobile controls but you don't need to create separate apps. Check the environment in a preopencard handler and if it's mobile, hide the LC fields and create native fields with the same rects. Native controls are temporary and are created dynamically in script.

Your example image shows only a single scroller that scrolls an entire group. This is much easier. If the environment is mobile, set the vScrollbar of the group to false and create a mobile scroller instead. For the fields inside the group, I'd remove the scrollbars, it doesn't look like they are necessary.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”