简易设置滚动广告
来源:互联网 发布:无线mesh网络 编辑:程序博客网 时间:2024/05/16 13:01
依赖:(注意minSdkVersion是19,少于会报错)
dependencies { compile 'com.sdsmdg.harjot:rotatingtext:1.0.1'}
示例:
XML
<com.sdsmdg.harjot.rotatingtext.RotatingTextWrapper android:id="@+id/custom_switcher" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Java
RotatingTextWrapper rotatingTextWrapper = (RotatingTextWrapper) findViewById(R.id.custom_switcher);rotatingTextWrapper.setSize(35);Rotatable rotatable = new Rotatable(Color.parseColor("#FFA036"), 1000, "Word", "Word01", "Word02");rotatable.setSize(35);rotatable.setAnimationDuration(500);rotatingTextWrapper.setContent("This is ?", rotatable);
<com.sdsmdg.harjot.rotatingtext.RotatingTextWrapper android:id="@+id/custom_switcher" android:layout_width="wrap_content" android:layout_height="wrap_content" />
RotatingTextWrapper rotatingTextWrapper = (RotatingTextWrapper) findViewById(R.id.custom_switcher);rotatingTextWrapper.setSize(35);Rotatable rotatable = new Rotatable(Color.parseColor("#FFA036"), 1000, "Word", "Word01", "Word02");rotatable.setSize(35);rotatable.setAnimationDuration(500);rotatingTextWrapper.setContent("This is ?", rotatable);
结果
更多方法
RotatingTextWrapper
可旋转
阅读全文
0 0
- 简易设置滚动广告
- 广告滚动
- Android滚动条广告,可以设置自定义view的ViewSwitcher
- 图片滚动广告
- 定时滚动广告
- 横向不间断滚动广告
- 滚动图片广告
- 对联不滚动广告
- 对联滚动广告
- js滚动广告效果
- 滚动的对联广告
- js滚动广告效果
- js滚动广告效果
- 滚动的对联广告
- 单行上下滚动广告
- 对联广告不滚动
- Selenium2测试滚动广告
- Jquery实现广告滚动
- SQL-CASE
- C#中HttpWebRequest性能问题
- triangle(三角形)——leetcode
- Angular CLI 安装
- java 浮点类型加减有误
- 简易设置滚动广告
- python资料看过来看过来给你一个学习的机会你来吗?
- MAC-查看端口
- shell 中的 eval
- 正则表达式
- 智能传感器之功耗优化原则
- 蓝桥杯java第六届决赛第三题--显示二叉树
- Nginx的启动、停止与重启
- 获取App当前版本号