리스트뷰를 만들다 최적화를 위해 자료를 찾다보니 이런것도 가능하구나.. 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);
안녕하세요 시원한 물냉입니다. 오늘은 좋은자료가 있어서 염치불구하고 이렇게 퍼와서 올립니다. 출처는 git Continuing from the last post about creating fade in fade out animations for textviews in Android, this post will focus on creating an Animator class that can be reused easily from any part of your code for sleekly animating textviews. First, Create your Custom Textview Animator class, here I call mine "KunmiViewFade_Animator"; 1: publi..