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

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

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

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

        使用 Dialog 自定義屏幕變暗

        Custom screen dim with Dialog(使用 Dialog 自定義屏幕變暗)
        <tfoot id='vuaEj'></tfoot>
        <i id='vuaEj'><tr id='vuaEj'><dt id='vuaEj'><q id='vuaEj'><span id='vuaEj'><b id='vuaEj'><form id='vuaEj'><ins id='vuaEj'></ins><ul id='vuaEj'></ul><sub id='vuaEj'></sub></form><legend id='vuaEj'></legend><bdo id='vuaEj'><pre id='vuaEj'><center id='vuaEj'></center></pre></bdo></b><th id='vuaEj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vuaEj'><tfoot id='vuaEj'></tfoot><dl id='vuaEj'><fieldset id='vuaEj'></fieldset></dl></div>

        • <small id='vuaEj'></small><noframes id='vuaEj'>

          <legend id='vuaEj'><style id='vuaEj'><dir id='vuaEj'><q id='vuaEj'></q></dir></style></legend>
          • <bdo id='vuaEj'></bdo><ul id='vuaEj'></ul>
              <tbody id='vuaEj'></tbody>

                1. 本文介紹了使用 Dialog 自定義屏幕變暗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在 Android 中,當您彈出一個對話框時,它后面的屏幕會變暗.有什么辦法可以控制它的外觀嗎?例如使其變暗或使用某種模式?

                  In Android when you pop up a dialog the screen behind it dims. Is there any way to control what that looks like? For example making it dim more or less or using some kind of a pattern?

                  推薦答案

                  是的.你可以控制它.

                  創建對話框后:

                  WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();  
                  lp.dimAmount = 0.0f; // Dim level. 0.0 - no dim, 1.0 - completely opaque
                  dialog.getWindow().setAttributes(lp);
                  

                  更新:您甚至可以在對話框后面添加模糊:

                  Upd: you can even add blur behind the dialog:

                  dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
                  

                  Upd2:不推薦使用模糊從 API14 開始:

                  此常量在 API 級別 14 中已棄用.
                  不再支持模糊.

                  This constant was deprecated in API level 14.
                  Blurring is no longer supported.

                  這篇關于使用 Dialog 自定義屏幕變暗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='M2XRx'></bdo><ul id='M2XRx'></ul>
                    <legend id='M2XRx'><style id='M2XRx'><dir id='M2XRx'><q id='M2XRx'></q></dir></style></legend>

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

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

                              <tbody id='M2XRx'></tbody>
                          • <tfoot id='M2XRx'></tfoot>

                          • 主站蜘蛛池模板: 午夜在线小视频 | 色综合色综合色综合 | 亚洲欧洲激情 | 夜夜艹| 亚洲精品一区国产精品 | 久久毛片| 国产aⅴ精品 | 青草福利| 在线一区| 国产精品久久久久久福利一牛影视 | av网站在线看| 婷婷激情综合 | 一区二区三区四区在线视频 | 九九热最新视频 | 黄网站色大毛片 | 草久网 | 中文字幕日韩一区 | 亚洲天堂精品久久 | 精品一区二区三区免费毛片 | 欧美国产精品 | 成年人在线观看视频 | 黄色国产在线视频 | 亚洲综合在线视频 | 国产精品黄色 | 亚洲一区二区三区免费视频 | 91精品国产91久久久久久最新 | 欧美精品一区二区三区四区 在线 | 日韩免费激情视频 | 中文天堂在线一区 | 成人精品一区二区三区中文字幕 | 免费一级黄色电影 | 欧美日韩亚洲国产 | 99久久久无码国产精品 | 久久久综合网 | 91av在线免费看 | 天天射天天操天天干 | www.4567| 久久99这里只有精品 | 国产精品久久久久aaaa九色 | 亚洲免费在线 | 亚洲高清久久 |