Code example for TextView

Methods: setTextsetTextColor

0
	public void updateCharsRemain() { 
		int remaining = MAX_TWEET_LENGTH - mEditText.length();
		if (remaining < 0) {
			mCharsRemainText.setTextColor(Color.RED);
		} else { 
			mCharsRemainText.setTextColor(originTextColor);
		} 
		mCharsRemainText.setText(remaining + "");
	} 
 
	public String getText() {
		return mEditText.getText().toString();
	} 
 
	public void setEnabled(boolean b) {
		mEditText.setEnabled(b);
	} 
 
	public void setOnKeyListener(OnKeyListener listener) {
		mEditText.setOnKeyListener(listener);
Stop searching for code, let great code find you!  Add Codota to your java IDE