public KeyboardRectProvider(Activity activity, LayoutChangedListener onLayoutChanged) : base(activity) { _activity = activity; _popupView = new LinearLayout(_activity.BaseContext) { LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent) }; _onLayoutChanged = onLayoutChanged; ContentView = _popupView; SoftInputMode = SoftInput.AdjustResize | SoftInput.StateAlwaysVisible; InputMethodMode = InputMethod.Needed; Width = 0; Height = ViewGroup.LayoutParams.MatchParent; SetBackgroundDrawable(new ColorDrawable(Color.Transparent)); }