Skip to main content

Posts

Showing posts from November, 2014

Make a Marquee Textview in android

Made change like that,

In main.xml

<TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/text_content"
        android:singleLine="true" 
        android:ellipsize="marquee"
        android:marqueeRepeatLimit ="marquee_forever"
        android:scrollHorizontally="true"
        android:focusable="true"
        android:focusableInTouchMode="true" />

string.xml

<string name="text_content">This is a android marquee textview, to view the text by left to right on the screeen.Did you see that?</string>