diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 0d156937bb..663459aa50 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -3,18 +3,9 @@ - diff --git a/.idea/misc.xml b/.idea/misc.xml index 21e99e2dc0..cd77a1f062 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 70e5e7a55c..2b479554e4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -111,6 +111,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true' } // f系列-分体机 f80x { @@ -127,6 +129,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true' } // e系列,采用Launcher方案 e8xx { @@ -143,6 +147,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true' } // 同上 em4 { @@ -159,6 +165,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true' } // e系列-2+32,对标D系列2+32,采用独立app的形式 em3 { @@ -175,6 +183,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false' } // e系列-1+16,对标D系列1+16,采用独立app形式 em1 { @@ -191,6 +201,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false' } // d系列 d8xx { @@ -207,6 +219,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'true' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false' } // d系列 2 + 32 d80x { @@ -223,6 +237,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'true' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false' } // d系列 1+16 版本 d82x { @@ -239,6 +255,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'true' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false' } // 比亚迪 bydauto { @@ -255,6 +273,8 @@ android { buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'true' // 是否加载引导模块 buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false' + // 是否支持换肤 + buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false' } qa { dimension "env" diff --git a/app/regroup.gradle b/app/regroup.gradle index a30fe32197..84cd73d13d 100644 --- a/app/regroup.gradle +++ b/app/regroup.gradle @@ -3,7 +3,7 @@ afterEvaluate { def independent = ["em3", "em1", "d80x", "d82x", "bydauto"] - def launcher = ["f80x", "em4"] + def launcher = ["f80x", "em4", "e8xx"] it.getTasks().iterator().forEachRemaining { def task = it diff --git a/app/src/main/java/com/mogo/launcher/MogoApplication.java b/app/src/main/java/com/mogo/launcher/MogoApplication.java index f97d224c6c..3394d0a926 100644 --- a/app/src/main/java/com/mogo/launcher/MogoApplication.java +++ b/app/src/main/java/com/mogo/launcher/MogoApplication.java @@ -31,6 +31,7 @@ import com.mogo.test.crashreport.ITestCrashReportProvider; import com.mogo.utils.UiThreadHandler; import com.mogo.utils.logger.LogLevel; import com.mogo.utils.logger.Logger; +import com.mogo.utils.storage.SharedPrefsMgr; import com.squareup.leakcanary.LeakCanary; import com.zhidao.boot.persistent.lib.PersistentManager; import com.zhidao.mogo.module.left.panel.LeftPanelConst; @@ -66,6 +67,8 @@ public class MogoApplication extends AbsMogoApplication { if ( DebugConfig.isLoadGuideModule() ) { MogoModulePaths.addModule( new MogoModule( PATH_GUIDE_FRAGMENT, PATH_GUIDE_MODULE_NAME ) ); + }else{ + SharedPrefsMgr.getInstance(this).putBoolean(DebugConfig.getSpGuide(),true); } MogoModulePaths.addModule( new MogoModule( MogoServicePaths.PATH_AGREEMENT, AuthorizeConstant.PATH_AGREEMENT_MODULE_NAME ) ); @@ -81,7 +84,7 @@ public class MogoApplication extends AbsMogoApplication { MogoModulePaths.addModule( new MogoModule( TanluApiConst.MODULE_PATH, TanluApiConst.MODULE_NAME ) ); MogoModulePaths.addBaseModule( new MogoModule( TanluConstants.TAG, TanluConstants.MODEL_NAME ) ); - MogoModulePaths.addModule( new MogoModule( MogoServicePaths.PATH_SHARE, "ShareControl" ) ); + MogoModulePaths.addBaseModule( new MogoModule( MogoServicePaths.PATH_SHARE, "ShareControl" ) ); MogoModulePaths.addModule( new MogoModule( LeftPanelConst.PATH_NAME, LeftPanelConst.MODULE_NAME ) ); @@ -132,6 +135,7 @@ public class MogoApplication extends AbsMogoApplication { DebugConfig.setSocketAppId( BuildConfig.SOCKET_APP_ID ); DebugConfig.setRoadEventAnimated( BuildConfig.ROAD_EVENT_ANIMATED ); DebugConfig.setLoadGuideModule( BuildConfig.LOAD_GUIDE_MODULE ); + DebugConfig.setSkinSupported( BuildConfig.IS_SKIN_SUPPORTED ); } @Override diff --git a/foudations/mogo-commons/src/main/java/com/mogo/commons/debug/DebugConfig.java b/foudations/mogo-commons/src/main/java/com/mogo/commons/debug/DebugConfig.java index 084326da6e..4f9761ca27 100644 --- a/foudations/mogo-commons/src/main/java/com/mogo/commons/debug/DebugConfig.java +++ b/foudations/mogo-commons/src/main/java/com/mogo/commons/debug/DebugConfig.java @@ -267,4 +267,14 @@ public class DebugConfig { public static String getSpGuide(){ return SP_GUIDE; } + + private static boolean isSkinSupported = false; + + public static void setSkinSupported( boolean isSkinSupported ) { + DebugConfig.isSkinSupported = isSkinSupported; + } + + public static boolean isSkinSupported() { + return isSkinSupported; + } } diff --git a/gradle.properties b/gradle.properties index 8efdc212f5..0a7bd019ea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -65,12 +65,12 @@ MOGO_BASE_SERVICES_SDK_VERSION = 1.2.1.22 # 探路 MOGO_MODULE_TANLU_VERSION=1.3.1.24 # 车聊聊 -CARCHATTING_VERSION=1.5.4 +CARCHATTING_VERSION=1.6.5 # 车聊聊接口 CARCHATTINGPROVIDER_VERSION=1.3.4 # 视频引导 MOGO_MODULE_GUIDESHOW_VERSION=1.0.2-SNAPSHOT -# 视频引导接口 +## 视频引导接口 MOGO_MODULE_GUIDESHOW_PROVIDER_VERSION=1.0.2-SNAPSHOT # 在线车辆F diff --git a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/CosStatusController.kt b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/CosStatusController.kt index 9cf32f0e38..b46e500568 100644 --- a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/CosStatusController.kt +++ b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/CosStatusController.kt @@ -13,7 +13,10 @@ import com.zhidao.roadcondition.event.GetImageSuccessEvent import com.zhidao.roadcondition.event.LatLngStickyEventBus import com.zhidao.roadcondition.model.proxy.INFO_TYPE_IMG import com.zhidao.roadcondition.model.proxy.INFO_TYPE_VIDEO -import com.zhidao.roadcondition.util.* +import com.zhidao.roadcondition.util.CarNet_Cos_Upload +import com.zhidao.roadcondition.util.LocationUtil +import com.zhidao.roadcondition.util.deletePicFile +import com.zhidao.roadcondition.util.trackNormalEvent /** * @description cos上传操作 @@ -23,10 +26,8 @@ import com.zhidao.roadcondition.util.* */ class CosStatusController : CosStatusCallback { val TAG: String = this.javaClass.simpleName - //存储单次请求的视频和缩略图url var videoAndThumbMap: MutableMap = mutableMapOf() - //图片上传的eventId lateinit var mPicEventId: String private var isRetry = false //是否重试上传过图片 @@ -79,43 +80,40 @@ class CosStatusController : CosStatusCallback { Log.d(TAG, "uploadCosFailed = $localPath") trackUploadCos(2) //语音播报 1:上报路况,2:交通检查,3:封路 默认 mType 应该为null -// if (CarCorderController.mType.equals(TANLU_ROAD_CONGESTION) || CarCorderController.mType.equals( -// TANLU_TRAFFIC_CHECK -// ) || CarCorderController.mType.equals(TANLU_ROAD_CLOSURE) -// || CarCorderController.mType.equals(TANLU_ROAD_CURRENT) || CarCorderController.mType.equals( -// TANLU_ROAD_PONDING -// ) || CarCorderController.mType.equals(TANLU_ROAD_ICING) -// || CarCorderController.mType.equals(TANLU_ROAD_HEAVY_FOG) || CarCorderController.mType.equals( -// TANLU_ROAD_ACCIDENT -// ) || CarCorderController.mType.equals(TANLU_ROAD_WORK) -// ) { + if (CarCorderController.mType.equals(TANLU_ROAD_CONGESTION) || CarCorderController.mType.equals( + TANLU_TRAFFIC_CHECK + ) || CarCorderController.mType.equals(TANLU_ROAD_CLOSURE) + || CarCorderController.mType.equals(TANLU_ROAD_CURRENT) || CarCorderController.mType.equals( + TANLU_ROAD_PONDING + ) || CarCorderController.mType.equals(TANLU_ROAD_ICING) + || CarCorderController.mType.equals(TANLU_ROAD_HEAVY_FOG) || CarCorderController.mType.equals( + TANLU_ROAD_ACCIDENT + ) || CarCorderController.mType.equals(TANLU_ROAD_WORK) + ) { // VoiceController.speakVoice("cos上报失败") - Log.d(TAG, "uploadCosFailed mType = $mType") - - if (!isRetry) { - isRetry = true - taskAsync(5_000) { - //去掉重试 - try { - uploadFile(mutableListOf(localPath as String), entity, mType, mainInfoId, mFromType, mLongitude, mLatitude) - } catch (e: Exception) { - e.printStackTrace() - } - } - } else { - //重试一次,如果还失败就提示 + Log.d(TAG, "uploadCosFailed mType = $mType") if (entity?.isCustom && mFromType != UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO) { sendGetInfoFailedReceiver("100") } + } + if (!isRetry) { + isRetry = true +// taskAsync(30_000) { //去掉重试 +// try { +// uploadFile(mutableListOf(localPath as String), entity, mType) +// } catch (e: Exception) { +// e.printStackTrace() +// } +// } + } else { if (localPath!!.endsWith("mp4") || localPath!!.contains("Thumbnail")) { CosCallbackMapController.uploadFailed?.invoke() } CosCallbackMapController.unregisterCallback(localPath) InformationUploadController.release(entity?.id) - deletePicFile(localPath) +// deletePicFile(localPath) } - } override fun uploadCosCompleted( @@ -161,7 +159,7 @@ class CosStatusController : CosStatusCallback { trackUploadCos(5) } } else { - //上传图片成功, 如果是上报路况,直接上传 + //上传图片成功, 如果是上报路况,直接上传,TODO Log.d(TAG, "uploadCosCompleted 分享成功 ---- mType = $mType") sendInformationDirectly( INFO_TYPE_IMG, @@ -214,9 +212,9 @@ class CosStatusController : CosStatusCallback { latitude = latitude ) { success -> CosCallbackMapController.unregisterCallbacks(map) - CosCallbackMapController.mainService?.let { - CosCallbackMapController.mainService?.sendCustomResult(success) - } +// CosCallbackMapController.mainService?.let { +// CosCallbackMapController.mainService?.sendCustomResult(success) +// } Log.d(TAG, "type = $type ----success = $success") if (success) { //分享成功,并打点,如果是上报拥堵,需要takeVideo @@ -233,6 +231,7 @@ class CosStatusController : CosStatusCallback { TipToast.shortTip("分享失败,请检查网络") } } + } } } @@ -247,5 +246,6 @@ class CosStatusController : CosStatusCallback { AbsMogoApplication.getApp().applicationContext ) } + } diff --git a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt index 87ac502a8b..bdd3f12d19 100644 --- a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt +++ b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt @@ -66,11 +66,11 @@ class MainService : Service() { private var mLatitude: Double = 0.0 //发送主动上报结果广播给外部 - fun sendCustomResult(result: Boolean) { - var intent = Intent(customResultAction) - intent.putExtra("isSuccess", result) - sendBroadcast(intent) - } +// fun sendCustomResult(result: Boolean) { +// var intent = Intent(customResultAction) +// intent.putExtra("isSuccess", result) +// sendBroadcast(intent) +// } override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { Log.d(TAG, "onStartCommand -----------> ") diff --git a/modules/mogo-module-apps/src/main/java/com/mogo/module/apps/model/AppsModel.java b/modules/mogo-module-apps/src/main/java/com/mogo/module/apps/model/AppsModel.java index 7bf13bcf63..ca43439031 100644 --- a/modules/mogo-module-apps/src/main/java/com/mogo/module/apps/model/AppsModel.java +++ b/modules/mogo-module-apps/src/main/java/com/mogo/module/apps/model/AppsModel.java @@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicBoolean; * 加载并保存 app 列表 */ public class AppsModel { - + private static final String TAG = "AppsModel"; private static volatile AppsModel sInstance; @@ -57,7 +57,6 @@ public class AppsModel { if ( mPagedApps != null ) { mPagedApps.clear(); } - mPagedApps = null; mContext = null; mAppFilter = null; sInstance = null; @@ -88,7 +87,7 @@ public class AppsModel { continue; } int page = counter++ / AppsConst.TOTAL_SIZE_EACH_PAGE; - if ( !mPagedApps.containsKey( page ) ) { + if ( mPagedApps.get( page ) == null ) { mPagedApps.put( page, new ArrayList<>() ); } String appName = getApplicationName( packageManager, packageInfo ); @@ -116,9 +115,12 @@ public class AppsModel { if ( TextUtils.isEmpty( packageName ) ) { return; } - if ( mPagedApps.isEmpty() ) { + if ( mPagedApps == null || mPagedApps.isEmpty() ) { return; } + if ( mAppFilter == null ) { + mAppFilter = new AppFilterImpl( mContext ); + } try { final PackageManager packageManager = mContext.getPackageManager(); PackageInfo packageInfo = packageManager.getPackageInfo( packageName, 0 ); @@ -129,7 +131,7 @@ public class AppsModel { Drawable appIcon = packageInfo.applicationInfo.loadIcon( packageManager ); AppInfo appInfo = new AppInfo( appName, packageName, versionName, versionCode, appIcon, AppEnumHelper.getCustomizedAppIconResId( packageName ) ); int pageIndex = getPageIndex( packageName, true ); - if ( !mPagedApps.containsKey( pageIndex ) ) { + if ( mPagedApps.get( pageIndex ) == null ) { mPagedApps.put( pageIndex, new ArrayList<>() ); } mPagedApps.get( pageIndex ).add( appInfo ); @@ -183,6 +185,9 @@ public class AppsModel { if ( TextUtils.isEmpty( packageName ) ) { return; } + if ( mPagedApps == null || mPagedApps.isEmpty() ) { + return; + } try { int pageIndex = getPageIndex( packageName, false ); if ( pageIndex == -1 ) { @@ -200,7 +205,7 @@ public class AppsModel { continue; } int page = counter++ / AppsConst.TOTAL_SIZE_EACH_PAGE + pageIndex; - if ( !mPagedApps.containsKey( page ) ) { + if ( mPagedApps.get( page ) == null ) { mPagedApps.put( page, new ArrayList<>() ); } mPagedApps.get( page ).add( appInfo ); diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/dialog/BaseFloatDialog.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/dialog/BaseFloatDialog.java index 58eb4cab55..b39f1dfb0c 100644 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/dialog/BaseFloatDialog.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/dialog/BaseFloatDialog.java @@ -27,7 +27,7 @@ public class BaseFloatDialog extends Dialog { } private void addFlag() { - getWindow().setType(WindowManager.LayoutParams.FIRST_SYSTEM_WINDOW + 10); + getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION | WindowManager.LayoutParams.FLAG_LOCAL_FOCUS_MODE); diff --git a/modules/mogo-module-common/src/main/res/values-xhdpi/dimens.xml b/modules/mogo-module-common/src/main/res/values-xhdpi/dimens.xml index 1770c16984..ca1346e002 100644 --- a/modules/mogo-module-common/src/main/res/values-xhdpi/dimens.xml +++ b/modules/mogo-module-common/src/main/res/values-xhdpi/dimens.xml @@ -1053,5 +1053,6 @@ 42px 48px -10px + 10px diff --git a/modules/mogo-module-common/src/main/res/values/dimens.xml b/modules/mogo-module-common/src/main/res/values/dimens.xml index 1e2c7b1cdc..170c5a430d 100644 --- a/modules/mogo-module-common/src/main/res/values/dimens.xml +++ b/modules/mogo-module-common/src/main/res/values/dimens.xml @@ -1044,4 +1044,5 @@ 22.9688px 26.2500px -8px + 8px diff --git a/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml b/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml index 8943492d98..6d816aa8bd 100644 --- a/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml +++ b/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml @@ -81,7 +81,7 @@ android:id="@+id/module_entrance_id_move2_current_location" android:layout_width="@dimen/module_ext_operation_panel_width" android:layout_height="@dimen/module_ext_operation_panel_move2_height" - android:background="@drawable/module_ext_dw_common_corner_bkg" + android:background="@drawable/module_ext_shadow_bkg" android:scaleType="centerInside" android:src="@drawable/module_map_ic_move2_current_location" app:layout_constraintBottom_toBottomOf="parent" @@ -92,6 +92,7 @@ android:layout_width="@dimen/module_ext_operation_panel_share_width" android:layout_height="@dimen/module_ext_operation_panel_share_height" android:layout_marginBottom="@dimen/module_ext_operation_panel_share_marginBottom" + android:layout_marginEnd="@dimen/module_common_shadow_width_pos" android:background="@drawable/module_ext_dw_upload_road_condition_bkg" app:layout_constraintBottom_toTopOf="@+id/module_entrance_id_move2_current_location" app:layout_constraintRight_toRightOf="@+id/module_entrance_id_move2_current_location" diff --git a/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_extensions.xml b/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_extensions.xml index d4118d06e7..f1ac9dc491 100644 --- a/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_extensions.xml +++ b/modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_extensions.xml @@ -13,7 +13,6 @@ android:paddingStart="@dimen/module_ext_weather_container_paddingLeft" android:paddingEnd="@dimen/module_ext_weather_container_paddingRight" android:visibility="invisible" - android:translationY="@dimen/module_common_shadow_width" app:layout_goneMarginLeft="@dimen/module_ext_notice_margin_start" app:layout_constraintTop_toTopOf="parent" app:layout_constraintLeft_toRightOf="@+id/module_ext_id_msg" @@ -43,7 +42,6 @@ android:layout_width="@dimen/module_ext_height" android:layout_height="@dimen/module_ext_height" android:layout_marginStart="@dimen/module_ext_notice_margin_start" - android:translationY="@dimen/module_common_shadow_width" android:layout_marginEnd="@dimen/module_ext_msg_marginRight" android:background="@drawable/module_ext_shadow_bkg" android:visibility="gone" @@ -73,8 +71,10 @@ 26px + 66px + 10px + 2px + 2px \ No newline at end of file diff --git a/modules/mogo-module-extensions/src/main/res/values-xhdpi-1920x1000/dimens.xml b/modules/mogo-module-extensions/src/main/res/values-xhdpi-1920x1000/dimens.xml index 0304873cfe..d34d1a739a 100644 --- a/modules/mogo-module-extensions/src/main/res/values-xhdpi-1920x1000/dimens.xml +++ b/modules/mogo-module-extensions/src/main/res/values-xhdpi-1920x1000/dimens.xml @@ -30,17 +30,17 @@ 32px 2px - 120px + 140px 32px 60px 92px 24px 48px 2px - 120px - 120px + 140px + 140px 120px - 30px + 20px 30px 32px 32px @@ -146,4 +146,8 @@ 40px 45px + 120px + 30px + 20px + 20px \ No newline at end of file diff --git a/modules/mogo-module-extensions/src/main/res/values-xhdpi/dimens.xml b/modules/mogo-module-extensions/src/main/res/values-xhdpi/dimens.xml index 6e8de9e26f..c06db31dd1 100644 --- a/modules/mogo-module-extensions/src/main/res/values-xhdpi/dimens.xml +++ b/modules/mogo-module-extensions/src/main/res/values-xhdpi/dimens.xml @@ -30,17 +30,17 @@ 32px 2px - 120px + 140px 32px 60px 92px 24px 48px 2px - 120px + 140px 120px 120px - 30px + 20px 30px 32px 32px @@ -145,7 +145,11 @@ 20px 34px - 175px - 30px + 161px + 10px 45px + 120px + 30px + 20px + 20px \ No newline at end of file diff --git a/modules/mogo-module-extensions/src/main/res/values/dimens.xml b/modules/mogo-module-extensions/src/main/res/values/dimens.xml index 2f344bce6f..37328f34fd 100644 --- a/modules/mogo-module-extensions/src/main/res/values/dimens.xml +++ b/modules/mogo-module-extensions/src/main/res/values/dimens.xml @@ -30,17 +30,17 @@ 20px 1px - 66px + 82px 20px 34.5px 58px 17px 31.4px 1.2px - 66px + 82px 66px 66px - 16px + 8px 16px 34.5px 20px @@ -60,7 +60,7 @@ 32px 32px - 90px + 78px 22px 28px @@ -151,7 +151,10 @@ 10px 19px - 16px + 0px 26px - + 66px + 10px + 2px + 2px \ No newline at end of file diff --git a/modules/mogo-module-guide/src/main/java/com/mogo/module/guide/fragment/GuideFragment.kt b/modules/mogo-module-guide/src/main/java/com/mogo/module/guide/fragment/GuideFragment.kt index b08d4375a9..5d4054afdc 100644 --- a/modules/mogo-module-guide/src/main/java/com/mogo/module/guide/fragment/GuideFragment.kt +++ b/modules/mogo-module-guide/src/main/java/com/mogo/module/guide/fragment/GuideFragment.kt @@ -24,6 +24,7 @@ class GuideFragment : MvpFragment(), GuideC } private var duringTime: Long = 0L + private var recordCount = 0 override fun getLayoutId(): Int { return R.layout.module_guide_fragment @@ -90,15 +91,18 @@ class GuideFragment : MvpFragment(), GuideC } fun closeGuideFragment() { - val recordTime = System.currentTimeMillis() - duringTime - val currentItem = moduleGuideViewPager.currentItem + 1 - AnalyticsUtil.track(INVOKE_TRACK_PLAY_PASS_ID, - hashMapOf(INVOKE_TRACK_PASS_TIME to currentItem - , INVOKE_TRACK_PLAY_TIME to recordTime)) - Logger.d(TAG, "closeGuideFragment -> recordTime : $recordTime , currentItem : $currentItem") + recordCount = moduleGuideViewPager.currentItem + 1 destroy() } + private fun track() { + val recordTime = System.currentTimeMillis() - duringTime + AnalyticsUtil.track(INVOKE_TRACK_PLAY_PASS_ID, + hashMapOf(INVOKE_TRACK_PASS_TIME to recordCount + , INVOKE_TRACK_PLAY_TIME to recordTime)) + Logger.d(TAG, "closeGuideFragment -> recordTime : $recordTime , recordCount : $recordCount") + } + private fun destroy() { speak(context!!, context!!.resources.getString(R.string.module_guide_voice_page_end), object : IMogoVoiceCmdCallBack { override fun onTTSEnd(ttsId: String?, tts: String?) { @@ -119,6 +123,7 @@ class GuideFragment : MvpFragment(), GuideC override fun onDestroy() { super.onDestroy() + track() invokeAuthorize() } } \ No newline at end of file diff --git a/modules/mogo-module-guide/src/main/res/values/strings.xml b/modules/mogo-module-guide/src/main/res/values/strings.xml index 653d0616bf..de95ff4900 100644 --- a/modules/mogo-module-guide/src/main/res/values/strings.xml +++ b/modules/mogo-module-guide/src/main/res/values/strings.xml @@ -6,9 +6,9 @@ 跳过 欢迎使用蘑菇出行,您下次可以直接对我说,打开蘑菇出行来直接进入应用,点击左下方按钮进行摄像头设置 - 左边是道路事件的播报,点击右边地图上的事件标示可以查看事件详情 + 左边是道路事件的播报,点击右边地图上的事件标示可以查看事件详情,或者直接唤醒小智说,中关村附近堵不堵,来查询目的地周围路况 这里是道路信息显示,点击后可查看事件详情 这里是事件汇总,您可以查看您参与的事件和您的分享记录 - 更多设置,在左上角的设置功能中,点击右下角的分享,可以把路况分享给其他车友 + 更多设置,在左上角的设置功能中,点击右下角的分享,可以把路况分享给其他车友,或者直接唤醒小智说,上报路况 我们希望让您的出行更加安全高效,更多功能等着你去发现,快去体验体验吧 diff --git a/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java b/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java index 9a21d22d01..61d14457c1 100644 --- a/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java +++ b/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java @@ -164,7 +164,9 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme obuManager.registerObuDataChangedListener(EventDispatchCenter.getInstance()); } - initAdasControlStatusListener(); + if ( DebugConfig.isSkinSupported() ) { + initAdasControlStatusListener(); + } EventDispatchCenter.getInstance().setMapLoadedCallback( () -> { Logger.d( TAG, "map loaded." + Thread.currentThread().getName() ); diff --git a/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml b/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml index a9cf9fe2a5..592d7824ff 100644 --- a/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml +++ b/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml @@ -48,6 +48,12 @@ android:layout_marginLeft="@dimen/module_main_id_entrance_fragment_container_marginLeft" android:padding="@dimen/module_main_entrance_fragment_container_padding" /> + + + - - - 30px 830px 800px - 30px + 20px 30px 340px diff --git a/modules/mogo-module-main/src/main/res/values/dimens.xml b/modules/mogo-module-main/src/main/res/values/dimens.xml index abb5b70e10..adabf11063 100644 --- a/modules/mogo-module-main/src/main/res/values/dimens.xml +++ b/modules/mogo-module-main/src/main/res/values/dimens.xml @@ -17,12 +17,12 @@ 319px 110px - 16px + 10px 15px 460px 444px 350px - 16px + 10px 16px 658px 8px diff --git a/modules/mogo-module-media/src/main/java/com/mogo/module/media/widget/AnimCircleImageView.java b/modules/mogo-module-media/src/main/java/com/mogo/module/media/widget/AnimCircleImageView.java index 6a0a8daab1..2217bbdab2 100644 --- a/modules/mogo-module-media/src/main/java/com/mogo/module/media/widget/AnimCircleImageView.java +++ b/modules/mogo-module-media/src/main/java/com/mogo/module/media/widget/AnimCircleImageView.java @@ -17,9 +17,12 @@ import android.util.Log; import android.widget.ImageView; import com.mogo.module.common.utils.CarSeries; +import com.mogo.skin.support.IMogoSkinCompatSupportable; +import com.mogo.skin.support.helper.MogoSkinCompatHelperDelegate; +import com.mogo.skin.support.helper.MogoSkinCompatImageHelperDelegate; @SuppressLint("AppCompatCustomView") -public class AnimCircleImageView extends ImageView { +public class AnimCircleImageView extends ImageView implements IMogoSkinCompatSupportable { Drawable mDrawbleSrc; Context context; Bitmap mBitmapOut; @@ -28,6 +31,10 @@ public class AnimCircleImageView extends ImageView { int defaultHeight; int diameter; int radius; + PaintFlagsDrawFilter drawFilter = new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG); + Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG); + + MogoSkinCompatImageHelperDelegate imageHelper; int currentDegree; int savedDegree; @@ -47,6 +54,7 @@ public class AnimCircleImageView extends ImageView { public AnimCircleImageView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); + imageHelper = new MogoSkinCompatImageHelperDelegate(this); this.context = context; init(); } @@ -76,6 +84,8 @@ public class AnimCircleImageView extends ImageView { @Override public void setImageResource(int resId) { super.setImageResource(resId); + Log.d("AnimCircle", "setImageResource: " + MogoSkinCompatHelperDelegate.isSupport()); + imageHelper.setImageResource(resId); mDrawbleSrc = getDrawable(); output = null; } @@ -106,23 +116,27 @@ public class AnimCircleImageView extends ImageView { @Override protected void onDraw(Canvas canvas) { - Log.d("AnimCircle", "onDraw===="); +// Log.d("AnimCircle", "onDraw===="); try { - if (mDrawbleSrc == null) + if (mDrawbleSrc == null) { return; + } - if (getWidth() == 0 || getHeight() == 0) + if (getWidth() == 0 || getHeight() == 0) { return; + } - if (mDrawbleSrc.getClass() == NinePatchDrawable.class) + if (mDrawbleSrc.getClass() == NinePatchDrawable.class) { return; + } if (output == null) { defaultHeight = getHeight(); defaultWidth = getWidth(); diameter = (defaultHeight > defaultWidth ? defaultWidth : defaultHeight); radius = diameter / 2; - mBitmapOut = getCuttedPicture(mDrawbleSrc); +// mBitmapOut = getCuttedPicture(mDrawbleSrc); + mBitmapOut = ((BitmapDrawable) mDrawbleSrc).getBitmap(); Paint paint = new Paint(); Rect rect = new Rect(0, 0, mBitmapOut.getWidth(), @@ -147,9 +161,9 @@ public class AnimCircleImageView extends ImageView { if (isRotateEnable) { currentDegree = (currentDegree + mRotateAngleStep) % 360; canvas.save(); - canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG)); + canvas.setDrawFilter(drawFilter); canvas.rotate(currentDegree, defaultWidth / 2, defaultHeight / 2); - canvas.drawBitmap(output, defaultWidth / 2 - radius, defaultHeight / 2 - radius, null); + canvas.drawBitmap(output, defaultWidth / 2 - radius, defaultHeight / 2 - radius, mPaint); canvas.restore(); if (isRotateEnable) { removeCallbacks(loopInvalidate); @@ -158,9 +172,9 @@ public class AnimCircleImageView extends ImageView { } } else { canvas.save(); - canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG)); + canvas.setDrawFilter(drawFilter); canvas.rotate(currentDegree, defaultWidth / 2, defaultHeight / 2); - canvas.drawBitmap(output, defaultWidth / 2 - radius, defaultHeight / 2 - radius, null); + canvas.drawBitmap(output, defaultWidth / 2 - radius, defaultHeight / 2 - radius, mPaint); canvas.restore(); } } catch (Exception e) { @@ -185,10 +199,12 @@ public class AnimCircleImageView extends ImageView { x = mBitmapScaled.getWidth() / 2 - radius; y = mBitmapScaled.getHeight() / 2 - radius; - if (x < 0) + if (x < 0) { x = 0; - if (y < 0) + } + if (y < 0) { y = 0; + } Bitmap mBitmapCropped = Bitmap.createBitmap(mBitmapScaled, x, y, diameter, diameter); return mBitmapCropped; } @@ -200,5 +216,10 @@ public class AnimCircleImageView extends ImageView { public void setDelayMilliseconds(int delayMilliseconds) { this.delayMilliseconds = delayMilliseconds; } + + @Override + public void applySkin() { + imageHelper.applySkin(); + } } diff --git a/modules/mogo-module-media/src/main/java/com/mogo/module/media/window/MediaWindow2.java b/modules/mogo-module-media/src/main/java/com/mogo/module/media/window/MediaWindow2.java index be8aba16ba..ccb2cb0cc8 100644 --- a/modules/mogo-module-media/src/main/java/com/mogo/module/media/window/MediaWindow2.java +++ b/modules/mogo-module-media/src/main/java/com/mogo/module/media/window/MediaWindow2.java @@ -12,6 +12,7 @@ import android.widget.TextView; import com.mogo.commons.debug.DebugConfig; import com.mogo.commons.voice.AIAssist; import com.mogo.commons.voice.IMogoVoiceCmdCallBack; +import com.mogo.module.common.glide.SkinAbleBitmapTarget; import com.mogo.module.media.MediaConstants; import com.mogo.module.media.R; import com.mogo.module.media.ServiceMediaHandler; @@ -92,6 +93,11 @@ public class MediaWindow2 implements IMusicView { return; } + if(!ServiceMediaHandler.getIMogoStatusManager().isMainPageOnResume()){ + Log.d(TAG, "not in front"); + return; + } + if (!mHasAddWindow) { mHasAddWindow = true; mWindowView = @@ -199,10 +205,14 @@ public class MediaWindow2 implements IMusicView { if (mCircleImg != null) { if(mMediaInfoData!=null&&mMediaInfoData.getMediaImg()!=null&&!mMediaInfoData.getMediaImg().isEmpty()) { + int size = + mContext.getResources().getDimensionPixelSize(R.dimen.module_media_pop_window_anim_img_size); + Logger.d(TAG, "overload: " + size); com.bumptech.glide.request.RequestOptions options = new com.bumptech.glide.request.RequestOptions() - .placeholder(R.drawable.module_media_default_music_img); - GlideApp.with(mContext).applyDefaultRequestOptions(options).load(mMediaInfoData.getMediaImg()).into(mCircleImg); + .placeholder(R.drawable.module_media_default_music_img).error(R.drawable.module_media_default_music_img).override(size, size); + GlideApp.with(mContext).asBitmap().apply(options).load(mMediaInfoData.getMediaImg()).into(new SkinAbleBitmapTarget(mCircleImg, options)); +// GlideApp.with(mContext).applyDefaultRequestOptions(options).load(mMediaInfoData.getMediaImg()).into(new SkinAbleBitmapTarget(mCircleImg, options)); }else{ mCircleImg.setImageResource(R.drawable.module_media_default_music_img); } diff --git a/modules/mogo-module-media/src/main/res/drawable-ldpi/module_media_window_alert_bg.9.png b/modules/mogo-module-media/src/main/res/drawable-ldpi/module_media_window_alert_bg.9.png new file mode 100644 index 0000000000..24567d76fc Binary files /dev/null and b/modules/mogo-module-media/src/main/res/drawable-ldpi/module_media_window_alert_bg.9.png differ diff --git a/modules/mogo-module-media/src/main/res/drawable-mdpi/module_media_window_alert_bg.9.png b/modules/mogo-module-media/src/main/res/drawable-mdpi/module_media_window_alert_bg.9.png new file mode 100644 index 0000000000..24567d76fc Binary files /dev/null and b/modules/mogo-module-media/src/main/res/drawable-mdpi/module_media_window_alert_bg.9.png differ diff --git a/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_default_music_img.png b/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_default_music_img.png index 4aab1a19b3..df81e5d06d 100644 Binary files a/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_default_music_img.png and b/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_default_music_img.png differ diff --git a/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_window_alert_bg.9.png b/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_window_alert_bg.9.png new file mode 100644 index 0000000000..96ddb81326 Binary files /dev/null and b/modules/mogo-module-media/src/main/res/drawable-xhdpi/module_media_window_alert_bg.9.png differ diff --git a/modules/mogo-module-media/src/main/res/drawable/module_media_window_alert_bg.xml b/modules/mogo-module-media/src/main/res/drawable/module_media_window_alert_bg.xml deleted file mode 100644 index 372926f342..0000000000 --- a/modules/mogo-module-media/src/main/res/drawable/module_media_window_alert_bg.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/modules/mogo-module-media/src/main/res/values-xhdpi/dimens.xml b/modules/mogo-module-media/src/main/res/values-xhdpi/dimens.xml index a07744e59d..f31888dd72 100644 --- a/modules/mogo-module-media/src/main/res/values-xhdpi/dimens.xml +++ b/modules/mogo-module-media/src/main/res/values-xhdpi/dimens.xml @@ -1,6 +1,6 @@ - 881px + 872px 1067px @@ -61,11 +61,11 @@ 4px 6px - 580px - 120px + 600px + 140px 112px 30px - 90px + 80px 230px 14px 35px diff --git a/modules/mogo-module-media/src/main/res/values/dimens.xml b/modules/mogo-module-media/src/main/res/values/dimens.xml index 372e5babff..9f6a51ce93 100644 --- a/modules/mogo-module-media/src/main/res/values/dimens.xml +++ b/modules/mogo-module-media/src/main/res/values/dimens.xml @@ -1,6 +1,6 @@ - 470px + 462px 573px @@ -61,11 +61,11 @@ 2px 3.2px - 322px - 66.7px + 332px + 76.7px 60px 18px - 48px + 44px 123px 10px 18px diff --git a/modules/mogo-module-push/src/main/res/drawable-ldpi/module_push_message_background.9.png b/modules/mogo-module-push/src/main/res/drawable-ldpi/module_push_message_background.9.png index a4c313e353..bf455a0ea2 100644 Binary files a/modules/mogo-module-push/src/main/res/drawable-ldpi/module_push_message_background.9.png and b/modules/mogo-module-push/src/main/res/drawable-ldpi/module_push_message_background.9.png differ diff --git a/modules/mogo-module-push/src/main/res/drawable-mdpi/module_push_message_background.9.png b/modules/mogo-module-push/src/main/res/drawable-mdpi/module_push_message_background.9.png index a4c313e353..bf455a0ea2 100644 Binary files a/modules/mogo-module-push/src/main/res/drawable-mdpi/module_push_message_background.9.png and b/modules/mogo-module-push/src/main/res/drawable-mdpi/module_push_message_background.9.png differ diff --git a/modules/mogo-module-push/src/main/res/drawable-xhdpi/module_push_message_background.9.png b/modules/mogo-module-push/src/main/res/drawable-xhdpi/module_push_message_background.9.png index 1de561aa65..d4a8803684 100644 Binary files a/modules/mogo-module-push/src/main/res/drawable-xhdpi/module_push_message_background.9.png and b/modules/mogo-module-push/src/main/res/drawable-xhdpi/module_push_message_background.9.png differ diff --git a/modules/mogo-module-push/src/main/res/drawable/module_push_message_background.9.png b/modules/mogo-module-push/src/main/res/drawable/module_push_message_background.9.png index a4c313e353..80ab4b841f 100644 Binary files a/modules/mogo-module-push/src/main/res/drawable/module_push_message_background.9.png and b/modules/mogo-module-push/src/main/res/drawable/module_push_message_background.9.png differ diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java index 63427473cf..3130142004 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java @@ -994,9 +994,11 @@ public class MapMarkerManager implements IMogoMarkerClickListener, return; } if ( mLastDataResult != null ) { - MarkerServiceHandler.getMarkerManager().removeMarkers( ModuleNames.CARD_TYPE_ROAD_CONDITION ); - drawMarkerByCurrentType( mLastDataResult ); - mLastCheckMarker = null; + runOnTargetThread( ()->{ + MarkerServiceHandler.getMarkerManager().removeMarkers( ModuleNames.CARD_TYPE_ROAD_CONDITION ); + drawMarkerByCurrentType( mLastDataResult ); + mLastCheckMarker = null; + } ); } break; } diff --git a/modules/mogo-module-share/src/main/java/com/mogo/module/share/manager/GridBtnManager.kt b/modules/mogo-module-share/src/main/java/com/mogo/module/share/manager/GridBtnManager.kt index 275a0e1b1a..7dd041a33e 100644 --- a/modules/mogo-module-share/src/main/java/com/mogo/module/share/manager/GridBtnManager.kt +++ b/modules/mogo-module-share/src/main/java/com/mogo/module/share/manager/GridBtnManager.kt @@ -70,8 +70,10 @@ class GridBtnManager(val context: Context, private val container: GridLayout, pr generateShareButton(FixableButton(poiType = IMogoTanluProvider.TYPE_DENSE_FOG, title = "浓雾")) } else { val btnList = GsonUtil.arrayFromJson(config, FixableButton::class.java) - btnList.forEach { btn -> - generateShareButton(btn) + if(btnList!=null&&btnList.isNotEmpty()) { + btnList.forEach { btn -> + generateShareButton(btn) + } } } } diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluListWindow.java b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluListWindow.java index f9f27f4699..cc757b123b 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluListWindow.java +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/TanluListWindow.java @@ -204,7 +204,7 @@ public class TanluListWindow extends RelativeLayout implements IMogoMarkerClickL LinearLayoutManager layoutManager = new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false); mLoopRecyclerView.setLayoutManager(layoutManager); - mTanluSlideAdapter = new TanluSlideAdapterNew(mContext, mAnalytics, mTanluModelData, mogoImageloader); + mTanluSlideAdapter = new TanluSlideAdapterNew(mContext, mAnalytics, mTanluModelData, mogoImageloader, mMogoRegisterCenter); mLoopRecyclerView.setAdapter(mTanluSlideAdapter); //保证滑动单页显示 @@ -1086,7 +1086,7 @@ public class TanluListWindow extends RelativeLayout implements IMogoMarkerClickL if (!NetworkUtils.isConnected(getContext())) { //没有网络 TipToast.shortTip("分享失败,请检查网络",new TipDrawable(getResources().getDrawable(R.drawable.module_tanlu_upload_fail))); - } else if(TanluServiceManager.getMogoStatusManager().isMainPageOnResume()) { + } else { float bearing = TanluServiceManager.getLocationClient().getLastKnowLocation().getBearing(); //角度 Logger.d(TAG, "onMarkerInfo event.type = " + event.type + " >>event.lat = " + event.lat + " >>event.lon = " + event.lon + " >>event.imageUrl =" + event.imageUrl); String poiType = event.type; @@ -1095,49 +1095,51 @@ public class TanluListWindow extends RelativeLayout implements IMogoMarkerClickL Logger.d(TAG, "onMarkerInfo share poiType = " + poiType + " --isCumtom = " + isCumtom + " >> getMathRandom = " + getMathRandom() + " >>> bearing = " + bearing + ">>>fromType = " + fromType); if (!fromType.equals("5")) { if (isCumtom && !poiType.equals("0")) { - double lat = TanluServiceManager.getLocationClient().getLastKnowLocation().getLatitude(); - double lon = TanluServiceManager.getLocationClient().getLastKnowLocation().getLongitude(); - Log.d(TAG, "onMarkerInfo lat = " + lat + " >>>> lon = " + lon); - String cityName = TanluServiceManager.getLocationClient().getLastKnowLocation().getCityName(); - String address = TanluServiceManager.getLocationClient().getLastKnowLocation().getAddress(); - MarkerExploreWay markerExploreWay = new MarkerExploreWay(); - markerExploreWay.setCityName(cityName); - markerExploreWay.setPoiType(poiType); - - MarkerLocation markerLocation = new MarkerLocation(); - markerLocation.setLat(lat); - markerLocation.setLon(lon); - markerLocation.setAddress(address); - - MarkerShowEntity markerShowEntity = new MarkerShowEntity(); - markerShowEntity.setBindObj(markerExploreWay); - markerShowEntity.setTextContent(address); - markerShowEntity.setMarkerType(TanluConstants.MODEL_NAME); - markerShowEntity.setMarkerLocation(markerLocation); - + // 不管在不在前台,都要提示分享成功 AIAssist.getInstance(getContext()).speakTTSVoice(( String.format(voiceShareSuccessTts, getMathRandom())), null); - TipToast.shortTip("分享成功",new TipDrawable(getResources().getDrawable(R.drawable.module_tanlu_upload_success))); + TipToast.shortTip("分享成功", new TipDrawable(getResources().getDrawable(R.drawable.module_tanlu_upload_success))); + if(TanluServiceManager.getMogoStatusManager().isMainPageOnResume()) { + double lat = TanluServiceManager.getLocationClient().getLastKnowLocation().getLatitude(); + double lon = TanluServiceManager.getLocationClient().getLastKnowLocation().getLongitude(); + Log.d(TAG, "onMarkerInfo lat = " + lat + " >>>> lon = " + lon); + String cityName = TanluServiceManager.getLocationClient().getLastKnowLocation().getCityName(); + String address = TanluServiceManager.getLocationClient().getLastKnowLocation().getAddress(); + MarkerExploreWay markerExploreWay = new MarkerExploreWay(); + markerExploreWay.setCityName(cityName); + markerExploreWay.setPoiType(poiType); - IMogoMarker mogoMarker = TanluServiceManager.getServiceApis().getMarkerService().drawMarker(markerShowEntity); - mogoMarker.setClickable(false); + MarkerLocation markerLocation = new MarkerLocation(); + markerLocation.setLat(lat); + markerLocation.setLon(lon); + markerLocation.setAddress(address); - //开启动画 - mogoMarker.startScaleAnimationWithAlpha(0, 1.2f, 0, 1.2f, 0f, 1f, 300, new LinearInterpolator(), new OnMarkerAnimationListener() { - @Override - public void onAnimStart() { - Logger.d(TAG, " onAnimStart ---1----> "); - } + MarkerShowEntity markerShowEntity = new MarkerShowEntity(); + markerShowEntity.setBindObj(markerExploreWay); + markerShowEntity.setTextContent(address); + markerShowEntity.setMarkerType(TanluConstants.MODEL_NAME); + markerShowEntity.setMarkerLocation(markerLocation); - @Override - public void onAnimEnd() { - if (mogoMarker.isDestroyed()) { - return; + IMogoMarker mogoMarker = TanluServiceManager.getServiceApis().getMarkerService().drawMarker(markerShowEntity); + mogoMarker.setClickable(false); + + //开启动画 + mogoMarker.startScaleAnimationWithAlpha(0, 1.2f, 0, 1.2f, 0f, 1f, 300, new LinearInterpolator(), new OnMarkerAnimationListener() { + @Override + public void onAnimStart() { + Logger.d(TAG, " onAnimStart ---1----> "); } - mogoMarker.startScaleAnimation(1.2f, 1, 1.2f, 1, 100, new LinearInterpolator(), null); - } - }); + + @Override + public void onAnimEnd() { + if (mogoMarker.isDestroyed()) { + return; + } + mogoMarker.startScaleAnimation(1.2f, 1, 1.2f, 1, 100, new LinearInterpolator(), null); + } + }); + } } else { Logger.e(TAG, "onMarkerInfo share onCompleted poiType = -1 --- else ---->"); } diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/recycler/TanluSlideAdapterNew.java b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/recycler/TanluSlideAdapterNew.java index 15e3a450ea..de39f21bd8 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/recycler/TanluSlideAdapterNew.java +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/fragment/recycler/TanluSlideAdapterNew.java @@ -5,6 +5,7 @@ import android.animation.AnimatorInflater; import android.animation.AnimatorSet; import android.content.Context; import android.text.TextUtils; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -18,6 +19,7 @@ import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; import com.mogo.commons.debug.DebugConfig; +import com.mogo.map.uicontroller.EnumMapUI; import com.mogo.module.common.entity.MarkerExploreWay; import com.mogo.module.common.glide.SkinAbleBitmapTarget; import com.mogo.module.tanlu.R; @@ -30,9 +32,13 @@ import com.mogo.module.tanlu.model.event.StartPlayInfo; import com.mogo.module.tanlu.model.event.VoiceControlUpInfo; import com.mogo.module.tanlu.util.ChartUtil; import com.mogo.module.tanlu.video.SimpleCoverVideoPlayer; +import com.mogo.module.tanlu.view.RoundLayout; +import com.mogo.service.adas.IMogoADASControlStatusChangedListener; import com.mogo.service.analytics.IMogoAnalytics; import com.mogo.service.imageloader.IMogoImageloader; import com.mogo.service.imageloader.MogoImageView; +import com.mogo.service.module.IMogoRegisterCenter; +import com.mogo.skin.support.SkinMode; import com.mogo.utils.TipToast; import com.mogo.utils.logger.Logger; import com.shuyu.gsyvideoplayer.builder.GSYVideoOptionBuilder; @@ -57,7 +63,7 @@ import static com.mogo.module.tanlu.util.Utils.handleDistance; * @description * @since 2020/3/11 */ -public class TanluSlideAdapterNew extends RecyclerView.Adapter { +public class TanluSlideAdapterNew extends RecyclerView.Adapter implements IMogoADASControlStatusChangedListener { private List markerExploreWayList = new ArrayList<>(); private static final String TAG = "TanluSlideAdapterNew"; private Context mContext; @@ -66,7 +72,7 @@ public class TanluSlideAdapterNew extends RecyclerView.Adapter list = new HashMap<>(); - public TanluSlideAdapterNew(Context context, IMogoAnalytics analytics, TanluModelData tanluModelData, IMogoImageloader mogoImageloader) { + public TanluSlideAdapterNew(Context context, IMogoAnalytics analytics, TanluModelData tanluModelData, IMogoImageloader mogoImageloader, + IMogoRegisterCenter mogoRegisterCenter) { this.mContext = context; this.mAnalytics = analytics; this.mTanluModelData = tanluModelData; this.mogoImageloader = mogoImageloader; + mogoRegisterCenter.registerADASControlStatusChangedListener( TAG, this ); + EventBus.getDefault().register(this); } @@ -121,6 +131,7 @@ public class TanluSlideAdapterNew extends RecyclerView.Adapter "); + mRoundLayout.setBackgroundResource(R.drawable.shape_tanlu_top_bg); + break; + + case Type_Light: + Log.d("liyz", "Type_Light ---------> "); + mRoundLayout.setBackgroundResource(R.drawable.shape_tanlu_top_bg_light); + break; + } + } + + @Override + public void onCarStatusChanged(boolean visible) { + + } } diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/video/SimpleCoverVideoPlayer.kt b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/video/SimpleCoverVideoPlayer.kt index 1b99c2b0b5..3096e93c88 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/video/SimpleCoverVideoPlayer.kt +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/video/SimpleCoverVideoPlayer.kt @@ -8,6 +8,7 @@ import android.view.View import android.widget.ImageView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions +import com.mogo.module.common.glide.SkinAbleBitmapTarget import com.mogo.module.tanlu.R import com.shuyu.gsyvideoplayer.GSYVideoManager import com.shuyu.gsyvideoplayer.utils.GSYVideoType @@ -57,14 +58,12 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer { fun loadCoverImage(url: String, mContext: Context) { //加载图片 val requestOptions = RequestOptions() - .placeholder(R.drawable.tanlu_normal_image) +// .placeholder(R.drawable.tanlu_normal_image) .error(R.drawable.tanlu_normal_image) - .fallback(R.drawable.tanlu_normal_image) - Glide.with(mContext) + Glide.with(mContext).asBitmap() .load(url) .apply(requestOptions) - .into(coverImage) - + .into(SkinAbleBitmapTarget(coverImage, requestOptions)) } diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/view/RoundLayout.java b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/view/RoundLayout.java index 9ca0a4784f..5912f8c56a 100644 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/view/RoundLayout.java +++ b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/view/RoundLayout.java @@ -8,7 +8,11 @@ import android.graphics.RectF; import android.util.AttributeSet; import android.widget.RelativeLayout; +import androidx.annotation.DrawableRes; + import com.mogo.module.tanlu.R; +import com.mogo.skin.support.IMogoSkinCompatSupportable; +import com.mogo.skin.support.helper.MogoSkinCompatBackgroundHelperDelegate; /** * author : donghongyu @@ -17,29 +21,34 @@ import com.mogo.module.tanlu.R; * desc : * version: 1.0 */ -public class RoundLayout extends RelativeLayout { +public class RoundLayout extends RelativeLayout implements IMogoSkinCompatSupportable { private float roundLayoutRadius = 14f; private Path roundPath; private RectF rectF; + private MogoSkinCompatBackgroundHelperDelegate mBackgroundTintHelper; public RoundLayout(Context context) { this(context, null); } - public RoundLayout(Context context, AttributeSet attrs, int defStyleAttr) { - this(context, attrs); + public RoundLayout(Context context, AttributeSet attrs) { + this(context, attrs, 0); } - public RoundLayout(Context context, AttributeSet attrs) { - super(context, attrs); + public RoundLayout(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.RoundLayout); roundLayoutRadius = typedArray.getDimensionPixelSize(R.styleable.RoundLayout_roundLayoutRadius, (int) roundLayoutRadius); typedArray.recycle(); init(); + + mBackgroundTintHelper = new MogoSkinCompatBackgroundHelperDelegate(this); + mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr); } + private void init() { setWillNotDraw(false);//如果你继承的是ViewGroup,注意此行,否则draw方法是不会回调的; roundPath = new Path(); @@ -58,6 +67,15 @@ public class RoundLayout extends RelativeLayout { postInvalidate(); } + + @Override + public void setBackgroundResource(@DrawableRes int resId) { + super.setBackgroundResource(resId); + if (mBackgroundTintHelper != null) { + mBackgroundTintHelper.onSetBackgroundResource(resId); + } + } + @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); @@ -72,5 +90,13 @@ public class RoundLayout extends RelativeLayout { } super.draw(canvas); } + + @Override + public void applySkin() { + if (mBackgroundTintHelper != null) { + mBackgroundTintHelper.applySkin(); + } + } + } diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-ldpi/tanlu_default_black_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-ldpi/tanlu_default_black_logo.png deleted file mode 100644 index 5480b6d165..0000000000 Binary files a/modules/mogo-module-tanlu/src/main/res/drawable-ldpi/tanlu_default_black_logo.png and /dev/null differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-ldpi/tanlu_icon_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-ldpi/tanlu_icon_logo.png new file mode 100644 index 0000000000..957c298fd6 Binary files /dev/null and b/modules/mogo-module-tanlu/src/main/res/drawable-ldpi/tanlu_icon_logo.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-mdpi/tanlu_default_black_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-mdpi/tanlu_default_black_logo.png deleted file mode 100644 index 5480b6d165..0000000000 Binary files a/modules/mogo-module-tanlu/src/main/res/drawable-mdpi/tanlu_default_black_logo.png and /dev/null differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-mdpi/tanlu_icon_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-mdpi/tanlu_icon_logo.png new file mode 100644 index 0000000000..957c298fd6 Binary files /dev/null and b/modules/mogo-module-tanlu/src/main/res/drawable-mdpi/tanlu_icon_logo.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_icon_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_icon_logo.png new file mode 100644 index 0000000000..dabf25dbbb Binary files /dev/null and b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_icon_logo.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_top_bg.9.png b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_top_bg.9.png new file mode 100644 index 0000000000..f5010b2c44 Binary files /dev/null and b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_top_bg.9.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_default_black_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_default_black_logo.png deleted file mode 100644 index e02a57044f..0000000000 Binary files a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_default_black_logo.png and /dev/null differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_icon_logo.png b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_icon_logo.png new file mode 100644 index 0000000000..dabf25dbbb Binary files /dev/null and b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_icon_logo.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_top_bg.9.png b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_top_bg.9.png new file mode 100644 index 0000000000..f5010b2c44 Binary files /dev/null and b/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi/tanlu_top_bg.9.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable/shape_tanlu_top_bg.xml b/modules/mogo-module-tanlu/src/main/res/drawable/shape_tanlu_top_bg.xml new file mode 100644 index 0000000000..7ef399ca1a --- /dev/null +++ b/modules/mogo-module-tanlu/src/main/res/drawable/shape_tanlu_top_bg.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/res/drawable/shape_tanlu_top_bg_light.xml b/modules/mogo-module-tanlu/src/main/res/drawable/shape_tanlu_top_bg_light.xml new file mode 100644 index 0000000000..4eba256888 --- /dev/null +++ b/modules/mogo-module-tanlu/src/main/res/drawable/shape_tanlu_top_bg_light.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_alert_window_bg.xml b/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_alert_window_bg.xml new file mode 100644 index 0000000000..7ae04a2bed --- /dev/null +++ b/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_alert_window_bg.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_gradual_change_bg.xml b/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_gradual_change_bg.xml index 1dd431586f..c1df67d071 100644 --- a/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_gradual_change_bg.xml +++ b/modules/mogo-module-tanlu/src/main/res/drawable/tanlu_gradual_change_bg.xml @@ -1,15 +1,11 @@ - - - - - + \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/res/layout/tanlu_item_main_media_recycler_new.xml b/modules/mogo-module-tanlu/src/main/res/layout/tanlu_item_main_media_recycler_new.xml index 81c7cc2c7d..eb9842f999 100644 --- a/modules/mogo-module-tanlu/src/main/res/layout/tanlu_item_main_media_recycler_new.xml +++ b/modules/mogo-module-tanlu/src/main/res/layout/tanlu_item_main_media_recycler_new.xml @@ -2,29 +2,18 @@ - - - - - - - - - - + android:layout_height="wrap_content"> + + android:background="@drawable/shape_tanlu_top_bg"> - - + android:scaleType="center" + app:miv_failureHolder="@drawable/tanlu_icon_logo" + app:miv_overlayImageId="@drawable/tanlu_icon_logo" + app:miv_placeHolder="@drawable/tanlu_icon_logo" /> - + + + + + + + + @@ -141,16 +137,16 @@ android:layout_width="@dimen/tanlu_image_size" android:layout_height="@dimen/tanlu_image_size" android:layout_marginRight="@dimen/tanlu_module_margin_left" - android:visibility="gone" - android:src="@drawable/selector_chat_btn" /> + android:src="@drawable/selector_chat_btn" + android:visibility="gone" /> + android:gravity="center"> diff --git a/modules/mogo-module-tanlu/src/main/res/layout/tanlu_main_media_recycler_new.xml b/modules/mogo-module-tanlu/src/main/res/layout/tanlu_main_media_recycler_new.xml index e4c7898356..409302fbaf 100644 --- a/modules/mogo-module-tanlu/src/main/res/layout/tanlu_main_media_recycler_new.xml +++ b/modules/mogo-module-tanlu/src/main/res/layout/tanlu_main_media_recycler_new.xml @@ -1,14 +1,16 @@ + android:background="@drawable/tanlu_alert_window_bg"> - + android:layout_height="match_parent" + tools:listitem="@layout/tanlu_item_main_media_recycler_new" + /> \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/res/values-mdpi/dimens.xml b/modules/mogo-module-tanlu/src/main/res/values-mdpi/dimens.xml new file mode 100644 index 0000000000..7716b8ccc7 --- /dev/null +++ b/modules/mogo-module-tanlu/src/main/res/values-mdpi/dimens.xml @@ -0,0 +1,99 @@ + + + + 52px + 52px + 48px + 48px + 72px + 5px + + 56px + 56px + 96px + 96px + 90px + 700px + 10px + + 72px + 25px + 25px + 16px + 48px + 22px + 700px + + + 5px + 15px + 2px + 19px + 136px + 44px + 2px + 109px + 10px + 23px + 30px + 28px + 16px + 22px + 26px + + + 6px + + 400px + 150px + 80px + 32px + + 260px + 44px + + + 18px + 14px + 15px + 13px + 16px + + + 418px + 278px + 69px + 22px + 36px + 18px + 32px + + 20px + 56px + 23px + + 10px + 8px + + + 642px + 186px + 176px + 250px + 172px + 45px + + 13px + 8px + 7px + 17px + 3px + 18px + 26px + + 28px + 56px + 6px + 16px + + \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/res/values-xhdpi-1920x1000/dimens.xml b/modules/mogo-module-tanlu/src/main/res/values-xhdpi-1920x1000/dimens.xml index f67c962818..4062891c80 100644 --- a/modules/mogo-module-tanlu/src/main/res/values-xhdpi-1920x1000/dimens.xml +++ b/modules/mogo-module-tanlu/src/main/res/values-xhdpi-1920x1000/dimens.xml @@ -25,7 +25,7 @@ 40px 800px - 14px + 11px 28px 4px 32px @@ -77,22 +77,23 @@ 1233px - 300px + 326px + 306px 480px - 270px + 290px 80px - 20px - 15px - 25px - 15px - 5px + 19px + 12px + 24px + 30px + 9px 27px 46px 50px 90px - 6px + 10px 30px diff --git a/modules/mogo-module-tanlu/src/main/res/values-xhdpi/dimens.xml b/modules/mogo-module-tanlu/src/main/res/values-xhdpi/dimens.xml index bfd073df5f..88af7354b4 100644 --- a/modules/mogo-module-tanlu/src/main/res/values-xhdpi/dimens.xml +++ b/modules/mogo-module-tanlu/src/main/res/values-xhdpi/dimens.xml @@ -25,7 +25,7 @@ 40px 800px - 30px + 11px 28px 4px 32px @@ -77,22 +77,23 @@ 1060px - 350px - 480px - 320px + 330px + 306px + 421px + 290px 80px - 23px - 15px - 25px + 19px + 13px + 24px 15px - 10px + 9px 27px 46px 50px 98px - 6px + 10px 30px diff --git a/modules/mogo-module-tanlu/src/main/res/values/colors.xml b/modules/mogo-module-tanlu/src/main/res/values/colors.xml index 8f5388e27d..e3dc6f20f6 100644 --- a/modules/mogo-module-tanlu/src/main/res/values/colors.xml +++ b/modules/mogo-module-tanlu/src/main/res/values/colors.xml @@ -38,6 +38,7 @@ #99666666 #999999 #99FFFFFF + #99FFFFFF #59FFFFFF #FFFFFF @@ -49,5 +50,9 @@ #3E7FFC #5CC1FF #50526E + #5E6079 + #3F4057 + #555A75 + #F5F5F5 diff --git a/modules/mogo-module-tanlu/src/main/res/values/dimens.xml b/modules/mogo-module-tanlu/src/main/res/values/dimens.xml index a39e44cd6d..7716b8ccc7 100644 --- a/modules/mogo-module-tanlu/src/main/res/values/dimens.xml +++ b/modules/mogo-module-tanlu/src/main/res/values/dimens.xml @@ -25,7 +25,7 @@ 700px - 10px + 5px 15px 2px 19px @@ -77,22 +77,23 @@ 642px - 194px - 266px - 194px + 186px + 176px + 250px + 172px 45px - 16px + 13px 8px - 13px - 15px - 10px + 7px + 17px + 3px 18px 26px 28px 56px - 3px + 6px 16px \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/SpacesItemDecoration.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/SpacesItemDecoration.java index 005984f991..f0e2739521 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/SpacesItemDecoration.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/SpacesItemDecoration.java @@ -20,13 +20,6 @@ public class SpacesItemDecoration extends RecyclerView.ItemDecoration { @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { - outRect.left = space; - outRect.right = space; outRect.bottom = space; - - // Add top margin only for the first item to avoid double space between items - if (parent.getChildPosition(view) == 0) { - outRect.top = space; - } } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java index 82f1820538..fff99105fd 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java @@ -87,16 +87,16 @@ public class V2XSurroundingAdapter extends RecyclerView.Adapter try { - rbScenarioHistory?.isChecked = true + mRbScenarioHistory?.isChecked = true } catch (e: java.lang.Exception) { e.printStackTrace() } @@ -60,7 +71,7 @@ class V2XEventPanelFragment : MvpFragment try { - rbSurroundingEvent?.isChecked = true + mRbSurroundingEvent?.isChecked = true } catch (e: java.lang.Exception) { e.printStackTrace() } @@ -69,7 +80,7 @@ class V2XEventPanelFragment : MvpFragment try { - rbShareEvents?.isChecked = true + mRbShareEvents?.isChecked = true } catch (e: java.lang.Exception) { e.printStackTrace() } @@ -92,48 +103,75 @@ class V2XEventPanelFragment : MvpFragment + mRgTabSelect?.setOnCheckedChangeListener { group, checkedId -> when (checkedId) { R.id.rbScenarioHistory -> { + // 更改选中是否加粗 + mRbScenarioHistory?.typeface = Typeface.defaultFromStyle(Typeface.BOLD) + mRbSurroundingEvent?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL) + mRbShareEvents?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL) + TrackUtils.trackV2xHistoryEvent(2) - vpEventPanel.setCurrentItem(0, false) + mVpEventPanel?.setCurrentItem(0, false) } R.id.rbSurroundingEvent -> { + // 更改选中是否加粗 + mRbScenarioHistory?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL) + mRbSurroundingEvent?.typeface = Typeface.defaultFromStyle(Typeface.BOLD) + mRbShareEvents?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL) + TrackUtils.trackV2xHistoryEvent(3) - vpEventPanel.setCurrentItem(1, false) + mVpEventPanel?.setCurrentItem(1, false) } R.id.rbShareEvents -> { + // 更改选中是否加粗 + mRbScenarioHistory?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL) + mRbSurroundingEvent?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL) + mRbShareEvents?.typeface = Typeface.defaultFromStyle(Typeface.BOLD) + TrackUtils.trackV2xHistoryEvent(4) - vpEventPanel.setCurrentItem(2, false) + mVpEventPanel?.setCurrentItem(2, false) } } } - btnHidePanels.setOnClickListener { + mBtnHidePanels?.setOnClickListener { TrackUtils.trackV2xHistoryEvent(5) hidePanel() } mV2XEventPanelHistoryCountView = V2XEventPanelHistoryCountView(context) mV2XEventPanelHistoryCountView!!.setOnClickListener { - if (clPanelContainer != null) { + if (mClPanelContainer == null) { + mClPanelContainer = mRootView.findViewById(R.id.clPanelContainer); + } + if (mClPanelContainer != null) { if (!isPanelShow()) { TrackUtils.trackV2xHistoryEvent(1) showPanel() } } } - V2XServiceManager.getMogoEntranceButtonController().addBottomLayerView(mV2XEventPanelHistoryCountView) + V2XServiceManager.getMogoEntranceButtonController() + .addBottomLayerView(mV2XEventPanelHistoryCountView) changeEventCount() } catch (e: Exception) { e.printStackTrace() @@ -151,7 +189,7 @@ class V2XEventPanelFragment : MvpFragment 0) { Object data = dataArrayList.get(dataArrayList.size() - 1); - if (data instanceof V2XShareEventLoadMoreItem || data instanceof V2XShareEventLoadMoreItem) { + if (data instanceof V2XShareEventLoadMoreItem) { dataArrayList.remove(dataArrayList.size() - 1); } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java index 7d893ee97e..d7b23a6474 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java @@ -106,11 +106,11 @@ public class V2XSurroundingFragment extends MvpFragment emitter) throws Exception { - try { - getShareIndex(callback); - } catch (Exception e) { - e.printStackTrace(); - } emitter.onNext("1"); emitter.onComplete(); } @@ -60,16 +55,10 @@ public class V2XShareNetworkModel { Observable listObservable = Observable.create(new ObservableOnSubscribe() { @Override public void subscribe(ObservableEmitter emitter) throws Exception { - try { - getShareEventList(page, size, callback); - } catch (Exception e) { - e.printStackTrace(); - } emitter.onNext("2"); emitter.onComplete(); } }); - indexObservable.flatMap(new Function>() { @Override public ObservableSource apply(String s) throws Exception { @@ -82,12 +71,20 @@ public class V2XShareNetworkModel { @Override public void onSubscribe(Disposable d) { - + try { + getShareIndex(callback); + } catch (Exception e) { + e.printStackTrace(); + } } @Override public void onNext(Object o) { - + try { + getShareEventList(page, size, callback); + } catch (Exception e) { + e.printStackTrace(); + } } @Override @@ -135,7 +132,7 @@ public class V2XShareNetworkModel { @Override public void onError(Throwable e) { super.onError(e); - if (callback != null){ + if (callback != null) { callback.onFail("网络异常,点击刷新重试"); } } @@ -179,7 +176,7 @@ public class V2XShareNetworkModel { @Override public void onError(Throwable e) { super.onError(e); - if (callback != null){ + if (callback != null) { callback.onFail("网络异常,点击刷新重试"); } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/AnimationResources.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/AnimationResources.java index 7e1a443476..fc6970f275 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/AnimationResources.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/AnimationResources.java @@ -5,32 +5,32 @@ import com.mogo.module.v2x.R; public class AnimationResources { public static final int loadingRes[] = { - R.drawable.v_to_x_loading_car0000, - R.drawable.v_to_x_loading_car0002, - R.drawable.v_to_x_loading_car0004, - R.drawable.v_to_x_loading_car0006, - R.drawable.v_to_x_loading_car0008, - R.drawable.v_to_x_loading_car0010, - R.drawable.v_to_x_loading_car0012, - R.drawable.v_to_x_loading_car0014, - R.drawable.v_to_x_loading_car0016, - R.drawable.v_to_x_loading_car0018, - R.drawable.v_to_x_loading_car0020, - R.drawable.v_to_x_loading_car0022, - R.drawable.v_to_x_loading_car0024, - R.drawable.v_to_x_loading_car0025, - R.drawable.v_to_x_loading_car0027, - R.drawable.v_to_x_loading_car0029, - R.drawable.v_to_x_loading_car0031, - R.drawable.v_to_x_loading_car0033, - R.drawable.v_to_x_loading_car0035, - R.drawable.v_to_x_loading_car0037, - R.drawable.v_to_x_loading_car0039, - R.drawable.v_to_x_loading_car0041, - R.drawable.v_to_x_loading_car0043, - R.drawable.v_to_x_loading_car0045, - R.drawable.v_to_x_loading_car0047, - R.drawable.v_to_x_loading_car0048, +// R.drawable.v_to_x_loading_car0000, +// R.drawable.v_to_x_loading_car0002, +// R.drawable.v_to_x_loading_car0004, +// R.drawable.v_to_x_loading_car0006, +// R.drawable.v_to_x_loading_car0008, +// R.drawable.v_to_x_loading_car0010, +// R.drawable.v_to_x_loading_car0012, +// R.drawable.v_to_x_loading_car0014, +// R.drawable.v_to_x_loading_car0016, +// R.drawable.v_to_x_loading_car0018, +// R.drawable.v_to_x_loading_car0020, +// R.drawable.v_to_x_loading_car0022, +// R.drawable.v_to_x_loading_car0024, +// R.drawable.v_to_x_loading_car0025, +// R.drawable.v_to_x_loading_car0027, +// R.drawable.v_to_x_loading_car0029, +// R.drawable.v_to_x_loading_car0031, +// R.drawable.v_to_x_loading_car0033, +// R.drawable.v_to_x_loading_car0035, +// R.drawable.v_to_x_loading_car0037, +// R.drawable.v_to_x_loading_car0039, +// R.drawable.v_to_x_loading_car0041, +// R.drawable.v_to_x_loading_car0043, +// R.drawable.v_to_x_loading_car0045, +// R.drawable.v_to_x_loading_car0047, +// R.drawable.v_to_x_loading_car0048, }; } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/V2XAnimationManager.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/V2XAnimationManager.java index c77bea6db8..94a760dd65 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/V2XAnimationManager.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/animation/V2XAnimationManager.java @@ -1,63 +1,71 @@ package com.mogo.module.v2x.utils.animation; -import android.graphics.drawable.AnimationDrawable; -import android.util.Log; +import android.os.Handler; +import android.os.Looper; +import android.os.Message; import android.view.View; import android.widget.ImageView; - -import com.mogo.utils.ThreadPoolService; -import com.mogo.utils.UiThreadHandler; +import android.widget.ProgressBar; public class V2XAnimationManager implements Animation { private static final String TAG = "V2XAnimationManager"; - private ImageView targetImageView; - private Animation delegate; + private ProgressBar targetImageView; private boolean isStarted = false; - public void animationWithTarget(ImageView imageView, int[] resources, int duration) { - targetImageView = imageView; - ThreadPoolService.execute(() -> { - final AnimationDrawable drawable = new AnimationDrawable(); - for (int i = 0; i < resources.length; i++) { - drawable.setOneShot(false); - drawable.addFrame(targetImageView.getResources().getDrawable(resources[i]), duration); + private int mStartIndex = 0; + + private final static int MSG_LOOP = 3004; + private long INTERVAL = 100L; + + private Handler mHandler = new Handler(Looper.getMainLooper()) { + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + switch (msg.what) { + case MSG_LOOP: + if (isStarted) { +// targetImageView.setImageResource( AnimationResources.loadingRes[mStartIndex++ % AnimationResources.loadingRes.length] ); + mHandler.sendEmptyMessageDelayed(MSG_LOOP, INTERVAL); + } + break; } - UiThreadHandler.post(() -> { - targetImageView.setBackground(drawable); - delegate = new DelegateDrawable(drawable); - start(); - }); - }); + } + }; + + public void animationWithTarget(ProgressBar imageView, int[] resources, int duration) { + targetImageView = imageView; + INTERVAL = duration; + start(); } @Override synchronized public void start() { - if (delegate != null && !isStarted) { + isStarted = true; + mHandler.sendEmptyMessage(MSG_LOOP); + if (targetImageView != null) { targetImageView.setVisibility(View.VISIBLE); - isStarted = true; - delegate.start(); } } @Override synchronized public void stop() { - if (delegate != null && isStarted) { - isStarted = false; - delegate.stop(); + isStarted = false; + mHandler.removeMessages(MSG_LOOP); + if (targetImageView != null) { targetImageView.setVisibility(View.INVISIBLE); } } - public void soptWithError(){ - if (delegate != null && isStarted) { - isStarted = false; - delegate.stop(); + public void soptWithError() { + stop(); + if (targetImageView != null) { + targetImageView.setVisibility(View.VISIBLE); } } public void release() { - delegate = null; + stop(); } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/RoundLayout.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/RoundLayout.java index e9b051e379..b0645b5823 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/RoundLayout.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/RoundLayout.java @@ -9,6 +9,8 @@ import android.util.AttributeSet; import android.widget.RelativeLayout; import com.mogo.module.v2x.R; +import com.mogo.skin.support.IMogoSkinCompatSupportable; +import com.mogo.skin.support.helper.MogoSkinCompatBackgroundHelperDelegate; /** * author : donghongyu @@ -17,29 +19,34 @@ import com.mogo.module.v2x.R; * desc : * version: 1.0 */ -public class RoundLayout extends RelativeLayout { +public class RoundLayout extends RelativeLayout implements IMogoSkinCompatSupportable { private float roundLayoutRadius = 14f; private Path roundPath; private RectF rectF; + private MogoSkinCompatBackgroundHelperDelegate mBackgroundTintHelper; public RoundLayout(Context context) { this(context, null); } - public RoundLayout(Context context, AttributeSet attrs, int defStyleAttr) { - this(context, attrs); + public RoundLayout(Context context, AttributeSet attrs) { + this(context, attrs, 0); } - public RoundLayout(Context context, AttributeSet attrs) { - super(context, attrs); + public RoundLayout(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.RoundLayout); roundLayoutRadius = typedArray.getDimensionPixelSize(R.styleable.RoundLayout_roundLayoutRadius, (int) roundLayoutRadius); typedArray.recycle(); init(); + + mBackgroundTintHelper = new MogoSkinCompatBackgroundHelperDelegate(this); + mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr); } + private void init() { setWillNotDraw(false);//如果你继承的是ViewGroup,注意此行,否则draw方法是不会回调的; roundPath = new Path(); @@ -72,5 +79,12 @@ public class RoundLayout extends RelativeLayout { } super.draw(canvas); } + + @Override + public void applySkin() { + if (mBackgroundTintHelper != null) { + mBackgroundTintHelper.applySkin(); + } + } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XLiveGSYVideoView.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XLiveGSYVideoView.java index 5099c33fbb..205b9d43d5 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XLiveGSYVideoView.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XLiveGSYVideoView.java @@ -25,6 +25,7 @@ import com.mogo.module.v2x.voice.V2XVoiceCallbackListener; import com.mogo.module.v2x.voice.V2XVoiceConstants; import com.mogo.module.v2x.voice.V2XVoiceManager; import com.mogo.skin.support.IMogoSkinCompatSupportable; +import com.mogo.skin.support.helper.MogoSkinCompatBackgroundHelperDelegate; import com.mogo.utils.logger.Logger; import com.mogo.utils.network.utils.GsonUtil; import com.tencent.rtmp.ITXLivePlayListener; @@ -51,6 +52,8 @@ public class V2XLiveGSYVideoView extends RoundLayout implements IMogoSkinCompatS private ConstraintLayout mClLoadError; private TextView mTvRefreshButton; + private MogoSkinCompatBackgroundHelperDelegate mBackgroundTintHelper; + private MarkerCarInfo.CarLiveInfo mCarLiveInfo; // 重新刷新直播流 private V2XVoiceCallbackListener v2XVoiceCallbackRefreshListener = new V2XVoiceCallbackListener() { @@ -76,6 +79,9 @@ public class V2XLiveGSYVideoView extends RoundLayout implements IMogoSkinCompatS public V2XLiveGSYVideoView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); initView(context); + + mBackgroundTintHelper = new MogoSkinCompatBackgroundHelperDelegate(this); + mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr); } private void initView(Context context) { @@ -282,6 +288,8 @@ public class V2XLiveGSYVideoView extends RoundLayout implements IMogoSkinCompatS @Override public void applySkin() { - + if (mBackgroundTintHelper != null) { + mBackgroundTintHelper.applySkin(); + } } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XNetworkLoadingView.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XNetworkLoadingView.java index a73c2c4ccc..99a6cbbad7 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XNetworkLoadingView.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XNetworkLoadingView.java @@ -6,6 +6,7 @@ import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.ImageView; +import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; @@ -17,7 +18,7 @@ import com.mogo.module.v2x.utils.animation.V2XAnimationManager; public class V2XNetworkLoadingView extends RelativeLayout { - private ImageView loadView; + private ProgressBar loadView; private TextView textView; private V2XAnimationManager v2XAnimationManager; public Button refresButton; @@ -32,6 +33,9 @@ public class V2XNetworkLoadingView extends RelativeLayout { super(context, attrs); LayoutInflater.from(context).inflate(R.layout.v2x_network_loading_item, this); initView(); + /* + 添加动画图片资源 + * */ setLoadingImage(AnimationResources.loadingRes); } diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/icon_default_black_logo.png b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/icon_default_black_logo.png deleted file mode 100644 index 5480b6d165..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/icon_default_black_logo.png and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/loading_image.gif b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/loading_image.gif deleted file mode 100644 index 5e3b79bbed..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/loading_image.gif and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/module_v2x_shadow_bkg.9.png b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/module_v2x_shadow_bkg.9.png new file mode 100644 index 0000000000..e73d76936f Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/module_v2x_shadow_bkg.9.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_icon_live_logo.png b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_icon_live_logo.png index 957c298fd6..b964d6b4ad 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_icon_live_logo.png and b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_icon_live_logo.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_shadow_bg.9.png b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_shadow_bg.9.png index 6ab0b1547c..11049bacf3 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_shadow_bg.9.png and b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_shadow_bg.9.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_surrounding_bottom_bg.png b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_surrounding_bottom_bg.png new file mode 100644 index 0000000000..5a9ca34e56 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v2x_surrounding_bottom_bg.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0000.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0000.jpg deleted file mode 100644 index cc52297fe2..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0000.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0002.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0002.jpg deleted file mode 100644 index 1c2891a003..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0002.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0004.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0004.jpg deleted file mode 100644 index 33cc4076b6..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0004.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0006.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0006.jpg deleted file mode 100644 index 031866594d..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0006.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0008.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0008.jpg deleted file mode 100644 index 5bae20de40..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0008.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0010.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0010.jpg deleted file mode 100644 index 28cd979b2b..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0010.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0012.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0012.jpg deleted file mode 100644 index 2527cd5e8b..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0012.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0014.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0014.jpg deleted file mode 100644 index 931b9ab3b8..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0014.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0016.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0016.jpg deleted file mode 100644 index 66f35aae0f..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0016.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0018.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0018.jpg deleted file mode 100644 index 006cdf3549..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0018.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0020.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0020.jpg deleted file mode 100644 index abd537c11e..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0020.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0022.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0022.jpg deleted file mode 100644 index 6c12c96a67..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0022.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0024.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0024.jpg deleted file mode 100644 index 9b9987ef28..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0024.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0025.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0025.jpg deleted file mode 100644 index 4c20aaee9a..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0025.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0027.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0027.jpg deleted file mode 100644 index 3697d21490..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0027.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0029.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0029.jpg deleted file mode 100644 index aba33759ab..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0029.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0031.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0031.jpg deleted file mode 100644 index d8a4ac1140..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0031.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0033.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0033.jpg deleted file mode 100644 index 39dc6d7476..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0033.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0035.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0035.jpg deleted file mode 100644 index cccc5d1ec8..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0035.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0037.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0037.jpg deleted file mode 100644 index e0de64c12a..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0037.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0039.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0039.jpg deleted file mode 100644 index 4a434eaf7a..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0039.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0041.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0041.jpg deleted file mode 100644 index 19a043e5ac..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0041.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0043.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0043.jpg deleted file mode 100644 index fab3f819ea..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0043.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0045.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0045.jpg deleted file mode 100644 index 083b86bb58..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0045.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0047.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0047.jpg deleted file mode 100644 index 995685a59d..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0047.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0048.jpg b/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0048.jpg deleted file mode 100644 index 04338fd473..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-ldpi/v_to_x_loading_car0048.jpg and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-mdpi/module_v2x_shadow_bkg.9.png b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/module_v2x_shadow_bkg.9.png new file mode 100644 index 0000000000..e73d76936f Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/module_v2x_shadow_bkg.9.png differ diff --git a/modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_default_black_logo.png b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_icon_live_logo.png similarity index 100% rename from modules/mogo-module-tanlu/src/main/res/drawable-xhdpi-1920x1000/tanlu_default_black_logo.png rename to modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_icon_live_logo.png diff --git a/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_shadow_bg.9.png b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_shadow_bg.9.png index 2466405ac2..3dab9ec629 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_shadow_bg.9.png and b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_shadow_bg.9.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_surrounding_bottom_bg.png b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_surrounding_bottom_bg.png new file mode 100644 index 0000000000..5a9ca34e56 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/v2x_surrounding_bottom_bg.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/icon_default_black_logo.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/icon_default_black_logo.png deleted file mode 100644 index e02a57044f..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/icon_default_black_logo.png and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_accident_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_accident_small.png new file mode 100644 index 0000000000..afb24a513b Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_accident_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_daolushigong_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_daolushigong_small.png new file mode 100644 index 0000000000..0a9bd75fb4 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_daolushigong_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_fenglu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_fenglu_small.png new file mode 100644 index 0000000000..9ec480e6ad Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_fenglu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jiaotongjiancha_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jiaotongjiancha_small.png new file mode 100644 index 0000000000..e466283c43 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jiaotongjiancha_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jiebing_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jiebing_small.png new file mode 100644 index 0000000000..aad0a13730 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jiebing_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jishui_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jishui_small.png new file mode 100644 index 0000000000..aeaf6b9b67 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_jishui_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_nongwu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_nongwu_small.png new file mode 100644 index 0000000000..412c1eafa5 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_nongwu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_qiuzhu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_qiuzhu_small.png new file mode 100644 index 0000000000..9b9628fc4b Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_qiuzhu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_shishilukuang_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_shishilukuang_small.png new file mode 100644 index 0000000000..ae021bc829 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_shishilukuang_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_yongdu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_yongdu_small.png new file mode 100644 index 0000000000..6f6083dc10 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/mogo_image_yongdu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/v2x_surrounding_bottom_bg.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/v2x_surrounding_bottom_bg.png new file mode 100644 index 0000000000..30690aeb2e Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi-1920x1000/v2x_surrounding_bottom_bg.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/icon_default_black_logo.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/icon_default_black_logo.png deleted file mode 100644 index e02a57044f..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/icon_default_black_logo.png and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/loading_image.gif b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/loading_image.gif deleted file mode 100644 index 5e3b79bbed..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/loading_image.gif and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/module_v2x_shadow_bkg.9.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/module_v2x_shadow_bkg.9.png new file mode 100644 index 0000000000..239b9eb114 Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/module_v2x_shadow_bkg.9.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_accident_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_accident_small.png index 815dc5b40c..afb24a513b 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_accident_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_accident_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_daolushigong_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_daolushigong_small.png index 33e7d8873e..0a9bd75fb4 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_daolushigong_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_daolushigong_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_fenglu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_fenglu_small.png index 28f0db939b..9ec480e6ad 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_fenglu_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_fenglu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiaotongjiancha_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiaotongjiancha_small.png index 0efac11676..e466283c43 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiaotongjiancha_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiaotongjiancha_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiebing_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiebing_small.png index 37ed59c3b4..aad0a13730 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiebing_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jiebing_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jishui_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jishui_small.png index c93bd218fb..aeaf6b9b67 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jishui_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_jishui_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_nongwu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_nongwu_small.png index 698b84ffbc..412c1eafa5 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_nongwu_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_nongwu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_qiuzhu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_qiuzhu_small.png index a247ac6428..9b9628fc4b 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_qiuzhu_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_qiuzhu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_shishilukuang_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_shishilukuang_small.png index 632d1e5ad3..ae021bc829 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_shishilukuang_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_shishilukuang_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_yongdu_small.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_yongdu_small.png index bdba45d7e0..6f6083dc10 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_yongdu_small.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/mogo_image_yongdu_small.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_icon_live_logo.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_icon_live_logo.png index dabf25dbbb..5480b6d165 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_icon_live_logo.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_icon_live_logo.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_panel_close.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_panel_close.png old mode 100644 new mode 100755 index 892b93afaf..bb3e2b1195 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_panel_close.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_panel_close.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_shadow_bg.9.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_shadow_bg.9.png index 239b9eb114..1923804913 100644 Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_shadow_bg.9.png and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_shadow_bg.9.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_surrounding_bottom_bg.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_surrounding_bottom_bg.png new file mode 100644 index 0000000000..30690aeb2e Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_surrounding_bottom_bg.png differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_description.xml b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_description.xml index a7d161b299..7602d95ba0 100644 --- a/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_description.xml +++ b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_description.xml @@ -1,7 +1,7 @@ - + - - + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/drawable/loading_image.gif b/modules/mogo-module-v2x/src/main/res/drawable/loading_image.gif deleted file mode 100644 index 5e3b79bbed..0000000000 Binary files a/modules/mogo-module-v2x/src/main/res/drawable/loading_image.gif and /dev/null differ diff --git a/modules/mogo-module-v2x/src/main/res/drawable/v2x_alert_window_bg.xml b/modules/mogo-module-v2x/src/main/res/drawable/v2x_alert_window_bg.xml index 376de58348..c771e691e5 100644 --- a/modules/mogo-module-v2x/src/main/res/drawable/v2x_alert_window_bg.xml +++ b/modules/mogo-module-v2x/src/main/res/drawable/v2x_alert_window_bg.xml @@ -1,11 +1,38 @@ - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/drawable/v2x_panel_color_bg.xml b/modules/mogo-module-v2x/src/main/res/drawable/v2x_panel_color_bg.xml index 2c862044c3..8c81ded7de 100644 --- a/modules/mogo-module-v2x/src/main/res/drawable/v2x_panel_color_bg.xml +++ b/modules/mogo-module-v2x/src/main/res/drawable/v2x_panel_color_bg.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/drawable/v2x_shadow_shape_view.xml b/modules/mogo-module-v2x/src/main/res/drawable/v2x_shadow_shape_view.xml index 12e6ec50cf..2b616f3e68 100644 --- a/modules/mogo-module-v2x/src/main/res/drawable/v2x_shadow_shape_view.xml +++ b/modules/mogo-module-v2x/src/main/res/drawable/v2x_shadow_shape_view.xml @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@ diff --git a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml index 7b835f3f95..022db7da53 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml @@ -5,29 +5,29 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/v2x_alert_window_bg" - android:paddingStart="@dimen/dp_15" - android:paddingTop="@dimen/dp_15" - android:paddingBottom="@dimen/dp_15" - app:roundLayoutRadius="@dimen/dp_40"> + android:paddingTop="@dimen/dp_20" + android:paddingBottom="@dimen/dp_20" + app:roundLayoutRadius="@dimen/dp_30"> + app:roundLayoutRadius="@dimen/dp_18"> + app:miv_failureHolder="@drawable/v2x_icon_live_logo" + app:miv_overlayImageId="@drawable/v2x_icon_live_logo" + app:miv_placeHolder="@drawable/v2x_icon_live_logo" /> @@ -76,7 +77,7 @@ android:id="@+id/ivEventDistanceLogo" android:layout_width="@dimen/dp_35" android:layout_height="@dimen/dp_35" - android:layout_marginTop="@dimen/dp_20" + android:layout_marginTop="@dimen/dp_5" android:src="@drawable/v2x_icon_help_navi" app:layout_constraintStart_toStartOf="@id/tvEventTypeTitle" app:layout_constraintTop_toBottomOf="@+id/tvEventAddress" /> @@ -100,7 +101,7 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/dp_30" android:alpha="0.6" - android:textColor="@color/v2x_FFF_666" + android:textColor="@color/v2x_FFF_999" android:textSize="@dimen/dp_28" app:layout_constraintBottom_toBottomOf="@id/ivEventDistanceLogo" app:layout_constraintStart_toEndOf="@+id/tvEventDistance" @@ -111,7 +112,7 @@ android:id="@+id/ivEventHead" android:layout_width="@dimen/dp_55" android:layout_height="@dimen/dp_55" - android:layout_marginEnd="@dimen/dp_33" + android:layout_marginEnd="@dimen/dp_28" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@+id/tvEventTypeTitle" app:miv_borderColor="#4cffffff" @@ -121,77 +122,87 @@ app:miv_shape="circle" app:miv_shapeBorderWidth="@dimen/dp_4" /> - + app:layout_constraintTop_toBottomOf="@+id/ivEventDistanceLogo"> - + - + - + - + + + + + + - \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail_stub_live.xml b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail_stub_live.xml index 20bacf4ae4..dd7f9200b1 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail_stub_live.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail_stub_live.xml @@ -7,7 +7,7 @@ android:background="@drawable/v2x_alert_window_bg" android:gravity="center" app:roundLayoutRadius="@dimen/dp_40" - tools:layout_height="@dimen/dp_382"> + tools:layout_height="@dimen/module_v2x_event_window_height"> + android:paddingTop="@dimen/dp_40" + android:paddingBottom="@dimen/dp_40">