Merge branch 'feature/v1.0.0' of gitlab.zhidaoauto.com:ecos/yycp-service/Launcher into feature/v1.0.0

This commit is contained in:
wangcongtao
2020-02-26 15:37:28 +08:00
5 changed files with 27 additions and 7 deletions

View File

@@ -79,7 +79,7 @@
<dimen name="module_ext_navi_info_panel_turn_icon_height">159px</dimen>
<dimen name="module_ext_navi_info_panel_turn_icon_marginLeft">24px</dimen>
<dimen name="module_ext_navi_info_panel_turn_icon_marginTop">24px</dimen>
<dimen name="module_ext_navi_info_panel_next_info_distance_marginTop">10px</dimen>
<dimen name="module_ext_navi_info_panel_next_info_distance_marginTop">20px</dimen>
<dimen name="module_ext_navi_info_panel_next_info_distance_textSize">60px</dimen>
<dimen name="module_ext_navi_info_panel_next_info_distance_unit_marginLeft">12px</dimen>
<dimen name="module_ext_navi_info_panel_next_info_distance_unit_marginBottom">16px</dimen>

View File

@@ -149,7 +149,6 @@ class CategorySearchFragment : BaseFragment(), CategoryView {
lifecycle.removeObserver(mSearchPresenter)
SearchServiceHolder.getMarkerManger()
.removeMarkers(TAG)
moveMapToCenter()
}
override fun onDestroy() {

View File

@@ -221,6 +221,7 @@ class ChoosePathFragment : BaseFragment(), IMogoNaviListener, IMogoVoiceCmdCallB
.recoverLockMode()
isStartedNavi = true
SearchServiceHolder.fragmentManager.clearAll()
moveMapToRight()
}
private fun selectPath(item: MogoCalculatePath?) {

View File

@@ -42,12 +42,28 @@ public class BitmapUtils {
Canvas canvas = new Canvas(ret);
int i = Integer.parseInt(text);
if (i == 1) {
canvas.drawText(text, (width - bounds.width()*2) / 2.0F, (float) (bounds.height() * 1.8),
paint);
if (isLow(context)) {
if (i == 1) {
canvas.drawText(text, (width - bounds.width() * 2) / 2.0F,
(float) (bounds.height() * 2.4),
paint);
} else {
canvas.drawText(text, (width - bounds.width()) / 2.0F,
(float) (bounds.height() * 1.9),
paint);
}
} else {
canvas.drawText(text, (width - bounds.width()) / 2.0F, (float) (bounds.height() * 1.8),
if (i == 1) {
canvas.drawText(text, (width - bounds.width()*1.5F) / 2.0F,
(float) (bounds.height() * 1.9),
paint);
}else {
canvas.drawText(text, (width - bounds.width()*1.2F) / 2.0F,
(float) (bounds.height() * 1.9),
paint);
}
}
// 保存
@@ -61,4 +77,8 @@ public class BitmapUtils {
final float scale = context.getResources().getDisplayMetrics().density;
return (int) (dp * scale + 0.5f);
}
public static boolean isLow(Context context) {
return context.getResources().getDisplayMetrics().density < 1;
}
}

View File

@@ -20,7 +20,7 @@
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ll_navi_search"
app:cardBackgroundColor="#3F4057"
app:cardCornerRadius="@dimen/dp_8"
app:cardCornerRadius="@dimen/dp_16"
>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_search_result"