<legend id='p08TY'><style id='p08TY'><dir id='p08TY'><q id='p08TY'></q></dir></style></legend>

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

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

        在android中显示来自后台服务的弹出窗口

        时间:2023-08-30

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

                <tbody id='8euGB'></tbody>

                <small id='8euGB'></small><noframes id='8euGB'>

              1. <legend id='8euGB'><style id='8euGB'><dir id='8euGB'><q id='8euGB'></q></dir></style></legend>
                • <bdo id='8euGB'></bdo><ul id='8euGB'></ul>
                  本文介绍了在android中显示来自后台服务的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  您好,在 android 中可以从后台运行服务显示弹出对话框吗?答案是肯定的,而不是我该怎么做

                  Hi it is possible in android to show pop-up dialog from background running service? and answer is positive than how can i do that

                  推荐答案

                  有几个选项.您可以使用主题并使活动的外观和行为类似于对话框(如 <activity> 的 android:theme 属性设置为 @android:style,使 Android Activity 看起来像对话框">this question)/Theme.Dialog 或清单中的自定义主题.

                  There are several options. You can use a theme and make an activity look and behave like a dialog (as in this question) by setting the android:theme attribute of your <activity> to @android:style/Theme.Dialog or a customized theme in your manifest.

                  或者,您可以通过将主题设置为 @android:style/Theme.Translucent.NoTitleBar 创建半透明活动,然后从活动中启动常规对话框.正如对问题答案之一的评论所建议的那样,在这种情况下,只要确保在对话框被关闭时 finish() 半透明活动.

                  Alternatively, you could create a translucent activity by setting the theme to @android:style/Theme.Translucent.NoTitleBar and then launch a regular dialog from the activity. As the comments on one of the answers to the question advise, in this case just make sure to finish() the translucent activity whenever the dialog is dismissed.

                  这篇关于在android中显示来自后台服务的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:将 android 活动定义为带有浅色主题的对话框 下一篇:对话框android上的轮子选择器

                  相关文章

                  最新文章

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

                    <bdo id='Que6V'></bdo><ul id='Que6V'></ul>
                • <tfoot id='Que6V'></tfoot>

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

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