Android中跑马灯 maxLines与singleLine
16lz
2021-01-23
android:id="@+id/tv_marquee" android:text="学习交流,如有疑问可以发送电邮至1443793484@qq.com" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" //现在新版本的sdk已经将singleline视作过时的应用 android:singleLine="true" android:textColor="#b43838" android:ellipsize="marquee" android:focusable="true" android:marqueeRepeatLimit="marquee_forever" android:focusableInTouchMode="true" android:scrollHorizontally="true" />
更多相关文章
- android中textview设置为多行文本时,如何让文字从最顶开始显示
- Android设置显示文本
- android限制文本长度
- Android TextView多行文本滚动实现
- Android 在界面中显示以及输入文本信息 TextView和EditText
- Android中设置文本颜色的三种方法
- Android修改输入法Enter的文本
- Android editText(文本框) 的基本属性及用法:
- Spinner的Android:prompt无法显示文本