Code example for EditText

Methods: length

0
				int count) { 
		} 
	}; 
 
	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);
	}