-
Notifications
You must be signed in to change notification settings - Fork 130
Setup
First you need to download sample project from here.
Copy wallpaperboard-sample-master.zip
to your Android Studio Project folder, then extract it. After that you will see wallpaperboard-sample-master
folder, rename it to your project name. You may want to delete wallpaperboard-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 MyProjectName
.
Take a look at Project Navigation on left side of Android Studio, expand app -> expand java -> expand com.dm.wallpaper.board.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.mypackage.name`. Right click on `com` -> new -> package -> type `mypackage`. Right click on `mypackage` -> new -> package -> type `name`. 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.dm.wallpaper.board.sample
package.
Change package="com.dm.wallpaper.board.sample"
to your package name, for example package="com.mypackage.name"
. Still inside AndroidManifest.xml
, scroll to bottom, take a look on image below, make sure B is same to A.
Open module:app build.gradle
, change applicationId "com.dm.wallpaper.board.sample"
to your package name, for example applicationId "com.mypackage.name"
. Open Edit -> Find -> Replace in Path. Text to find import com.dm.wallpaper.board.sample.R;
. Replace with import com.your.package.name.R;
, example import com.mypackage.name.R;
. Click Find then choose All Files.
Sync Project with Gradle Files
DONE
- Setup
- Customization: Basic → Necessary
- Customization: Advanced → Optional
- Dashboard Configuration → Optional