PopupWindow popup;
...
popupLinear = (LinearLayout) findViewById(R.id.slotlayout);
popupView = View.inflate(this, R.layout.notice_layout, null);
Button popclose = (Button) popupView.findViewById(R.id.popclose);
...
if (!no_popup_boolean) {
popupLinear.post(new Runnable() { // 엑티비티가 완성되고 팝업띄우기
public void run() {
popup = new PopupWindow(popupView, screenWidth
- (screenWidth / 5), screenHeight
- (screenHeight / 5), true);
popup.showAtLocation(popupLinear, Gravity.CENTER, 0, 0);
popup.setOutsideTouchable(true); // 팝업 외 클릭가능
popup.setBackgroundDrawable(new BitmapDrawable());
// back버튼 활성화를위한 배경지정
}
});
}
문제의 코드인데요 마지막 두줄코드가 도통 먹질않네요
초보자인 저로써는 뭐가 문제인지 알 수가없어 이렇게 도움을 요청합니다.
더필요한부분이 있다면 올리겠습니다 대략적이라도 알려주세요 ㅠㅠ 부탁합니다.