diff --git a/libraries/mogo-map-api/src/main/java/com/mogo/map/marker/IMogoMarkerClickListener.java b/libraries/mogo-map-api/src/main/java/com/mogo/map/marker/IMogoMarkerClickListener.java index 966ca196fa..520afe9932 100644 --- a/libraries/mogo-map-api/src/main/java/com/mogo/map/marker/IMogoMarkerClickListener.java +++ b/libraries/mogo-map-api/src/main/java/com/mogo/map/marker/IMogoMarkerClickListener.java @@ -12,7 +12,7 @@ public interface IMogoMarkerClickListener { * 事件是否继续往下传递 * * @param marker - * @return true - 时间已经处理完毕不继续往下传,否则继续往下传 + * @return true - 事件已经处理完毕不继续往下传,否则继续往下传 */ boolean onMarkerClicked( IMogoMarker marker ); } diff --git a/modules/mogo-module-main/src/main/java/com/mogo/module/main/SchemeIntent.java b/modules/mogo-module-main/src/main/java/com/mogo/module/main/SchemeIntent.java index d39eec80db..c0ce50ba8b 100644 --- a/modules/mogo-module-main/src/main/java/com/mogo/module/main/SchemeIntent.java +++ b/modules/mogo-module-main/src/main/java/com/mogo/module/main/SchemeIntent.java @@ -14,6 +14,8 @@ import com.mogo.service.intent.IMogoIntentListener; import com.mogo.service.intent.IMogoIntentManager; import com.mogo.service.statusmanager.IMogoStatusChangedListener; import com.mogo.service.statusmanager.StatusDescriptor; +import com.mogo.utils.AppUtils; +import com.mogo.utils.CommonUtils; import com.mogo.utils.TipToast; import com.mogo.utils.UiThreadHandler; import com.mogo.utils.logger.Logger; @@ -35,6 +37,8 @@ public class SchemeIntent implements IMogoStatusChangedListener { public static final String TYPE_NAVI = "navi"; + public static final String TYPE_LAUNCH = "launch"; + private IMogoServiceApis mApis; private Context mContext; @@ -84,10 +88,10 @@ public class SchemeIntent implements IMogoStatusChangedListener { handleSwitch2Action( target ); break; case "/main/share": - Logger.d(TAG,"收到打开分享框的scheme,准备打开分享框"); + Logger.d( TAG, "收到打开分享框的scheme,准备打开分享框" ); Map< String, Object > properties = new HashMap<>(); properties.put( "from", "1" ); - mApis.getAnalyticsApi().track("v2x_share_click", properties); + mApis.getAnalyticsApi().track( "v2x_share_click", properties ); mApis.getShareManager().showShareDialog(); break; default: @@ -115,6 +119,10 @@ public class SchemeIntent implements IMogoStatusChangedListener { case TYPE_NAVI: handleNaviIntent( target ); break; + case TYPE_LAUNCH: + handleLaunchIntent( target ); + break; + } } @@ -145,6 +153,15 @@ public class SchemeIntent implements IMogoStatusChangedListener { } } + private void handleLaunchIntent( Uri uri ) { + String type = uri.getQueryParameter( "channelType" ); + Map< String, Object > properties = new HashMap<>(); + properties.put( "appname", CommonUtils.getAppName( mContext ) ); + properties.put( "appversion", CommonUtils.getVersionName( mContext ) ); + properties.put( "from", type ); + mApis.getAnalyticsApi().track( "appenterfront", properties ); + } + @Override public void onStatusChanged( StatusDescriptor descriptor, boolean isTrue ) { if ( descriptor == StatusDescriptor.MAIN_PAGE_RESUME ) { diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/EmptyIntentHandler.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/EmptyIntentHandler.java index 64d6edd24a..270dcf35d3 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/EmptyIntentHandler.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/intent/EmptyIntentHandler.java @@ -17,6 +17,6 @@ public class EmptyIntentHandler implements IntentHandler { @Override public void handle( Context context, Intent intent ) { - Logger.w( TAG, "空实现." ); + Logger.w( TAG, "空实现. %s", intent.getAction() ); } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XScenarioHistoryAdapter.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XScenarioHistoryAdapter.java index 0f8f07f4e4..f72e4f8e4b 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XScenarioHistoryAdapter.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XScenarioHistoryAdapter.java @@ -1,12 +1,16 @@ package com.mogo.module.v2x.adapter; +import android.view.LayoutInflater; +import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; +import androidx.recyclerview.widget.RecyclerView.ViewHolder; import com.mogo.module.common.entity.V2XHistoryScenarioData; import com.mogo.module.common.entity.V2XMessageEntity; +import com.mogo.module.v2x.R; import com.mogo.module.v2x.adapter.holder.V2XScenarioHistoryIllegalParkVH; import com.mogo.module.v2x.adapter.holder.V2XScenarioHistoryOtherSeekHelpVH; import com.mogo.module.v2x.adapter.holder.V2XScenarioHistoryRoadEventVH; @@ -16,7 +20,7 @@ import java.util.ArrayList; /** * @author donghongyu */ -public class V2XScenarioHistoryAdapter extends RecyclerView.Adapter { +public class V2XScenarioHistoryAdapter extends RecyclerView.Adapter { private ArrayList mV2XHistoryScenarioData; @@ -28,8 +32,8 @@ public class V2XScenarioHistoryAdapter extends RecyclerView.Adapter poiInfosList = new ArrayList<>(); private IMogoServiceApis mApis; + private V2XAnimationManager mV2XAnimationManager; + private ImageView mloadingImage; + @Override protected int getLayoutId() { @@ -75,9 +83,17 @@ public class V2XSurroundingFragment extends MvpFragment "); + mV2XAnimationManager = new V2XAnimationManager(); mRecyclerView = findViewById(R.id.surrounding_recycleview); mTotalTv = findViewById(R.id.tv_brief); mTopLayout = findViewById(R.id.layout_top); @@ -85,6 +101,7 @@ public class V2XSurroundingFragment extends MvpFragment exploreWayList) { + mV2XAnimationManager.stop(); + mloadingImage.setVisibility(View.GONE); if (exploreWayList != null && exploreWayList.size() > 0) { //展示数据 mTopLayout.setVisibility(View.VISIBLE); @@ -191,10 +212,55 @@ public class V2XSurroundingFragment extends MvpFragment handleMapToList(Map map) { Collection valueCollection = map.values(); - List valueList = new ArrayList<>(valueCollection); + List list = new ArrayList<>(valueCollection); + List resultSurroundingList = new ArrayList<>(); + List outSurroundingList = new ArrayList<>(); - Log.d(TAG, "handleMapToList valueList.size() = " + valueList.size()); - return valueList; + if (list != null && list.size() > 0) { + List prioritySorts = prioritySort(); + for (String poiType : prioritySorts) { + for (SurroundingConstruction construction : list) { + if (!prioritySorts.contains(construction.getPoiType())) { + outSurroundingList.add(construction); + continue; + } else if (poiType.equals(construction.getPoiType())) { + resultSurroundingList.add(construction); + } + } + } + } + + if (outSurroundingList != null && outSurroundingList.size() > 0) { + resultSurroundingList.addAll(outSurroundingList); + } + + Log.d(TAG, "handleMapToList resultSurroundingList.size() = " + resultSurroundingList.size()); + return resultSurroundingList; + } + + public static List prioritySort() { + List poiTypes = new LinkedList<>(); + + // 封路 + poiTypes.add("10003"); + // 结冰 + poiTypes.add("10011"); + // 浓雾 + poiTypes.add("10010"); + // 交通检查 + poiTypes.add("10002"); + // 交通事故 + poiTypes.add("10013"); + // 拥堵 + poiTypes.add("10007"); + // 道路施工 + poiTypes.add("10006"); + // 积水 + poiTypes.add("10008"); + //实时路况 + poiTypes.add("10015"); + + return poiTypes; } /** @@ -245,7 +311,7 @@ public class V2XSurroundingFragment extends MvpFragment exploreWayList) { - Logger.e(TAG, "showBonndsRoadtion exploreWayList.size() = " + exploreWayList.size()); + Logger.d(TAG, "showBonndsRoadtion exploreWayList.size() = " + exploreWayList.size()); Rect rect = new Rect( (int) getContext().getResources().getDimension(R.dimen.module_v2x_map_left), (int) getContext().getResources().getDimension(R.dimen.module_v2x_map_top), diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java index 52ef87731e..a2d89e3cba 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java @@ -62,12 +62,12 @@ public class V2XRoadEventScenario extends AbsV2XScenario imp V2XRoadEventEntity v2XRoadEventEntity = v2XMessageEntity.getContent(); if (v2XRoadEventEntity != null) { //只上报事故 - if (v2XRoadEventEntity.getPoiType() != null && v2XRoadEventEntity.getPoiType().equals(MarkerPoiTypeEnum.FOURS_ACCIDENT)) { -// V2XServiceManager.getMoGoStatusManager().setUploadingStatus(ServiceConst.CARD_TYPE_ROAD_CONDITION, true); - TanluUploadParams params = new TanluUploadParams(v2XRoadEventEntity.getPoiType(), - IMogoTanluProvider.UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO); - V2XServiceManager.getTanluManager().uploadRoadCondition(params); - } +// if (v2XRoadEventEntity.getPoiType() != null && v2XRoadEventEntity.getPoiType().equals(MarkerPoiTypeEnum.FOURS_ACCIDENT)) { +//// V2XServiceManager.getMoGoStatusManager().setUploadingStatus(ServiceConst.CARD_TYPE_ROAD_CONDITION, true); +// TanluUploadParams params = new TanluUploadParams(v2XRoadEventEntity.getPoiType(), +// IMogoTanluProvider.UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO); +// V2XServiceManager.getTanluManager().uploadRoadCondition(params); +// } if (v2XMessageEntity.isShowState()) { if (!isSameScenario(v2XMessageEntity)) { 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 new file mode 100644 index 0000000000..40714ec11e --- /dev/null +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/V2XNetworkLoadingView.java @@ -0,0 +1,69 @@ +package com.mogo.module.v2x.view; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.LayoutInflater; +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.Nullable; +import com.mogo.module.v2x.R; +import com.mogo.module.v2x.utils.animation.AnimationResources; +import com.mogo.module.v2x.utils.animation.V2XAnimationManager; + +public class V2XNetworkLoadingView extends RelativeLayout { + + private ImageView loadView; + private TextView textView; + private V2XAnimationManager v2XAnimationManager; + + + public V2XNetworkLoadingView(Context context) { + + super(context); + } + + public V2XNetworkLoadingView(Context context, @Nullable AttributeSet attrs) { + super(context, attrs); + LayoutInflater.from(context).inflate(R.layout.v2x_network_loading_item, this); + initView(); + setLoadingImage(AnimationResources.loadingRes); + } + + public V2XNetworkLoadingView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + public void initView() { + v2XAnimationManager = new V2XAnimationManager(); + loadView = findViewById(R.id.loading_imageview); + textView = findViewById(R.id.loading_text); + } + + public void setLoadingText(String text) { + if (textView != null) { + textView.setText(text); + } + } + + public void setLoadingImage(int[] resources) { + v2XAnimationManager.animationWithTarget(loadView, resources, 100); + } + + public void start() { + if (v2XAnimationManager != null) { + v2XAnimationManager.start(); + this.setVisibility(View.VISIBLE); + } + } + + public void stop() { + if (v2XAnimationManager != null) { + v2XAnimationManager.stop(); + this.setVisibility(GONE); + } + } + + +} diff --git a/modules/mogo-module-v2x/src/main/res/layout/footer_nomore_view.xml b/modules/mogo-module-v2x/src/main/res/layout/footer_nomore_view.xml new file mode 100644 index 0000000000..db5cb0e6ee --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/layout/footer_nomore_view.xml @@ -0,0 +1,44 @@ + + + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml b/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml index fb62717df6..1ce8a4fed9 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml @@ -10,29 +10,30 @@ + android:layout_height="@dimen/module_v2x_surrounding_top_height" + android:visibility="gone"> + android:layout_marginLeft="@dimen/module_v2x_surrounding_margin_left" + android:text="周围5公里,共15条交通信息" + android:textColor="@color/white" + android:textSize="@dimen/module_v2x_surrounding_top_textsize" /> @@ -41,11 +42,11 @@ android:id="@+id/list_layout_container" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="10px" - android:layout_marginLeft="10px" - android:layout_marginRight="10px" - android:layout_marginBottom="20px" - android:layout_below="@+id/layout_top"> + android:layout_below="@+id/layout_top" + android:layout_marginLeft="@dimen/module_v2x_surrounding_root_margin_left" + android:layout_marginTop="@dimen/module_v2x_surrounding_empty_tv_margin_top" + android:layout_marginRight="@dimen/module_v2x_surrounding_root_margin_left" + android:layout_marginBottom="@dimen/module_v2x_surrounding_margin_left"> + + diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_fragment_surrounding_event_item.xml b/modules/mogo-module-v2x/src/main/res/layout/module_fragment_surrounding_event_item.xml index f40530bbef..407831ac28 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/module_fragment_surrounding_event_item.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/module_fragment_surrounding_event_item.xml @@ -2,25 +2,25 @@ + android:layout_height="@dimen/module_v2x_surrounding_item_height"> + android:layout_height="@dimen/module_v2x_surrounding_item_image_height" /> + android:layout_height="@dimen/module_v2x_surrounding_item_bottom"> @@ -31,8 +31,8 @@ android:layout_height="match_parent" android:gravity="center_vertical" android:layout_toRightOf="@+id/iv_event_type" - android:layout_marginLeft="8px" - android:textSize="20px" + android:layout_marginLeft="@dimen/module_v2x_surrounding_item_marigin_bottom_left" + android:textSize="@dimen/module_v2x_surrounding_item_bottom_left_textsize" android:textColor="@color/white" android:text="求助" /> @@ -41,9 +41,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" - android:layout_marginRight="12px" + android:layout_marginRight="@dimen/module_v2x_surrounding_item_marigin_left" android:layout_centerVertical="true" - android:textSize="16px" + android:textSize="@dimen/module_v2x_surrounding_item_bottom_right_textsize" android:textColor="@color/transparent_white_30" android:text="23条" /> diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_panel_fragment_event_panel.xml b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_panel_fragment_event_panel.xml index 9379fbfae5..051d0557f0 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_panel_fragment_event_panel.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_panel_fragment_event_panel.xml @@ -10,6 +10,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="#10121E" + android:clickable="true" android:paddingStart="@dimen/dp_30" android:paddingEnd="@dimen/dp_30" android:visibility="gone" diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml index 941581c18a..cfe8dcfd4b 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml @@ -85,7 +85,8 @@ android:gravity="center_horizontal|top" android:text="车友认同次数" android:textColor="#FFFFFF" - android:textSize="16px"/> + android:textSize="16px" + android:paddingBottom="22px"/> diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_recylerview.xml b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_recylerview.xml index 545abf7aaa..5a711dd9dc 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_recylerview.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_recylerview.xml @@ -3,7 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent" > + android:layout_height="match_parent"> - + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"> - + - - + + diff --git a/modules/mogo-module-v2x/src/main/res/layout/v2x_network_loading_item.xml b/modules/mogo-module-v2x/src/main/res/layout/v2x_network_loading_item.xml new file mode 100644 index 0000000000..f5a420b515 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/layout/v2x_network_loading_item.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/layout/view_history_empty.xml b/modules/mogo-module-v2x/src/main/res/layout/view_history_empty.xml index 0d93925d85..e1adf9b0e5 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/view_history_empty.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/view_history_empty.xml @@ -6,8 +6,8 @@ 80px + 6px + 550px + 200px + 200px + 100px + 35px + 90px + 36px + 58px + 15px + 150px + 48px + 32px + 70px + 10px + 20px + 200px + 173px + 130px + 43px + 26px + 12px + 8px + + 18px + 20px + 16px + diff --git a/modules/mogo-module-v2x/src/main/res/values-xhdpi/dimens.xml b/modules/mogo-module-v2x/src/main/res/values-xhdpi/dimens.xml index b063c2f4ef..517b992d18 100644 --- a/modules/mogo-module-v2x/src/main/res/values-xhdpi/dimens.xml +++ b/modules/mogo-module-v2x/src/main/res/values-xhdpi/dimens.xml @@ -29,5 +29,28 @@ 200px 200px 100px + 35px + 90px + 36px + 58px + 15px + 150px + 48px + 32px + 70px + 10px + 20px + 200px + 173px + 130px + 43px + 26px + 12px + 8px + + 18px + 20px + 16px + diff --git a/modules/mogo-module-v2x/src/main/res/values/dimens.xml b/modules/mogo-module-v2x/src/main/res/values/dimens.xml index 831b055b8d..a853afdff8 100644 --- a/modules/mogo-module-v2x/src/main/res/values/dimens.xml +++ b/modules/mogo-module-v2x/src/main/res/values/dimens.xml @@ -26,11 +26,31 @@ 40px 6px - 16px 550px 200px 200px 100px + 35px + 90px + 36px + 58px + 15px + 150px + 48px + 32px + 70px + 10px + 20px + 200px + 173px + 130px + 43px + 26px + 12px + 8px + 18px + 20px + 16px diff --git a/modules/mogo-module-widgets/src/main/java/com/mogo/module/widgets/AutoNaviIntentHandler.java b/modules/mogo-module-widgets/src/main/java/com/mogo/module/widgets/AutoNaviIntentHandler.java index 3773c41930..77f525cb39 100644 --- a/modules/mogo-module-widgets/src/main/java/com/mogo/module/widgets/AutoNaviIntentHandler.java +++ b/modules/mogo-module-widgets/src/main/java/com/mogo/module/widgets/AutoNaviIntentHandler.java @@ -8,10 +8,14 @@ import android.view.WindowManager; import com.mogo.commons.AbsMogoApplication; import com.mogo.commons.debug.DebugConfig; import com.mogo.module.common.wm.WindowManagerView; +import com.mogo.utils.CommonUtils; import com.mogo.utils.LaunchUtils; import com.mogo.utils.ResourcesHelper; import com.mogo.utils.logger.Logger; +import java.util.HashMap; +import java.util.Map; + public /** * @author congtaowang @@ -40,6 +44,7 @@ class AutoNaviIntentHandler { } private WindowManagerView mWindowManagerView; + private Map< String, Object > mProperties = new HashMap<>(); public synchronized void release() { sInstance = null; @@ -95,6 +100,12 @@ class AutoNaviIntentHandler { } else { LaunchUtils.launchByPkg( context, "com.mogo.launcher.app" ); } + if ( mProperties.isEmpty() ) { + mProperties.put( "appname", CommonUtils.getAppName( context ) ); + mProperties.put( "appversion", CommonUtils.getVersionName( context ) ); + mProperties.put( "from", 9 ); + } + MogoWidgetManger.getInstance().getApis().getAnalyticsApi().track( "appenterfront", mProperties ); } catch ( Exception e ) { Logger.e( TAG, e, "error." ); } @@ -102,6 +113,7 @@ class AutoNaviIntentHandler { } try { mWindowManagerView.show(); + MogoWidgetManger.getInstance().getApis().getAnalyticsApi().track( "NAVI_button_show", null ); } catch ( Exception e ) { Logger.e( TAG, e, "error." ); } diff --git a/modules/mogo-module-widgets/src/main/res/drawable-ldpi/module_widgets_app_entrance_img_bkg.png b/modules/mogo-module-widgets/src/main/res/drawable-ldpi/module_widgets_app_entrance_img_bkg.png new file mode 100644 index 0000000000..0af1eeda01 Binary files /dev/null and b/modules/mogo-module-widgets/src/main/res/drawable-ldpi/module_widgets_app_entrance_img_bkg.png differ diff --git a/modules/mogo-module-widgets/src/main/res/drawable/module_widgets_app_entrance_bkg.xml b/modules/mogo-module-widgets/src/main/res/drawable/module_widgets_app_entrance_bkg.xml deleted file mode 100644 index b46cff52de..0000000000 --- a/modules/mogo-module-widgets/src/main/res/drawable/module_widgets_app_entrance_bkg.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/modules/mogo-module-widgets/src/main/res/drawable/module_widgets_app_entrance_img_bkg.png b/modules/mogo-module-widgets/src/main/res/drawable/module_widgets_app_entrance_img_bkg.png new file mode 100644 index 0000000000..0af1eeda01 Binary files /dev/null and b/modules/mogo-module-widgets/src/main/res/drawable/module_widgets_app_entrance_img_bkg.png differ diff --git a/modules/mogo-module-widgets/src/main/res/layout/module_widgets_app_entrance.xml b/modules/mogo-module-widgets/src/main/res/layout/module_widgets_app_entrance.xml index cacbb2a8e2..5ea9b7fe2a 100644 --- a/modules/mogo-module-widgets/src/main/res/layout/module_widgets_app_entrance.xml +++ b/modules/mogo-module-widgets/src/main/res/layout/module_widgets_app_entrance.xml @@ -3,11 +3,12 @@ android:id="@+id/module_widgets_app_entrance_root" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/module_widgets_app_entrance_bkg" + android:background="@drawable/module_widgets_app_entrance_img_bkg" + android:gravity="center" android:orientation="vertical"> 20px 15px 2px - 112px - 929px + 505px + 501px 10px 15px 71px diff --git a/modules/mogo-module-widgets/src/main/res/values-mdpi/dimens.xml b/modules/mogo-module-widgets/src/main/res/values-mdpi/dimens.xml index 3aa8cdc5a8..bbd70cad6e 100644 --- a/modules/mogo-module-widgets/src/main/res/values-mdpi/dimens.xml +++ b/modules/mogo-module-widgets/src/main/res/values-mdpi/dimens.xml @@ -3,8 +3,8 @@ 20px 15px 2px - 112px - 929px + 505px + 501px 10px 15px 71px diff --git a/modules/mogo-module-widgets/src/main/res/values/strings.xml b/modules/mogo-module-widgets/src/main/res/values/strings.xml index 717eefe1fe..d824f729d5 100644 --- a/modules/mogo-module-widgets/src/main/res/values/strings.xml +++ b/modules/mogo-module-widgets/src/main/res/values/strings.xml @@ -1,4 +1,4 @@ mogo-module-service - 辅助\n驾驶 + 切换辅助驾驶