<TextView
//文字加下划线
tv.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);//下划线
//代码画左右图片
Drawable drawable = resources.getDrawable(R.drawable.asterisk);
// 设置边界,缺这步,图片不显示
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());
tv.setCompoundDrawables(null, null, drawable, null);