How to solve this dead lock condition in android edit text -
I have two text controls and I want to update the second editing text value when the text value is edited for the first time or opposite of this . For this, I used the If I should have Edit 2 in 20 and the result should be 1 on 10 (some calculation pre: 2 dissected 2). The problem is: While showing results on Adult 2, the method followed is called at the same time as it changes the input value of Edit 1 ... Anyone Solution? I think you can use it by TextChangedListener and you can keep two Flags Boolean Or int, and changing the value of each flag accordingly may solve your problem .... Best Of Luck onTextChanged (..) method but the problem is that the value calls
update (not input) at the time. The text-replacement (..) method therefore gives the wrong result. . For example: If I put 20 entries in 1 and the result 2 should be in ADITT 2 then 40 (some calculations pre: 1 by multiplying 2).
Comments
Post a Comment