I'm doing a app which has two EditText. What I want to do is, if you click on one and write on it, the other must erase anything it has and only shows the hint string. I'm trying doing it with a a check method that does:
if(celsius.isFocused()){
faren.setText(faren.getHint().toString());
}
if(faren.isFocused()){
celsius.setText(celsius.getHint().toString());
}
Then I call this method within the onCreate() method, but of course It only checks one time, and if use that checkMethod inside a loop, the app doesn't show anything, It freezes. An suggestions?