I'm giving continuity to a project that makes requests on Android, and I came across the currency formatting in EditText
Researching I was able to find a class that is running smoothly, but why am I talking about a mask?
So my layout
has Unit Value, Quantity, Discount and Total Value
Quantity and discount are fields that when modifying them need to update the Total Value.
My question should be one of those very basic ones, but I'm not able to pass it on, surely I should be missing out on the fundamentals of java.
I can not figure out why I applied in the Amount and Discount component the addTextChangedListener(new TextWatcher())
event by applying the mask
how can I have another Listener with a purpose to calculate the Total value?
It would not be correct to put a button just for the purpose of showing the total value, the correct one would be when the user interacted with the field it happens