客户端中消息的轮换出现 TextSwitcher
来源:互联网 发布:centos 中文输入法 编辑:程序博客网 时间:2024/06/06 07:26
经常在应用中看到几条消息轮换着出现,我们也就实现这么个简单的功能,直接引用TextSwitcher这个控件就足以解决。。。
textswitcher= (TextSwitcher) this.findViewById(R.id.textswitcher);textswitcher.setFactory(this);Animation in = AnimationUtils.loadAnimation(this, R.anim.slide_in_bottom);Animation out = AnimationUtils.loadAnimation(this, R.anim.abc_slide_out_top);textswitcher.setInAnimation(in);textswitcher.setOutAnimation(out);
@Overridepublic View makeView() { TextView textView = new TextView(this); textView.setTextSize(36); return textView;}
这样就完成了,上面的动画可以根据自己的需求进行定制。。
1 0
- 客户端中消息的轮换出现 TextSwitcher
- Android中TextSwitcher的功能与用法
- Android 中textSwitcher与imageSwitcher的使用
- TextSwitcher的使用
- TextSwitcher的用法
- TextSwitcher的使用(一)
- TextSwitcher的使用
- 王学岗TextSwitcher的应用
- Android 头部设置上下滚动的消息列表 TextView (TextSwitcher运用)
- TextSwitcher
- TextSwitcher
- WSAAsyncselect 模型中,服务器与客户端消息的收发
- 一个有故事的TextSwitcher
- 串的轮换
- 图片的自动轮换
- 客户端调用Wcf服务中出现securitynegotiationexception的异常
- iOS中消息框提示的出现与自动消失
- 轮换
- Android DiskLruCache完全解析,硬盘缓存的最佳方案
- Android学习历程16-TabHost的基本用法
- node.js源码安装
- AngularJs部分完整参数实例
- MySQL的生产环境My.cnf配置
- 客户端中消息的轮换出现 TextSwitcher
- 看了netfilter/iptables内核原理,合理的配置实现简单firewall
- mac安装MongoDB
- MethodHandle性能测试
- 剑指offer之数据结构
- [java] 5、URLEncoder 与 URLDecoder 简单解码编码
- 全极化SAR的H/alpha、anistropy分解
- java 值传递和引入传递
- C语言 字符串处理技巧(sscanf、strstr等用法)