Marquee text in Android -
How do I use Marquee Text in the Android application?
Here's an example:
Public class TextViewMarquee extends activity { Private TextView TV; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.main); Tv = (TextView) this.findViewById (R.id.mywidget); Tv.setSelected (true); // Focus on TextView}}
XML file with TextView:
& lt; RelativeLayout xmlns: Android = "http: // schema .android.com / apk / ridge / android" Android: layout_width = "fill_parine" android: layout_heil = "fill_perror" & gt; Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: fadingEdge = "Horizontal" Android: marqueeRepeatLimit Android: scrollHorizontally = "true" Android: textcolor = "# ff4500" Android: Text = "Simple application shows how to use Marquee with a long text," /> & Lt; / RelativeLayout & gt;
Comments
Post a Comment