é válido()

 private boolean isValid() {
        Log.i(TAG, "isValid: ");

        boolean result = true;

        if (TextUtils.isEmpty(selected_student_id)) {
            Utils.INFO_TOAST(requireContext(),getString(R.string.please_select_member));
            result = false;
        } else if (TextUtils.isEmpty(admission_date)) {
            mBinding.enterDateTextview.setError(getResources().getString(R.string.Required));
            result = false;
        }else if (TextUtils.isEmpty(due_date)) {
            mBinding.dueDateTextview.setError(getResources().getString(R.string.Required));
            result = false;
        }else if (TextUtils.isEmpty(amount)) {
            mBinding.amountTv.setError(getResources().getString(R.string.Required));
            result = false;
        }
        return result;
    }
Lonely Locust