Very often an app has input fields. For instance a login screen like shown in image below:
![Input fields Input fields](/images/default-source/default-album/screenshot_20190108-140741.jpg?sfvrsn=0&MaxWidth=400&MaxHeight=&ScaleUp=false&Quality=High&Method=ResizeFitToAreaArguments&Signature=8BB88DCE9C8B97E002B4CBC07F98FCDEC3644106)
In Android it could happen that when you want to enter the password, the password field is overlapped by the (soft) keyboard and you don't see if you have entered something.
![Password_Keyboard_Overlap Password_Keyboard_Overlap](/images/default-source/default-album/screenshot_20190108-140815.jpg?sfvrsn=0&MaxWidth=400&MaxHeight=&ScaleUp=false&Quality=High&Method=ResizeFitToAreaArguments&Signature=B25B1F466169FA2FB7D9D90E75BAB7EA448B6F10)
To prevent from happening in Android you can add the following in the codebehind of App.xama
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
using Xamarin.Forms.Xaml;
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace Xamarin_PWA
{
public partial class App : Xamarin.Forms.Application
{
public App()
{
InitializeComponent();
//To avoid soft keyboard statusbar overlap
Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
MainPage = new MainPage();
}
protected override void OnStart()
{
// Handle when your app starts
}
protected override void OnSleep()
{
// Handle when your app sleeps
}
protected override void OnResume()
{
// Handle when your app resumes
}
}
}
When you enter the password, you still see what you have entered.