【开源】MatchView
MatchView
- https://github.com/Rogero0o/MatchView
介绍:
MatchView实现文字循环高亮显示和文字碎片动画运行效果:
![]()
使用说明:
xml中
|
1
2
3
4
5
6
7
8
9
10
11
|
xmlns:match="http://schemas.android.com/apk/res-auto"<com.roger.match.library.MatchTextView match:text="MATCH VIEW" match:textSize="30sp" match:textColor="#ffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" /><com.roger.match.library.MatchButton match:text="Yes" android:layout_width="wrap_content" android:layout_height="wrap_content" /> |
或者在java代码中这样设置:
|
1
2
3
4
5
6
|
// the following are default settings mMatchTextView.setText("MATCH VIEW"); mMatchTextView.setTextSize(30); mMatchTextView.setTextColor(Color.WHITE);// setProgress float 0-1 mMatchTextView.setProgress(0.5f); |
posted on 2015-04-02 10:47 wasdchenhao 阅读(477) 评论(0) 收藏 举报

浙公网安备 33010602011771号