How do I keep the keyboard from covering my UI instead of resizing it?

后端 未结 4 1148
长发绾君心
长发绾君心 2020-12-09 04:46

In iOS, Xamarin.Forms resizes the screen when the keyboard comes up when the root node is a ScrollView. But when the root node is not a ScrollView

4条回答
  •  生来不讨喜
    2020-12-09 05:04

    This Xamarin Forum question discusses it.

    In addition if you want it in Android using Xamarin / Forms you can just set this in your main activity:

    [Activity(WindowSoftInputMode = Android.Views.SoftInput.AdjustResize)]
    public class MainActivity
        ...
    

提交回复
热议问题