diff --git a/app/src/main/java/com/finogeeks/mop/demo/MopApplication.java b/app/src/main/java/com/finogeeks/mop/demo/MopApplication.java index f580c6d..23e0898 100644 --- a/app/src/main/java/com/finogeeks/mop/demo/MopApplication.java +++ b/app/src/main/java/com/finogeeks/mop/demo/MopApplication.java @@ -1,5 +1,6 @@ package com.finogeeks.mop.demo; +import android.graphics.Color; import android.widget.Toast; import androidx.multidex.MultiDexApplication; @@ -25,6 +26,37 @@ public class MopApplication extends MultiDexApplication { FinAppConfig.UIConfig uiConfig = new FinAppConfig.UIConfig(); uiConfig.setHideNavigationBarCloseButton(true); + uiConfig.setHideBackHome(true); + uiConfig.setHideForwardMenu(true); + uiConfig.setHideFeedbackAndComplaints(true); + uiConfig.setMoreMenuStyle(FinAppConfig.UIConfig.MORE_MENU_NORMAL); + + FinAppConfig.UIConfig.CapsuleConfig capsuleConfig = new FinAppConfig.UIConfig.CapsuleConfig(); + capsuleConfig.capsuleWidth = 86f; + capsuleConfig.capsuleHeight = 31f; + capsuleConfig.capsuleRightMargin = 15f; + capsuleConfig.capsuleCornerRadius = 15.5f; + capsuleConfig.capsuleBorderWidth = 0.5f; + capsuleConfig.capsuleBgLightColor = Color.BLACK; + capsuleConfig.capsuleBgDarkColor = Color.WHITE; + capsuleConfig.capsuleBorderLightColor = Color.parseColor("#88ffffff"); + capsuleConfig.capsuleBorderDarkColor = Color.parseColor("#a5a9b4"); + + capsuleConfig.moreLightImage = R.mipmap.more_light; + capsuleConfig.moreDarkImage = R.mipmap.more_dark; + capsuleConfig.moreBtnWidth = 25f; + capsuleConfig.moreBtnLeftMargin = 11f; + + capsuleConfig.closeLightImage = R.mipmap.close_light; + capsuleConfig.closeDarkImage = R.mipmap.close_dark; + capsuleConfig.closeBtnWidth = 25f; + capsuleConfig.closeBtnLeftMargin = 9f; + + capsuleConfig.capsuleDividerLightColor = Color.parseColor("#88ffffff"); + capsuleConfig.capsuleDividerDarkColor = Color.parseColor("#a5a9b4"); + + uiConfig.setCapsuleConfig(capsuleConfig); + FinAppConfig config = new FinAppConfig.Builder() .setSdkKey(BuildConfig.APP_KEY) .setSdkSecret(BuildConfig.APP_SECRET) diff --git a/app/src/main/res/mipmap-xxhdpi/close_dark.png b/app/src/main/res/mipmap-xxhdpi/close_dark.png new file mode 100644 index 0000000..ac58b0e Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/close_dark.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/close_light.png b/app/src/main/res/mipmap-xxhdpi/close_light.png new file mode 100644 index 0000000..b32fab3 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/close_light.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/more_dark.png b/app/src/main/res/mipmap-xxhdpi/more_dark.png new file mode 100644 index 0000000..8269d8f Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/more_dark.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/more_light.png b/app/src/main/res/mipmap-xxhdpi/more_light.png new file mode 100644 index 0000000..c85b8aa Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/more_light.png differ