Skip to content

Instantly share code, notes, and snippets.

View how to use spannableString
String user_agree_policy_1 = UIUtil.getString(R.string.user_agree_policy_1);
String user_agree_policy_2 = UIUtil.getString(R.string.user_agree_policy_2);
String user_agree_policy_3 = UIUtil.getString(R.string.user_agree_policy_3);
String text = user_agree_policy_1 + user_agree_policy_2 + user_agree_policy_3;
SpannableString spannableString = new SpannableString(text);
spannableString.setSpan(new ClickableSpan() {
public void onClick(View widget) {
Toast.makeText(context,"jump to one page",Toast.LENGTH_LONG);
You can’t perform that action at this time.