gpt4 book ai didi

android - 使用 ActionBarSherlock/HoloEverywhere Light 的对话框

转载 作者:太空狗 更新时间:2023-10-29 14:27:45 26 4
gpt4 key购买 nike

我正在使用 Christophe Versiuex 的 HoloEverywhere库项目和 Theme.HoloEverywhereLight.Sherlock 主题。

系统对话框 - 复制所有文本、日期选择器对话框等 - 都使用白色文本作为窗口标题,而不是浅蓝色。如果运行演示,您可以看到这一点。

我试过使用 android:windowTitleStyle 对它们进行样式设置,但没有成功。是否有人使用它并找到了解决方法?

谢谢。

最佳答案

标题文字是hard to change .您可以更改标题的背景颜色,使其变得可读,并将其他所有内容保留在浅色主题中:

<style name="Theme.MyTheme" 
parent="Theme.HoloEverywhereLight.DarkActionBar.Sherlock">
<item name="android:alertDialogStyle">@style/AlertDialogHoloMix</item>
</style>

<style name="AlertDialogHoloMix"
parent="AlertDialogHoloLight">
<item name="android:topDark">@drawable/dialog_top_holo_dark</item>
</style>

我在 Gingerbread 和 ICS 上对此进行了测试。

关于android - 使用 ActionBarSherlock/HoloEverywhere Light 的对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10330979/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com