Search code examples
androidandroid-holo-everywhere

why do I have to extend S***Activity with HoloEverywhere?


HoloEverywhere seems to work without extending Sherlock classes. Why do I have to change the imports? I've just added: android:theme="@style/Holo.Theme.Sherlock" in the manifest tag and the theme seems to work on the emulator (Android 2.2).

Instructions say:

Extend the Activities from com.WazaBe.HoloEverywhere.sherlock.S***Activity

My Question

  1. Is it a must or an alternative way of applying Holo theme individually?

  2. Does extending the activity from com.WazaBe.HoloEverywhere.sherlock.S***Activity also add ActionbarSherlock to the Activity?

Thanks!


Solution

  • If you want a complete Holo theme port to pre-honeycomb devices, you must extend these classes. If not, some simple controls like EditText or similars will be displayed with holo theme, but others more complex like Dialogs will not be holo-styled.