I would like to display long texts in InfoWindow and I thought it would be great if the text scrolled automatically. I have tried with marquee, but the text is not scrolling. Any ideas what am I doing wrong?
Here is my layout code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/title"
android:layout_width="@dimen/infoWindowMaxWidth"
android:layout_height="wrap_content"
android:textStyle="bold"
android:lines="1"
android:layout_centerInParent="true"
android:textColor="@android:color/white"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:focusable="true"
android:focusableInTouchMode="true"
android:scrollHorizontally="true" />
</RelativeLayout>
My InfoWindowAdapter:
class CustomInfoWindowAdapter : Java.Lang.Object, GoogleMap.IInfoWindowAdapter
{
.
.
.
private void Render(Marker marker, View view)
{
var textView = view.FindViewById<TextView>(Resource.Id.title);
textView.Text = marker.Title;
textView.Selected = true;
}
}