Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Android Design Pack provided by Google with Eclipse

I am trying to use these cool set of add-ins that Google provides in the link below

http://developer.android.com/design/downloads/index.html

But I cannot understand how to integrate it with eclipse so that they are available directly as a drag and drop. Do you have any idea how to use it?

like image 699
Royston Pinto Avatar asked Nov 17 '25 10:11

Royston Pinto


1 Answers

You cannot integrate into eclipse, because it only allows valid Views "linked" to your project (directly or from a library). These are just sources to make drawables. You have to create your own drawables from it. But if you're interested in holo theme, you should check the sources of android (API 11+). If you've installed, you can find it at /platforms/android-11/data/res/ . Maybe you find useful the HoloEverywhere project. But you can use the Action Bar Icon Pack, you have to copy the appropriate drawables to your project and when you drag an ImageView into the layout editor, you can choose the source from a dialog or you can enter path in xml.

EDIT Forgot to mention, there is a very great online tool which will generate holo drawables with custom colors here.

like image 174
Tamás Cseh Avatar answered Nov 20 '25 01:11

Tamás Cseh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!