is there a way to set the text hint displayed inside of an android edittext with java? I would like for my app to be able to display different things in the edittext at diff
if you are using actionbarsherlock searchview, this is the best way to set string dynamically
AutoCompleteTextView searchTextView =
(AutoCompleteTextView) mSearchView.findViewById(R.id.abs__search_src_text);
searchTextView.setHint(getResources().getString(R.string.search));
Kotlin
editText.hint = "Your hint"