How to Create marquee Text View in android

we all think how we can do think of html like scroll a text in android . android self provide some functionality we can do this think using some property of android Text View.

<TextView    android:layout_below="@+id/layLinDemo"
    android:layout_marginTop="10dp"
    android:id="@+id/txtmarquees"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="10dip"
    android:paddingRight="10dip"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:ellipsize="marquee"
    android:singleLine="true"
    android:scrollHorizontally="true"
    android:marqueeRepeatLimit="marquee_forever"
    android:text="Sample of marquee text in android which make scrolling of text in textview in android by Default"    />



No comments: