Android EditText: select all text while touch and clear when user starts typing.
android, android-edittext
Solution
You can select all text in EditText by using
`android:selectAllOnFocus` and also `setSelectAllOnFocus(boolean)`
Problem
I have a edit text in my app. When the user touches the edit text the whole text should be selected and when he starts typing text should be cleared. An example is browser address bar. Is there any way to do this?Please help me.