This commit is contained in:
liujing
2022-07-25 21:42:40 +08:00
parent 34c9bc21e8
commit ce54bb80f9
5 changed files with 21 additions and 17 deletions

View File

@@ -138,6 +138,11 @@ public class AMapCustomView
View smpView = LayoutInflater.from(context).inflate(R.layout.module_overview_map_view, this);
mAMapNaviView = smpView.findViewById(R.id.aMapNaviView);
overLayerView = findViewById(R.id.overLayer);
if(AppIdentityModeUtils.isTaxi(FunctionBuildConfig.appIdentityMode)) {
overLayerView.setBackground(getResources().getDrawable(R.drawable.amap_reset));
}else {
overLayerView.setBackground(getResources().getDrawable(R.drawable.amap_reset_bus));
}
mAMapNavi = AMapNavi.getInstance(context);
mAMapNavi.addAMapNaviListener(this);
mAMapNaviView.setAMapNaviViewListener(this);

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -24,15 +24,15 @@
<TextView
android:id="@+id/overLayer"
android:layout_width="@dimen/dp_150"
android:layout_height="@dimen/dp_150"
android:layout_width="@dimen/dp_116"
android:layout_height="@dimen/dp_116"
android:scaleType="centerInside"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:background="@drawable/amap_reset"
android:layout_alignParentEnd="true"
android:layout_marginRight="@dimen/dp_100"
android:layout_marginBottom="@dimen/dp_100"
android:layout_marginRight="@dimen/dp_40"
android:layout_marginBottom="@dimen/dp_158"
android:textColor="@drawable/white"
android:textSize="@dimen/dp_34" />
</RelativeLayout>