摘要: 1 重写onAttachedToWindowpublic void onAttachedToWindow() { this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); super.onAttachedToWindow(); } 2 重写onKeyDownpublic boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KeyEvent.KEYCODE_H... 阅读全文
posted @ 2011-10-28 18:50 因是因非 阅读(1428) 评论(1) 推荐(0) 编辑