p_rlHousePostRootView = (RelativeLayout) findViewById(R.id.rlHousePostRootView);
// 作品信息的彈出視圖
public void housePostPopUpInfo(View view) {
LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);
View popupView = layoutInflater.inflate(R.layout.include_house_post_popup_info, p_rlHousePostRootView, false);
popupWindow = new PopupWindow(
popupView,
LayoutParams.MATCH_PARENT,
LayoutParams.WRAP_CONTENT);
popupWindow.showAtLocation(p_rlHousePostRootView, Gravity.TOP, 0, 0);
p_rlHousePostRootView.setAlpha(0.25F);
}
//關閉作品信息彈出視圖
public void popUpWindowClose(View view) {
// popupWindow.setBackgroundDrawable(new BitmapDrawable());
// popupWindow.setOutsideTouchable(true);
popupWindow.dismiss();
p_rlHousePostRootView.setAlpha(1.0F);
}