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

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

    1. <tfoot id='gjxj7'></tfoot>

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

          <bdo id='gjxj7'></bdo><ul id='gjxj7'></ul>
        <legend id='gjxj7'><style id='gjxj7'><dir id='gjxj7'><q id='gjxj7'></q></dir></style></legend>
      1. Android - 如何在 onPause 中關閉所有對話框

        Android - How to Dismiss All Dialogs in onPause(Android - 如何在 onPause 中關閉所有對話框)
      2. <small id='l9KXP'></small><noframes id='l9KXP'>

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

                    <tbody id='l9KXP'></tbody>

                  本文介紹了Android - 如何在 onPause 中關閉所有對話框的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個活動可以在運行時顯示不同的對話框.我使用 onCreateDialog(int id) 創建每個對話框,并使用 showDialog(int id) 和 dismissDialog(int id) 方法分別顯示和關閉每個對話框.

                  I have an activity that could show different dialogs during run-time. I use onCreateDialog(int id) to create each dialog and I use showDialog(int id) and dismissDialog(int id) method show and dismiss each dialog respectively.

                  當 onPause() 被調用時,我不知道正在顯示哪個對話框(如果有的話).我想確保在調用 onPause 時,所有對話框都被關閉.有沒有推薦的方法來關閉所有對話框?我是否必須為每個對話框調用dismissDialog()?

                  When onPause() is called, I don't know which dialog (if any) is being displayed. I want to make sure that when onPause is called, all dialogs are dimissed. Is there a recommended way to dismiss all dialogs? Would I have to call dismissDialog() for each dialog?

                  推薦答案

                  取決于我們正在談論的對話框數量.簡短的回答是肯定的,您必須關閉每個對話框.

                  Depending on how many dialog's we're talking about. The short answer is yes, you'll have to dismiss each dialog.

                  除了簡單地在活動級別聲明一些對話框之外,可能還有其他優雅的方法可以做到這一點.一旦聲明它們,您可以將所有對話框存儲在 HashMap 中,然后遍歷列表并在暫停時關閉每個對話框.

                  There may be elegant ways of doing this other than simply having a few dialogs declared at the activity level. You could store all the dialogs in a HashMap once they are declared and then iterate through the list and close each one onPause.

                  由于您不知道哪些是開放的,您需要通過并測試或跟蹤狀態.

                  Since you don't know which are open you'll need to go through and test or track the states.

                  但是,如果您的屏幕上確實有這么多對話框,則您的 UI/UX 設計可能會出現一些問題,因為 Android 應該為您提供一個模型,該模型可以輕松實現它,而不會出現看似糟糕的設計.

                  However, if you truly have this many dialogs on your screen you may have some issues with your UI/UX design as Android should give you a model which makes it easy to implement it without what seems like poor design.

                  這篇關于Android - 如何在 onPause 中關閉所有對話框的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='bhGQ2'></bdo><ul id='bhGQ2'></ul>
                    <tfoot id='bhGQ2'></tfoot>
                    <i id='bhGQ2'><tr id='bhGQ2'><dt id='bhGQ2'><q id='bhGQ2'><span id='bhGQ2'><b id='bhGQ2'><form id='bhGQ2'><ins id='bhGQ2'></ins><ul id='bhGQ2'></ul><sub id='bhGQ2'></sub></form><legend id='bhGQ2'></legend><bdo id='bhGQ2'><pre id='bhGQ2'><center id='bhGQ2'></center></pre></bdo></b><th id='bhGQ2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bhGQ2'><tfoot id='bhGQ2'></tfoot><dl id='bhGQ2'><fieldset id='bhGQ2'></fieldset></dl></div>
                      <tbody id='bhGQ2'></tbody>

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

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

                            主站蜘蛛池模板: 99re热精品视频 | 久久蜜桃av一区二区天堂 | 久久天堂| 亚洲精品视频免费看 | 免费午夜视频在线观看 | 精品久久久久久久 | 欧美日韩亚洲国产 | 久国久产久精永久网页 | 国产精品久久久亚洲 | 91精品国产综合久久久久 | 国产精品一区二区三级 | 国产九九九九 | 久草视频观看 | 黄色国产在线视频 | 性做久久久久久免费观看欧美 | 欧美一级大片免费看 | 涩涩视频在线播放 | 国产美女视频黄a视频免费 国产精品福利视频 | 亚洲精品一区中文字幕乱码 | 一区二区三区在线播放 | 日本不卡一区二区三区在线观看 | 久久精品青青大伊人av | 亚洲精久 | 欧美日韩一区二区在线观看 | 亚洲精品一区中文字幕乱码 | 亚洲国产aⅴ精品 | 天堂在线中文 | 瑞克和莫蒂第五季在线观看 | 中文字幕精品视频 | 久久精品国产免费高清 | 日本一区二区三区免费观看 | 久久久高清 | 亚洲综合视频 | 国产精品99999 | 欧美精品一区二区在线观看 | 欧美日韩综合 | 91人人看 | 国产亚洲黄色片 | 99re视频在线 | 国产99视频精品免费播放照片 | 国产高清在线精品一区二区三区 |