0

Highlight EditText text and display cursor at end of the text as shown in this image.

enter image description here

Jigar Pandya
  • 2,129
  • 2
  • 17
  • 27
lokesh
  • 11
  • 3
  • on what event u wanna highlight text? While typing? – KOTIOS Feb 19 '14 at 05:32
  • use a spannable string and set the background. http://stackoverflow.com/questions/19100228/edittext-change-background-color-of-text-and-only-text-not-the-whole-view – Raghunandan Feb 19 '14 at 05:49
  • Thank u Raghunandan.text Highlighting is fine but along with highlight how to display cursor at the end.see attached image – lokesh Feb 19 '14 at 06:28

1 Answers1

0

Cn you eplain wat exactly you are luking for,

This helps to highlight text of edittext but cursor position should be manage programmatically:

editText.selectAll();
Harshal Benake
  • 2,391
  • 1
  • 23
  • 40