Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Customization: Basic

Dani Mahardhika edited this page Oct 30, 2017 · 15 revisions

Files that you need to see:

  1. dashboard_configurations.xml
  2. License.java

1. Dashboard Configurations

Open dashboard_configurations.xml inside values folder, there will be a lot of options to configure the dashboard.

Application Name

  • app_name → Your application name

Theme

  • use_dark_theme(true) Use dark theme as default theme. (false) Use light theme as default theme.

Muzei Live Wallpaper

  • muzei_art_source_name → Muzei Live Wallpaper art source name.
  • muzei_art_source_desc → Muzei Live Wallpaper art source description.
  • muzei_color → Muzei Live Wallpaper art source color.
  • ic_muzei_logo.png → Muzei art source icon located in drawable-xxxhdpi folder. Replace it with your own icon.

Splash Screen

  • ic_splash_screen.png → Splash screen icon located in mipmap- folder. Replace it with your own icon.

Toolbar

  • toolbar_title → Toolbar title inside wallpapers section.

Wallpapers

  • wallpaper_json → Wallpaper json link. You can see json example here.

NOTE: Your wallpaper format should be *.jpeg or *.jpg.

  • enable_wallpaper_download(true) User able to download wallpaper. (false) User not able to download wallpaper, but user still able to apply wallpaper from dashboard.

Navigation Drawer

  • navigation_view_header → Navigation drawer header image, you can use color hex, drawable or image url.
    • If you don't want to show image just set to empty <string name="navigation_view_header"></string>.
    • If you want to use solid color, you can put color hex <string name="navigation_view_header">#F44336</string>
  • navigation_view_header_title → Text on navigation drawer header. If you don't want to show text just set to empty <string name="navigation_view_header_title"></string>.
  • navigation_view_header_style → Change navigation view image header style. Available choices: normal and mini. Removed

About

  • about_image → About header image, you can use color hex, drawable or image url.
  • If you don't want to show image just set to empty <string name="about_image"></string>.
  • If you want to use solid color, you can put color hex <string name="about_image">#F44336</string>.
  • about_profile_image → Profile image on about header, you can use drawable or image url for profile image.
  • about_title → Text below about_profile_image.
  • about_desc → Text below about_title, support html formatting.
  • about_social_links → Social link inside about, supported url Email, Behance, Dribbble, Facebook, Github, Google+, Instagram, Pinterest, Twitter. The link will be marked as regular website if doesn't listed.

Here an example

<string-array name="about_social_links">
    <item>https://www.instagram.com/_u/yourusername</item>
    <item>https://twitter.com/</item>
    <item>https://www.behance.net/</item>
    <item>https://plus.google.com/u/1/+yourusername</item>
    <item>http://github.com/yourusername</item>
    <item>http://www.yourwebsite.com</item>
    <item>[email protected]</item>
</string-array>
  • show_contributors_dialog → Show contributors dialog, take a look inside values/xml/contributors.xml to add contributor.

Donation

  • enable_donation(true) Enable and show donation in navigation drawer. (false) Disable and hide donation in navigation drawer.

2. License Checker and Donation

NOTE: IF YOU DISABLE LICENSE CHECKER AND DONATION JUST IGNORE THIS.
But if you enable one of them, License Checker, Donation or both of them, you need to open License.java inside licenses package.

  • private static final boolean ENABLE_LICENSE_CHECKER(true) Enable license checker. (false) Disable license checker.
  • private static final byte[] SALT → Random bytes. For easy way you can go to this site www.random.org.
    1. Set generate 20 random strings.
    2. Each string should be 2 character long.
    3. Check numeric digit (0-9).
    4. Choose each string should be unique
    5. Get string

Here an example

private static final byte[] SALT = new byte[] {
    66, 57, 94, 14, 05, 33, 22, 55, 10, 48, 90, 45, 40, 02, 36, 88, 76, 71, 86, 51
};
  • private static final String LICENSE_KEY → You can get your license key from Google Developer Console. Open your app, choose Services & APIs, you will see your license key there.

Here an example

private static final String LICENSE_KEY = "abvd$dsfb1235sdfb125...";

NOTE: You need to setup SALT and LICENSE_KEY if you enable License Checker. You need to setup only LICENSE_KEY if you disable License Checker and enable Donation or Premium Request.

  • private static final InAppBilling[] DONATION_PRODUCT → Donation InApp Product Id.

More info about InApp-Purchase can be found here.