且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试使用全息主题,在Android中不工作

更新时间:2023-12-04 21:41:16

您要使用的Holo主题API低比Android 4.0,这就是为什么你得到的红线,您可以:

you are trying to use the Holo theme for API Low than Android 4.0 that's why you get the red Line you can:

  1. 使用 HoloEverywhere 项目
  2. 挑全息主题必要的资源,你最想要的 ICS源和创建自己的自定义主题/样式 https://github.com/android/platform_frameworks_bas​​e/tree/master/core/res
  3. 您CA也试图用一个自定义的主题为Android阿比7至10 和全息主题阿比11或更高,看到@Alex洛克伍德的 的回答。
  1. Use the HoloEverywhere project
  2. Pick the necessary resources for Holo Theme you most want from the ICS source and create your own custom theme/styles https://github.com/android/platform_frameworks_base/tree/master/core/res
  3. You ca also try to make use a custom theme for Android Api 7 to 10 and the holo theme for Api 11 and higher, see @Alex Lockwood's answer.