[Solved] Calculating percentages value of edittext in android
[ad_1] Suppose service_tax_et and penalty_et are new editTexts, don’t add them to the array instead set focusChangeListener on them manually and then try like this: private View.OnFocusChangeListener mFocusChangeListener = new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { float total = 0; for (int i=0 ; i<editTexts.length-1 ; i++) { try { total … Read more