Muly
Search…
Customization
This documents outlines some of the common customization interests.

Launcher icon

You can create a new Image Asset with name ic_launcher and overwrite existing files if asked.

Notification icon

You can create a new Image Asset with name ic_notification and overwrite existing files if asked.

Support details

You can update values of support_website, support_email and support_phone in app/src/main/res/values/config.xml file.

Centered profile photo

If you would like to have a centered profile photo on Profile page, you must replace the line partial_profile with partial_profile_alt in the app/src/main/res/layout/fragment_profile.xml file.

Default country

To change the default selected country code on the OTP screen, you have to update value of cc field in PhoneLoginBaseActivity.PhoneLoginActivityViewModel class inside app/src/main/java/<package-name>/activities/PhoneLoginBaseActivity.java file.

Disable news

To disable News tab inside the app, you must set news_enabled to false in app/src/main/res/values/config.xml.

Intro screen

To add/update/remove the slides in intro screen, please refer to the app/src/main/java/<package-name>/activities/FirstLaunchActivity.java file and update as desired.

Languages

To add new or remove existing languages, you need to update desired ones in below files:
  1. 1.
    In the app/src/main/res/values/arrays.xml file, you can update the values of language_codes and language_names arrays.
  2. 2.
    The same values must also be updated under languages key in config/fixtures.php file on server.

Package name

  1. 1.
    To change the package name, you must use the Refactor option in Android Studio and change the package name as desired.
  2. 2.
    You also need to update the same in app/build.gradle and app/src/main/res/layouts/fragment_about.xml file manually.
Before uploading to Play Store, you must create a Privacy Policy and Terms of Use that governs your usage of collected user data on your website and update their links as values of link_privacy_policy and link_terms_of_use in app/src/main/res/values/config.xml file.

Recording duration

The minimum and maximum recording duration can be updated by changing values of MIN_DURATION and MAX_DURATION inside app/main/java/<package-name>/SharedConstants.java file.

Splash screen

To customize the splash screen logo and background image, you may replace the app/src/main/res/drawable-xhdpi/logo_splash.png and app/src/main/res/drawable-xhdpi/bg_splash_image.png files respectively.
If you would like to have GIF animation on splash screen instead of static logo, delete the app/src/main/res/drawable/logo_splash.png file and add your GIF file as app/src/main/res/drawable/logo_splash.gif. Then edit app/src/main/AndroidManifest.xml and replace @style/SplashTheme with @style/SplashThemeWithGif. Finally, you must also replace call to setContentView(R.layout.activity_splash); with setContentView(R.layout.activity_splash_gif);.

Timeline-like articles

If you would like to have news articles show in a vertical, timeline-like layout rather than default horizontal layout, you can find and replace R.layout.item_article with R.layout.item_article_alt in the app/src/main/java/ltd/starthub/muly/fragments/NewsFragment.java file.

Watermark

To change the image overlayed as watermark, you may replace app/src/main/res/drawable/logo_watermark.png file.

Redemption modes

To add/update/remove existing redemption modes i.e., PayPal or UPI, your must update them in app/src/main/res/values/arrays.xml and config/fixtures.php on server.