Java 类android.support.v7.widget.AppCompatPopupWindow 实例源码
项目:SlickForm
文件:SimpleTooltip.java
private void configPopupWindow() {
mPopupWindow = new AppCompatPopupWindow(mContext, null, mDefaultPopupWindowStyleRes);
mPopupWindow.setOnDismissListener(this);
mPopupWindow.setWidth(ViewGroup.LayoutParams.WRAP_CONTENT);
mPopupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
mPopupWindow.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
mPopupWindow.setClippingEnabled(false);
if (mDismissOnInsideTouch || mDismissOnOutsideTouch)
mPopupWindow.setTouchInterceptor(mPopupWindowsTouchListener);
}