본문 바로가기

ANDROID

모든 Activity, Widget을 ICS HOLO LIGHT 로..

좋은 라이브러리가 있어서 포스팅해봅니다.


보통, Activity들은 OS 버전에 맞는(Gingerbread, ICS, ... )의 THEME를 따라가는데요. 아무래도 이쁜 테마는 ICS Holo Light 이잖아요, 그걸 버전과는 상관없게 사용하는 라이브러리를 찾게 되었습니다.




Screenshot 3Screenshot 4Screenshot 5




HoloEverywhere v1.4

What is it?

Bringing Holo Theme from Android 4.1 to 2.1 and above.

How to use?

  • You should clone git repo, init and update submodules:
git clone git://github.com/ChristopheVersieux/HoloEverywhere.git HoloEverywhere
cd HoloEverywhere
git submodule --init --recursive update

You also may use git GUI programs

  • Import HoloEverywhere from library folder and ActionBarSherlock from contrib/ActionBarSherlock/library folder into Eclipse

  • Add HoloEverywhere project 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);



링크 : https://github.com/ChristopheVersieux/HoloEverywhere