Skip to content

nelson1110/VerticalScrollTextSwicher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

VerticalScrollTextSwicher

It's a vertical scroll textview,for android.

first write in xml:

<com.example.View.VerticalScrollTextSwicher android:id="@+id/broadcast" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/text_bg" />

second write in java:

test = (VerticalScrollTextSwicher) findViewById(R.id.broadcast); List list = new ArrayList<>(); list.add("test1"); list.add("test2"); list.add("test3"); list.add("test4");

test.setTexts(list);
    test.setContentTextColor(Color.parseColor("#FFff0000"));
    test.start();

you also can use test.setContentTextSize() to set the text's size,and setTextDuration() to set the time you want to delay between two strings.and the same to SetAnimDuration().

About

已废弃,请用2018年款

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages