MikeMon 12 Posted November 4, 2019 Is there an out-of-the-box way for the screen to move up when the keyboard pops up and covers the focused control, e.g. edit boxes, memos, etc.? Currently we use a vertical scroll box and plenty of code (onVirtualKeyboardShown & onVirtualKeyboardHidden) we found online. Share this post Link to post
Der schöne Günther 316 Posted November 4, 2019 I believe what you do is what Embarcadero actually recommends: http://docwiki.embarcadero.com/CodeExamples/Rio/en/FMX.ScrollableForm_Sample Share this post Link to post
MikeMon 12 Posted November 4, 2019 16 minutes ago, Der schöne Günther said: I believe what you do is what Embarcadero actually recommends: http://docwiki.embarcadero.com/CodeExamples/Rio/en/FMX.ScrollableForm_Sample Too complicated for something that should be the norm without using any code. Share this post Link to post
Sherlock 663 Posted November 4, 2019 Just out of curiosity how does an Android Java or an iOS Swift App do this? Share this post Link to post
MikeMon 12 Posted November 4, 2019 33 minutes ago, Sherlock said: Just out of curiosity how does an Android Java or an iOS Swift App do this? I'm curious, too. Share this post Link to post
John Kouraklis 94 Posted November 4, 2019 Scrollable forms is the way to deal with this. I use OrangeUI in one of my app and they have a way that manages it more smoothly and easier. But this is a totally different framework to use Share this post Link to post
MikeMon 12 Posted November 4, 2019 19 minutes ago, John Kouraklis said: Scrollable forms is the way to deal with this. I use OrangeUI in one of my app and they have a way that manages it more smoothly and easier. But this is a totally different framework to use I believe it should happen automatically and no code should be involved. Anything focused but covered by the popped up keyboard should be scrolled up automatically to be visible. Share this post Link to post
pietrt 1 Posted November 4, 2019 (edited) take a look at this: https://stackoverflow.com/questions/16411056/how-to-adjust-layout-when-soft-keyboard-appears They declare android:windowSoftInputMode="adjustResize" in the manifest and </requestfocus> in the layout file. I don't know if you can do that in Delphi. Edited November 4, 2019 by pietrt Share this post Link to post
John Kouraklis 94 Posted November 10, 2019 @MikeMon Does the solution offered by @pietrt work? On 11/4/2019 at 1:34 PM, MikeMon said: I believe it should happen automatically and no code should be involved. Anything focused but covered by the popped up keyboard should be scrolled up automatically to be visible. If you read the answer on stackoverflow, you'll see that a scrollable container is always required. Share this post Link to post
MikeMon 12 Posted November 11, 2019 19 hours ago, John Kouraklis said: @MikeMon Does the solution offered by @pietrt work? If you read the answer on stackoverflow, you'll see that a scrollable container is always required. Hi John I never tried it because the app is both for Android and iOS. So, I'm using the solution provided by Embarcadero. 1 Share this post Link to post