代码之家  ›  专栏  ›  技术社区  ›  andy_spoo

如何在背景不对焦(模糊)的情况下获得Alertdialog

  •  1
  • andy_spoo  · 技术社区  · 16 年前

    我知道怎么做 AlertDialog 各种各样的。但是,我怎样才能做出一个决定呢 对话框 有背景的 模糊的

    onFocus 命令等等,我不是这个意思。

    举个例子,如果你按下手机上的电源按钮,就会弹出一个列表,背景就会消失 模糊的

    1 回复  |  直到 16 年前
        1
  •  1
  •   Pentium10    16 年前

    这不是AlertDialog本身,而是一个以Dialog为主题的简单活动。

    android:theme="@android:style/Theme.Dialog"

    <activity android:name=".utils.TextEntryActivity"
                android:label="Type in the value" android:theme="@android:style/Theme.Dialog" />
    
    推荐文章