반응형 안드로이드29 textview 현재 글자색 가져오기 textview.getCurrentTextColor() 2019. 3. 19. editText 커서위치 마지막으로 보내기 editText.setSelection(editText.length()); 2019. 3. 18. 버튼id값으로 텍스트색바꾸기 @Override public void onClick(View v) { // TODO Auto-generated method stub switch(v.getId()) { case R.id.btn_red : txt.setTextColor(Color.RED); break; case R.id.btn_blue : txt.setTextColor(Color.BLUE); break; case R.id.btn_green : txt.setTextColor(Color.GREEN); break; } } 2019. 3. 13. 글자색값으로 조건걸기 if (textview.getTextColors().getDefaultColor() == Color.rgb( ) ) 2019. 3. 13. 이전 1 2 3 4 5 6 7 8 다음 반응형