久久久久久久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. 主站蜘蛛池模板: 亚洲欧美中文日韩在线 | 久草视频2 | 日韩电影一区 | 九色视频网 | 国产一区二区三区在线免费观看 | 久国久产久精永久网页 | 特级黄一级播放 | 亚洲视频免费一区 | 日韩成人在线观看 | 日本欧美在线视频 | 欧美激情免费在线 | 精品福利一区 | 久久国产一区二区三区 | 99精品久久 | 福利一区二区在线 | 日本不卡视频在线播放 | 精品国产乱码一区二区三区 | 亚洲欧洲在线观看视频 | 久久av一区二区 | 日韩伦理一区二区三区 | 国产不卡在线观看 | 国产日韩欧美在线 | 免费三级av | 日韩精品一区二区不卡 | 久草新在线 | 日韩一区二区三区在线视频 | 亚洲欧美成人影院 | 久久久看 | 国产激情视频在线 | 日韩a在线| 亚洲国产成人精品女人久久久 | 精品久久久久久亚洲精品 | 精品综合网 | 欧美一区二区在线免费观看 | 欧美日韩精品久久久免费观看 | 久久精品一二三影院 | 日本一区二区三区视频在线 | 九九九久久国产免费 | 射久久| 伊人久久综合 | 日韩一区中文字幕 |