Android: ограничение 10 символов в строке TextView
Я читаю значение из EditText и записываю его в TextView
editTitle1.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
public void onTextChanged(CharSequence s, int start, int before, int count) {
s = editTitle1.getText().toString();
textTitle1.setText(s);
}
});
И я хочу, чтобы в одной строке - максимум 10 символов, поэтому, если все 20 символов - это две строки в TextView с 10 символами на строку. Как я могу это сделать? Я пытаюсь Android: maxLength = "10", но это не помогает