Horizontal marquee text in Button android example

If a button have focus, marquee will run.
Important:
android:singleLine=”true”
android:ellipsize=”marquee”
Optional:
android:marqueeRepeatLimit=”1″

// main.xml
    <Button
        android:layout_width="150dip" 
        android:layout_height="wrap_content"
        android:text="My button with a long text for marquee as a example source code"
        android:singleLine="true"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="1"/>
This entry was posted in Android Examples Code and tagged , , . Bookmark the permalink.


Comments are closed.



10,639 views