TextView tv = (TextView)findViewById(R.id.tv);
String strColor =
"#ff0000"
;
tv.setTextColor(Color.parseColor(strColor));
'이것저것 > 자바*안드로이드' 카테고리의 다른 글
안드로이드 뒤로가기(Back 버튼) 두번 눌러 앱 종료하기 (0) | 2016.09.08 |
---|---|
안드로이드 키보드가 올라올 때 화면 사이즈 고정하는 방법 (0) | 2016.09.07 |
안드로이드 editText 영문,숫자만 입력(한글입력제한) (0) | 2016.09.07 |
안드로이드 TextView 밑줄 긋기 // 진동구현 (0) | 2016.09.07 |
안드로이드 포커스 변경 확인 (0) | 2016.09.06 |