marquee text view in android
- by raqz
i tried various combinations as answered here in SO...but i am still not able to get the text to marquee... combination 1
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:id="@+id/organizationText"
android:layout_height="38px" android:gravity="center_horizontal"
android:textColor="#0099CC" android:layout_gravity="center"
android:textSize="08pt" android:layout_width="wrap_content"
android:maxLines="1" android:ellipsize="marquee"
android:fadingEdge="horizontal" android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true" android:focusable="true"
android:focusableInTouchMode="true" />
</RelativeLayout>
orgText.setSelected(true);
orgText.setEllipsize(TruncateAt.MARQUEE);
orgText.setText(organization);
I tried without using setSelected but it still doesnt work. any help would be appreciated... also, this entire view is a part of Linear layout.