Support some of the key words can be clicked with the underline TextView
Support some of the key words can be clicked with the underline 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());No open issues yet, or sync has not completed.