views:

27

answers:

1

If I set text to my EditText and the text is bigger, the default behaviour is that the text is scrolled to right. Can I scroll it to left?

Example with EditText 8 characters long and text "Sample text":

Normal behaviour: [ple text]

What I want: [Sample t]

+1  A: 

Set the cursor/caret location to first character of the EditText. You need to use setSelection.

Selection.setSelection(editText.getText(), 0); 
Ankit Jain