【Android 开发】TextView的跑马灯效果
来源:互联网 发布:二叉树的结点算法 编辑:程序博客网 时间:2024/06/07 12:41
listview里的TextView跑马灯
步骤1,TextView里:
android:ellipsize="marquee"
android:focusableInTouchMode="true"
android:singleLine="true"
注:TextView一定不能设置focusable="true"
步骤2,ListView里:
android:focusable="true"
步骤3,绑定的Adapter
TextView tv = helper.getView(R.id.tv_intro);
tv.setSelected(true);
纯TextView的跑马灯
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:singleLine="true"
android:ellipsize="marquee"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:text="这才是真正的文字跑马灯效果"
>
</TextView>
android:ellipsize="marquee"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:text="这才是真正的文字跑马灯效果"
>
</TextView>
0 0
- 【Android 开发】TextView的跑马灯效果
- Android开发 TextView实现跑马灯效果
- Android开发:TextView实现跑马灯效果
- Android开发实现TextView跑马灯效果
- Android开发实现TextView跑马灯效果
- android TextView显示跑马灯的效果
- Android TextView的跑马灯效果
- Android TextView 跑马灯效果的实现
- android跑马灯效果的TextView
- Android实现跑马灯效果的TextView
- Android控件TextView的跑马灯效果
- Android中的TextView的跑马灯效果
- Android TextView跑马灯效果
- Android TextView跑马灯效果
- Android TextView跑马灯效果
- Android TextView跑马灯效果
- [Android]TextView跑马灯效果
- Android textView 跑马灯效果
- 用GSON解析Json格式数据
- Altium Designer14如何由原理图得到PCB(3)
- 1006. Sign In and Sign Out (25)
- 通过手机访问电脑上Apache的端口
- webView:decidePolicyForNavigationAction:request:frame:decisionListener
- 【Android 开发】TextView的跑马灯效果
- 菜鸟学习设计模式的心得
- mysql -5.7 安装教程(创建data)
- 谷歌Cartographer学习(2)-原理阐述与源码解析
- GreenDao、Ormlite、Realm性能对比
- 【LeetCode】496. Next Greater Element I【E】【94】
- 1005. Spell It Right (20)
- C++之虚函数(一)纯虚函数详解
- 深度学习卷积神经网络大事件一览