Keyboard is hiding part of a Dialog in Xamarin.Android

SvetoslavHlebarovSvetoslavHlebarov USMember ✭✭
edited February 14 in Xamarin.Android

I have the following two EditTexts:

https://cdn1.imggmi.com/uploads/2019/2/14/2c7b478abbc5ce597ac1f2076e3fde02-full.png

When I click on either of the two, it appears a Dialog with a list of products and a filter above them in this way:

https://cdn1.imggmi.com/uploads/2019/2/14/4ff8590028f6d4b238b974e9f5e87d49-full.png

The problem is that when I tap on the filter the keyboard is hiding part of the products. My question is how to make the Dialog adjust to the keyboard so all its content can be seen. I tried with:

filterListDialog.Window.SetSoftInputMode(SoftInput.AdjustResize);

But it's only working on Android 4 and not on Android 7, and I'd like it to work on both operating systems.

Answers

Sign In or Register to comment.