解决办法:
在showAs之前设置setBackgroundDrawable(new BitmapDrawable());
完整代码:
LayoutInflater inflater = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final ShadowLayout layout = (ShadowLayout) inflater.inflate(R.layout.popup_notes, null);
optionsPopWindow = new PopupWindow(layout, FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, true);
optionsPopWindow.setContentView(layout);
optionsPopWindow.setBackgroundDrawable(new BitmapDrawable());
optionsPopWindow.showAsDropDown(view);
layout.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);