<? XML version="1.0" encoding="Utf-8"?>
<linearlayout xmlns: android="http://schemas.android.com/apk/res/ Android "
xmlns:tools="Http://schemas.android.com/tools"
android: id="@+id/activity_main"
android: layout_width="Match_parent"
android: layout_height="Match_parent"
Tools : Context="Com.example.myapplication.MainActivity">
<!--
Android:singleline= "true" //Text line display
Android:ellipsize= "marquee" //Marquee Properties
Android:focusable= "true" if//textview can get focus
Android:focusableintouchmode= "true" ///can get focus when the text is sliding
-
<TextView
android: layout_width="Match_parent"
android: layout_height="Wrap_content"
android: Text="Zxcvbnmasdfghjklqwertsssssssssssssssssssssssyuiop"
android: textSize="24sp"
android: Singleline="true"
android: ellipsize="marquee"
android: focusable="true"
android: Focusableintouchmode="true"/>
</linearlayout>
Android TextView achieve marquee effect (font scrolling)