<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="horizontal" android:layout_height="fill_parent" > <TextView android:id="@+id/landMark" android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="center" android:textSize="15sp" android:textStyle="bold" android:textColor="@color/bgrfont" android:typeface="normal"/> </LinearLayout>
<?xml version="1.0" encoding="utf-8"?> <resources> <calloutViewStyle anchor="9dip" backgroundColor="#7F0A0A0A" flat="true" cornerCurve="10" frameColor="#FFC7C7C7" maxWidth="100"/> </resources>
m_calloutStyle = R.xml.identify_calloutstyle; LayoutInflater inflater = getLayoutInflater(); m_callout = map.getCallout(); ViewGroup calloutContent = (ViewGroup) inflater.inflate(R.layout.identify_callout_content, null); m_callout.setContent(calloutContent); private void ShowCallout(Callout calloutView, Graphic graphic,Point mapPoint) { String lmarkName = (String) graphic.getAttributeValue("NAME"); calloutView.setStyle(m_calloutStyle); calloutView.setCoordinates(mapPoint); calloutView.getStyle().setMaxHeight(50); calloutView.getStyle().setMaxWidth(100); TextView calloutTextLine1 = (TextView) findViewById(R.id.landMark); calloutTextLine1.setText(lmarkName); calloutView.setContent(calloutContent); calloutView.refresh(); calloutView.show(); }
Solved! Go to Solution.
Did you try cranking up your callout's max width/height values? say something like:
Also, I don't know if you need to call getStyle();
calloutView.setMaxWidth(300);
calloutView.setMaxHeight(200);
Did you try cranking up your callout's max width/height values? say something like:
Also, I don't know if you need to call getStyle();
calloutView.setMaxWidth(300);
calloutView.setMaxHeight(200);