WindowManager
安卓Guan
这个作者很懒,什么都没留下…
展开
-
类似酷狗锁屏时页面显示在解锁页面之上的实现方法
1.在页面初始化时添加 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED|WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); 2.添加权限原创 2016-07-18 15:14:29 · 995 阅读 · 0 评论 -
Dialog出现页面布局错乱解决方法
WindowManager windowManager = getWindow().getWindowManager(); Display display = windowManager.getDefaultDisplay(); WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.width = (int原创 2016-07-18 15:57:03 · 2327 阅读 · 0 评论