Search code examples
androidandroid-appcompatandroid-theme

AppCompat Force Holo Theme


I am creating an app and have discovered the Holo Dark theme (I am using it for my dialog). After looking at it, I would like to change my entire app to look like the Holo theme. The problem is, on run I get an error that tells me that I have to use an AppCompat theme, but I cannot find an AppCombat.Holo theme! Does anyone out there know how to force AppCompat to use a Holo theme?


Solution

  • AppCompatActivity cannot use a native Holo theme. Your choices are:

    1. Switch to Activity, remove appcompat-v7 from your project, and use a theme based off of Theme.Holo.

    2. Stick with the regular Theme.AppCompat family of themes.

    3. Figure out how to backport the look of Holo onto your own custom theme inheriting from Theme.AppCompat. This may not be possible. If it is, it will not be easy. I'd estimate the level of effort as being best measured in developer-months.