在项目开发中,有时候我们需要显示一个走马灯效果,简单的走马灯效果当然容易实现;
在xml文件中给TextView设置以下属性即可;
android:focusable=true;
android:focuseableInTouchMode=true
android:singleLine=true;
android:ellipsize=marquee;
在项目开发中,有时候我们需要显示一个走马灯效果,简单的走马灯效果当然容易实现;
在xml文件中给TextView设置以下属性即可;
android:focusable=true;
android:focuseableInTouchMode=true
android:singleLine=true;
android:ellipsize=marquee;