Show PopupWindow above a particular view
问题 I am trying to show a PopupWindow above relative layout. popupWindow.showAtLocation(layout, Gravity.BOTTOM |Gravity.CENTER, 0, layout); Where layout is a relative layout.But it appears only at the bottom.Not above the relativelayout. I have checked this.But it didn't helped. Here is my PopupWindow layout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="200dp" android:layout_height="wrap_content" android