I have a simple PopupWindow that I create using the following code (the code is in C #, the Java code should be basically the same)
View popupView = LayoutInflater.From(this.Activity).Inflate(Resource.Layout.LectionFooter, null); var popup = new PopupWindow(popupView, ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent, false) { OutsideTouchable = true, AnimationStyle = Resource.Style.FooterAnimation }; popup.SetBackgroundDrawable(new BitmapDrawable()); popup.ShowAtLocation(rootView, GravityFlags.Bottom, 0, 0);
On devices with a preliminary Lollipop, this pop-up window looks great, but on Android 5.0, the pop-up window overlaps the soft buttons:

Here's PopupWindow on an Android 4.4 device:

Does anyone have an idea why this is happening and how can this be fixed?
android
Flagbug
source share