String textString ="테스트문자열입니다" SpannableString sText = new SpannableString(textString); TextView text = ((TextView)findViewById(R.id.testtext)); sText.setSpan(new ForegroundColorSpan(Color.RED), 1, 3, 0); sText.setSpan(new StyleSpan(Typeface.ITALIC), 2,5,Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); text.append(sText);
출처 : http://comxp.tistory.com/114
댓글 없음:
댓글 쓰기