我看到这篇关于在 Honeycomb 上使用新的全息主题的帖子: Change theme based on android version
在我的应用程序中,我有 minSdkVersion="11" 和 targetSdkVersion="11"。默认情况下,我得到带有浅色文本的纯黑色背景。如果我在应用程序或活动上明确设置 Theme.Holo,我仍然会得到纯黑色,使用这个:
android:theme="@android:style/Theme.Holo"
但是,我认为 Theme.Holo 使用了我在 HoneycombGallery 示例中看到的渐变背景,设置如下:
case R.id.toggleTheme:
if (mThemeId == android.R.style.Theme_Holo) {
mThemeId = android.R.style.Theme_Holo_Light;
} else {
mThemeId = android.R.style.Theme_Holo;
}
如果那是真正的全息主题,我该如何获得它?