From f87736d0df3c9b67aa542ec5b0c8534c8911500b Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Wed, 27 May 2020 16:47:50 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=A1=86=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../res/drawable-ldpi/module_share_title_icon.png | Bin 0 -> 182 bytes .../drawable-xhdpi/module_share_title_icon.png | Bin 0 -> 255 bytes .../main/res/layout/launcher_dialog_share_2.xml | 3 +++ 3 files changed, 3 insertions(+) create mode 100644 modules/mogo-module-share/src/main/res/drawable-ldpi/module_share_title_icon.png create mode 100644 modules/mogo-module-share/src/main/res/drawable-xhdpi/module_share_title_icon.png diff --git a/modules/mogo-module-share/src/main/res/drawable-ldpi/module_share_title_icon.png b/modules/mogo-module-share/src/main/res/drawable-ldpi/module_share_title_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..62daa431149ededeca5c31a31d18c14b177d73bf GIT binary patch literal 182 zcmeAS@N?(olHy`uVBq!ia0vp^AhrMp8v_GlM8&;pKn`PZkh>GZx^prwft&(Q7sn6{ z(cXa5d<_O1(x?ALpt(){(SODr*_1qloFPk6oDy5@IkhJ=gl6@Gs1ms)?An-(n! z^jf;b=Rsvo+Li~YXO^(6bc|Y%kg0m}!?L#z&k0;)pRY81Kktm$gL3+ hZulL1sWbB-ucMwy#GH+%egW-f@O1TaS?83{1OUdQMiT%4 literal 0 HcmV?d00001 diff --git a/modules/mogo-module-share/src/main/res/drawable-xhdpi/module_share_title_icon.png b/modules/mogo-module-share/src/main/res/drawable-xhdpi/module_share_title_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..cb48ea6debae1d88686ebb3e3033289216a48631 GIT binary patch literal 255 zcmVPx#xk*GpR7efoR6!1aFbLa>Kh~RPZ~A7H#V#d;1QX(6Ug)rel}$@|pJm;z2@8pn zWO_m^B&+zfzXqsX`Eq65N`e8x3?T75wx(1&VM52MKe9%qO*}NiXhxuyXc#7;ys?z6 z85I+OXI8*FULuAng-B}DC@+y)hbrZbAk;38^z+0MH_qq9`19H2?I~2ry((;iF@F=B z4|QXKhX*dCt~dMVTf%t{4?LqZYwqvV8>)8*X*(LY&<*{3Hwo#rBc}iW002ovPDHLk FV1ik>Wo!Td literal 0 HcmV?d00001 diff --git a/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml b/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml index d9408ba5b3..7968c777ba 100644 --- a/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml +++ b/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml @@ -24,6 +24,9 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/share_module_title_margin_top" android:text="我要分享" + android:drawableLeft="@drawable/module_share_title_icon" + android:drawableRight="@drawable/module_share_title_icon" + android:drawablePadding="@dimen/dp_40" android:textColor="@color/white" android:textSize="@dimen/share_module_title_content" android:textStyle="bold" From 27d736e535f5205c329f6b030921182b788f4cea Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Wed, 27 May 2020 17:27:49 +0800 Subject: [PATCH 2/6] =?UTF-8?q?topView=E5=9B=9E=E8=B0=83=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extensions/utils/TopViewAnimHelper.java | 49 +++++++++++-------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/utils/TopViewAnimHelper.java b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/utils/TopViewAnimHelper.java index 397dca9d50..3884ab3f96 100644 --- a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/utils/TopViewAnimHelper.java +++ b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/utils/TopViewAnimHelper.java @@ -7,6 +7,8 @@ import android.transition.TransitionManager; import android.util.ArrayMap; import android.view.View; import android.view.ViewGroup; +import android.view.animation.BounceInterpolator; +import android.view.animation.OvershootInterpolator; import android.widget.ImageView; import android.widget.TextView; @@ -113,11 +115,14 @@ public class TopViewAnimHelper { IMogoTopViewStatusListener listener; if (isTopViewOut) { listener = statusListenerMap.remove(currentAnimatingView); - }else{ + if(listener!=null) { + listener.onViewRemoved(currentAnimatingView); + } + } else { listener = statusListenerMap.get(currentAnimatingView); - } - if (listener != null) { - listener.onViewAdded(currentAnimatingView); + if(listener!=null) { + listener.onViewAdded(currentAnimatingView); + } } } @@ -148,8 +153,9 @@ public class TopViewAnimHelper { private View currentAnimatingView = null; - public void startTopInAnim(View view, ViewGroup.LayoutParams params, IMogoTopViewStatusListener statusListener) { - Logger.d(TAG, "startTopInAnim====="+isTopViewOut); + public void startTopInAnim(View view, ViewGroup.LayoutParams params, + IMogoTopViewStatusListener statusListener) { + Logger.d(TAG, "startTopInAnim=====" + isTopViewOut); if (view == null) { throw new IllegalArgumentException("method addTopView params view is null"); } @@ -231,9 +237,9 @@ public class TopViewAnimHelper { naviBg.getLayoutParams().height = (int) topMotionLayout.getContext().getResources().getDimension(R.dimen.module_ext_navi_info_panel_small_height); int scene = 0; - if(naviBg.getVisibility() == View.VISIBLE){ + if (naviBg.getVisibility() == View.VISIBLE) { scene = Scene.NAVI_WITH_ROAD_EVENT; - }else{ + } else { scene = Scene.AIMLESS_WITH_ROAD_EVENT; } Logger.d(TAG, "show top setMapCenterPointByScene: " + scene); @@ -245,9 +251,9 @@ public class TopViewAnimHelper { /** * 退出最新的(也就是最上面的)view */ - private void startLatestTopOutAnim(){ - if (topContainer.getChildCount() > 0) { - startTopOutAnim(topContainer.getChildAt(topContainer.getChildCount() - 1)); + private void startLatestTopOutAnim() { + if (topContainer.getChildCount() > 0) { + startTopOutAnim(topContainer.getChildAt(topContainer.getChildCount() - 1)); } } @@ -255,9 +261,10 @@ public class TopViewAnimHelper { Logger.d("TopViewAnimHelper", "startTopOutAnim====="); if (!isTopViewOut) { - if(topContainer.getChildCount() >1){ + if (topContainer.getChildCount() > 1) { // 顶部view包含多个view,只推出当前view,不进行整体上移 - Logger.d(TAG, "小view退出: " + view.getTranslationY() + " height: " + view.getHeight()); + Logger.d(TAG, + "小view退出: " + view.getTranslationY() + " height: " + view.getHeight()); view.animate().translationY(-(view.getHeight())).setDuration(500).setListener(new Animator.AnimatorListener() { @Override public void onAnimationStart(Animator animation) { @@ -266,13 +273,13 @@ public class TopViewAnimHelper { @Override public void onAnimationEnd(Animator animation) { - Logger.d(TAG,"onAnimationEnd: "+view); + Logger.d(TAG, "onAnimationEnd: " + view); viewCaches.remove(view); topContainer.removeView(view); IMogoTopViewStatusListener listener = statusListenerMap.remove(view); if (listener != null) { listener.onViewRemoved(view); - }else{ + } else { Logger.d(TAG, "listener is null"); } } @@ -288,7 +295,7 @@ public class TopViewAnimHelper { } }).start(); - }else { + } else { // 顶部view仅剩一个view,需要整体上移 currentAnimatingView = view; isTopViewOut = true; @@ -299,7 +306,7 @@ public class TopViewAnimHelper { } constraintSet.clone(topMotionLayout); - constraintSet.clear(R.id.module_entrance_id_top_container,ConstraintSet.TOP); + constraintSet.clear(R.id.module_entrance_id_top_container, ConstraintSet.TOP); constraintSet.connect(R.id.module_entrance_id_top_container, ConstraintSet.BOTTOM, R.id.module_entrance_id_top_motion_layout, ConstraintSet.TOP); TransitionManager.beginDelayedTransition(topMotionLayout, transition); @@ -326,9 +333,9 @@ public class TopViewAnimHelper { naviBg.getLayoutParams().height = (int) topMotionLayout.getContext().getResources().getDimension(R.dimen.module_ext_navi_info_panel_height); int scene = 0; - if(naviBg.getVisibility() == View.VISIBLE){ + if (naviBg.getVisibility() == View.VISIBLE) { scene = Scene.NAVI; - }else{ + } else { scene = Scene.AIMLESS; } Logger.d(TAG, "hide top setMapCenterPointByScene: " + scene); @@ -399,9 +406,9 @@ public class TopViewAnimHelper { remainTimeGroup.setVisibility(View.GONE); arriveTimeGroup.setVisibility(View.GONE); int scene = 0; - if(isTopViewOut){ + if (isTopViewOut) { scene = Scene.AIMLESS_WITH_ROAD_EVENT; - }else{ + } else { scene = Scene.AIMLESS; } Logger.d(TAG, "hide navi setMapCenterPointByScene: " + scene); From 71da2e493c2af11863aac3e1a102df319e112023 Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Wed, 27 May 2020 17:34:09 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9extensions=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index e29d91b2a1..7021745d38 100644 --- a/gradle.properties +++ b/gradle.properties @@ -42,7 +42,7 @@ MOGO_MODULE_COMMON_VERSION=1.1.0.12 MOGO_MODULE_MAIN_VERSION=1.1.0.12 MOGO_MODULE_MAP_VERSION=1.1.0.12 MOGO_MODULE_SERVICE_VERSION=1.1.0.12 -MOGO_MODULE_EXTENSIONS_VERSION=1.1.0.12 +MOGO_MODULE_EXTENSIONS_VERSION=1.1.0.13 MOGO_MODULE_SEARCH_VERSION=1.1.0.12 MOGO_MODULE_BACK_VERSION=1.1.0.12 MOGO_MODULE_GPS_SIMULATOR_VERSION=1.1.0.12 From 80ea8d32deb0dfa9f346fe5cb82b28b92f557ac7 Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Wed, 27 May 2020 17:36:59 +0800 Subject: [PATCH 4/6] opt --- .../src/main/res/layout/module_ext_layout_entrance.xml | 3 +++ 1 file changed, 3 insertions(+) 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 4344dd07df..7dedbe8be2 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 @@ -28,6 +28,9 @@ android:layout_width="@dimen/module_ext_navi_info_panel_width" android:layout_height="@dimen/module_ext_navi_info_panel_height" android:background="@drawable/module_ext_dw_navi_info_panel_bkg" + android:focusable="true" + android:clickable="true" + app:layout_constraintHorizontal_bias="0.501" app:layout_constraintLeft_toLeftOf="@id/module_entrance_id_top_container" app:layout_constraintRight_toRightOf="@id/module_entrance_id_top_container" app:layout_constraintTop_toBottomOf="@id/module_entrance_id_top_container" /> From 6c60f502ab31cc0aaef9d9c96267bf34d3ba1567 Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Thu, 28 May 2020 10:50:06 +0800 Subject: [PATCH 5/6] opt --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7021745d38..dfc7d53b18 100644 --- a/gradle.properties +++ b/gradle.properties @@ -54,7 +54,7 @@ MOGO_MODULE_GUIDE_VERSION=1.1.0.12 ## 工程外部模块 # 探路 -MOGO_MODULE_TANLU_VERSION=1.0.5-SNAPSHOT +MOGO_MODULE_TANLU_VERSION=1.0.6-SNAPSHOT # 车聊聊 CARCHATTING_VERSION=1.0.4-SNAPSHOT # 车聊聊接口 From 3f276184fc43bad5e5ec4744088de60b24aa761c Mon Sep 17 00:00:00 2001 From: tongchenfei Date: Thu, 28 May 2020 16:36:16 +0800 Subject: [PATCH 6/6] =?UTF-8?q?opt=20=E5=88=86=E4=BA=AB=E6=A1=86=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/res/layout/launcher_dialog_share_2.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml b/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml index 7968c777ba..7d79054f71 100644 --- a/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml +++ b/modules/mogo-module-share/src/main/res/layout/launcher_dialog_share_2.xml @@ -50,7 +50,7 @@ android:id="@+id/tvBlock" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/dp_116" + android:layout_marginStart="@dimen/dp_164" android:layout_marginTop="@dimen/dp_30" android:text="拥堵" android:textColor="#fff" @@ -148,7 +148,7 @@ android:id="@+id/tvConstruction" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="@dimen/dp_116" + android:layout_marginEnd="@dimen/dp_132" android:gravity="center" android:text="施工" android:textColor="#fff"