We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
This would be great.
Sorry, something went wrong.
Hi, This is an old issue but it might help others in the future.
In the rule, while checking for valid, you can check if the view is visible. If the view is invisible or gone, then return true.
Code sample for EmptyRule: @OverRide public boolean isValid(TextView view) { //if view is invisible or gone then always return valid boolean isHidden = !(view.getVisibility()== View.VISIBLE); return isHidden || !value || !TextUtils.isEmpty(view.getText()); }
or to apply to all rules, you can add to the isValid function of class Rule<ViewType extends View, ValueType> itself.
@manandhar-aarya Can you submit a pull request with your solution?
I just did. :)
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: