Setting a holographic theme in Honeycomb

I saw this post about using new holographic themes on Honeycomb: Change theme to suit Android version

In my application, I have minSdkVersion = "11" and targetSdkVersion = "11". By default, I get a solid black background with light text. If I explicitly installed Theme.Holo in any application or activity, I still get a solid black color using this:

Android: theme = "@ android: style /Theme.Holo"

However, I think Theme.Holo uses the gradient background that I see in the HoneycombGallery example, for example:

  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;
  }

If this is a real holographic theme, how do I get it?

+5
1

.

+12

All Articles