久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='GsCtI'></tfoot>
      <bdo id='GsCtI'></bdo><ul id='GsCtI'></ul>
    1. <small id='GsCtI'></small><noframes id='GsCtI'>

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

    2. <legend id='GsCtI'><style id='GsCtI'><dir id='GsCtI'><q id='GsCtI'></q></dir></style></legend>

        在屏幕android上更改對話框的位置

        Changing position of the Dialog on screen android(在屏幕android上更改對話框的位置)

          <small id='2jOmA'></small><noframes id='2jOmA'>

            <tbody id='2jOmA'></tbody>
            1. <tfoot id='2jOmA'></tfoot>

                <legend id='2jOmA'><style id='2jOmA'><dir id='2jOmA'><q id='2jOmA'></q></dir></style></legend>

                <i id='2jOmA'><tr id='2jOmA'><dt id='2jOmA'><q id='2jOmA'><span id='2jOmA'><b id='2jOmA'><form id='2jOmA'><ins id='2jOmA'></ins><ul id='2jOmA'></ul><sub id='2jOmA'></sub></form><legend id='2jOmA'></legend><bdo id='2jOmA'><pre id='2jOmA'><center id='2jOmA'></center></pre></bdo></b><th id='2jOmA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2jOmA'><tfoot id='2jOmA'></tfoot><dl id='2jOmA'><fieldset id='2jOmA'></fieldset></dl></div>
                • <bdo id='2jOmA'></bdo><ul id='2jOmA'></ul>
                  本文介紹了在屏幕android上更改對話框的位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在我的Activity中做了一個簡單的AlertDialog:

                  I made a simple AlertDialog in my Activity:

                  View view = layoutInflater.inflate(R.layout.my_dialog, null);
                  AlertDialog infoDialog = new AlertDialog.Builder(MyActivity.this)
                                      .setView(view)  
                                      .create();
                  
                  infoDialog.show();
                  

                  使用上面的代碼,對話框顯示在屏幕的(大約)中心.

                  With above code, the dialog shows at the (about) the center of the screen.

                  我想知道,如何自定義對話框位置以使其顯示在頂部操作欄下方?(無論如何要改變對話框的重力或其他東西?)以及如何根據我的代碼來做到這一點??

                  I am wondering, how can I customize the dialog position to make it showing just under the top Action Bar ? (Is there anyway to change the gravity or something of the dialog?) and how to do it based on my code??

                  推薦答案

                  我用這段代碼在屏幕底部顯示對話框:

                  I used this code to show the dialog at the bottom of the screen:

                  Dialog dlg = <code to create custom dialog>;
                  
                  Window window = dlg.getWindow();
                  WindowManager.LayoutParams wlp = window.getAttributes();
                  
                  wlp.gravity = Gravity.BOTTOM;
                  wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;
                  window.setAttributes(wlp);
                  

                  如果需要,此代碼還可以防止 android 使對話框的背景變暗.您應該能夠更改重力參數以移動對話框

                  This code also prevents android from dimming the background of the dialog, if you need it. You should be able to change the gravity parameter to move the dialog about

                  這篇關于在屏幕android上更改對話框的位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                    <bdo id='3JLhb'></bdo><ul id='3JLhb'></ul>

                    <legend id='3JLhb'><style id='3JLhb'><dir id='3JLhb'><q id='3JLhb'></q></dir></style></legend>
                  • <i id='3JLhb'><tr id='3JLhb'><dt id='3JLhb'><q id='3JLhb'><span id='3JLhb'><b id='3JLhb'><form id='3JLhb'><ins id='3JLhb'></ins><ul id='3JLhb'></ul><sub id='3JLhb'></sub></form><legend id='3JLhb'></legend><bdo id='3JLhb'><pre id='3JLhb'><center id='3JLhb'></center></pre></bdo></b><th id='3JLhb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3JLhb'><tfoot id='3JLhb'></tfoot><dl id='3JLhb'><fieldset id='3JLhb'></fieldset></dl></div>
                      <tbody id='3JLhb'></tbody>
                      • <tfoot id='3JLhb'></tfoot>
                        1. <small id='3JLhb'></small><noframes id='3JLhb'>

                          1. 主站蜘蛛池模板: 日韩中文字幕在线播放 | 中文在线一区二区 | 人妖一区 | 免费在线视频精品 | 欧美一级免费黄色片 | 成人午夜 | 成年免费大片黄在线观看一级 | 久久国产精品一区二区三区 | 日韩色在线 | 成人av电影在线观看 | 久久久久免费观看 | 7777久久 | 精品欧美一区二区三区免费观看 | 亚洲精品国产电影 | 在线免费看黄 | 天天操天天天干 | 日韩成人精品在线观看 | 91在线视频播放 | 精品国产欧美 | japan21xxxxhd美女| 91影库| 激情一区二区三区 | 国产九九九 | 日本免费在线看 | 青青草华人在线视频 | 人人九九 | 国产日韩一区二区 | 欧美成人精品 | 日韩精品一区二区三区在线播放 | 国产在线91| 日本黄色免费大片 | 极品粉嫩国产48尤物在线播放 | 久久国产亚洲 | 99热最新 | 亚洲成人一区 | 91久久国产综合久久 | 青青久久久| 久久久久久国产精品mv | 免费成人在线网站 | 免费观看羞羞视频网站 | 久久精品色欧美aⅴ一区二区 |