代码包括TextView和Button两个控件。
xml使用实例:
xml使用实例:
<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" />
代码:mMatchTextView.setText("MATCH VIEW");
mMatchTextView.setTextSize(30);
mMatchTextView.setTextColor(Color.WHITE);
mMatchTextView.setProgress(0.5f);