GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Lester-lin/AutoScrollTextView: 自动文字公告栏。支持上,下,左,右4个方向滚出。

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.gradle/2.10/taskArtifacts
.gradle/2.10/taskArtifacts
 
 
gradle/wrapper
gradle/wrapper
 
 
sample
sample
 
 
scolltextview
scolltextview
 
 
.gitignore
.gitignore
 
 
AutoScrollTextView.iml
AutoScrollTextView.iml
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
local.properties
local.properties
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

ScollTextView

一个自动滚动文字公告控件。支持上,下,左,右4个方向滚出。

效果图

sample

使用方法

build.gradle中加入
compile 'com.lester:scolltextview:1.0.0'
代码中

scollTextView= (ScollTextView) findViewById(R.id.view);
        List<String> data=new ArrayList<String>();
        for (int i=0;i<20;i++){
            data.add("第"+i+"条测试数据,左边出来");
        }
        scollTextView.setData(data);

布局中

<lester.sample.ScollTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#6000"
        android:padding="5dp"
        android:id="@+id/view1"
        app:textSize="14sp"
        app:textColor="#fff"
        app:singleLine="true"
        app:ellipsize="end"
        app:direction="right"
        app:delayTime="2000"
        app:gravity="center"
        android:layout_below="@+id/view"
        android:layout_marginTop="30dp"/>

属性说明

属性 说明
textSize 字体大小
textColor 字体颜色
singleLine 是否单航显示
ellipsize 单行显示不完时的处理方式
direction 文字滚动方向
delayTime 文字滚动间隔时间
gravity 文字对其方式

About

自动文字公告栏。支持上,下,左,右4个方向滚出。

Resources

Readme
Activity

Stars

38 stars

Watchers

2 watching

Forks

10 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.