private void showPop()
{
Resources resources = getBaseContext().getResources();
Drawable d = resources.getDrawable(Color.BLACK);
View view = this.getLayoutInflater().inflate(R.layout.upload, null);
PopupWindow pop = new MyPopupwindow(view, LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT, this);
pop.setBackgroundDrawable(d);
pop.showAtLocation(findViewById(R.id.webInfo), Gravity.CENTER, 0, 0);
} 当运行到 Drawable d = resources.getDrawable(Color.BLACK);报错了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货