Highlight text on EditText

If somebodies want to click to highlight the text in edittext,

Just add one line in XML,

android:selectAllOnFocus="true"

to highlight the text.

Uses:

Clear Highlight text.
Change the new text.

Comments

Popular posts from this blog

Clear the app data programmatically in android

convert an integer to a string in java

Print the large string values in android log cat.