<tfoot id='hnEhu'></tfoot>

    • <bdo id='hnEhu'></bdo><ul id='hnEhu'></ul>

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

      2. 何时使用 Android PopupWindow vs Dialog

        时间:2023-08-30
          <bdo id='gRQYP'></bdo><ul id='gRQYP'></ul>
            <tbody id='gRQYP'></tbody>
              <legend id='gRQYP'><style id='gRQYP'><dir id='gRQYP'><q id='gRQYP'></q></dir></style></legend>

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

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

                1. 本文介绍了何时使用 Android PopupWindow vs Dialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我不清楚何时使用 PopupWindow 与 Dialog.任何见解将不胜感激.谢谢.

                  I'm unclear about when to use PopupWindow vs Dialog. Any insight would be much appreciated. Thanks.

                  推荐答案

                  它们都使用 addView() 方法以及各种 windowManager 方法.两者在这方面是相似的.

                  They both use the addView() method along with various windowManager methods. The two are similar in that regard.

                  对话框似乎带有更多用于交互的内置功能,例如基类中已经包含的处理程序和按钮,而 PopupWindows 带有更多用于在屏幕上定位它们的内置方法.

                  Dialogs seem to come with more built-in features for interaction, such as handlers and buttons already included in the base class, while PopupWindows come with more built-in methods for positioning them about the screen.

                  我认为它们中的每一个都可以做与另一个完全相同的事情,但是在两者之间进行选择对于程序员来说是一个方便的问题,即你想如何使用 Object.我不是计算机科学博士,但根据我在各自的类定义中看到的情况,我认为两者的处理时间没有显着差异.

                  I think that each of them can do exactly the same as the other, but choosing between the two will be a matter of convenience to the programmer with regards to how you want to use the Object. I'm not a phD in computer science, but I do not think there is a significant difference in processing time between the two based on what I saw in their respective class definitions.

                  我的建议:如果您想更好地控制视图在显示屏上的显示位置,请使用 PopupWindow.如果您想在视图之间添加更多控制和反馈,请使用对话框.如果您像我一样想要对所有内容进行主控制,我建议使用 PopupWindow,因为它具有较少的用户明显的默认方法可以覆盖.

                  My advice: If you want to have greater control over where your View appears on the display, use a PopupWindow. If you want to add more control and feedback between your View then use a Dialog. If you, like me, want master control over everything, I would suggest a PopupWindow since it has fewer user-evident default methods to override.

                  这篇关于何时使用 Android PopupWindow vs Dialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Android:触摸时关闭对话框窗口 下一篇:如何在 DialogFragment 中显示现有的 ListFragment

                  相关文章

                  最新文章

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

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

                    <tfoot id='dG0bI'></tfoot>
                      <legend id='dG0bI'><style id='dG0bI'><dir id='dG0bI'><q id='dG0bI'></q></dir></style></legend>
                        <bdo id='dG0bI'></bdo><ul id='dG0bI'></ul>