Bringing Holo Theme from Android 4.1 to 2.1 and above.
How to use? (Maven)
- You should clone git stable branch, init and update submodules:
git clone --branch stable git://github.com/Prototik/HoloEverywhere.git HoloEverywhere
cd HoloEverywhere
git submodule update --init --recursive
Git will be swear on detached HEAD state, ignore it.
You also may use git GUI programs
-
Replace
contrib/ActionBarSherlock/library/libs/android-support-v4.jarbysupport-library/android-support-v4-r12.jar -
Import ActionBarSherlock from
contrib/ActionBarSherlock/libraryfolder -
Import HoloEverywhere from
libraryfolder -
Add
HoloEverywhere Libraryproject as library into your project (Properties/Android/Library/Add) -
Extend the Activities from
org.holoeverywhere.app.***Activity
Example:
import org.holoeverywhere.app.ListActivity;
public class MainActivity extends ListActivity { ...
Also you should cast view to with the same name from package org.holoeverywhere.widget, if possible. This, for example, ProgressBar and Spinner:
import org.holoeverywhere.widget.ProgressBar;
ProgressBar bar = (ProgressBar) findViewById(R.id.progress_bar);
Sergey:
Christophe:
LGPLv3, full text of license see here












