Android textView中划线

String string = "市场价:¥158.00";
TextView textView = (TextView) findViewById(R.id.textView);
SpannableString sp = new SpannableString(string);
sp.setSpan(new StrikethroughSpan(), 0, string.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
textView.setText(sp);

  

posted @ 2016-02-15 20:46  呼啦啦,,啦啦呼呼  阅读(793)  评论(1编辑  收藏  举报