Channel/Android/mlgtgame/AndroidManifest.xml
New file @@ -0,0 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> <!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN--> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools"> <application> <activity android:name="com.secondworld.sdk.SplashActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.secondworld.sdk.GameActivity" android:theme="@style/UnityThemeSelector"> <meta-data android:name="unityplayer.UnityActivity" android:value="true" /> </activity> </application> </manifest> Channel/Android/mlgtgame/debug/libs/library-debug-mlgtgame.aarBinary files differ
Channel/Android/mlgtgame/deps.gradle
New file @@ -0,0 +1,3 @@ dependencies { } Channel/Android/mlgtgame/release/libs/library-release-mlgtgame.aarBinary files differ
SdkProject/build.gradle
@@ -8,7 +8,7 @@ } dependencies { classpath "com.android.tools.build:gradle:3.6.4" classpath "com.google.gms:google-services:4.3.3" classpath "com.google.gms:google-services:4.3.15" // NOTE: Do not place your application dependencies here; they belong // in the individual module deps.gradle files } SdkProject/channel/mlgtgame/AndroidManifest.xml
New file @@ -0,0 +1,53 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.secondworld.sdk"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- GooglePay--> <uses-permission android:name="com.android.vending.BILLING" /> <application android:name=".GTGameApp" android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" tools:replace="android:name"> <provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/milu_provider_paths" /> </provider> <receiver android:name="com.adjust.sdk.AdjustReferrerReceiver" android:exported="true" android:permission="android.permission.INSTALL_PACKAGES"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> <!-- 手动替换成自己的游戏参数 --> <meta-data android:name="MAIY_APPID" android:value="11368" /> <meta-data android:name="MAIY_GAMEID" android:value="20003" /> <meta-data android:name="MAIY_AGENT" android:value="zqs2" /> </application> </manifest> SdkProject/channel/mlgtgame/config.properties
New file @@ -0,0 +1 @@ PLUGINS= SdkProject/channel/mlgtgame/deps.gradle
New file @@ -0,0 +1,3 @@ dependencies { } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/GTGameApp.java
New file @@ -0,0 +1,125 @@ package com.secondworld.sdk; import android.app.Activity; import android.app.Application; import android.os.Bundle; import androidx.annotation.Nullable; import com.adjust.sdk.AdjustAttribution; import com.adjust.sdk.AdjustEventFailure; import com.adjust.sdk.OnAttributionChangedListener; import com.adjust.sdk.OnEventTrackingFailedListener; import com.secondworld.sdk.utils.LogUtil; import com.adjust.sdk.Adjust; import com.adjust.sdk.AdjustConfig; import com.adjust.sdk.AdjustEventSuccess; import com.adjust.sdk.LogLevel; import com.adjust.sdk.OnEventTrackingSucceededListener; import org.json.JSONException; import org.json.JSONObject; public class GTGameApp extends Application { @Override public void onCreate() { super.onCreate(); initAdust(); GameAppProxy.create(this,new GTGamePlatform()); registerProxy(); } protected void registerProxy() { //主界面代理注册 GameActivity.registerProxy(GTGameMain.class); //AppsFlyerUtil.init(); } /** * 初始化adjust */ private void initAdust() { String appToken = getResources().getString(R.string.adjust_app_token); String environment = AdjustConfig.ENVIRONMENT_PRODUCTION; AdjustConfig config = new AdjustConfig(this, appToken, environment); Adjust.onCreate(config); config.setLogLevel(LogLevel.WARN); registerActivityLifecycleCallbacks(new AdjustLifecycleCallbacks()); // Set event success tracking delegate. config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener() { @Override public void onFinishedEventTrackingSucceeded(AdjustEventSuccess eventSuccessResponseData) { // ... LogUtil.i("Adjust-mfp", "事件上传成功 " + eventSuccessResponseData.toString()); } }); // Set event failure tracking delegate. config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() { @Override public void onFinishedEventTrackingFailed(AdjustEventFailure eventFailureResponseData) { // ... LogUtil.i("Adjust-mfp", "事件上传失败 " + eventFailureResponseData.message); } }); // 归因回传 config.setOnAttributionChangedListener(new OnAttributionChangedListener() { @Override public void onAttributionChanged(AdjustAttribution attribution) { JSONObject fbInstallReferrerJSONObject = extractFBInstallReferrerJSON(attribution); } }); } private static final class AdjustLifecycleCallbacks implements ActivityLifecycleCallbacks { @Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) { } @Override public void onActivityStarted(Activity activity) { } @Override public void onActivityResumed(Activity activity) { Adjust.onResume(); } @Override public void onActivityPaused(Activity activity) { Adjust.onPause(); } @Override public void onActivityStopped(Activity activity) { } @Override public void onActivitySaveInstanceState(Activity activity, Bundle outState) { } @Override public void onActivityDestroyed(Activity activity) { } } @Nullable JSONObject extractFBInstallReferrerJSON(AdjustAttribution adjustAttribution) { try { return new JSONObject(adjustAttribution.fbInstallReferrer); } catch (JSONException e) { LogUtil.i("example", e.getMessage()); } return null; } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/GTGameMain.java
New file @@ -0,0 +1,40 @@ package com.secondworld.sdk; import android.app.Activity; import androidx.annotation.NonNull; public class GTGameMain extends GameActivityProxy { @Override public void onCreate(Activity activity) { super.onCreate(activity); // 初始化SDK MySdkMgr.I.OnCreate(activity); } @Override public void onResume() { super.onResume(); MySdkMgr.I.onResume(); } @Override public void onStop() { super.onPause(); MySdkMgr.I.onStop(); } @Override public void onDestroy() { super.onDestroy(); MySdkMgr.I.onDestroy(); } @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); //SdkManager.getInstance().requestPermission(requestCode, permissions, grantResults); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/GTGamePlatform.java
New file @@ -0,0 +1,9 @@ package com.secondworld.sdk; public class GTGamePlatform extends PlatformDiff { @Override public String platformName() { return "mlgtgame"; } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/MySdkMgr.java
New file @@ -0,0 +1,155 @@ package com.secondworld.sdk; import android.app.Activity; import android.widget.Toast; import com.maiyou.maiysdk.Manager.MaiySDKManager; import com.maiyou.maiysdk.interfaces.LoginErrorMsg; import com.maiyou.maiysdk.interfaces.LogincallBack; import com.maiyou.maiysdk.interfaces.OnLoginListener; import com.maiyou.maiysdk.interfaces.OnPaymentListener; import com.maiyou.maiysdk.interfaces.OnReportedDataListener; import com.maiyou.maiysdk.interfaces.PaymentCallbackInfo; import com.maiyou.maiysdk.interfaces.PaymentErrorMsg; import com.maiyou.maiysdk.interfaces.PersonalCenterCallBack; import com.maiyou.maiysdk.interfaces.ReporteErrorMsg; import com.maiyou.maiysdk.interfaces.ReportedDataCallback; import com.maiyou.maiysdk.util.MD5; import com.maiyou.maiysdk.util.ResourceUtil; import com.secondworld.sdk.utils.CodeA2U; import com.secondworld.sdk.utils.LogUtil; import org.json.JSONException; import org.json.JSONObject; public class MySdkMgr extends PlatformSdkMgr { private static final String TAG = MySdkMgr.class.getSimpleName(); public static MySdkMgr I = new MySdkMgr(); MaiySDKManager miluSDKManager; public void init(Activity activity) { sdkInitState = SdkInitState.LOADING; } public void OnCreate(Activity activity) { sdkInitState = SdkInitState.LOADING; MaiySDKManager.init(activity); miluSDKManager = MaiySDKManager.getInstance(activity); } public void login() { switch (sdkInitState) { case FAILED: case UNKNOWN: { if (GTGameMain.I.activity != null) init(GTGameMain.I.activity); Toast.makeText(GameAppProxy.app, "Initializing", Toast.LENGTH_LONG).show(); break; } case SUCCEED: { //sdk初始化后调用登陆接口 miluSDKManager.showLogin(new OnLoginListener() { @Override public void loginSuccess(LogincallBack logincallback) { LogUtil.i(TAG, "登陆成功进入游戏回传参数:" + "--altUsername=" + logincallback.altUsername + "--logintime=" + logincallback.logintime + "--sign=" + logincallback.sign); //请游戏对接方在登陆成功后调用此方法 LogOutInitialize(); String account = logincallback.altUsername + "@9998"; //quick有渠道之分,避免账号重复,咪噜只有唯一渠道此处写死@9998是为了游戏保持一致 try { args.clear(); JSONObject jinfo = new JSONObject(); jinfo.put("account", account); jinfo.put("userName", logincallback.altUsername); jinfo.put("token", logincallback.sign); args.put("info", jinfo); UnityMsgHandler.sendMessageToUnity(CodeA2U.PlatformLoginOk, args); } catch (JSONException e) { throw new RuntimeException(e); } } @Override public void loginError(LoginErrorMsg errorMsg) { } }); break; } case LOADING: { Toast.makeText(GameAppProxy.app, "Initializing", Toast.LENGTH_LONG).show(); break; } } } public void SetRoleDate(String roleID, String roleName, String level, String serverID, String serverName) { //上报角色信息 miluSDKManager.setRoleDate(roleID, roleName, level, serverID, serverName, new OnReportedDataListener() { @Override public void reporteSuccess(ReportedDataCallback reportedDataCallback) { LogUtil.i(TAG, reportedDataCallback.message); } @Override public void reporteError(ReporteErrorMsg reporteErrorMsg) { LogUtil.i(TAG, reporteErrorMsg.message); } }); } private void LogOutInitialize() { //退出登录的回调监听 miluSDKManager.logout(new PersonalCenterCallBack() { @Override public void getCallBack() { //请在此处做游戏退出到登录页面的操作 //注销成功,需要把游戏切换回登陆前的场景,并重新弹出登录框等操作 UnityMsgHandler.sendMessageToUnity(CodeA2U.PlatformLogoutOk); } }); } public void pay(String roleID, String money, String serverID, String productName, String productDesc, String Extra) { miluSDKManager.showPay(GTGameMain.I.activity, roleID, money, serverID, productName, productDesc, Extra, new OnPaymentListener() { @Override public void paymentSuccess(PaymentCallbackInfo callbackInfo) { //H5支付回调不准,请自行查询 } @Override public void paymentError(PaymentErrorMsg errorMsg) { //H5支付回调不准,请自行查询 } }); } public void onResume() { //显示悬浮窗 if (null != miluSDKManager) { miluSDKManager.showFloatball(); } } public void onStop() { //隐藏悬浮窗 if (null != miluSDKManager) { miluSDKManager.hideFloatball(); } } public void onDestroy() { //退出登录、退出游戏调用 miluSDKManager.recycle(); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdCreateRole.java
New file @@ -0,0 +1,24 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.MySdkMgr; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdCreateRole implements ICommand { @Override public int getCode() { return CodeU2A.CreateRole; } @Override public void process(JSONObject json) throws Exception { MySdkMgr.I.SetRoleDate( json.getString("roleID"), json.getString("roleName"), json.getString("level"), json.getString("sid"), json.getString("serverName") ); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdOpenDashboard.java
New file @@ -0,0 +1,17 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdOpenDashboard implements ICommand{ @Override public int getCode() { return CodeU2A.OpenDashboard; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdPayFinished.java
New file @@ -0,0 +1,16 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdPayFinished implements ICommand{ @Override public int getCode() { return CodeU2A.PayFinished; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdPlatformInit.java
New file @@ -0,0 +1,17 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdPlatformInit implements ICommand { @Override public int getCode() { return CodeU2A.PlatformInit; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdPlatformLogin.java
New file @@ -0,0 +1,18 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.MySdkMgr; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdPlatformLogin implements ICommand { @Override public int getCode() { return CodeU2A.PlatformLogin; } @Override public void process(JSONObject json) throws Exception { MySdkMgr.I.login(); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdPlatformLogout.java
New file @@ -0,0 +1,15 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdPlatformLogout implements ICommand { @Override public int getCode() { return CodeU2A.PlatformLogout; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdPlatformPay.java
New file @@ -0,0 +1,28 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.GameAppProxy; import com.secondworld.sdk.MySdkMgr; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdPlatformPay implements ICommand { @Override public int getCode() { return CodeU2A.PlatformPay; } @Override public void process(JSONObject json) throws Exception { JSONObject extraData = new JSONObject(); extraData.put("appid", GameAppProxy.appId); extraData.put("cpinfo", json.getString("cpInfo")); extraData.put("cporderid", json.getString("orderId")); extraData.put("serverid", json.getString("sid")); extraData.put("channelID", "9998"); MySdkMgr.I.pay(json.getString("roleID"), json.getString("money"), json.getString("sid"), json.getString("cpinfo"), json.getString("title"), extraData.toString()); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdRoleLevelUp.java
New file @@ -0,0 +1,25 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.MySdkMgr; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdRoleLevelUp implements ICommand { @Override public int getCode() { return CodeU2A.RoleLevelUp; } @Override public void process(JSONObject json) throws Exception { MySdkMgr.I.SetRoleDate( json.getString("roleID"), json.getString("roleName"), json.getString("level"), json.getString("sid"), json.getString("serverName") ); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdRoleLogin.java
New file @@ -0,0 +1,26 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.MySdkMgr; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdRoleLogin implements ICommand{ @Override public int getCode() { return CodeU2A.RoleLogin; } @Override public void process(JSONObject json) throws Exception { MySdkMgr.I.SetRoleDate( json.getString("roleID"), json.getString("roleName"), json.getString("level"), json.getString("sid"), json.getString("serverName") ); } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdTrackingCloseVote.java
New file @@ -0,0 +1,15 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdTrackingCloseVote implements ICommand{ @Override public int getCode() { return CodeU2A.TrackingCloseVote; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/CmdTutorialFinish.java
New file @@ -0,0 +1,15 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class CmdTutorialFinish implements ICommand{ @Override public int getCode() { return CodeU2A.TutorialFinish; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/java/com/secondworld/sdk/command/GoToReview.java
New file @@ -0,0 +1,16 @@ package com.secondworld.sdk.command; import com.secondworld.sdk.utils.CodeU2A; import org.json.JSONObject; public class GoToReview implements ICommand { @Override public int getCode() { return CodeU2A.GoToReview; } @Override public void process(JSONObject json) throws Exception { } } SdkProject/channel/mlgtgame/libs/adapter-rxjava-2.3.0.jarBinary files differ
SdkProject/channel/mlgtgame/libs/com.wang.avi.jarBinary files differ
SdkProject/channel/mlgtgame/libs/converter-gson-2.3.0.jarBinary files differ
SdkProject/channel/mlgtgame/libs/eventbus.jarBinary files differ
SdkProject/channel/mlgtgame/libs/glide-3.7.0.jarBinary files differ
SdkProject/channel/mlgtgame/libs/gson-2.8.0.jarBinary files differ
SdkProject/channel/mlgtgame/libs/hhxksdk1.0.3.jarBinary files differ
SdkProject/channel/mlgtgame/libs/retrofit-2.3.0.jarBinary files differ
SdkProject/channel/mlgtgame/libs/rxandroid-1.2.1.jarBinary files differ
SdkProject/channel/mlgtgame/libs/rxjava-1.1.6.jarBinary files differ
SdkProject/channel/mlgtgame/res/anim/activity_right_in.xml
New file @@ -0,0 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <translate android:duration="300" android:fromYDelta="100%" android:toYDelta="0"/> </set> SdkProject/channel/mlgtgame/res/anim/activity_right_out.xml
New file @@ -0,0 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <translate android:duration="300" android:fromYDelta="-100%" android:toYDelta="0"/> </set> SdkProject/channel/mlgtgame/res/anim/pickerview_dialog_scale_in.xml
New file @@ -0,0 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:duration="@integer/animation_default_duration" android:fromAlpha="0.0" android:toAlpha="1.0" /> <scale android:duration="@integer/animation_default_duration" android:fromXScale="0.0" android:toXScale="1.0" android:fromYScale="0.0" android:toYScale="1.0" android:pivotX="50%" android:pivotY="50%"/> </set> SdkProject/channel/mlgtgame/res/anim/pickerview_dialog_scale_out.xml
New file @@ -0,0 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:duration="@integer/animation_default_duration" android:fromAlpha="1.0" android:toAlpha="0.3" /> <scale android:duration="@integer/animation_default_duration" android:fromXScale="1.0" android:toXScale="0.0" android:fromYScale="1.0" android:toYScale="0.0" android:pivotX="50%" android:pivotY="50%"/> </set> SdkProject/channel/mlgtgame/res/anim/pickerview_slide_in_bottom.xml
New file @@ -0,0 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <translate android:duration="@integer/animation_default_duration" android:fromXDelta="0%" android:toXDelta="0%" android:fromYDelta="100%" android:toYDelta="0%"/> </set> SdkProject/channel/mlgtgame/res/anim/pickerview_slide_out_bottom.xml
New file @@ -0,0 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <translate android:duration="@integer/animation_default_duration" android:fromXDelta="0%" android:toXDelta="0%" android:fromYDelta="0%" android:toYDelta="100%"/> </set> SdkProject/channel/mlgtgame/res/drawable-xhdpi/jiazai_icon_red.png
SdkProject/channel/mlgtgame/res/drawable/botton_yuan_bai.xml
New file @@ -0,0 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 实心 --> <solid android:color="@color/milu_whitecolor" /> <!-- 渐变 --> <!-- <gradient --> <!-- android:angle="270" --> <!-- android:endColor="#5ca7ba" --> <!-- android:startColor="#70c4d9" /> --> <!-- 圆角 --> <corners android:radius="10dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/botton_yuan_red.xml
New file @@ -0,0 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 实心 --> <solid android:color="@color/milu_red" /> <!-- 渐变 --> <!-- <gradient --> <!-- android:angle="270" --> <!-- android:endColor="#5ca7ba" --> <!-- android:startColor="#70c4d9" /> --> <!-- 圆角 --> <corners android:radius="30dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/botton_yuan_xian_9f9.xml
New file @@ -0,0 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 实心 --> <stroke android:width="1dp" android:color="@color/milu_red" /> <!-- 圆角 --> <corners android:radius="30dp" /> <solid android:color="@color/milu_transparent" /> <!-- 渐变 --> <!-- <gradient --> <!-- android:angle="270" --> <!-- android:endColor="#5ca7ba" --> <!-- android:startColor="#70c4d9" /> --> </shape> SdkProject/channel/mlgtgame/res/drawable/down_progress.xml
New file @@ -0,0 +1,34 @@ <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- id : 不能修改,因为android系统内部是通过id寻找图层 --> <!-- 总的进度 --> <item android:id="@android:id/background"> <shape> <solid android:color="@color/milu_color_db" /> <!-- 圆角 --> <corners android:radius="50dp" /> </shape> </item> <!-- 缓冲的进度 --> <item android:id="@android:id/secondaryProgress"> <clip> <shape> <solid android:color="@color/milu_color_db" /> <!-- 圆角 --> <corners android:radius="50dp" /> </shape> </clip> </item> <!-- 当前的进度 --> <item android:id="@android:id/progress"> <clip> <shape> <solid android:color="#FF9A2B" /> <!-- 圆角 --> <corners android:radius="50dp" /> </shape> </clip> </item> </layer-list> SdkProject/channel/mlgtgame/res/drawable/ml_activity_bg.xml
New file @@ -0,0 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/ml_activity_bg" /> <corners android:topLeftRadius="13dp" android:topRightRadius="13dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/ml_activity_list_bg.xml
New file @@ -0,0 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#99111111" /> <corners android:radius="5dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/ml_botton_yuan_bai17.xml
New file @@ -0,0 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 实心 --> <solid android:color="@color/milu_whitecolor" /> <!-- 渐变 --> <!-- <gradient --> <!-- android:angle="270" --> <!-- android:endColor="#5ca7ba" --> <!-- android:startColor="#70c4d9" /> --> <!-- 圆角 --> <corners android:radius="17dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/ml_botton_yuan_d5.xml
New file @@ -0,0 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 实心 --> <solid android:color="#D5D5D5" /> <!-- 渐变 --> <!-- <gradient --> <!-- android:angle="270" --> <!-- android:endColor="#5ca7ba" --> <!-- android:startColor="#70c4d9" /> --> <!-- 圆角 --> <corners android:radius="17dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/ml_btn_login_red.xml
New file @@ -0,0 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:angle="0" android:startColor="#ea3e4a" android:centerColor="#f46b57" android:endColor="#fc8f6a" /> <corners android:radius="50dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/ml_dotted_line.xml
New file @@ -0,0 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <!--线宽为dashWith,线之间空隙dashGap,dashGap=0dp时,是实线 --> <stroke android:width="1dp" android:color="@color/milu_color_99" android:dashGap="2dp" android:dashWidth="3dp" /> <!-- 虚线高度 --> <size android:height="1dp" /> </shape> SdkProject/channel/mlgtgame/res/drawable/ml_loading_red.xml
New file @@ -0,0 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/jiazai_icon_red" android:pivotX="50%" android:pivotY="50%" /> SdkProject/channel/mlgtgame/res/drawable/updating_progress_bg.xml
New file @@ -0,0 +1,34 @@ <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@android:id/background"> <shape> <corners android:radius="20dip" /> <gradient android:angle="0" android:endColor="#f5f5f5" android:startColor="#f5f5f5" android:centerColor="#f5f5f5" /> </shape> </item> <item android:id="@android:id/progress"> <clip> <shape> <corners android:radius="20dip" /> <gradient android:angle="0" android:endColor="@color/milu_orange" android:startColor="@color/milu_orange" /> </shape> </clip> </item> </layer-list> SdkProject/channel/mlgtgame/res/layout-land/ml_activity_autologin.xml
New file @@ -0,0 +1,97 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="360dp" android:layout_height="match_parent" android:background="@color/ml_activity_bg" android:onClick="onClick" android:orientation="vertical" tools:ignore="OnClick"> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_weight="1" android:gravity="center" android:orientation="vertical"> <ImageView android:id="@+id/iv_logo" android:layout_width="96dp" android:layout_height="47dp" android:layout_gravity="center_horizontal"/> <TextView android:id="@+id/tv_uesr_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="32dp" android:gravity="center" android:text="" android:textColor="@color/ml_white" android:textSize="20dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="22dp" android:gravity="center" android:text="自动登录中" android:textColor="@color/milu_color_99" android:textSize="11dp" /> <ImageView android:id="@+id/iv_aoto_ic" android:layout_width="90dp" android:layout_height="18dp" android:layout_marginTop="22dp"/> <Button android:id="@+id/bt_switch_account" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_marginTop="25dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="切换账号" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> <TextView android:id="@+id/tv_versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginBottom="15dp" android:textColor="@color/milu_color_99" android:textSize="10sp" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-land/ml_activity_image_preview.xml
New file @@ -0,0 +1,54 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="46dp" > <TextView android:id="@+id/back_img" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:layout_marginLeft="0dp" android:background="@color/milu_transparent" android:drawableLeft="@mipmap/ml_ic_left_white" android:gravity="center" android:padding="15dp" android:visibility="visible" /> <TextView android:id="@+id/tv_num" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_centerVertical="true" android:gravity="center" android:text="0/0" android:textColor="@color/milu_whitecolor" android:textSize="17sp" /> <TextView android:id="@+id/tv_wancheng" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="15dp" android:gravity="center" android:text="删除" android:textColor="@color/milu_whitecolor" android:textSize="17sp" /> </RelativeLayout> <com.maiyou.maiysdk.widget.photopicker.ViewPagerFixed android:id="@+id/vp_photos" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <!-- From: file:/Users/foamtrace/dev/AndroidStudioProjects/PhotoPicker/photopicker/src/main/res/layout/activity_image_preview.xml --> SdkProject/channel/mlgtgame/res/layout-land/ml_activity_login.xml
New file @@ -0,0 +1,47 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ui.activity.MLLoginActivity" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="360dp" android:layout_height="match_parent" android:background="@color/ml_activity_bg" android:onClick="onClick" android:orientation="horizontal" tools:ignore="OnClick"> <FrameLayout android:id="@+id/fl" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" /> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="25dp" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="370dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_land" android:visibility="gone" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-land/ml_activity_main.xml
New file @@ -0,0 +1,46 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ui.activity.MLLoginActivity" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="360dp" android:layout_height="match_parent" android:background="@color/ml_activity_bg" android:onClick="onClick" android:orientation="horizontal" tools:ignore="OnClick"> <FrameLayout android:id="@+id/fl" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" /> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="25dp" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="370dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_land" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-land/ml_activity_pay_web.xml
New file @@ -0,0 +1,104 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="360dp" android:layout_height="match_parent" android:background="@color/ml_activity_bg" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="50dp"> <LinearLayout android:id="@+id/tv_pay_left_back" android:layout_width="40dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:layout_centerInParent="true" android:background="@mipmap/ml_back_finish" /> </LinearLayout> <TextView android:id="@+id/tv_charge_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:gravity="center" android:text="@string/ml_pay_title" android:textColor="@color/milu_orange" android:textSize="14dp" /> <LinearLayout android:id="@+id/ll_service" android:layout_marginRight="15dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:src="@mipmap/ml_ic_login_service_red"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:text="@string/ml_pay_kefu" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </RelativeLayout> <ProgressBar android:id="@+id/progress_bar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="2dp" android:max="100" android:progressDrawable="@drawable/down_progress"/> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" /> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_above="@+id/ll" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_marginBottom="10dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_port" android:visibility="gone" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-land/ml_fragment_change_password.xml
New file @@ -0,0 +1,176 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:ignore="MissingDefaultResource"> <RelativeLayout android:layout_width="match_parent" android:layout_height="60dp"> <ImageView android:id="@+id/img_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:padding="15dp" android:src="@mipmap/ml_ic_left_white" /> <TextView android:id="@+id/tv_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:ellipsize="end" android:gravity="center" android:maxLines="2" android:text="@string/ml_main_change_password" android:textColor="@color/ml_white" android:textSize="14sp" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginLeft="60dp" android:layout_marginTop="15dp" android:layout_marginRight="60dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_change_pwd_old" android:textColor="@color/ml_white" android:textSize="13sp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/et_oldPwd" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerVertical="true" android:layout_marginLeft="75dp" android:background="@null" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_old_hint" android:imeOptions="flagNoFullscreen|actionNext" android:maxLength="18" android:maxLines="1" android:paddingLeft="10dp" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginLeft="60dp" android:layout_marginRight="60dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_change_pwd_new" android:textColor="@color/ml_white" android:textSize="13sp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/et_newPwd" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="75dp" android:background="@null" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_new_hint" android:imeOptions="flagNoFullscreen|actionNext" android:maxLength="18" android:maxLines="1" android:paddingLeft="10dp" android:paddingRight="10dp" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginLeft="60dp" android:layout_marginRight="60dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_change_pwd_new_again" android:textColor="@color/ml_white" android:textSize="13sp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/et_newPwdAgain" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="75dp" android:background="@null" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_new_again_hint" android:imeOptions="flagNoFullscreen|actionNext" android:maxLength="18" android:maxLines="1" android:paddingLeft="10dp" android:paddingRight="10dp" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <TextView android:id="@+id/tv_submit" android:layout_width="242dp" android:layout_height="40dp" android:layout_gravity="center_horizontal" android:layout_marginTop="35dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_change_pwd_submit" android:textColor="#ffffffff" android:textSize="16sp" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout-land/ml_uesr_center_fragment.xml
New file @@ -0,0 +1,382 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="MissingDefaultResource"> <androidx.core.widget.NestedScrollView android:id="@+id/scrollView" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/tv_titleName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginTop="25dp" android:textColor="@color/ml_white" android:textSize="14sp" /> <LinearLayout android:id="@+id/rl_kefu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginTop="15dp" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:src="@mipmap/ml_ic_login_service_red" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="30dp" android:text="@string/ml_login_kefu_title" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </RelativeLayout> <ImageView android:id="@+id/img_userPic" android:layout_width="49dp" android:layout_height="49dp" android:layout_gravity="center" android:layout_marginTop="15dp" /> <TextView android:id="@+id/tv_userName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="12dp" android:textColor="@color/ml_white" android:textSize="15sp" /> <RelativeLayout android:id="@+id/rl_change_password" android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginTop="10dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_setPassword" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_bind_email" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_emailKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_bind_email" android:textColor="@color/ml_white" android:textSize="13sp" /> <TextView android:id="@+id/tv_email" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_facebook" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp" android:visibility="gone"> <TextView android:id="@+id/tv_facebookKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_select_login_facebook" android:textColor="@color/ml_white" android:textSize="13sp" /> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true"> <com.facebook.login.widget.LoginButton android:id="@+id/btn_facebook" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="gone" /> <TextView android:id="@+id/tv_facebook" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> </RelativeLayout> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_google" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp" android:visibility="gone"> <TextView android:id="@+id/tv_googleKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_select_login_google" android:textColor="@color/ml_white" android:textSize="13sp" /> <TextView android:id="@+id/tv_google" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_language" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_languageKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_language" android:textColor="@color/ml_white" android:textSize="13sp" /> <TextView android:id="@+id/tv_language" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_agreement" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_xieyiKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_agreement" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_account_cancellation" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_zhuxiaoKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_unsubscribe" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <Button android:id="@+id/bt_switch_login" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_marginLeft="55dp" android:layout_marginTop="30dp" android:layout_marginRight="55dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:textColor="@color/ml_white" android:textSize="16sp" /> <TextView android:id="@+id/tv_versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="10dp" android:layout_marginBottom="10dp" android:alpha="0.5" android:gravity="center" android:textColor="@color/ml_white" android:textSize="10sp" /> </LinearLayout> </androidx.core.widget.NestedScrollView> </LinearLayout> SdkProject/channel/mlgtgame/res/layout-land/ml_web.xml
New file @@ -0,0 +1,104 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:orientation="vertical"> <LinearLayout android:id="@+id/ll" android:layout_width="360dp" android:layout_height="match_parent" android:background="@color/ml_activity_bg" android:onClick="onClick" android:orientation="vertical" tools:ignore="OnClick"> <RelativeLayout android:id="@+id/title_layout" android:layout_width="match_parent" android:layout_height="44dp"> <com.maiyou.maiysdk.widget.MyTextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="55dp" android:layout_marginRight="55dp" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="marquee_forever" android:singleLine="true" android:text="" android:textColor="@color/milu_orange" android:textSize="18dp" /> <RelativeLayout android:id="@+id/rl_back" android:layout_width="50dp" android:layout_height="match_parent" android:orientation="horizontal"> <TextView android:layout_width="9dp" android:layout_height="14dp" android:layout_centerInParent="true" android:layout_marginLeft="5dp" android:background="@mipmap/ml_back_icon" /> </RelativeLayout> <TextView android:id="@+id/tv_xian1" android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:alpha="0.5" android:background="@color/ml_color_72" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_webview" android:layout_width="match_parent" android:layout_height="match_parent"> <ProgressBar android:id="@+id/progress_bar" android:layout_width="match_parent" android:layout_height="2dp" android:max="100" android:progressDrawable="@drawable/down_progress" /> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none"/> </RelativeLayout> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" /> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_above="@id/ll" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_marginBottom="10dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_port" android:visibility="gone" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_activity_autologin.xml
New file @@ -0,0 +1,99 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="match_parent" android:layout_height="450dp" android:background="@drawable/ml_activity_bg" android:layout_alignParentBottom="true" android:onClick="onClick" android:orientation="vertical" tools:ignore="OnClick"> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_weight="1" android:gravity="center" android:orientation="vertical"> <ImageView android:id="@+id/iv_logo" android:layout_width="96dp" android:layout_height="47dp" android:layout_gravity="center_horizontal"/> <TextView android:id="@+id/tv_uesr_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="32dp" android:gravity="center" android:text="" android:textColor="@color/ml_white" android:textSize="20dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="22dp" android:gravity="center" android:text="自动登录中" android:textColor="@color/milu_color_99" android:textSize="11dp" /> <ImageView android:id="@+id/iv_aoto_ic" android:layout_width="90dp" android:layout_height="18dp" android:layout_marginTop="22dp"/> <Button android:id="@+id/bt_switch_account" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_marginTop="25dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="切换账号" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> <TextView android:id="@+id/tv_versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginBottom="15dp" android:textColor="@color/milu_color_99" android:textSize="10sp" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:visibility="gone" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_activity_login.xml
New file @@ -0,0 +1,51 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ui.activity.MLLoginActivity" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="match_parent" android:layout_height="450dp" android:layout_alignParentBottom="true" android:background="@drawable/ml_activity_bg" android:onClick="onClick" android:orientation="horizontal" tools:ignore="OnClick"> <FrameLayout android:id="@+id/fl" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingBottom="10dp" android:paddingTop="10dp" android:src="@mipmap/ml_ic_switch_left_red" android:visibility="gone" /> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_above="@id/ll" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_marginBottom="10dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_port" android:visibility="gone" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_activity_main.xml
New file @@ -0,0 +1,38 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ui.activity.MLLoginActivity" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="match_parent" android:layout_height="450dp" android:layout_alignParentBottom="true" android:background="@drawable/ml_activity_bg" android:onClick="onClick" android:orientation="vertical" tools:ignore="OnClick"> <FrameLayout android:id="@+id/fl" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_above="@id/ll" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_marginBottom="10dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_port" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_activity_pay_web.xml
New file @@ -0,0 +1,107 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="match_parent" android:layout_height="450dp" android:layout_alignParentBottom="true" android:background="@drawable/ml_activity_bg" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="50dp"> <LinearLayout android:id="@+id/tv_pay_left_back" android:layout_width="40dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:layout_centerInParent="true" android:background="@mipmap/ml_back_finish" /> </LinearLayout> <TextView android:id="@+id/tv_charge_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:gravity="center" android:text="@string/ml_pay_title" android:textColor="@color/milu_orange" android:textSize="14dp" /> <LinearLayout android:id="@+id/ll_service" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="15dp" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:src="@mipmap/ml_ic_login_service_red" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ml_pay_kefu" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </RelativeLayout> <ProgressBar android:id="@+id/progress_bar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="2dp" android:max="100" android:progressDrawable="@drawable/down_progress" android:visibility="gone" /> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> <ImageView android:id="@+id/img_switch" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerVertical="true" android:padding="15dp" android:paddingTop="10dp" android:paddingBottom="10dp" android:src="@mipmap/ml_ic_switch_left_red" android:visibility="gone" /> <ImageView android:id="@+id/img_emptyGuide" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_above="@+id/ll" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_marginBottom="10dp" android:adjustViewBounds="true" android:src="@mipmap/ml_ic_empty_guide_port" android:visibility="gone" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_fragment_change_password.xml
New file @@ -0,0 +1,175 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:ignore="MissingDefaultResource"> <RelativeLayout android:layout_width="match_parent" android:layout_height="60dp"> <ImageView android:id="@+id/img_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:padding="15dp" android:src="@mipmap/ml_ic_left_white" /> <TextView android:id="@+id/tv_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:ellipsize="end" android:gravity="center" android:maxLines="2" android:text="@string/ml_main_change_password" android:textColor="@color/ml_white" android:textSize="14sp" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginLeft="60dp" android:layout_marginTop="15dp" android:layout_marginRight="60dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_change_pwd_old" android:textColor="@color/ml_white" android:textSize="13sp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/et_oldPwd" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerVertical="true" android:layout_marginLeft="75dp" android:background="@null" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_old_hint" android:imeOptions="flagNoFullscreen|actionNext" android:maxLength="18" android:maxLines="1" android:paddingLeft="10dp" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginLeft="60dp" android:layout_marginRight="60dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_change_pwd_new" android:textColor="@color/ml_white" android:textSize="13sp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/et_newPwd" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="75dp" android:background="@null" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_new_hint" android:imeOptions="flagNoFullscreen|actionNext" android:maxLength="18" android:maxLines="1" android:paddingLeft="10dp" android:paddingRight="10dp" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginLeft="60dp" android:layout_marginRight="60dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_change_pwd_new_again" android:textColor="@color/ml_white" android:textSize="13sp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/et_newPwdAgain" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="75dp" android:background="@null" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_new_again_hint" android:imeOptions="flagNoFullscreen|actionNext" android:maxLength="18" android:maxLines="1" android:paddingLeft="10dp" android:paddingRight="10dp" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <TextView android:id="@+id/tv_submit" android:layout_width="242dp" android:layout_height="40dp" android:layout_gravity="center_horizontal" android:layout_marginTop="35dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_change_pwd_submit" android:textColor="#ffffffff" android:textSize="16sp" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_uesr_center_fragment.xml
New file @@ -0,0 +1,382 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="MissingDefaultResource"> <androidx.core.widget.NestedScrollView android:id="@+id/scrollView" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/tv_titleName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginTop="25dp" android:textColor="@color/ml_white" android:textSize="14sp" /> <LinearLayout android:id="@+id/rl_kefu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:src="@mipmap/ml_ic_login_service_red" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="15dp" android:text="@string/ml_login_kefu_title" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </RelativeLayout> <ImageView android:id="@+id/img_userPic" android:layout_width="49dp" android:layout_height="49dp" android:layout_gravity="center" android:layout_marginTop="15dp" /> <TextView android:id="@+id/tv_userName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="12dp" android:textColor="@color/ml_white" android:textSize="15sp" /> <RelativeLayout android:id="@+id/rl_change_password" android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginTop="10dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_setPassword" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_bind_email" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_emailKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_bind_email" android:textColor="@color/ml_white" android:textSize="13sp" /> <TextView android:id="@+id/tv_email" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_facebook" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp" android:visibility="gone"> <TextView android:id="@+id/tv_facebookKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_select_login_facebook" android:textColor="@color/ml_white" android:textSize="13sp" /> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true"> <com.facebook.login.widget.LoginButton android:id="@+id/btn_facebook" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="gone" /> <TextView android:id="@+id/tv_facebook" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> </RelativeLayout> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_google" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp" android:visibility="gone"> <TextView android:id="@+id/tv_googleKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_select_login_google" android:textColor="@color/ml_white" android:textSize="13sp" /> <TextView android:id="@+id/tv_google" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_language" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_languageKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_language" android:textColor="@color/ml_white" android:textSize="13sp" /> <TextView android:id="@+id/tv_language" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="12dp" android:textColor="@color/milu_color_99" android:textColorHint="@color/milu_color_99" android:textSize="12sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_agreement" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_xieyiKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_agreement" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_account_cancellation" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_zhuxiaoKey" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_main_unsubscribe" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> <Button android:id="@+id/bt_switch_login" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_marginLeft="55dp" android:layout_marginTop="30dp" android:layout_marginRight="55dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:textColor="@color/ml_white" android:textSize="16sp" /> <TextView android:id="@+id/tv_versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="10dp" android:layout_marginBottom="10dp" android:alpha="0.5" android:gravity="center" android:textColor="@color/ml_white" android:textSize="10sp" /> </LinearLayout> </androidx.core.widget.NestedScrollView> </LinearLayout> SdkProject/channel/mlgtgame/res/layout-port/ml_web.xml
New file @@ -0,0 +1,82 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:id="@+id/ll" android:layout_width="match_parent" android:layout_height="450dp" android:layout_alignParentBottom="true" android:background="@drawable/ml_activity_bg" android:orientation="vertical"> <RelativeLayout android:id="@+id/title_layout" android:layout_width="match_parent" android:layout_height="44dp"> <com.maiyou.maiysdk.widget.MyTextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="55dp" android:layout_marginRight="55dp" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="marquee_forever" android:singleLine="true" android:text="" android:textColor="@color/milu_orange" android:textSize="18dp" /> <RelativeLayout android:id="@+id/rl_back" android:layout_width="50dp" android:layout_height="match_parent" android:orientation="horizontal"> <TextView android:layout_width="9dp" android:layout_height="14dp" android:layout_centerInParent="true" android:layout_marginLeft="5dp" android:background="@mipmap/ml_back_icon" /> </RelativeLayout> <TextView android:id="@+id/tv_xian1" android:layout_width="match_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:alpha="0.5" android:background="@color/ml_color_72" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_webview" android:layout_width="match_parent" android:layout_height="match_parent"> <ProgressBar android:id="@+id/progress_bar" android:layout_width="match_parent" android:layout_height="2dp" android:max="100" android:progressDrawable="@drawable/down_progress" /> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" /> </RelativeLayout> </LinearLayout> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/activity_facebook.xml
New file @@ -0,0 +1,53 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:background="@color/ml_white" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <com.facebook.login.widget.LoginButton android:id="@+id/btn_loginIn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" /> <Button android:id="@+id/btn_loginOut" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:text="退出" android:layout_marginTop="15dp" android:visibility="gone" /> <TextView android:id="@+id/tv_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:textColor="#E91E63" /> <TextView android:id="@+id/tv_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:textColor="#2196F3" /> </LinearLayout> <ProgressBar android:id="@+id/progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/activity_google01.xml
New file @@ -0,0 +1,65 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <Button android:id="@+id/btn_loginIn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="15dp" android:text="登录" /> <Button android:id="@+id/btn_loginOut" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="15dp" android:text="退出" android:visibility="gone" /> <TextView android:id="@+id/tv_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:textColor="#E91E63" /> <TextView android:id="@+id/tv_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:textColor="#2196F3" android:textIsSelectable="true" /> <Button android:id="@+id/btn_loginGame" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="15dp" android:text="登录游戏" android:textIsSelectable="true" /> </LinearLayout> <ProgressBar android:id="@+id/progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/en_floating_view.xml
New file @@ -0,0 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/icon" android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/ml_logo" /> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/item_open_service.xml
New file @@ -0,0 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/milu_color_6" android:orientation="vertical"> <RelativeLayout android:id="@+id/rl_goActDel" android:layout_width="match_parent" android:padding="10dp" android:layout_height="wrap_content"> <TextView android:id="@+id/tv_server_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:textColor="@color/milu_black" android:textSize="15sp" /> <TextView android:id="@+id/tv_kf_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:layout_alignParentRight="true" android:text="" android:textColor="@color/milu_grayishc" /> </RelativeLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_act_webs.xml
New file @@ -0,0 +1,63 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:id="@+id/title_layout" android:layout_width="match_parent" android:layout_height="44dp"> <com.maiyou.maiysdk.widget.MyTextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="55dp" android:layout_marginRight="55dp" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="marquee_forever" android:singleLine="true" android:text="" android:textColor="@color/ml_white" android:textSize="14dp" /> <RelativeLayout android:id="@+id/rl_back" android:layout_width="50dp" android:layout_height="match_parent" android:orientation="horizontal"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:layout_centerInParent="true" android:background="@mipmap/ml_back_icon" /> </RelativeLayout> </RelativeLayout> <RelativeLayout android:id="@+id/rl_webview" android:layout_width="match_parent" android:layout_height="match_parent"> <ProgressBar android:id="@+id/progress_bar" android:layout_width="match_parent" android:layout_height="2dp" android:max="100" android:progressDrawable="@drawable/down_progress" /> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" /> </RelativeLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_activity_index.xml
New file @@ -0,0 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/ml_mine_blue" tools:context=".MLIndexActivity" tools:ignore="MissingDefaultResource"> <LinearLayout android:id="@+id/ll" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="horizontal"> </LinearLayout> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/ml_activity_register.xml
New file @@ -0,0 +1,257 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:id="@+id/title_layout" android:layout_width="match_parent" android:layout_height="44dp"> <LinearLayout android:id="@+id/back_img" android:layout_width="50dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:background="@mipmap/ml_back_icon" /> </LinearLayout> <TextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/ml_login_fast" android:textColor="@color/ml_white" android:textSize="14dp" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginLeft="58dp" android:layout_marginRight="58dp" android:layout_weight="1" android:orientation="vertical"> <LinearLayout android:id="@+id/ll_jietu" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:id="@+id/iv_logo" android:layout_width="96dp" android:layout_height="47dp" android:layout_marginTop="20dp" android:layout_gravity="center_horizontal" /> <LinearLayout android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginTop="20dp" android:orientation="horizontal"> <TextView android:id="@+id/tv_yhm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:minWidth="40dp" android:text="@string/ml_register_account" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/et_emailPrefix" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@null" android:gravity="center_vertical" android:hint="@string/ml_register_account_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:paddingRight="5dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/et_emailSuffix" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginRight="10dp" android:layout_weight="1" android:background="@null" android:gravity="center_vertical" android:hint="xxx.com" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:paddingLeft="5dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <RelativeLayout android:id="@+id/rl_chooseEmailSuffix" android:layout_width="wrap_content" android:layout_height="match_parent"> <ImageView android:id="@+id/img_chooseEmailSuffix" android:layout_width="13dp" android:layout_height="13dp" android:layout_centerInParent="true" android:background="@mipmap/down" /> </RelativeLayout> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:orientation="horizontal"> <TextView android:id="@+id/tv_mima" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:minWidth="40dp" android:text="@string/ml_register_pwd" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/ed_mima" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center_vertical" android:layout_toRightOf="@+id/tv_mima" android:background="@null" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" android:gravity="center_vertical" android:hint="@string/ml_register_pwd_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="text" android:maxLength="20" android:maxLines="1" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <RelativeLayout android:id="@+id/rl_eye" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true"> <ImageView android:id="@+id/iv_eye" android:layout_width="13dp" android:layout_height="10dp" android:layout_centerInParent="true" android:background="@mipmap/see" /> </RelativeLayout> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> </LinearLayout> <Button android:id="@+id/zhuce" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_gravity="center" android:layout_marginTop="50dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_register_submit" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> <LinearLayout android:id="@+id/ll_server" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="13dp" android:layout_marginBottom="15dp" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/img_cb" android:layout_width="12dp" android:layout_height="12dp" android:background="@mipmap/hw_account_xz" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:text="@string/ml_select_login_agree" android:textColor="@color/ml_white" android:textSize="10sp" /> <TextView android:id="@+id/tv_server" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ml_select_login_agree_01" android:textColor="@color/milu_orange" android:textSize="10sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:text="@string/ml_select_login_agree_02" android:textColor="@color/ml_white" android:textSize="10sp" /> <TextView android:id="@+id/tv_privacyPolicy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:text="@string/ml_select_login_agree_03" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_activity_update.xml
New file @@ -0,0 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/milu_transparent" tools:ignore="MissingDefaultResource"> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/ml_confirm_popup.xml
New file @@ -0,0 +1,65 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/botton_yuan_bai" android:orientation="vertical" tools:ignore="MissingDefaultResource"> <TextView android:id="@+id/tv_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/milu_black28" android:textSize="16dp" android:text="" android:layout_gravity="center" android:layout_marginTop="25dp"/> <TextView android:id="@+id/tv_conter" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/milu_black28" android:textSize="14dp" android:layout_margin="25dp" android:text="" android:layout_gravity="center"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="15dp" android:padding="5dp"> <TextView android:id="@+id/cancel_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ml_dialog_qxiao" android:layout_weight="1" android:background="@drawable/botton_yuan_xian_9f9" android:layout_marginRight="15dp" android:gravity="center" android:padding="10dp" android:layout_marginLeft="25dp" android:textColor="@color/milu_red" android:textSize="16sp" /> <TextView android:id="@+id/ensure_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_weight="1" android:background="@drawable/botton_yuan_red" android:text="@string/ml_dialog_qd" android:gravity="center" android:layout_marginRight="25dp" android:layout_marginLeft="15dp" android:padding="10dp" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_big_photo.xml
New file @@ -0,0 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ll_bg" android:layout_width="match_parent" android:gravity="center" android:background="@color/ml_mine_yellow" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:id="@+id/img" android:layout_width="wrap_content" android:layout_height="match_parent" android:adjustViewBounds="true" /> <!--<uk.co.senab.photoview.PhotoView--> <!--android:id="@+id/img"--> <!--android:layout_width="match_parent"--> <!--android:layout_height="match_parent" />--> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_cloose_emails_suffix.xml
New file @@ -0,0 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:background="@drawable/ml_activity_list_bg" android:orientation="vertical"> <ListView android:id="@+id/lv" android:layout_width="120dp" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:scrollbars="none" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_loading_red.xml
New file @@ -0,0 +1,17 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/load_parent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:minHeight="90dp" android:minWidth="90dp" android:orientation="vertical" > <ProgressBar android:layout_width="45dp" android:layout_height="45dp" android:indeterminate="false" android:indeterminateDrawable="@drawable/ml_loading_red" android:visibility="visible" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_pop_app.xml
New file @@ -0,0 +1,56 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <LinearLayout android:layout_width="290dp" android:layout_height="300dp" android:background="@drawable/botton_yuan_bai" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/title_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="23dp" android:layout_centerHorizontal="true" android:text="" android:textColor="@color/milu_black28" android:textSize="18sp" /> <ImageView android:id="@+id/ensure_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_alignParentRight="true" android:layout_marginTop="10dp" android:layout_marginRight="15dp" android:gravity="center" android:background="@mipmap/ml_black_back"/> </RelativeLayout> <WebView android:id="@+id/pop_webview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="17dp" android:layout_marginTop="12dp" android:layout_marginRight="17dp" android:layout_marginBottom="12dp" android:scrollbars="none"/> </LinearLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_select.xml
New file @@ -0,0 +1,39 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="240dp" android:background="@color/milu_whitecolor" android:orientation="vertical" tools:ignore="MissingDefaultResource"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp"> <TextView android:id="@+id/cancel_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ml_dialog_qxiao" android:textColor="@color/milu_color_99" android:textSize="16sp" /> <TextView android:id="@+id/ensure_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="@string/ml_dialog_qd" android:textColor="@color/milu_orange" android:textSize="16sp" /> </RelativeLayout> <com.maiyou.maiysdk.widget.pickerview.WheelView android:id="@+id/picker_view" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_update_app.xml
New file @@ -0,0 +1,102 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <RelativeLayout android:layout_width="290dp" android:layout_height="264dp" android:background="@mipmap/gengxin_xiazai_icon" android:orientation="vertical"> <TextView android:id="@+id/title_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="17dp" android:layout_marginTop="70dp" android:text="版本内容" android:textColor="@color/ml_white" android:textSize="14sp" /> <TextView android:id="@+id/content_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="17dp" android:layout_marginRight="17dp" android:layout_marginTop="11dp" android:layout_below="@+id/title_text" android:textColor="@color/ml_white" android:textSize="13sp" /> <LinearLayout android:id="@+id/ll_btn" android:layout_width="match_parent" android:layout_height="34dp" android:layout_marginLeft="37dp" android:layout_marginRight="37dp" android:layout_alignParentBottom="true" android:layout_marginBottom="22dp" android:orientation="horizontal"> <Button android:id="@+id/no_btn" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/ml_botton_yuan_d5" android:gravity="center" android:layout_weight="1" android:layout_marginRight="15dp" android:text="暂不更新" android:textColor="@color/milu_whitecolor" android:textSize="14sp" /> <Button android:id="@+id/ensure_btn" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/ml_botton_yuan_bai17" android:gravity="center" android:layout_marginLeft="15dp" android:layout_weight="1" android:text="立即升级" android:textColor="#4263EE" android:textSize="14sp" /> </LinearLayout> <RelativeLayout android:id="@+id/ll_update" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="37dp" android:visibility="gone" android:layout_marginRight="37dp" android:layout_alignParentBottom="true" android:layout_marginBottom="22dp" android:orientation="vertical"> <ProgressBar android:id="@+id/update_bar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="fill_parent" android:layout_height="15dp" android:layout_marginTop="5dp" android:progressDrawable="@drawable/updating_progress_bg" android:visibility="visible" /> <TextView android:id="@+id/progress_precent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:padding="3dp" android:text="0%" android:textColor="#ff00" android:textSize="12sp" /> </RelativeLayout> </RelativeLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_dialog_xhlist.xml
New file @@ -0,0 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/ml_activity_list_bg"> <ListView android:id="@+id/lv_xhlist" android:layout_width="200dp" android:layout_height="wrap_content" android:layout_marginRight="20dp" android:layout_marginLeft="20dp" android:scrollbars="none" android:layout_centerInParent="true"> </ListView> </RelativeLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_autologin.xml
New file @@ -0,0 +1,72 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_weight="1" android:gravity="center" android:orientation="vertical"> <ImageView android:id="@+id/iv_logo" android:layout_width="96dp" android:layout_height="47dp" android:layout_gravity="center_horizontal" /> <TextView android:id="@+id/tv_uesr_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="32dp" android:gravity="center" android:text="" android:textColor="@color/ml_white" android:textSize="20dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="22dp" android:gravity="center" android:text="自动登录中" android:textColor="@color/milu_color_99" android:textSize="11dp" /> <ImageView android:id="@+id/iv_aoto_ic" android:layout_width="90dp" android:layout_height="20dp" android:layout_marginTop="22dp" /> <Button android:id="@+id/bt_switch_account" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_marginTop="25dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="切换账号" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> <TextView android:id="@+id/tv_versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginBottom="15dp" android:textColor="@color/milu_color_99" android:textSize="10sp" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_bind_email.xml
New file @@ -0,0 +1,203 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="44dp"> <LinearLayout android:id="@+id/back_img" android:layout_width="50dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:background="@mipmap/ml_back_icon" /> </LinearLayout> <TextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/ml_main_bind_email" android:textColor="@color/ml_white" android:textSize="14dp" /> </RelativeLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="30dp" android:layout_marginRight="30dp" android:layout_marginTop="10dp" android:text="@string/ml_bind_email_01" android:textColor="@color/milu_whitecolor" android:textSize="13dp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="20dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="45dp" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="50dp" android:text="@string/ml_bind_email_account" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/et_emailPrefix" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@null" android:gravity="center_vertical" android:hint="@string/ml_register_account_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:paddingRight="5dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/et_emailSuffix" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginRight="10dp" android:layout_weight="1" android:background="@null" android:gravity="center_vertical" android:hint="xxx.com" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:paddingLeft="5dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <RelativeLayout android:id="@+id/rl_chooseEmailSuffix" android:layout_width="wrap_content" android:layout_height="match_parent"> <ImageView android:id="@+id/img_chooseEmailSuffix" android:layout_width="13dp" android:layout_height="13dp" android:layout_centerInParent="true" android:background="@mipmap/down" /> </RelativeLayout> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <LinearLayout android:layout_width="match_parent" android:layout_height="45dp" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="50dp" android:text="@string/ml_bind_email_code" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/ed_verification" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical" android:layout_weight="1" android:background="@null" android:hint="@string/ml_bind_email_code_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="number" android:maxLength="6" android:maxLines="1" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <TextView android:id="@+id/tv_dianji" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center_vertical" android:text="@string/ml_bind_email_send_code" android:textColor="@color/milu_orange" android:textSize="13dp" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> </LinearLayout> <Button android:id="@+id/zhuce" android:layout_width="match_parent" android:layout_height="40dp" android:layout_centerInParent="true" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="35dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_bind_email_submit" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="30dp" android:layout_marginRight="30dp" android:layout_marginTop="25dp" android:text="@string/ml_bind_email_02" android:textColor="@color/milu_color_db" android:textSize="13dp" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_customer_service_center.xml
New file @@ -0,0 +1,41 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="60dp"> <ImageView android:id="@+id/img_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:padding="15dp" android:src="@mipmap/ml_ic_left_white" /> <TextView android:id="@+id/tv_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:ellipsize="end" android:gravity="center" android:maxLines="2" android:text="@string/ml_login_kefu_title" android:textColor="@color/ml_white" android:textSize="14sp" /> </RelativeLayout> <ListView android:id="@+id/lv_kefu" android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="none"/> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_find_password.xml
New file @@ -0,0 +1,198 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="44dp"> <LinearLayout android:id="@+id/back_img" android:layout_width="50dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:background="@mipmap/ml_back_icon" /> </LinearLayout> <TextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/ml_login_forget" android:textColor="@color/ml_white" android:textSize="14dp" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="20dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="45dp" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="60dp" android:text="@string/ml_findpwd_account" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/et_mailbox" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:background="@null" android:hint="@string/ml_findpwd_account_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:padding="15dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <LinearLayout android:layout_width="match_parent" android:layout_height="45dp" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="60dp" android:text="@string/ml_findpwd_code" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/ed_verification" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" android:background="@null" android:hint="@string/ml_findpwd_code_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="number" android:maxLength="6" android:maxLines="1" android:padding="15dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <TextView android:id="@+id/tv_dianji" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center_vertical" android:text="@string/ml_findpwd_send_code" android:textColor="@color/milu_orange" android:textSize="13dp" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <LinearLayout android:layout_width="match_parent" android:layout_height="45dp" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="60dp" android:text="@string/ml_findpwd_pwd" android:textColor="@color/ml_white" android:textSize="13dp" /> <EditText android:id="@+id/ed_mima" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" android:background="@null" android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" android:hint="@string/ml_findpwd_pwd_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="text" android:maxLength="20" android:maxLines="1" android:padding="15dp" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <RelativeLayout android:id="@+id/rl_eye" android:layout_width="35dp" android:layout_height="match_parent"> <ImageView android:id="@+id/iv_eye" android:layout_width="15dp" android:layout_height="8dp" android:layout_centerInParent="true" android:background="@mipmap/see" /> </RelativeLayout> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> </LinearLayout> <Button android:id="@+id/zhuce" android:layout_width="match_parent" android:layout_height="40dp" android:layout_centerInParent="true" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="35dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_findpwd_submit" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_login.xml
New file @@ -0,0 +1,274 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:id="@+id/title_layout" android:layout_width="match_parent" android:layout_height="44dp"> <LinearLayout android:id="@+id/back_img" android:layout_width="50dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="13dp" android:layout_height="13dp" android:background="@mipmap/ml_back_icon" /> </LinearLayout> <TextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/ml_select_login_name" android:textColor="@color/ml_white" android:textSize="14dp" /> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/milu_color_de" android:visibility="gone" /> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:scrollbars="none"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="58dp" android:layout_marginRight="58dp" android:gravity="center" android:orientation="vertical"> <ImageView android:id="@+id/iv_logo" android:layout_width="96dp" android:layout_height="47dp" android:layout_gravity="center_horizontal" android:layout_marginTop="15dp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="50dp" android:text="@string/ml_login_account" android:textColor="@color/ml_white" android:textSize="13dp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/ed_phone" android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="center_vertical" android:layout_weight="4" android:background="@null" android:gravity="center_vertical" android:hint="@string/ml_login_please_input_account" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <RelativeLayout android:id="@+id/rl_pass_list" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.5"> <ImageView android:id="@+id/iv_pass_list" android:layout_width="18dp" android:layout_height="18dp" android:layout_centerInParent="true" android:background="@mipmap/down" /> </RelativeLayout> </LinearLayout> <View android:id="@+id/v_xhlist" android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:minWidth="50dp" android:text="@string/ml_login_password" android:textColor="@color/ml_white" android:textSize="13dp" /> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/ed_password" android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="center_vertical" android:layout_weight="4" android:background="@null" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_new_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textPassword" android:maxLines="1" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="13sp" /> <RelativeLayout android:id="@+id/rl_eye" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.5"> <ImageView android:id="@+id/iv_eye" android:layout_width="15dp" android:layout_height="8dp" android:layout_centerInParent="true" android:background="@mipmap/notsee" /> </RelativeLayout> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:orientation="horizontal"> <TextView android:id="@+id/tv_zhuce" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="3dp" android:text="@string/ml_login_fast" android:textColor="@color/ml_white" android:textSize="13dp" /> <TextView android:id="@+id/tvforget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:gravity="center" android:padding="3dp" android:text="@string/ml_login_forget" android:textColor="@color/milu_orange" android:textSize="13dp" /> </RelativeLayout> </LinearLayout> <Button android:id="@+id/bt_tologin" android:layout_width="match_parent" android:layout_height="39dp" android:layout_centerInParent="true" android:layout_marginTop="25dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_login_login_in" android:textColor="@color/milu_whitecolor" android:textSize="16sp" /> </LinearLayout> </androidx.core.widget.NestedScrollView> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_marginBottom="15dp" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/img_cb" android:layout_width="12dp" android:layout_height="12dp" android:background="@mipmap/hw_account_xz" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginLeft="3dp" android:text="@string/ml_select_login_agree" android:textColor="#ffffffff" android:textSize="10sp" /> <TextView android:id="@+id/tv_userAgreement" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:autoLink="all" android:text="@string/ml_select_login_agree_01" android:textColor="@color/milu_orange" android:textSize="10sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:text="@string/ml_select_login_agree_02" android:textColor="#ffffffff" android:textSize="10sp" /> <TextView android:id="@+id/tv_privacyPolicy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:text="@string/ml_select_login_agree_03" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_select_login.xml
New file @@ -0,0 +1,243 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/tv_versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="15dp" android:layout_marginTop="15dp" android:textColor="#ff999999" android:textSize="10sp" /> <LinearLayout android:id="@+id/ll_service" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:gravity="center_vertical" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:src="@mipmap/ml_ic_login_service_red" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="30dp" android:text="@string/ml_login_kefu_title" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </RelativeLayout> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:scrollbars="none"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="58dp" android:layout_marginTop="30dp" android:layout_marginRight="58dp" android:orientation="vertical"> <ImageView android:id="@+id/iv_logo" android:layout_width="96dp" android:layout_height="47dp" android:layout_gravity="center_horizontal" /> <TextView android:id="@+id/tv_user_login" android:layout_width="match_parent" android:layout_height="39dp" android:layout_gravity="center" android:layout_marginTop="40dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_select_login_name" android:textColor="@color/ml_white" android:textSize="14dp" /> <TextView android:id="@+id/tv_visitor_login" android:layout_width="match_parent" android:layout_height="39dp" android:layout_gravity="center" android:layout_marginTop="25dp" android:background="@drawable/botton_yuan_xian_9f9" android:gravity="center" android:text="@string/ml_select_login_visitor" android:textColor="@color/milu_red" android:textSize="14dp" /> <LinearLayout android:id="@+id/ll_loginWays" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="40dp" android:gravity="center_vertical" android:orientation="horizontal"> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_weight="1" android:alpha="0.5" android:background="@color/ml_color_72" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:text="@string/ml_select_login_title" android:textColor="@color/milu_color_99" android:textSize="12dp" /> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_weight="1" android:alpha="0.5" android:background="@color/ml_color_72" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="25dp" android:gravity="center" android:orientation="horizontal"> <TextView android:id="@+id/tv_google" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:drawableTop="@mipmap/ml_google" android:drawablePadding="8dp" android:gravity="center" android:text="@string/ml_select_login_google" android:textColor="@color/milu_color_99" android:textSize="13dp" android:visibility="gone" /> <RelativeLayout android:id="@+id/rl_facebook" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:visibility="gone"> <com.facebook.login.widget.LoginButton android:id="@+id/btn_facebook" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="gone" /> <TextView android:id="@+id/tv_facebook" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:drawableTop="@mipmap/ml_facrbook" android:drawablePadding="8dp" android:gravity="center" android:text="@string/ml_select_login_facebook" android:textColor="@color/milu_color_99" android:textSize="13dp" /> </RelativeLayout> </LinearLayout> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:layout_marginBottom="15dp" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/img_cb" android:layout_width="12dp" android:layout_height="12dp" android:background="@mipmap/hw_account_xz" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginLeft="3dp" android:text="@string/ml_select_login_agree" android:textColor="#ffffffff" android:textSize="10sp" /> <TextView android:id="@+id/tv_userAgreement" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:autoLink="all" android:text="@string/ml_select_login_agree_01" android:textColor="@color/milu_orange" android:textSize="10sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:text="@string/ml_select_login_agree_02" android:textColor="#ffffffff" android:textSize="10sp" /> <TextView android:id="@+id/tv_privacyPolicy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:text="@string/ml_select_login_agree_03" android:textColor="@color/milu_orange" android:textSize="10sp" /> </LinearLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_fragment_setpassword.xml
New file @@ -0,0 +1,113 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="vertical"> <RelativeLayout android:id="@+id/title_layout" android:layout_width="match_parent" android:layout_height="44dp"> <LinearLayout android:id="@+id/back_img" android:layout_width="50dp" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="10dp" android:layout_height="15dp" android:background="@mipmap/ml_back_icon" android:contentDescription="@string/app_name" /> </LinearLayout> <TextView android:id="@+id/tv_titles" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/ml_main_set_password" android:textColor="@color/ml_white" android:textSize="16dp" /> </RelativeLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="45dp" android:orientation="vertical" android:paddingLeft="50dp" android:paddingRight="50dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="40dp" android:gravity="center_vertical" android:orientation="horizontal"> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/ed_account" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/milu_transparent" android:gravity="center_vertical" android:hint="@string/ml_login_please_input_account" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textEmailAddress" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="14sp" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <LinearLayout android:layout_width="match_parent" android:layout_height="40dp" android:layout_marginTop="15dp" android:gravity="center_vertical" android:orientation="horizontal"> <com.maiyou.maiysdk.util.ClearableEditText android:id="@+id/ed_password" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/milu_transparent" android:gravity="center_vertical" android:hint="@string/ml_change_pwd_new_hint" android:imeOptions="flagNoFullscreen|actionNext" android:inputType="textPassword" android:singleLine="true" android:textColor="@color/ml_white" android:textColorHint="@color/milu_color_99" android:textSize="14sp" /> </LinearLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:alpha="0.5" android:background="@color/ml_color_72" /> <Button android:id="@+id/save_btn" android:layout_width="match_parent" android:layout_height="32dp" android:layout_marginTop="39dp" android:background="@drawable/ml_btn_login_red" android:gravity="center" android:text="@string/ml_set_pwd_confirm" android:textColor="@color/milu_whitecolor" android:textSize="17sp" /> </LinearLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_item_emails.xml
New file @@ -0,0 +1,26 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingLeft="10dp" android:paddingRight="10dp"> <TextView android:id="@+id/tv_email" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_centerVertical="true" android:ellipsize="end" android:gravity="center" android:singleLine="true" android:textColor="@color/ml_white" android:textSize="13dp" /> <View android:id="@+id/v_line" android:layout_width="match_parent" android:layout_height="1px" android:background="@color/ml_white" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_item_preview.xml
New file @@ -0,0 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical"> <uk.co.senab.photoview.PhotoView android:id="@+id/iv_pager" android:layout_width="match_parent" android:layout_height="match_parent"/> </LinearLayout><!-- From: file:/Users/foamtrace/dev/AndroidStudioProjects/PhotoPicker/photopicker/src/main/res/layout/item_preview.xml --> SdkProject/channel/mlgtgame/res/layout/ml_item_service.xml
New file @@ -0,0 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <RelativeLayout android:id="@+id/rl_email_kefu" android:layout_width="match_parent" android:layout_height="50dp" android:paddingLeft="20dp" android:paddingRight="20dp"> <TextView android:id="@+id/tv_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="@string/ml_login_kefu_email" android:textColor="@color/ml_white" android:textSize="13sp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@mipmap/ml_ic_right_white" /> <View android:layout_width="match_parent" android:layout_height="0.5dp" android:layout_alignParentBottom="true" android:background="#727272" /> </RelativeLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_item_usname_list_adapter.xml
New file @@ -0,0 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="50dp" android:orientation="vertical"> <RelativeLayout android:id="@+id/rl_xhitem" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="10dp"> <TextView android:id="@+id/tv_userName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:textColor="@color/ml_white" android:textSize="15dp"/> <TextView android:id="@+id/tv_quxiao" android:layout_width="20dp" android:layout_height="20dp" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:background="@mipmap/ml_act_quxiaos" /> </RelativeLayout> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/ml_sdk_activity_main.xml
New file @@ -0,0 +1,40 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/tv_logOn" android:layout_width="100dp" android:layout_height="30dp" android:layout_gravity="center" android:layout_marginTop="35dp" android:background="@color/milu_colorPrimaryDark" android:gravity="center" android:text="登录" android:textColor="@color/milu_colorAccent" /> <TextView android:id="@+id/tv_Uploads" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_gravity="center" android:layout_marginTop="15dp" android:background="@color/milu_colorPrimaryDark" android:gravity="center" android:text="上报角色信息" android:textColor="@color/milu_colorAccent" /> <TextView android:id="@+id/tv_payment" android:layout_width="100dp" android:layout_height="30dp" android:layout_gravity="center" android:layout_marginTop="15dp" android:background="@color/milu_colorPrimaryDark" android:gravity="center" android:text="支付" android:textColor="@color/milu_colorAccent" /> </LinearLayout> SdkProject/channel/mlgtgame/res/layout/view_my_button.xml
New file @@ -0,0 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:src="@mipmap/ml_ic_mine_service" android:id="@+id/im_log_kefu" android:layout_width="45dp" android:layout_height="45dp" /> </LinearLayout> SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/down.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/edit_delete_icon.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/gengxin_xiazai_icon.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/hg_sj_username.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/hg_tishi.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/hw_account_xz.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/hw_sj_username.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/hw_tishi.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_account_nxz.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_act_quxiaos.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_auto_login.gif
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_back_finish.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_back_icon.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_bg_service_red.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_black_back.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_facrbook.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_google.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_bottom_white.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_empty_guide_land.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_empty_guide_land_fan.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_empty_guide_port.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_empty_guide_port_fan.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_left_white.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_login_service_red.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_mine_service.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_right_white.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_switch_left_red.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_ic_switch_right_red.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_logo.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_sj_username.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/ml_toux.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/notsee.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/see.png
SdkProject/channel/mlgtgame/res/mipmap-xxhdpi/tsdh_icon.png
SdkProject/channel/mlgtgame/res/values-zh-rTW/strings.xml
New file @@ -0,0 +1,174 @@ <resources> <string name="app_name">HhxkSdk</string> <string name="server_client_id">966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com</string> <string name="facebook_app_id" translatable="false">316850860963162</string> <string name="fb_login_protocol_scheme" translatable="false">fb316850860963162</string> <string name="facebook_client_token">42d8ba217a07ed5dfc5c95f98a9aae30</string> <string name="adjust_app_token">ces8o9qnj0n4</string> <!--初始化--> <string name="ml_manager_please_log">請先登錄!</string> <string name="ml_manager_order_exception">創建訂單异常,請重試~</string> <string name="ml_manager_payment_successful">支付成功,驗簽失敗</string> <string name="ml_manager_payment_signature">支付成功,驗簽出現錯誤</string> <string name="ml_manager_payment_cancellation">用戶取消支付</string> <string name="ml_manager_payment_abnormal">支付异常,請檢查網絡然後重試~</string> <!--版本更新--> <string name="ml_update_title">版本內容</string> <string name="ml_update_notupdate">暫不更新</string> <string name="ml_update_goupdate">立即陞級</string> <!-- 选择登录类型界面 --> <string name="ml_select_login_title">選擇登錄方式</string> <string name="ml_select_login_name">賬號登錄</string> <string name="ml_select_login_visitor">遊客登錄</string> <string name="ml_select_login_other">其他方式登錄</string> <string name="ml_select_login_agree">登錄註冊代表同意</string> <string name="ml_select_login_agree_01">《用戶協議》</string> <string name="ml_select_login_agree_02">和</string> <string name="ml_select_login_agree_03">《隱私政策》</string> <string name="ml_select_login_agree_04">請先閱讀並同意《用戶協議》和《隱私政策》</string> <!-- 账号密码登录 --> <string name="ml_login_account">郵箱</string> <string name="ml_login_please_input_account">請輸入郵箱</string> <string name="ml_login_password">密碼</string> <string name="ml_login_please_input_password">請輸入密碼</string> <string name="ml_login_fast">立即註冊</string> <string name="ml_login_forget">找回密碼</string> <string name="ml_login_login_in">登陸賬號</string> <!-- 个人中心 --> <string name="ml_main_title">用戶中心</string> <string name="ml_main_set_password">設置密碼</string> <string name="ml_main_change_password">修改密碼</string> <string name="ml_main_bind_email">綁定郵箱</string> <string name="ml_select_login_google">Google</string> <string name="ml_select_login_facebook">Facebook</string> <string name="ml_main_bind">已綁定</string> <string name="ml_main_unbind">未綁定</string> <string name="ml_main_language">當前語言</string> <string name="ml_main_jianti">中文简体</string> <string name="ml_main_fanti">中文繁體</string> <string name="ml_main_unsubscribe">註銷帳戶</string> <string name="ml_main_agreement">用戶服務協議</string> <string name="ml_main_switch_account">切換賬號</string> <string name="ml_main_email_binded">郵箱已綁定</string> <string name="ml_main_facebook_account">Facebook賬號已綁定</string> <string name="ml_main_google_binded">Google賬號已綁定</string> <!-- 设置密码 --> <string name="ml_set_pwd_confirm">確定</string> <string name="ml_set_pwd_account_rule">用戶名不能包含表情符號</string> <string name="ml_set_pwd_pwd_rule">密碼不能包含表情符號</string> <!-- 修改密码 --> <string name="ml_change_pwd_old">原始密碼</string> <string name="ml_change_pwd_old_hint">請輸入原始密碼</string> <string name="ml_change_pwd_new">設置新密碼</string> <string name="ml_change_pwd_new_hint">請輸入6-18位登錄密碼</string> <string name="ml_change_pwd_new_again">確認新密碼</string> <string name="ml_change_pwd_new_again_hint">請再次確認登錄密碼</string> <string name="ml_change_pwd_submit">提交</string> <string name="ml_change_pwd_toast_01">請輸入原始密碼</string> <string name="ml_change_pwd_toast_02">請輸入新密碼</string> <string name="ml_change_pwd_toast_03">請再次輸入新密碼</string> <string name="ml_change_pwd_toast_04">兩次輸入的密碼不一致</string> <string name="ml_change_pwd_success">修改成功,請重新登錄</string> <!-- 绑定邮箱 --> <string name="ml_bind_email_01">您正在爲賬號綁定郵箱,綁定郵箱能有效保障賬號安全,可通過郵箱找回密碼。</string> <string name="ml_bind_email_02">* 部分免費email郵箱,信件有可能被誤判爲垃圾信,請先至[垃圾信箱]查看獲取驗證碼。</string> <string name="ml_bind_email_account">郵箱</string> <string name="ml_bind_email_account_hint">請輸入郵箱</string> <string name="ml_bind_email_code">驗證碼</string> <string name="ml_bind_email_code_hint">請輸入驗證碼</string> <string name="ml_bind_email_send_code">獲取驗證碼</string> <string name="ml_bind_email_submit">立即綁定</string> <string name="ml_bind_email_success">綁定成功</string> <!-- 注册 --> <string name="ml_register_account">郵箱</string> <string name="ml_register_account_hint">請輸入郵箱</string> <string name="ml_register_pwd">密碼</string> <string name="ml_register_pwd_hint">請輸入6-18位登錄密碼</string> <string name="ml_register_submit">立即註冊</string> <string name="ml_register_toast_01">請輸入郵箱</string> <string name="ml_register_toast_02">請輸入密碼</string> <!-- 找回密码 --> <string name="ml_findpwd_account">郵箱</string> <string name="ml_findpwd_account_hint">請輸入郵箱</string> <string name="ml_findpwd_code">驗證碼</string> <string name="ml_findpwd_code_hint">請輸入驗證碼</string> <string name="ml_findpwd_send_code">獲取驗證碼</string> <string name="ml_findpwd_pwd">設置密碼</string> <string name="ml_findpwd_pwd_hint">請輸入6-18位登錄密碼</string> <string name="ml_findpwd_submit">確認</string> <!-- 选择语言dialog --> <string name="ml_dialog_qxiao">取消</string> <string name="ml_dialog_qd">確定</string> <string name="ml_dialog_tips">溫馨提示</string> <string name="ml_dialog_unsubscribe_desc">是否註銷當前賬號,註銷後無法再次使用此賬號登錄,請謹慎操作!\n賬號註銷後進入7天註銷緩衝期,緩衝期內重新登錄即可解除註銷狀態,繼續正常使用賬號。</string> <string name="ml_dialog_switch_account_desc">是否退出當前帳號?</string> <!--客服中心--> <string name="ml_login_kefu_title">聯系客服</string> <string name="ml_login_kefu_email">郵箱客服</string> <string name="ml_login_kefu_fb">fb公共主頁</string> <string name="pickerview_cancel">取消</string> <string name="pickerview_day">日</string> <string name="pickerview_hours">時</string> <string name="pickerview_minutes">分</string> <string name="pickerview_month">月</string> <string name="pickerview_seconds">秒</string> <string name="pickerview_submit">確定</string> <string name="pickerview_year">年</string> <!--支付--> <string name="ml_pay_title"></string> <string name="ml_pay_kefu">聯系客服</string> <string name="ml_pay_no_alipay">未檢測到支付寶客戶端,請安裝後重試。</string> <string name="ml_pay_install">立即安裝</string> <string name="ml_pay_cancel">取消</string> <string name="ml_pay_please_install">請先安裝相應的APP</string> <string name="ml_pay_issuccess">是否支付完成?</string> <string name="ml_pay_ok">是的</string> <!-- 下面是繁体字!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> <!-- 个人中心 --> <string name="ml_main_title_fan">用戶中心</string> <string name="ml_main_set_password_fan">設置密碼</string> <string name="ml_main_change_password_fan">修改密碼</string> <string name="ml_main_bind_email_fan">綁定郵箱</string> <string name="ml_select_login_google_fan">Google</string> <string name="ml_select_login_facebook_fan">Facebook</string> <string name="ml_main_bind_fan">已綁定</string> <string name="ml_main_unbind_fan">未綁定</string> <string name="ml_main_language_fan">當前語言</string> <string name="ml_main_jianti_fan">中文简体</string> <string name="ml_main_fanti_fan">中文繁體</string> <string name="ml_main_unsubscribe_fan">註銷帳戶</string> <string name="ml_main_agreement_fan">用戶服務協議</string> <string name="ml_main_switch_account_fan">切換賬號</string> <string name="ml_main_email_binded_fan">郵箱已綁定</string> <string name="ml_main_facebook_account_fan">Facebook賬號已綁定</string> <string name="ml_main_google_binded_fan">Google賬號已綁定</string> <!-- 选择语言dialog --> <string name="ml_dialog_qxiao_fan">取消</string> <string name="ml_dialog_qd_fan">确定</string> <string name="ml_dialog_tips_fan">温馨提示</string> <string name="ml_dialog_unsubscribe_desc_fan">是否註銷當前賬號,註銷後無法再次使用此賬號登錄,請謹慎操作!\n賬號註銷後進入7天註銷緩衝期,緩衝期內重新登錄即可解除註銷狀態,繼續正常使用賬號。</string> <string name="ml_dialog_switch_account_desc_fan">是否退出當前帳號?</string> </resources> SdkProject/channel/mlgtgame/res/values/colors.xml
New file @@ -0,0 +1,69 @@ <?xml version="1.0" encoding="utf-8"?> <resources> <color name="milu_colorPrimaryDark">#d2d2d2</color> <color name="milu_colorAccent">#0EBF9C</color> <color name="milu_whitecolor">#FFFFFF</color> <color name="milu_red">#F50303</color> <color name="milu_Frenchgrey">#F3F5FA</color> <color name="milu_darkgrey">#666666</color> <color name="milu_LightGray">#DDDDDD</color> <color name="milu_grayish">#BBBBBB</color> <color name="milu_grayish1">#CCCCCC</color> <color name="milu_grayisha">#D6C2FF</color> <color name="milu_color_99">#999999</color> <color name="milu_grayishd">#B4C9FF</color> <color name="milu_grayishc">#828D9A</color> <color name="milu_orange">#eb424c</color> <color name="milu_color_ee">#EEEEEE</color> <color name="milu_color_3">#333333</color> <color name="milu_color_5">#676767</color> <color name="milu_color_6">#fff8f3</color> <color name="milu_color_7">#fef8f3</color> <color name="milu_color_db">#DBDADA</color> <color name="milu_color_18">#FF282828</color> <color name="milu_color_ea">#EA4624</color> <color name="milu_color_de">#dedede</color> <color name="milu_color_ff5">#FF5E00</color> <color name="milu_color_a2">#A2A2A2</color> <color name="milu_color_f5f">#F5F6F8</color> <color name="milu_color_pink2">#FFE7B8</color> <color name="milu_lightmilu_black">#202020</color> <color name="milu_transparent">#00000000</color> <color name="milu_black">#000000</color> <color name="milu_color_0b">#0B1611</color> <color name="milu_black28">#282828</color> <color name="milu_fzblue">#007AFF</color> <color name="milu_babyblues">#B3F1FF</color> <color name="milu_pale1">#E9E9E9</color> <color name="milu_color_f6">#F6F6F6</color> <color name="ml_color_72">#727272</color> <color name="milu_light_orange">#FE9B51</color> <color name="md_btn_selected">#33969696</color> <color name="md_btn_selected_dark">#40CBCBCB</color> <color name="milu_color_8F5A0C">#8F5A0C</color> <color name="md_divider_milu_black">#10000000</color> <color name="md_divider_white">#10FFFFFF</color> <color name="md_material_blue_600">#2196F3</color> <color name="md_material_blue_800">#1565C0</color> <color name="md_edittext_error">#DD2C00</color> <color name="photopicker_background">#181819</color> <color name="gamehelper_white">#FFFFFF</color> <color name="gamehelper_newColor">#f07a0e</color> <color name="gamehelper_font_color_f1914">#F19149</color> <color name="gamehelper_themb_color">#FC541F</color> <color name="ml_mine_yellow">#eb424c</color> <color name="ml_mine_blue">#eb424c</color> <color name="ml_mine_red">#eb424c</color> <color name="ml_white">#ffffff</color> <color name="ml_mine_text_02">#666666</color> <color name="ml_mine_text_03">#999999</color> <color name="ml_cc">#999999</color> <color name="ml_activity_bg">#A6000000</color> </resources> SdkProject/channel/mlgtgame/res/values/strings.xml
New file @@ -0,0 +1,175 @@ <resources> <string name="app_name">HhxkSdk</string> <string name="server_client_id">966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com</string> <string name="facebook_app_id" translatable="false">316850860963162</string> <string name="fb_login_protocol_scheme" translatable="false">fb316850860963162</string> <string name="facebook_client_token">42d8ba217a07ed5dfc5c95f98a9aae30</string> <string name="adjust_app_token">ces8o9qnj0n4</string> <!--初始化--> <string name="ml_manager_please_log">请先登录!</string> <string name="ml_manager_order_exception">创建订单异常,请重试~</string> <string name="ml_manager_payment_successful">支付成功,验签失败</string> <string name="ml_manager_payment_signature">支付成功,验签出现错误</string> <string name="ml_manager_payment_cancellation">用户取消支付</string> <string name="ml_manager_payment_abnormal">支付异常,请检查网络然后重试~</string> <!--版本更新--> <string name="ml_update_title">版本内容</string> <string name="ml_update_notupdate">暂不更新</string> <string name="ml_update_goupdate">立即升级</string> <!-- 选择登录类型界面 --> <string name="ml_select_login_title">选择登录方式</string> <string name="ml_select_login_name">账号登录</string> <string name="ml_select_login_visitor">游客登录</string> <string name="ml_select_login_other">其他方式登录</string> <string name="ml_select_login_agree">登录注册代表同意</string> <string name="ml_select_login_agree_01">《用户协议》</string> <string name="ml_select_login_agree_02">和</string> <string name="ml_select_login_agree_03">《隐私政策》</string> <string name="ml_select_login_agree_04">请先阅读并同意《用户协议》和《隐私政策》</string> <!-- 账号密码登录 --> <string name="ml_login_account">邮箱</string> <string name="ml_login_please_input_account">请输入邮箱</string> <string name="ml_login_password">密码</string> <string name="ml_login_please_input_password">请输入密码</string> <string name="ml_login_fast">立即注册</string> <string name="ml_login_forget">找回密码</string> <string name="ml_login_login_in">登陆账号</string> <!-- 个人中心 --> <string name="ml_main_title">用户中心</string> <string name="ml_main_set_password">设置密码</string> <string name="ml_main_change_password">修改密码</string> <string name="ml_main_bind_email">绑定邮箱</string> <string name="ml_select_login_google">Google</string> <string name="ml_select_login_facebook">Facebook</string> <string name="ml_main_bind">已绑定</string> <string name="ml_main_unbind">未绑定</string> <string name="ml_main_language">当前语言</string> <string name="ml_main_jianti">中文简体</string> <string name="ml_main_fanti">中文繁體</string> <string name="ml_main_unsubscribe">注销账户</string> <string name="ml_main_agreement">用户服务协议</string> <string name="ml_main_switch_account">切换账号</string> <string name="ml_main_email_binded">邮箱已绑定</string> <string name="ml_main_facebook_account">Facebook账号已绑定</string> <string name="ml_main_google_binded">Google账号已绑定</string> <!-- 设置密码 --> <string name="ml_set_pwd_confirm">确定</string> <string name="ml_set_pwd_account_rule">用户名不能包含表情符号</string> <string name="ml_set_pwd_pwd_rule">密码不能包含表情符号</string> <!-- 修改密码 --> <string name="ml_change_pwd_old">原始密码</string> <string name="ml_change_pwd_old_hint">请输入原始密码</string> <string name="ml_change_pwd_new">设置新密码</string> <string name="ml_change_pwd_new_hint">请输入6-18位登录密码</string> <string name="ml_change_pwd_new_again">确认新密码</string> <string name="ml_change_pwd_new_again_hint">请再次确认登录密码</string> <string name="ml_change_pwd_submit">提交</string> <string name="ml_change_pwd_toast_01">请输入原始密码</string> <string name="ml_change_pwd_toast_02">请输入新密码</string> <string name="ml_change_pwd_toast_03">请再次输入新密码</string> <string name="ml_change_pwd_toast_04">两次输入的密码不一致</string> <string name="ml_change_pwd_success">修改成功,请重新登录</string> <!-- 绑定邮箱 --> <string name="ml_bind_email_01">您正在为账号绑定邮箱,绑定邮箱能有效保障账号安全,可通过邮箱找回密码。</string> <string name="ml_bind_email_02">* 部分免费email邮箱,信件有可能被误判为垃圾信,请先至[垃圾信箱]查看获取验证码。</string> <string name="ml_bind_email_account">邮箱</string> <string name="ml_bind_email_account_hint">请输入邮箱</string> <string name="ml_bind_email_code">验证码</string> <string name="ml_bind_email_code_hint">请输入验证码</string> <string name="ml_bind_email_send_code">获取验证码</string> <string name="ml_bind_email_submit">立即绑定</string> <string name="ml_bind_email_success">绑定成功</string> <!-- 注册 --> <string name="ml_register_account">邮箱</string> <string name="ml_register_account_hint">请输入邮箱</string> <string name="ml_register_pwd">密码</string> <string name="ml_register_pwd_hint">请输入6-18位登录密码</string> <string name="ml_register_submit">立即注册</string> <string name="ml_register_toast_01">请输入邮箱</string> <string name="ml_register_toast_02">请输入密码</string> <!-- 找回密码 --> <string name="ml_findpwd_account">邮箱</string> <string name="ml_findpwd_account_hint">请输入邮箱</string> <string name="ml_findpwd_code">验证码</string> <string name="ml_findpwd_code_hint">请输入验证码</string> <string name="ml_findpwd_send_code">获取验证码</string> <string name="ml_findpwd_pwd">设置密码</string> <string name="ml_findpwd_pwd_hint">请输入6-18位登录密码</string> <string name="ml_findpwd_submit">确认</string> <!-- 选择语言dialog --> <string name="ml_dialog_qxiao">取消</string> <string name="ml_dialog_qd">确定</string> <string name="ml_dialog_tips">温馨提示</string> <string name="ml_dialog_unsubscribe_desc">是否注销当前账号,注销后无法再次使用此账号登录,请谨慎操作!\n账号注销后进入7天注销缓冲期,缓冲期内重新登录即可解除注销状态,继续正常使用账号。</string> <string name="ml_dialog_switch_account_desc">是否退出当前帐号?</string> <!--客服中心--> <string name="ml_login_kefu_title">联系客服</string> <string name="ml_login_kefu_email">邮箱客服</string> <string name="ml_login_kefu_fb">fb公共主页</string> <string name="pickerview_cancel">取消</string> <string name="pickerview_day">日</string> <string name="pickerview_hours">时</string> <string name="pickerview_minutes">分</string> <string name="pickerview_month">月</string> <string name="pickerview_seconds">秒</string> <string name="pickerview_submit">确定</string> <string name="pickerview_year">年</string> <!--支付--> <string name="ml_pay_title"></string> <string name="ml_pay_kefu">联系客服</string> <string name="ml_pay_no_alipay">未检测到支付宝客户端,请安装后重试。</string> <string name="ml_pay_install">立即安装</string> <string name="ml_pay_cancel">取消</string> <string name="ml_pay_please_install">请先安装相应的APP</string> <string name="ml_pay_issuccess">是否支付完成?</string> <string name="ml_pay_ok">是的</string> <!-- 下面是繁体字!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> <!-- 个人中心 --> <string name="ml_main_title_fan">用戶中心</string> <string name="ml_main_set_password_fan">設置密碼</string> <string name="ml_main_change_password_fan">修改密碼</string> <string name="ml_main_bind_email_fan">綁定郵箱</string> <string name="ml_select_login_google_fan">Google</string> <string name="ml_select_login_facebook_fan">Facebook</string> <string name="ml_main_bind_fan">已綁定</string> <string name="ml_main_unbind_fan">未綁定</string> <string name="ml_main_language_fan">當前語言</string> <string name="ml_main_jianti_fan">中文简体</string> <string name="ml_main_fanti_fan">中文繁體</string> <string name="ml_main_unsubscribe_fan">註銷帳戶</string> <string name="ml_main_agreement_fan">用戶服務協議</string> <string name="ml_main_switch_account_fan">切換賬號</string> <string name="ml_main_email_binded_fan">郵箱已綁定</string> <string name="ml_main_facebook_account_fan">Facebook賬號已綁定</string> <string name="ml_main_google_binded_fan">Google賬號已綁定</string> <!-- 选择语言dialog --> <string name="ml_dialog_qxiao_fan">取消</string> <string name="ml_dialog_qd_fan">确定</string> <string name="ml_dialog_tips_fan">温馨提示</string> <string name="ml_dialog_unsubscribe_desc_fan">是否註銷當前賬號,註銷後無法再次使用此賬號登錄,請謹慎操作!\n賬號註銷後進入7天註銷緩衝期,緩衝期內重新登錄即可解除註銷狀態,繼續正常使用賬號。</string> <string name="ml_dialog_switch_account_desc_fan">是否退出當前帳號?</string> </resources> SdkProject/channel/mlgtgame/res/values/styles.xml
New file @@ -0,0 +1,75 @@ <resources> <!-- Base application theme. --> <style name="AppTheme" parent="android:Theme.Light.NoTitleBar"> <item name="android:windowFullscreen">true</item> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> <item name="android:windowTranslucentStatus">true</item> </style> <style name="MainTheme"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsTranslucent">true</item> <!-- <item name="android:windowAnimationStyle">@style/AnimationActivity_01</item>--> <!--<item name="windowActionBar">false</item>--> <!--<item name="windowNoTitle">true</item>--> <item name="android:windowFullscreen">true</item> </style> <style name="AnimationActivity"> <item name="android:activityOpenEnterAnimation">@anim/activity_right_in</item> <item name="android:activityCloseExitAnimation">@anim/activity_right_out</item> </style> <style name="Dialog" parent="android:style/Theme.Dialog"> <item name="android:windowFrame">@null</item> <!-- 是否浮现下activity之上 --> <item name="android:windowIsFloating">true</item> <!-- 是否为半透明 --> <item name="android:windowIsTranslucent">false</item> <!-- 是否显示Tittle --> <item name="android:windowNoTitle">true</item> <!-- 设置Dialog背景 --> <item name="android:windowBackground">@color/milu_transparent</item> <!-- 背景是否模糊显示 --> <item name="android:backgroundDimEnabled">true</item> <!-- 设置模糊数值 --> <item name="android:backgroundDimAmount">0.5</item> <!-- 这里设置有bug --> <item name="android:windowFullscreen">true</item> </style> <color name="pickerview_bgColor_default">#FFFFFFFF</color> <color name="pickerview_bgColor_overlay">#60000000</color> <color name="pickerview_bg_topbar">#f5f5f5</color> <color name="pickerview_timebtn_nor">#057dff</color> <color name="pickerview_timebtn_pre">#c2daf5</color> <color name="pickerview_topbar_title">#000000</color> <color name="pickerview_wheelview_textcolor_center">#2a2a2a</color> <color name="pickerview_wheelview_textcolor_divider">#d5d5d5</color> <color name="pickerview_wheelview_textcolor_out">#a8a8a8</color> <declare-styleable name="pickerview"> <attr name="pickerview_gravity"> <enum name="center" value="17"/> <enum name="left" value="3"/> <enum name="right" value="5"/> </attr> <attr format="dimension" name="pickerview_textSize"/> <attr format="color" name="pickerview_textColorOut"/> <attr format="color" name="pickerview_textColorCenter"/> <attr format="color" name="pickerview_dividerColor"/> <attr format="float" name="pickerview_lineSpacingMultiplier"/> </declare-styleable> <dimen name="pickerview_textsize">20sp</dimen> <dimen name="pickerview_topbar_btn_textsize">17sp</dimen> <dimen name="pickerview_topbar_height">44dp</dimen> <dimen name="pickerview_topbar_padding">20dp</dimen> <dimen name="pickerview_topbar_title_textsize">18sp</dimen> <integer name="animation_default_duration">300</integer> </resources> SdkProject/channel/mlgtgame/res/xml/milu_provider_paths.xml
New file @@ -0,0 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="external_files" path="."/> </paths> SdkProject/channel/mlgtgame/res/xml/network_security_config.xml
New file @@ -0,0 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> </trust-anchors> </base-config> </network-security-config> SdkProject/channel/mlgtgame/res/xml/version_3_1_2.xml
New file @@ -0,0 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> </PreferenceScreen> SdkProject/gradle.properties
@@ -18,4 +18,4 @@ ## Automatically convert third-party libraries to use AndroidX android.enableJetifier=true #当前构建的渠道名称 CHANNEL_NAME=sohagame CHANNEL_NAME=mlgtgame SdkProject/library/build.gradle
@@ -1,5 +1,6 @@ plugins { id 'com.android.library' id 'com.google.gms.google-services' } def rootPath = rootProject.getRootDir().getAbsolutePath() @@ -38,7 +39,7 @@ defaultConfig { minSdkVersion 21 targetSdkVersion 30 targetSdkVersion 31 versionCode 1 versionName "1.0" @@ -65,6 +66,7 @@ sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } packagingOptions {exclude 'META-INF/rxjava.properties'} lintOptions { checkReleaseBuilds false abortOnError false @@ -200,41 +202,25 @@ implementation('androidx.appcompat:appcompat:1.0.0') { force = true } implementation(name: 'SohaSDK', ext: 'aar') implementation 'com.google.android.material:material:1.0.0' api 'com.squareup.retrofit2:retrofit:2.5.0' api 'com.squareup.retrofit2:converter-gson:2.4.0' api 'com.squareup.okhttp3:logging-interceptor:3.9.0' implementation 'com.google.firebase:firebase-analytics:17.4.1' implementation 'com.google.firebase:firebase-messaging:20.1.7' implementation 'com.google.firebase:firebase-dynamic-links:19.1.0' implementation 'com.google.firebase:firebase-config:19.1.4' implementation 'com.facebook.android:facebook-login:11.1.0' implementation 'com.android.billingclient:billing:3.0.0' implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1' implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' api 'com.github.bumptech.glide:glide:4.9.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0' implementation 'com.github.ybq:Android-SpinKit:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' api 'androidx.multidex:multidex:2.0.1' api 'com.appsflyer:af-android-sdk:5.4.1' api 'com.android.installreferrer:installreferrer:1.0' api 'com.google.android.gms:play-services-auth:18.0.0' implementation 'com.adjust.sdk:adjust-android:4.28.3' //sdk所需依赖 implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0' //firebase implementation(platform("com.google.firebase:firebase-bom:32.2.2")) implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-auth' implementation 'com.google.android.gms:play-services-auth:20.6.0' implementation 'com.facebook.android:facebook-login:16.2.0' implementation 'androidx.activity:activity-compose:1.3.1' // google 支付 implementation 'com.android.billingclient:billing:6.0.1' implementation 'androidx.fragment:fragment:1.3.2' // adjust (V1.0.2新增) implementation 'com.adjust.sdk:adjust-android:4.33.5' implementation 'com.android.installreferrer:installreferrer:2.2' implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' implementation 'com.google.android.gms:play-services-appset:16.0.2' } SdkProject/library/google-services.json
New file @@ -0,0 +1,100 @@ { "project_info": { "project_number": "966789831936", "project_id": "djmx-android", "storage_bucket": "djmx-android.appspot.com" }, "client": [ { "client_info": { "mobilesdk_app_id": "1:966789831936:android:f381abd6b3cbbf70ff67e5", "android_client_info": { "package_name": "com.hhxk.djmx" } }, "oauth_client": [ { "client_id": "966789831936-5tlhorb43f1t8o4v8opughmb0ufd8ddg.apps.googleusercontent.com", "client_type": 1, "android_info": { "package_name": "com.hhxk.djmx", "certificate_hash": "ce8703d5734e0e1e6e9eb0766c6954fb1b269802" } }, { "client_id": "966789831936-7kvc289ui991rool953ms9btb7dcihuv.apps.googleusercontent.com", "client_type": 1, "android_info": { "package_name": "com.hhxk.djmx", "certificate_hash": "182d414a78abee730625ac28dc5354e71e3cf27f" } }, { "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com", "client_type": 3 } ], "api_key": [ { "current_key": "AIzaSyCKWCtHXjIkHtnnKcoua1yf-YXxXmrXla8" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [ { "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com", "client_type": 3 } ] } } }, { "client_info": { "mobilesdk_app_id": "1:966789831936:android:9bcdeeea75060602ff67e5", "android_client_info": { "package_name": "com.secondworld.sdk" } }, "oauth_client": [ { "client_id": "966789831936-3dmgiepupci14n7gh0ihsv3abqb9fnj1.apps.googleusercontent.com", "client_type": 1, "android_info": { "package_name": "com.secondworld.sdk", "certificate_hash": "182d414a78abee730625ac28dc5354e71e3cf27f" } }, { "client_id": "966789831936-ifl0c6lnuroou9mpj74dkk8kphhblq56.apps.googleusercontent.com", "client_type": 1, "android_info": { "package_name": "com.secondworld.sdk", "certificate_hash": "ce8703d5734e0e1e6e9eb0766c6954fb1b269802" } }, { "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com", "client_type": 3 } ], "api_key": [ { "current_key": "AIzaSyCKWCtHXjIkHtnnKcoua1yf-YXxXmrXla8" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [ { "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com", "client_type": 3 } ] } } } ], "configuration_version": "1" } SdkProject/library/src/main/java/com/secondworld/sdk/GameActivity.java
@@ -10,7 +10,7 @@ import com.secondworld.sdk.utils.LogUtil; import com.secondworld.sdk.utils.WebViewUtil; import com.soha.sdk.SohaSDK; public class GameActivity extends UnityPlayerActivity { @@ -95,12 +95,6 @@ super.onNewIntent(intent); if (proxy != null) proxy.onNewIntent(intent); boolean isNotificationGame = intent.getBooleanExtra("action_notification_game_push", false); SohaSDK.getInstance().setClickNoti(isNotificationGame); SohaSDK.getInstance().trackingNotification(intent); } @Override SdkProject/library/src/main/java/com/secondworld/sdk/PermissionManager.java
@@ -12,8 +12,7 @@ import com.secondworld.sdk.utils.CodeA2U; import com.secondworld.sdk.utils.LogUtil; import com.secondworld.sdk.utils.RequestCode; import com.soha.sdk.SohaSDK; import com.soha.sdk.permission.GrantPermissions; import java.util.HashMap; import java.util.Map; @@ -41,12 +40,6 @@ return; //ActivityCompat.requestPermissions(GameActivityProxy.I.activity, new String[]{permission}, RequestCode.UNITY); SohaSDK.getInstance().requestPermission(new String[]{permission}, new GrantPermissions() { @Override public void doAction() { } }); }