支持一些关键词可以通过下划线点击 TextView
Support some of the key words can be clicked with the underline TextView
Step1:
//key word with color and underline, and split with ','(en)
//word and underline's color
//underline with true and false
//start with image 's TextView
//default
Step2:
//style1
//style2
Step3:
//style1
autoLinkStyleTextView.setOnClickCallBack(new AutoLinkStyleTextView.ClickCallBack() {
@Override
public void onClick(int position) {
if (position == 0) {
Toast.makeText(MainActivity.this, "购买须知", Toast.LENGTH_SHORT).show();
} else if (position == 1) {
Toast.makeText(MainActivity.this, "用户条款", Toast.LENGTH_SHORT).show();
}
}
});
//style2
setStartImageText(tvStartImage.getText());暂无开放 Issues,或尚未同步最近议题。