PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → [WM23] Keyboard
[WM23] Keyboard
Iniciado por ARV, 05,sep. 2018 19:29 - 4 respuestas
Miembro registrado
498 mensajes
Popularité : +8 (8 votes)
Publicado el 05,septiembre 2018 - 19:29
Hi

I'm developing an app and I need to know when the keyboard of Android it's visible and not visible, with that I could move some controls like edits, buttons and so on.
is it possible on windev?

I search but I get nothing, only the validation of keyboard that can be configure on the description of the edit but this doesn't work for me because the user can press the back button and hide the keyboard and all of my controls are located according to the keyboard (I calculated how much I need to move my controls with the keyboard) but now it have the same place when I hide my keyboard, I need to move my controls when the keyboard it's not on the screen.

Thanks

--
Best Regards
ARV
Publicado el 05,septiembre 2018 - 21:54
Hi...

(I calculated how
> much I need to move my controls with the keyboard) but now it have the

How could you possibly do that?

Keyboard height is different depending on the version of android, the
phone itself, and the keyboard used.

Just with the regular google keyboard (gboard), the user can set options
to display an extra line for numerics, a line for text correction or
not, etc, etc...

And that's not even talking about installing/configuring any of the
number of keyboard applications

So it looks like you have been working on your specific device keyboard
height, and that your code will NOT work on anything else than this
specific configuration...

There may be a reason why NO application out there is trying to do what
you are trying to do...

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on http://www.fabriceharari.com


same place when I hide my keyboard, I need to move my controls when the
keyboard it's not on the screen.

Thanks

--
Best Regards
ARV
Miembro registrado
498 mensajes
Popularité : +8 (8 votes)
Publicado el 06,septiembre 2018 - 17:15
Hi

I know, my app it's not like it will be for everyone it's just for a specific company.

Then again I can't do much when I want to use my edit the keyboard move down when I'm typing and I want to be below my edit and not on my letters. (My edit it's a multi line and I put an anchor that could be three lines of letters)

I'm trying to create a company chat device, but the issue I have it's with the keyboard of android and iOS they are put (how I said before) below the letters and not below my three lines of edit.

so the only option I can think of it's to move my controls but when the keyboard it's hide everything stay like I set it, then I press back again and set my controls like they need to be, but I need to control the keyboard somehow.

Like for example Whatsapp, something like that

Thanks for your reply Fabrice

--
Best Regards
ARV
Miembro registrado
498 mensajes
Popularité : +8 (8 votes)
Publicado el 06,septiembre 2018 - 17:47
Hi

I found something but it can't determinated if is show or not, only show or hide for Android and only hide for iOS
https://help.windev.com/en-US/…

for now I don't have anything else...

--
Best Regards
ARV
Miembro registrado
498 mensajes
Popularité : +8 (8 votes)
Publicado el 06,septiembre 2018 - 19:34
Hi

I found something:
-The keyboard only will be below of everything I write only if the edit it's on the botton of the window, if the edit it's not there then it will never happend the issue I have
-My edit it's always on the bottom so it always happend the issue I have

so how could I solve this?
I only think about reducing the height of my window but then again how could I know the keyboard it's not displayed when the user tap the back button android/ or tap the window and lose focus on edit iOS also How I know the height of the keyboard?...
I don't know how...

any ideas?

--
Best Regards
ARV