-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BorderLayout does not respect visibility on mobile #2755
Comments
I'm not sure if this is specific to how borderlayout works. It is probably a general issue with layouts not shrinking when the keyboard pops up. |
Fair comment; borderlayout is where I noticed it; I didn't try any other layouts. My work-around is to put entry widgets at the top. |
It might be possible that the window doesn't get resized under Android. Their seems to be a list of different policy for what to do in the application manifest. I do not know where to find it in Fyne code base if anyone knows? |
The Android manifest file template can be found here. It probably should be moved into the template folder sometime. |
Thanks @Jacalz. @xxxserxxx would you mind changing the manifest and add a line in the It might look like:
If that fix your problem, I could do a PR for it that would also address @Jacalz good point that it should be a template and bundled. |
For later reference, the reason why the window doesn't get resized by default might be for performance reason and it might be better to track the area where the keyboard is instead of forcing a resize. Reference example code: https://falsinsoft.blogspot.com/2017/04/qml-resize-controls-when-android.html . This is of course more work, and I would put that on a follow up issue if the manifest change solve the problem. |
Thanks. I think the reason that it initially wasn't moved to the template folder (when I created the template package some time ago) was to keep our gomobile close to upstream. However, a lot has happened with our mobile package since then and I'm not sure if that argument really stands any more. I think the benefits of having it in the template folder are far larger than any issues with not being close to upstream. |
I think this is a duplicate of #566 |
@andydotxyz I think so too. My search didn't turn that one up, but I may have been focusing on the layout. I'm testing @Bluebugs' suggestion, but after that do you want me to close this one? |
@Bluebugs: that didn't address the issue, unfortunately. I did check to make sure the right manifest got used by unzipping the APK and using axmldec. |
@xxxserxxx that's a disappointing news. I guess we will have to implement in code then. I am focusing on the web platform at the moment, but I have on my todo to do some work on Android. In which case, I think we should close this issue and focus on #566. |
I agree. Let's close this as a duplicate of that one. |
On Android, BorderLayout is absolute and does not respond to changes in screen size, such as when a keyboard is opened that effectively shrinks the screen. In this case, the keyboard covers the widgets; if the entry widget is at the bottom of the screen, this can make the entry widget hidden.
To Reproduce:
Compile the supplied code for Android; install it, and try to use the text widget at the bottom of the screen.
Screenshots:
Full app, with list and text entry widget at bottom:
App with the keyboard open (after clicking on the text widget):
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: