Example #1
0
 @FocusChange(R.id.amount_due)
 void onAmountDueChanged(boolean isFocused, View view) {
   if (!isFocused) {
     amountPay.setValue(YMProperties.addFee(amountDue.getValue()));
   }
 }
Example #2
0
 @FocusChange(R.id.amount_pay)
 void onAmountPayChanged(boolean isFocused, View view) {
   if (!isFocused) {
     amountDue.setValue(YMProperties.substractFee(amountPay.getValue()));
   }
 }