Kikanye
Kikanye

Reputation: 1358

How to make Sure Keyboard is not placed over an Entry when it is focused in Xamarin?

I have an Entry which is placed in a ContentView, and this ContentView is placed in a Grid. When this Entry is Focused, the Keyboard is placed over the ContentView preventing the user from seeing the Entry.

I would like to know if there is a way to determine if a View is Visible and if not make sure it is (prevent the Keyboard from being placed over it).

Any thoughts on how I could do this.

I would need this to work on iOS specifically, Android and Windows seem not to have this issue in my use-case.

Upvotes: 2

Views: 1235

Answers (1)

Wen xu Li
Wen xu Li

Reputation: 1686

On Android platform, the official document provides Soft Keyboard Input Mode. Refer to https://learn.microsoft.com/en-us/xamarin/xamarin-forms/platform/android/soft-keyboard-input-mode for details.

On IOS platform, you can query KeyboardOverlap installation in IOS's nuget, and then add KeyboardOverlapRenderer.Init (); in AppDelegate to achieve the effect in IOS.

Upvotes: 4

Related Questions