记录一下这点
TextView tv = (TextView) findViewById(R.id.tv);
ForegroundColorSpan juSpan = new ForegroundColorSpan(Color.parseColor("#FF4E00"));//设置前景色
BackgroundColorSpan back = new BackgroundColorSpan(Color.parseColor("#000000"));//设置背景色
SpannableStringBuilder builder = new SpannableStringBuilder();
//寻找需要设置的关键字
int aa = ss.indexOf("测");int bb =aa+"测".length();