我使用一个简单的LinearLayout
和背景颜色创建了我的PopupWindow
。 PopupWindow
上有阴影。如何自动删除为PopupWindow
生成的阴影? 我用以下方式创建了一个PopupWindow
:
View view = LayoutInflater.from(getBaseContext()).inflate(R.layout.mylayout,null);
pop = new PopupWindow(this);
pop.setTouchable(false);
pop.setHeight(200);
pop.setWidth(200);
pop.setContentView(view);
pop.showAtLocation(parentview, 0, 50, 50);
截图: