I saw this post about using the new holographic themes on Honeycomb: Change theme according to android version
In my app, I have minSdkVersion="11" and targetSdkVersion="11". By default, I get a solid black background with light text. If I explicitly set Theme.Holo, on either application or activity, I still get the solid black, using this:
android:theme="@android:style/Theme.Holo"
However, I think Theme.Holo uses the gradient background I see in the HoneycombGallery example, set like this:
case R.id.toggleTheme:
if (mThemeId == android.R.s开发者_运维百科tyle.Theme_Holo) {
mThemeId = android.R.style.Theme_Holo_Light;
} else {
mThemeId = android.R.style.Theme_Holo;
}
If that's the real holographic theme, how do I get it?
You will get the fancy background only when hardware acceleration is turned on.
精彩评论