<bdo id='4fMY3'></bdo><ul id='4fMY3'></ul>
<tfoot id='4fMY3'></tfoot>
    <i id='4fMY3'><tr id='4fMY3'><dt id='4fMY3'><q id='4fMY3'><span id='4fMY3'><b id='4fMY3'><form id='4fMY3'><ins id='4fMY3'></ins><ul id='4fMY3'></ul><sub id='4fMY3'></sub></form><legend id='4fMY3'></legend><bdo id='4fMY3'><pre id='4fMY3'><center id='4fMY3'></center></pre></bdo></b><th id='4fMY3'></th></span></q></dt></tr></i><div id='4fMY3'><tfoot id='4fMY3'></tfoot><dl id='4fMY3'><fieldset id='4fMY3'></fieldset></dl></div>

    1. <small id='4fMY3'></small><noframes id='4fMY3'>

      1. <legend id='4fMY3'><style id='4fMY3'><dir id='4fMY3'><q id='4fMY3'></q></dir></style></legend>

        全屏自定义对话框?

        时间:2023-08-31
        <tfoot id='QRnqn'></tfoot>
          <tbody id='QRnqn'></tbody>
        <i id='QRnqn'><tr id='QRnqn'><dt id='QRnqn'><q id='QRnqn'><span id='QRnqn'><b id='QRnqn'><form id='QRnqn'><ins id='QRnqn'></ins><ul id='QRnqn'></ul><sub id='QRnqn'></sub></form><legend id='QRnqn'></legend><bdo id='QRnqn'><pre id='QRnqn'><center id='QRnqn'></center></pre></bdo></b><th id='QRnqn'></th></span></q></dt></tr></i><div id='QRnqn'><tfoot id='QRnqn'></tfoot><dl id='QRnqn'><fieldset id='QRnqn'></fieldset></dl></div>

          • <legend id='QRnqn'><style id='QRnqn'><dir id='QRnqn'><q id='QRnqn'></q></dir></style></legend>

              1. <small id='QRnqn'></small><noframes id='QRnqn'>

                  <bdo id='QRnqn'></bdo><ul id='QRnqn'></ul>

                • 本文介绍了全屏自定义对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  有什么方法可以让我的对话框视图全屏显示,即对话框占据整个屏幕(如 Activity).我尝试使用 LayoutParams 和样式,例如<item name="android:windowFullscreen">true</item> 但似乎没有任何效果.

                  Is there any way to make my Dialog view full screen, i.e dialog occupy the entire screen (like an Activity). I tried using the LayoutParams and styles like <item name="android:windowFullscreen">true</item> but nothing seems to be working.

                  我找到了摆脱标题栏的方法,但找不到将对话框全屏显示的方法.所以有人可以建议我一种方法吗?

                  I found a way of getting rid of the Title bar, but couldn't find a way to put a dialog in full screen. So can any one suggest me a way to do it.

                  <?xml version="1.0" encoding="utf-8"?>
                  <resources>
                  <style name="MyTheme" parent="@android:style/Theme.Dialog">
                      <item name="android:windowFullscreen">true</item>
                      <item name="android:windowFrame">@null</item>
                      <item name="android:windowNoTitle">true</item>
                      <item name="android:windowIsFloating">true</item>
                      <item name="android:windowContentOverlay">@null</item>
                      <item name="android:windowBackground">@color/dialog_background</item>
                  </style>
                  </resources>
                  

                  推荐答案

                  给它的构造函数一个非对话框的主题,例如 android.R.style.Themeandroid.R.style.Theme_Light.

                  Give its constructor a non-dialog theme, such as android.R.style.Theme or android.R.style.Theme_Light.

                  @Bob 编写的代码.

                  Code by @Bob.

                  Dialog dialog = new Dialog(context, android.R.style.Theme_Light); 
                  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 
                  dialog.setContentView(R.layout.MyCustomDialogLayout); 
                  dialog.show();
                  

                  这篇关于全屏自定义对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:AppCompatActivity 作为没有标题的对话框 下一篇:Android KitKat 上的对话框似乎被剪掉了

                  相关文章

                  最新文章

                    <bdo id='Q2ilD'></bdo><ul id='Q2ilD'></ul>

                  1. <legend id='Q2ilD'><style id='Q2ilD'><dir id='Q2ilD'><q id='Q2ilD'></q></dir></style></legend>

                    1. <i id='Q2ilD'><tr id='Q2ilD'><dt id='Q2ilD'><q id='Q2ilD'><span id='Q2ilD'><b id='Q2ilD'><form id='Q2ilD'><ins id='Q2ilD'></ins><ul id='Q2ilD'></ul><sub id='Q2ilD'></sub></form><legend id='Q2ilD'></legend><bdo id='Q2ilD'><pre id='Q2ilD'><center id='Q2ilD'></center></pre></bdo></b><th id='Q2ilD'></th></span></q></dt></tr></i><div id='Q2ilD'><tfoot id='Q2ilD'></tfoot><dl id='Q2ilD'><fieldset id='Q2ilD'></fieldset></dl></div>

                      <small id='Q2ilD'></small><noframes id='Q2ilD'>

                    2. <tfoot id='Q2ilD'></tfoot>