Notching things up

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Notching things up

Post by richmond62 » Wed Jan 30, 2019 12:51 pm

Having seen the recent discussion on the Use-List about notches, and wondering what a NOTCH
was, I did some Ecosia-ing [ https://www.ecosia.org/ ] and found out that it is a way of extending
a mobile phone's screen size while keeping the microphone and/or camera on the front of the
thing.

Whether having 2 "horns" to one's screen is a vast improvement or not is a funny question; from
a personal point of view I think it is pants, as in

"Every time I bend over my pants crawl up the notch in my iPhone." 8)

But, oddly enough, the mobile phone industry and fashion and so on are not going to listen
to my opinion so developers are going to have to live with notches for now at least.

I also went here: https://dribbble.com/shots/4643636-Andr ... tch-Mockup

which prove quite useful, although I mucked around with the original version for my own use:
-
notchPhone.jpg
-
and a thought occurred to me . . . "What is all the Hoo-Har about?"

Surely ALL that the Notch really means is that the screen space (think resolution) has
increased by the depth of the notch, but has the notch sticking into that extra screen are.

AND, forbye, what would one use those 2, frankly silly, extra bits of screen space for?

Nothing, surely.

However, one will still have to take into account those extra bits
when worrying about scaling and rotating.

Extracting the screen BAR the notch from that image gives one 317 x 631 (or, probably 320 x 630).

Doing the same thing WITH the notch gives one 317 x 651 (320 x 650).

Now, while I realise that is just "Richmond fooling around with his computer" it does
give some sort of idea about the difference.
Last edited by richmond62 on Wed Jan 30, 2019 6:31 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Notching things up

Post by richmond62 » Wed Jan 30, 2019 1:53 pm

vertical.png
-
horizontal.png
Attachments
Notch.livecode.zip
Here's the stack
(4.57 KiB) Downloaded 142 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7392
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Notching things up

Post by jacque » Wed Jan 30, 2019 5:44 pm

I'm not sure yet how iPhones handle this, but Android specs say that the status bar must extend to the full height of the notch. That means every phone will have a different sized status bar. By default your stack will be placed under the status bar, and the area to the sides of the notch will be black.

I don't know whether LC adjusts the value of the screenrect (or possibly the effective screenrect) to account for the change but I'd assume it has to. Of course, assumptions aren't reliable so I'm still waiting for the definitive word, which I may have to figure out myself via the Android emulator.

It would be nice to allow the area around the notch to show some color at least, and I need to see if setting a card backcolor will do that. To allow Android to draw into this area also requires a change in the manifest and I also don't know if LC supports that either.

Lots to figure out. The easiest way forward is to ignore the whole issue and just let Android reposition the display.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Notching things up

Post by richmond62 » Wed Jan 30, 2019 6:50 pm

This problem is probably explained is 3 pictures:
-
ParisHilton2.jpg
ParisHilton2.jpg (40.5 KiB) Viewed 2516 times
-
Superficial, rich, bubble-brain.
-
ParisHilton1.jpg
-
Needlessly expensive Hotel in Paris (France, not Texas).
-
ParisHilton3.jpg
ParisHilton3.jpg (14.44 KiB) Viewed 2516 times
-
Cheap, clean Bed-and-breakfast in Pomorie, Bulgaria

I'm always going to go for the third one. But, unfortunately, most people won't.

Post Reply