johannilsson / android-actionbar

DEPRECATED Android Action Bar Implementation
1.31k stars 564 forks source link

Importing Library in Android studio #82

Closed Jad188 closed 10 years ago

Jad188 commented 10 years ago

I have created a new android project. I want to have a action bar at the top so I downloaded the Action Bar at this link : https://github.com/johannilsson/android-actionbar?utm_source=androidweekly&utm_medium=toolbox

The description says

The action bar component is an Library Project. This means that there's no need to copy-paste resources into your own project, simply add the action bar component as a reference to any project.

but i can't understand how to do it. i have the latest version of android studio. please help me

johannilsson commented 10 years ago

Your best option is to add it as it's own Module.

Jad188 commented 10 years ago

thanks a lot

Jad188 commented 10 years ago

i need to import as module all or only the folder actionbar ?

johannilsson commented 10 years ago

Best would be to refer to the documentation for AndroidStudio and gradle for this. My guess though is that the actionbar directory should be enough.

johannilsson commented 10 years ago

Also, I strongly encourage you to look at the actionbar in the official support library or sherlock that both have the same API as the native actionbar on Android.