我正在尝试将 Activity 主题化为 AlertDialog
。我面临的问题是我无法找到一种方法将两个按钮放在窗口底部,这两个按钮看起来像 AlertDialog
我已经将该行添加到 list 中的 Activity 中(我正在使用 Sherlock 库):
android:theme="@style/Theme.Sherlock.Dialog"
Activity 看起来非常像 Dialog,但我找不到要在按钮上设置的主题。我能做什么?
最佳答案
好吧,如果您正在为 HC/ICS 开发应用程序,而没有 Sherlock,答案就在这里: https://gist.github.com/2348305
只是使用主题
style="?android:attr/buttonBarStyle"
容器,
style="?android:attr/buttonBarButtonStyle"
按钮
和
android:divider="?android:attr/dividerHorizontal"
android:showDividers="middle"
根布局
关于android - 对话主题 Activity : positive and negative buttons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11253345/