Any way to stop screen scolling up with soft keyboard?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Any way to stop screen scolling up with soft keyboard?

Post by paulsr » Sat Apr 12, 2014 9:35 am

Greetings:

In iOS, when the soft keyboard appears at the bottom part of the screen, everything else stays in place.

With Android (on AVD or physical device) whatever is displayed, scrolls up with keyboard.

Is there any way to prevent this???

I've tried various work-arounds, like moving fields on keyboardActivated, but this seems to interfere with fullscreenMode and I get very bizarre results.

I'm hoping someone has figured a solution already...

--paul

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Any way to stop screen scolling up with soft keyboard?

Post by Simon » Sat Apr 12, 2014 9:42 am

Hi Paul,
I think turning off acceleratedRendering will do it.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Any way to stop screen scolling up with soft keyboard?

Post by paulsr » Sat Apr 12, 2014 12:06 pm

You're absolutely right Simon. Thank you so much for that... I've wasted days trying to find a solution. Wish I'd asked sooner.

But, you know, whenever I see an answer I like that, I think "How the hell did he know?"

I mean, where's the connection between rendering and soft keyboards?

I think I could have hacked away for a hundred years and not come up with that solution.

Oh well. Weekend ramblings. Now it's beer o'clock and I'm going to celebrate your solution :-)

--paul

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

Re: Any way to stop screen scolling up with soft keyboard?

Post by jacque » Sat Apr 12, 2014 8:00 pm

I didn't know that either (how did you figure it out, Simon?) It isn't mentioned in the dictionary. Simon, could you add a user note to the dictionary entry for us? It would be useful. Or add a bug report for a dictionary fix.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Any way to stop screen scolling up with soft keyboard?

Post by Simon » Sat Apr 12, 2014 9:28 pm

Hi Paul, Jacque,
I "discovered" this about the time when you, Jacque, posted about "effective working screenrect" and the keyboard. I mentioned it here once before but it seemed like a feature not a bug.

To answer you Paul, it was dumb luck and experimentation.

acceleratedRendering is very odd on Android, recently I was helping on a maze game and turning on acceleratedRendering reversed all the controls. It sounds really good but I haven't found it to help anything.

I wish I could add a user note but I have never been able to log in to revOnline, always has been "Couldn't connect to server..." I figured it is a leftover that has yet to be removed.

At any rate, glad I could help you Paul.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

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

Re: Any way to stop screen scolling up with soft keyboard?

Post by jacque » Sat Apr 12, 2014 9:58 pm

You leave user notes by entering them directly into the dictionary. Open the entry for acceleratedRendering, scroll to the bottom, and click "Add Note". The note won't appear immediately, it has to be reviewed first. That may take a while, since I'm not sure these take top priority at RR right now, but it is worth a try.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply