样式
This commit is contained in:
8
ln_jq_app/.claude/settings.local.json
Normal file
8
ln_jq_app/.claude/settings.local.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(flutter build apk --debug 2>&1 | tail -15)",
|
||||
"Bash(flutter build apk --debug 2>&1 | tail -10)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -804,7 +804,9 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
|
||||
|
||||
BitmapDescriptor icon = getMarkerIconWithText(mContext, displayName, isRecommend);
|
||||
|
||||
MarkerOptions markerOptions = new MarkerOptions().position(latLng).icon(icon).anchor(0.5f, 0.8f); // 重点:调整锚点,确保图标尖端对准经纬度
|
||||
MarkerOptions markerOptions = new MarkerOptions()
|
||||
.title(name).
|
||||
position(latLng).icon(icon).anchor(0.5f, 0.8f);
|
||||
|
||||
Marker m = aMap.addMarker(markerOptions);
|
||||
|
||||
@@ -929,6 +931,7 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
|
||||
textView.setText(text);
|
||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12);
|
||||
textView.setTextColor(Color.BLACK);
|
||||
textView.setTypeface(null, Typeface.BOLD);
|
||||
// 设置文字的参数为 WRAP_CONTENT
|
||||
LinearLayout.LayoutParams textLp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
|
||||
textView.setLayoutParams(textLp);
|
||||
|
||||
Reference in New Issue
Block a user