-
Notifications
You must be signed in to change notification settings - Fork 143
Setup
- Latest version of Android Studio
- Android-SDK Build tools 27
- API 26 SDK Platform
- Latest version of Android Support Library
- Java SE Development Kit 8
Take a look on this screenshot for requirements
First you need to download sample project from here.
Copy candybar-sample-master.zip
to your Android Studio Project folder, then extract it. After that you will see candybar-sample-master
folder, rename it to your icon pack project name. You may want to delete candybar-sample-master.zip
.
Open Android Studio, choose File - New - Import project or Import project (Eclipse ADT, Gradle, etc.). Choose your project folder, from example on image above my project name is MyIconPack
.
Take a look at Project Navigation on left side of Android Studio, expand app -> expand java -> expand com.material.dashboard.candybar.sample
.
On top side of Project Navigation, choose Show Options Menu, uncheck Compact Empty Middle Packages.
For example I want to change package name to com.daeva112.iconpack.kendra.free
. Right click on com
-> new -> package -> type daeva112
. Right click on daeva112
-> new -> package -> type iconpack
. Right click on iconpack
-> new -> package -> type kendra
. Right click on kendra
-> new -> package -> type free
. Now it should looks like image below.
Select activities
, applications
, licenses
, and services
package (ctrl + left click). Drag to free
package, choose Refactor. Now it should looks like image below.
Check Compact Empty Middle Packages and delete com.material.dashboard.candybar.sample
package.
Change package="com.material.dashboard.candybar.sample"
to your package name, for example package="com.daeva112.iconpack.kendra.free"
. Still inside AndroidManifest.xml
, scroll to bottom, take a look on image below, make sure B is same to A.
Change applicationId "com.material.dashboard.candybar.sample"
to your package name, for example applicationId "com.daeva112.iconpack.kendra.free"
. Open Edit -> Find -> Replace in Path. Text to find import com.material.dashboard.candybar.sample.R;
. Replace with import com.your.package.name.R;
, example import com.daeva112.iconpack.kendra.free.R;
. Click Find then choose All Files.
Sync Project with Gradle Files
DONE, you are ready to use CandyBar in your Icon Pack
- Setup
- Customization: Basic → Necessary
- Customization: Advanced → Optional
- Dashboard Configuration → Optional