AnsweredAssumed Answered

Callout size problem

Question asked by cadgis on Apr 10, 2013
Latest reply on Jun 16, 2013 by elmassimo
The call out I am showing to display an attribute value of a point  feature does not show its full length. Please see the attachments. Can some one help please!!.

identify_callout_content.xml

<?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>


identify_calloutstyle.xml

<?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(); }

Attachments

Outcomes