1 Star 1 Fork 2

NULL / ScrollTextView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

关于提Issues

本库一直在持续维护中,但是能投入的时间不多,有issues 的同学说明一下以下内容

  • 1.使用场景: 比如ViewPager+fragment 滑动切换
  • 2.Android系统信息: 手机品牌,Android版本号

How to use

    <anylife.scrolltextview.ScrollTextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_toRightOf="@+id/imageView2"
        android:layout_marginRight="6dp"
        android:singleLine="true"
        customAttr:clickEnable="true"
        customAttr:isHorizontal="true"
        customAttr:speed="1"
        customAttr:text="ScrollTextView Auto Scroll.1234567890,"
        customAttr:text_size="14sp"
        customAttr:text_color="#ffffffff"
        customAttr:times="567" />

或者在代码中

    scrollText = findViewById(R.id.scrollText);
    scrollText.setSpeed(4);
    scrollText.setText("new text");
    scrollText.setTextColor(0xffad43ae);

Gradle 集成使用

 implementation 'anylife.scrolltextview:ScrollTextviewLib:1.4.6'

Maven 集成使用

<dependency>
  <groupId>anylife.scrolltextview</groupId>
  <artifactId>ScrollTextviewLib</artifactId>
  <version>1.4.6</version>
  <type>pom</type>
</dependency>

About ScrollTextView

Class ScrollTextView extends SurfaceView implements SurfaceHolder.Callback

Android 滚动字幕,如新闻联播下面的,可以使用在广告机,机顶盒,电视App等信息发布系统。 以前是在信息发布系统上使用过,作为动态布局的一部分,题外话,如果有想做像分众传媒或者 类似的电梯门口广告的可以参考一下.

动态布局专利:http://www.google.com/patents/CN103336691A?cl=zh (科学上网)

继承SurfaceView 实现,CPU 占用低,无内存抖动,在Nexus5X,Android 7.0 上测试流畅
Gif 图看起来卡是为了图像质量和大小的平衡减低帧率。

Any questions,please contact me at:anylife.zlb@gmail.com

image

空文件

简介

Android 滚动字幕,跑马灯;可以使用在广告机,机顶盒,地铁,机场等各种信息发布系统app 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/delete_user/ScrollTextView.git
git@gitee.com:delete_user/ScrollTextView.git
delete_user
ScrollTextView
ScrollTextView
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891