【开源】MatchView

MatchView

使用说明:

xml中

1
2
3
4
5
6
7
8
9
10
11
<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)    收藏  举报

导航