Android: Two EditTexts dependent on each other -


i have 2 edittexts. 1 example temperature in °c , other temperature in °f. when user edits 1 edittexts want other change accordingly.

problem changes make loop, edittexts make changes of each other. how solve this? still have reaction in other edittext when change first 1 programmatically, without loop...

check if each edittext has focus first , change programmatically if doesn't have focus.

http://developer.android.com/reference/android/view/view.html#hasfocus()

the 1 being edited user have focus. other 1 won't.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -