Activity全屏Activity中添加this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); this.requestWin...
                            
                            
                                分类:
其他好文   时间:
2015-07-23 21:40:26   
                                阅读次数:
192
                             
                    
                        
                            
                            
                                quit.show(); WindowManager.LayoutParams params0 = quit.getWindow().getAttributes();params0.width = (int) (scrrenW*0.9); params0.height = (in...
                            
                            
                                分类:
移动开发   时间:
2015-07-20 21:15:20   
                                阅读次数:
128
                             
                    
                        
                            
                            
                                WindowManager managet=(WindowManager) context.getSystemService(Context.WINDOW_SERVICE); DisplayMetrics dm=new DisplayMetrics(); managet.getDefaultD...
                            
                            
                                分类:
移动开发   时间:
2015-07-20 16:13:45   
                                阅读次数:
143
                             
                    
                        
                            
                            
                                本文转载于:http://blog.csdn.net/yudajun/article/details/7748760Android设置支部待机有两种方法第一种简单通过设置WindowManager属性实现:在Activity oncreat()方法中设置getWindow().setFlags(Wi...
                            
                            
                                分类:
移动开发   时间:
2015-07-18 22:38:14   
                                阅读次数:
141
                             
                    
                        
                            
                            
                                1.android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
解决方案:将getApplication改成xxxx.this
2.call you are unregister onbrocastRevicer?
解决方案:忘记注销广播...
                            
                            
                                分类:
移动开发   时间:
2015-07-18 15:42:24   
                                阅读次数:
403
                             
                    
                        
                            
                            
                                Activity全屏设置方式1:AndroidManifest.xml方式2:代码实现requestWindowFeature(Window.FEATURE_NO_TITLE); //隐藏标题栏getWindow().setFlags(WindowManager.LayoutParams.FLAG_...
                            
                            
                                分类:
移动开发   时间:
2015-07-16 15:33:59   
                                阅读次数:
262
                             
                    
                        
                            
                            
                                实现原理这种桌面悬浮窗的效果很类似与Widget,但是它比Widget要灵活的多。主要是通过WindowManager这个类来实现的,调用这个类的addView方法用于添加一个悬浮窗,updateViewLayout方法用于更新悬浮窗的参数,removeView用于移除悬浮窗。其中悬浮窗的参数有必要...
                            
                            
                                分类:
移动开发   时间:
2015-07-15 13:02:31   
                                阅读次数:
141
                             
                    
                        
                            
                            
                                部分代码如下: public void ShowAlertScreen(Context context,String titles,String content,String phone) { // 获取Service wm = (WindowManager) context.getSyste...
                            
                            
                                分类:
移动开发   时间:
2015-07-13 18:28:06   
                                阅读次数:
255
                             
                    
                        
                            
                            
                                【设置全屏】在setLayout之前使用如下代码1 requestWindowFeature(Window.FEATURE_NO_TITLE);//隐藏标题2 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREE...
                            
                            
                                分类:
移动开发   时间:
2015-07-13 18:15:56   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                导致报这个错是在于new AlertDialog.Builder(mcontext),虽然这里的参数是AlertDialog.Builder(Context context)但我们不能使用getApplicationContext()获得的Context,而必须使用Activity,因为只有一个Activity才能添加一个窗体。 
环境变量传入错误,不能使application的环境...
                            
                            
                                分类:
移动开发   时间:
2015-07-13 12:11:20   
                                阅读次数:
157