Select to view content in your preferred language

Callout not adding scrollbars

2353
10
Jump to solution
05-02-2012 10:32 AM
deleted-user-ATjHIWsdQYmT
Deactivated User
I have a callout which contains a RelativeLayout with several rows.  According to the API documentation the Callout expands up to 150 pixels max, THEN adds scrollbars to view the rest of the content.  http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/Callout.html

Well, My content is much taller than 150 pixels and I'm not getting any scrollbars.  Anybody experience the same issue? 

Hhttp://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/Callout.htmlere is the XML for my RelativeLayout:

<?xml version="1.0" encoding="utf-8"?><RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical">  <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content" android:id="@+id/coLocation"   android:textSize="14dip" android:textColor="#FF000000"   android:paddingBottom="5dip" android:textStyle="bold"/>  <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content"    android:id="@+id/coPIN" android:layout_below="@id/coLocation"   android:textSize="12dip" android:textColor="#FF000000"/>   <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content"    android:id="@+id/coOwner" android:layout_below="@id/coPIN"   android:textSize="12dip"  android:textColor="#FF000000" android:singleLine="false"/>   <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content"    android:id="@+id/coClass" android:layout_below="@id/coOwner"   android:textSize="12dip" android:textColor="#FF000000"/>   <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content"    android:id="@+id/coDistrict"  android:layout_below="@id/coClass"   android:textSize="12dip" android:textColor="#FF000000" android:singleLine="false"/>   <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content"    android:id="@+id/coAcreage" android:layout_below="@id/coDistrict"   android:textSize="12dip" android:textColor="#FF000000"/>   <TextView android:layout_height="wrap_content"   android:layout_width="wrap_content"    android:id="@+id/coZone" android:layout_below="@id/coAcreage"   android:textSize="12dip" android:textColor="#FF000000"/> </RelativeLayout>
0 Kudos
10 Replies
deleted-user-ATjHIWsdQYmT
Deactivated User
OK.  Think I finally got it.  I was trying to align the close button to the parent top and right of the layout.  It seemed to work fine in Portrait but not in landscape.  I removed the layout alignment and just aligned it to a few of the textviews.  Seems to work fine now.

Thanks for the help!
0 Kudos