<textview
Android:layout_width= "Match_parent"
android:layout_height= "48DP"
Android:ellipsize= "Marquee"
Android:focusable= "true"
Android:singleline= "true"
Android:textcolor= "#912CEE"
Android:textsize= "18SP"
Android:focusableintouchmode= "true"
android:marqueerepeatlimit= "Marquee_forever"
Android:scrollhorizontally= "true"
Android:text= "International Online Report: The president's visit to the United Kingdom was the first state visit to the United Kingdom on the occasion of the Second Decade of the Sino-British comprehensive strategic partnership and 40 years of diplomatic relations between China and Europe." This visit has fully promoted the development of Sino-British relations and opened the Golden age of Sino-British strategic partnership. British netizens, especially in the UK, are highly concerned and actively evaluate the Chairman's visit to the UK. "/>
You can realize the marquee
- Android:ellipsize= "Start"-the ellipsis appears at the beginning "... 789 "
- Android:ellipsize= "End"--ellipsis appears at the end "123 ..."
- Android:ellipsize= "Middle"--ellipsis displayed in the middle "12...89"
- Android:ellipsize= "Marquee" – displayed in horizontal scrolling mode (when the current focus is needed)
- Android:ellipsize= "None" –--does not do any processing (truncation of the text will be displayed)
Android TextView Racing Lights