xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

[Bug] Black bar is showing at the bottom of the screen while connecting the external keyboard #15812

Closed SanthiyaArulsamy closed 1 year ago

SanthiyaArulsamy commented 1 year ago

Description

Black bar is showing at the bottom of the screen while connecting the external keyboard

Steps to Reproduce

  1. Add an entry control.
  2. Connect the NKE keyboard to the device.
  3. Focus the entry. Now the black bar is showing at the bottom of the device

Expected Behavior

Black bar should not be shown while connecting the hardware keyboard.

Actual Behavior

Balck bar showing at the bottom of the screen.

Hint This not occurred in Android 9 it is only from Android 10.

Basic Information

Environment

Show/Hide Visual Studio info ``` ```

Screenshots

Before IMG20230829174114

After

IMG20230829174124

Reproduction Link

Keyboard_BlackBar.zip

Workaround

It will be work in Android 9.

jfversluis commented 1 year ago

This is the default behavior for Android. Since you say it's not on Android 9, but it does show on Android 10, I assume Android introduced the underlines for their entries in Android 10.

You can remove it with a custom renderer, there should be plenty of content to find around that. Here is one article that should help: https://kudzaidube.medium.com/xamarin-forms-how-to-remove-android-entry-underline-4628a8d1f058

SanthiyaArulsamy commented 1 year ago

This is related to underline right. https://kudzaidube.medium.com/xamarin-forms-how-to-remove-android-entry-underline-4628a8d1f058 Please check the attached sample. If I add any label at the bottom the of the screen it is hidden in the Android version. It is blocking my application behavior.