Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] SetWindowSoftInputModeAdjust not working when mainpage is flyoutpage or SetTitleBarVisibility is set to Never #15021

Open
PaulVrugt opened this issue Jan 4, 2022 · 0 comments
Labels
p/Android s/unverified New report that has yet to be verified t/bug 🐛
Projects

Comments

@PaulVrugt
Copy link

Description

We are trying to set the SetWindowSoftInputModeAdjust to resize to properly use the soft keyboard without overlap in android. However (after a lot of testing) we found out that there are 2 things that prevent this from working:

  • Once you call global::Xamarin.Forms.Forms.SetTitleBarVisibility(this, Xamarin.Forms.AndroidTitleBarVisibility.Never); in the oncreate of the mainactivity, it stops working
  • Once you have a main page that is a FlyOutPage, it stops working

Steps to Reproduce

  1. Open the attached test project
  2. Run it on android

Expected Behavior

The input box stay in view when focused

Actual Behavior

The input box is now shown anymore because it is hidden behind the soft keyboard. Once you comment out the SetTitleBarVisibility call in the MainActivity.cs and set the MainPage to new MainPage() in App.xaml.cs and run it again it works properly.

Basic Information

  • Version with issue:
  • Last known good version: ?
  • Platform Target Frameworks:
    • Android: 11.0 (api level 30)
  • Affected Devices: all android

Screenshots

androidkeyboard

Reproduction Link

App1.zip

Workaround

Make the 2 changes as explained in the steps to reproduce, but this changes the functionality of the app

@PaulVrugt PaulVrugt added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 4, 2022
@jsuarezruiz jsuarezruiz added this to New in Triage via automation Jan 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p/Android s/unverified New report that has yet to be verified t/bug 🐛
Projects
Triage
  
New
Development

No branches or pull requests

2 participants