I\'m defining an edit text like so...
About your other question, getting the text to auto-erase, you should include it in android:hint instead of android:text.
android:hint
android:text