This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Dashboard Configuration
Dani Mahardhika edited this page Nov 18, 2017
·
7 revisions
This configuration is optional, but for future updates I think I'm going to add new configurations here.
Basically it provides some options, but it must be configured programmatically. Dashboard configuration available in release 1.7.0-b1 and above.
- Open
WallpaperBoard.java
insideapps\java\com.yourpackagename\applications\
then you will see something like this,
import android.support.annotation.NonNull;
import com.dm.wallpaper.board.applications.WallpaperBoardApplication;
import com.dm.wallpaper.board.applications.WallpaperBoardConfiguration;
public class WallpaperBoard extends WallpaperBoardApplication {
@NonNull
@Override
public WallpaperBoardConfiguration onInit() {
WallpaperBoardConfiguration configuration = new WallpaperBoardConfiguration();
/* Add your configurations here
*/
return configuration;
}
}
- At the moment you are using default generated configuration, you can customize it based on your needs. These are available customization,
-
setNavigationIcon(WallpaperBoardConfiguration.NavigationIcon)
→ Change navigation icon (top left) -
setNavigationViewHeaderStyle(WallpaperBoardConfiguration.NavigationViewHeaderStyle)
→ Change navigation drawer header style -
setWallpapersGridStyle(WallpaperBoardConfiguration.GridStyle)
→ Change wallpapers grid style, card of flat. -
setShadowEnabled(boolean)
→ Enable or disable shadow -
setDashboardThemingEnabled(boolean)
→ Enable or disable dashboard theme, if disabled user not be able to change dashboard theme from settings. -
setCrashReportEnabled(boolean)
→ Enable or disable crash report -
setJsonStructure(JsonStructure)
→ Use different json structure for cloud wallpapers, read here for more info. -
setLatestWallpapersDisplayMax(int)
→ Set value for wallpapers count displayed in latest section -
setHighQualityPreviewEnabled(boolean)
→ Set default value for wallpaper preview quality, it can be changed from settings, default is low quality. -
setAppLogoColor(int)
→ Set app name text color on search bar -
setCropWallpaperEnabledByDefault(boolean)
→ Set default value for crop wallpaper, it can be changed from wallpaper settings, default is false.
- You can add the configuration like this
import android.support.annotation.NonNull;
import com.dm.wallpaper.board.applications.WallpaperBoardApplication;
import com.dm.wallpaper.board.applications.WallpaperBoardConfiguration;
public class WallpaperBoard extends WallpaperBoardApplication {
@NonNull
@Override
public WallpaperBoardConfiguration onInit() {
WallpaperBoardConfiguration configuration = new WallpaperBoardConfiguration();
/* Add your configurations here
*/
configuration.setNavigationIcon(WallpaperBoardConfiguration.NavigationIcon.STYLE_4);
configuration.setNavigationViewHeaderStyle(WallpaperBoardConfiguration.NavigationViewHeader.MINI);
configuration.setWallpapersGridStyle(WallpaperBoardConfiguration.GridStyle.FLAT);
configuration.setDashboardThemingEnabled(false);
return configuration;
}
}
- Setup
- Customization: Basic → Necessary
- Customization: Advanced → Optional
- Dashboard Configuration → Optional