popupWindow在android7.0以上显示全屏的问题
在Android7.0以上版本调用popupWindow的showAsDropDown()方法,始终显示全屏,或者遮蔽标题栏目, 解决方案: package com . example . view ; import android . content . Context ; import android . graphics . Rect ; import android . os . Build ; import android . util . AttributeSet ; import android . view . View ; import android . widget . PopupWindow ; /** * @author che on 2018/7/06. */ public class CommonPopWindow extends PopupWindow { public CommonPopWindow ( Context context ) { super ( context ); } public CommonPopWindow ( View contentView , int width , int height ) { super ( contentView , width , height ); } /** * 在android7.0上