I have two EditTexts. One is for example temperature in °C and the other is temperature in °F. When user edits one EditTexts I want the other to change accordingly.
Problem is that this changes make loop, where EditTexts make changes of each other. How to solve this? I would like to still have reaction in other EditText when I change the first one even programmatically, but without loop...
Try
EDIT: OnFocusChange of both EditText disable focus of the other.
Check if each
EditText
has focus first and only change it programmatically if it doesn't have focus.http://developer.android.com/reference/android/view/View.html#hasFocus()
The one being edited by the user will have focus. The other one won't.