|
|
@@ -414,14 +414,11 @@ public class MissionActivity extends BaseActivity implements View.OnClickListene
|
|
|
}
|
|
|
});
|
|
|
popupWindow = new PopupWindow(contentView, w_screen, h_screen, true);
|
|
|
- popupWindow.setTouchable(true);
|
|
|
// 如果不设置PopupWindow的背景,无论是点击外部区域还是Back键都无法dismiss弹框
|
|
|
- // 我觉得这里是API的一个bug
|
|
|
popupWindow.setBackgroundDrawable(getResources().getDrawable(R.drawable.bg_main));
|
|
|
-
|
|
|
// 设置好参数之后再show
|
|
|
popupWindow.showAtLocation(contentView, Gravity.CENTER, 0, 0);
|
|
|
- setbg(0.7f);
|
|
|
+ setbg(0.4f);
|
|
|
}
|
|
|
|
|
|
private void setbg(float alpha) {
|