1
0
Fork 0
master
xiaoyu 2021-01-22 10:48:24 +08:00
parent 57ca7b3d40
commit eb4a34f4b7
5 changed files with 32 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.finogeeks.mop.demo; package com.finogeeks.mop.demo;
import android.graphics.Color;
import android.widget.Toast; import android.widget.Toast;
import androidx.multidex.MultiDexApplication; import androidx.multidex.MultiDexApplication;
@ -25,6 +26,37 @@ public class MopApplication extends MultiDexApplication {
FinAppConfig.UIConfig uiConfig = new FinAppConfig.UIConfig(); FinAppConfig.UIConfig uiConfig = new FinAppConfig.UIConfig();
uiConfig.setHideNavigationBarCloseButton(true); 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() FinAppConfig config = new FinAppConfig.Builder()
.setSdkKey(BuildConfig.APP_KEY) .setSdkKey(BuildConfig.APP_KEY)
.setSdkSecret(BuildConfig.APP_SECRET) .setSdkSecret(BuildConfig.APP_SECRET)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB