修改故障求助显示问题和道路事件icon不显示问题

This commit is contained in:
tongchenfei
2020-11-03 19:30:21 +08:00
parent 721c36fab5
commit 90797ab8ea
5 changed files with 7 additions and 2 deletions

1
.idea/gradle.xml generated
View File

@@ -77,7 +77,6 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -11,6 +11,9 @@
android:layout_marginLeft="@dimen/module_common_shadow_width_pos"
android:layout_marginTop="@dimen/module_common_shadow_width_pos"
android:layout_marginRight="@dimen/module_common_shadow_width_pos"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="@drawable/module_ext_drawable_seek_help_notice_bg" />

View File

@@ -158,6 +158,7 @@
<dimen name="module_common_shadow_width_pos">10px</dimen>
<dimen name="module_ext_seek_help_notice_bg_margin_top">20px</dimen>
<dimen name="module_ext_seek_help_notice_icon_width">44px</dimen>
<dimen name="module_ext_seek_help_notice_bg_width">1060px</dimen>
<dimen name="module_ext_seek_help_notice_bg_height">100px</dimen>

View File

@@ -170,4 +170,5 @@
<dimen name="module_ext_seek_help_notice_text_size">18px</dimen>
<dimen name="module_ext_seek_help_notice_text_margin_start">10px</dimen>
<dimen name="module_ext_seek_help_notice_number_text_size">22px</dimen>
<dimen name="module_ext_seek_help_notice_bg_margin_top">16px</dimen>
</resources>

View File

@@ -85,6 +85,7 @@ public abstract class MapMarkerBaseView extends LinearLayout implements IMarkerV
}
protected void loadPoiTypeIcon(String url,int res) {
ivIcon.setImageResource(res);
if ( Looper.myLooper() != Looper.getMainLooper() ) {
UiThreadHandler.post( ()-> loadPoiTypeIconInUiThread(url, res));
} else {
@@ -93,7 +94,7 @@ public abstract class MapMarkerBaseView extends LinearLayout implements IMarkerV
}
private void loadPoiTypeIconInUiThread(String url,int res) {
ivIcon.setImageResource(res);
if (!url.isEmpty()) {
ivIcon.setPlaceHolder(res);
ivIcon.setFailureHolder(res);