---
title: "PopupWindow 点击返回不消失"
author: "bashenmail"
date: "2010-09-23T16:45:22Z"
tags: []
categories: ["移动开发"]
slug: "popupwindow"
draft: false
lastmod: "2010-09-23T16:45:22Z"
id: 769955
url: "https://bashenmail.iteye.com/blog/769955"
---

注册一个PopupWindow 显示出来按返回键居然不消失，很是郁闷，结果查查资料原来是没有设置background

加上一句

PopupWindow.setBackgroundDrawable(new BitmapDrawable());

 

就Ok了。