1、

Dialog dialog=new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen)

2、

getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT,                WindowManager.LayoutParams.MATCH_PARENT);
public FullScreenDialog(Context context){  super(context, R.style.full_screen_dialog);}

3、

Dialog dialog=new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);        dialog.setContentView(R.layout.frame_help);        dialog.show();

4、

dialog = new Dialog(getActivity(),android.R.style.Theme_Translucent_NoTitleBar);    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);    dialog.setContentView(R.layout.loading_screen);    Window window = dialog.getWindow();    WindowManager.LayoutParams wlp = window.getAttributes();    wlp.gravity = Gravity.CENTER;    wlp.flags &= ~WindowManager.LayoutParams.FLAG_BLUR_BEHIND;    window.setAttributes(wlp);    dialog.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.MATCH_PARENT);    dialog.show();

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)JNI开发入门之二
  2. TextView常见功能应用
  3. Android(安卓)上Camera分析
  4. android实现自动对焦拍照
  5. Android(安卓)面试必备 - JVM 及 类加载
  6. Android深入浅出系列课程---Lesson2 AAF1
  7. React-Native测试报告
  8. Android(安卓)X86
  9. android:gravity与android:layout_gravit
  10. android UI 配置参数