marquee text view in android

Posted by raqz on Stack Overflow See other posts from Stack Overflow or by raqz
Published on 2011-01-30T15:21:42Z Indexed on 2011/01/30 15:25 UTC
Read the original article Hit count: 476

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.

© Stack Overflow or respective owner

Related posts about android

Related posts about textview