{"id":18925834,"url":"https://github.com/michael-rapp/androidmaterialvalidation","last_synced_at":"2025-08-22T05:05:43.279Z","repository":{"id":57721486,"uuid":"44451476","full_name":"michael-rapp/AndroidMaterialValidation","owner":"michael-rapp","description":"Provides views, which can be validated according to the Material Design guidelines","archived":false,"fork":false,"pushed_at":"2019-02-23T18:30:49.000Z","size":5061,"stargazers_count":29,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T15:52:53.734Z","etag":null,"topics":["android","constraints","edittext","material-design","password","validation","validators"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-rapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-17T19:37:16.000Z","updated_at":"2021-03-17T18:15:07.000Z","dependencies_parsed_at":"2022-09-26T21:41:32.806Z","dependency_job_id":null,"html_url":"https://github.com/michael-rapp/AndroidMaterialValidation","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/michael-rapp/AndroidMaterialValidation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialValidation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialValidation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialValidation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialValidation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-rapp","download_url":"https://codeload.github.com/michael-rapp/AndroidMaterialValidation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialValidation/sbom","scorecard":{"id":640837,"data":{"date":"2025-08-11","repo":{"name":"github.com/michael-rapp/AndroidMaterialValidation","commit":"ac8693baeac7abddf2e38a47da4c1849d4661a8b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 3.0.1 not signed: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/15735786","Warn: release artifact 3.0.0 not signed: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/13720670","Warn: release artifact 2.1.6 not signed: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/10804671","Warn: release artifact 2.1.5 not signed: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/9400423","Warn: release artifact 2.1.4 not signed: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/9122290","Warn: release artifact 3.0.1 does not have provenance: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/15735786","Warn: release artifact 3.0.0 does not have provenance: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/13720670","Warn: release artifact 2.1.6 does not have provenance: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/10804671","Warn: release artifact 2.1.5 does not have provenance: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/9400423","Warn: release artifact 2.1.4 does not have provenance: https://api.github.com/repos/michael-rapp/AndroidMaterialValidation/releases/9122290"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch '3.0.1-development'","Warn: branch protection not enabled for branch '3.0.0-development'","Warn: branch protection not enabled for branch '2.1.6-development'","Warn: branch protection not enabled for branch '2.1.5-development'","Warn: branch protection not enabled for branch '2.1.4-development'","Warn: branch protection not enabled for branch '2.1.3-development'","Warn: branch protection not enabled for branch '2.1.2-development'","Warn: branch protection not enabled for branch '2.1.1-development'","Warn: branch protection not enabled for branch '2.1.0-development'","Warn: branch protection not enabled for branch '2.0.6-development'","Warn: branch protection not enabled for branch '2.0.5-development'","Warn: branch protection not enabled for branch '2.0.4-development'","Warn: branch protection not enabled for branch '2.0.3-development'","Warn: branch protection not enabled for branch '2.0.2-development'","Warn: branch protection not enabled for branch '2.0.1-development'","Warn: branch protection not enabled for branch '1.0.0-development'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T10:41:20.022Z","repository_id":57721486,"created_at":"2025-08-21T10:41:20.022Z","updated_at":"2025-08-21T10:41:20.022Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271588743,"owners_count":24785751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","constraints","edittext","material-design","password","validation","validators"],"created_at":"2024-11-08T11:13:35.779Z","updated_at":"2025-08-22T05:05:43.253Z","avatar_url":"https://github.com/michael-rapp.png","language":"Java","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X75YSLEJV3DWE"],"categories":[],"sub_categories":[],"readme":"# AndroidMaterialValidation - README\n\n[![API-Level](https://img.shields.io/badge/API-14%2B-orange.svg)](https://android-arsenal.com/api?level=14) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X75YSLEJV3DWE)\n\n\"AndroidMaterialValidation\" is an Android-library, which provides custom views, which allow to be validated according to Android 5.0's Material Design guidelines even on pre-Lollipop devices. Additionally, various pre-defined validators are contained in the library.\n\n![](doc/images/example.png)\n\nThe library provides the following features:\n\n- The library provides a custom `EditText` implementation, which can be validated according to the Material Design guidelines.\n- The library provides a custom `EditText` implementation, which can not only be validated according to the Material Design guidelines, but also allows to visualize the password strength, depending on customizable constraints.\n- The library provides a custom `Spinner` implementation, which can be validated according to the Material Design guidelines.\n- The library includes a large number of pre-defined validators, for example for validating phone numbers, e-mail addresses, domain names etc.\n\n## License Agreement\n\nThis project is distributed under the Apache License version 2.0. For further information about this license agreement's content please refer to its full version, which is available at http://www.apache.org/licenses/LICENSE-2.0.txt.\n\nPrior to version 2.0.1 this library was distributed under the GNU Lesser General Public License version 3.0 (GLPLv3).\n\n## Download\n\nThe latest release of this library can be downloaded as a zip archive from the download section of the project's Github page, which is available [here](https://github.com/michael-rapp/AndroidMaterialValidation/releases). Furthermore, the library's source code is available as a Git repository, which can be cloned using the URL https://github.com/michael-rapp/AndroidMaterialValidation.git.\n\nAlternatively, the library can be added to your Android app as a Gradle dependency by adding the following to the respective module's `build.gradle` file:\n\n```groovy\ndependencies {\n    compile 'com.github.michael-rapp:android-material-validation:3.0.1'\n}\n```\n\nBefore version 2.0.0 this project was hosted on [Sourceforge](https://sourceforge.net/projects/androidmaterialvalidation). These older versions used the legacy Eclipse ADT folder structure and are not available as Gradle artifacts.\n\n## Examples\n\nThe following examples provide a quick overview on how to use the views, which are provided by the library, in your own Android app. This project also contains the source code of an example app, which implements an use case of the library for demonstration purposes, as well as a more detailed documentation in the [Wiki](https://github.com/michael-rapp/AndroidMaterialValidation/wiki) and auto-generated javadoc files.\n\n### EditText\n\nThe XML code below shows how to declare an `EditText` widget within a XML layout resource. The example contains all of the view's custom attributes.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \n    android:layout_width=\"match_parent\" \n    android:layout_height=\"match_parent\" \u003e\n\n    \u003cde.mrapp.android.validation.EditText \n        android:id=\"@+id/edit_text\" \n        android:layout_width=\"match_parent\" \n        android:layout_height=\"wrap_content\" \n        android:hint=\"@string/edit_text_hint\" \n        android:hintColor=\"@color/hint_color\" \n        custom:helperText=\"@string/edit_text_helper_text\" \n        custom:helperTextColor=\"@color/helper_text_color\" \n        custom:errorColor=\"@color/error_color\" \n        custom:validateOnValueChange=\"true\" \n        custom:validateOnFocusLost=\"true\" \n        custom:maxNumberOfCharacters=\"120\" /\u003e \n\n\u003c/RelativeLayout\u003e\n```\n\nThe Java code below shows how to add validators to an `EditText` widget. The validators have to be added programmatically, regardless of whether the view has been created via XML or programmatically. Therefore, if the view has been created via a XML resource, like shown above, it has to be referenced first using an activity's or parent view's `findViewById`-method.\n\n```java\nEditText editText = (EditText) findViewById(R.id.edit_text); \neditText.addValidator(Validators.notEmpty(this, R.string.not_empty_error_message); \neditText.addValidator(Validators.number(this, R.string.number_error_message);\n```\n\n### PasswordEditText\n\nThe following XML code shows how a `PasswordEditText` can be declared within a XML layout resource. The example contains all of the view's custom attributes.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \n    android:layout_width=\"match_parent\" \n    android:layout_height=\"match_parent\" \u003e\n\n    \u003cde.mrapp.android.validation.PasswordEditText \n        android:id=\"@+id/password_edit_text\" \n        android:layout_width=\"match_parent\" \n        android:layout_height=\"wrap_content\" \n        android:hint=\"@string/password_edit_text_hint\" \n        android:hintColor=\"@color/hint_color\" \n        custom:helperText=\"@string/password_edit_text_helper_text\" \n        custom:helperTextColor=\"@color/helper_text_color\" \n        custom:errorColor=\"@color/error_color\" \n        custom:validateOnValueChange=\"true\" \n        custom:validateOnFocusLost=\"true\" \n        custom:passwordVerificationPrefix=\"Password strength\" /\u003e \n\n\u003c/RelativeLayout\u003e\n```\n\nThe Java code below shows how to add validators and constraints to a `PasswordEditText` widget. The validators and constraints have to be added programmatically, regardless of whether the view has been created via XML or programmatically. Therefore, if the view has been created via a XML resource, like shown above, it has to be referenced first using an activity's or parent view's `findViewById`-method.\n\n```java\nPasswordEditText passwordEditText = (PasswordEditText) findViewById(R.id.password_edit_text); \npasswordEditText.addValidator(Validators.minLength(this, R.string.min_length_error_message, 4); \npasswordEditText.addValidator(Validators.noWhitespace(this, R.string.no_whitespace_error_message); \npasswordEditText.addAllConstraints(Constraints.minLength(10), Constraints.containsLetter(), \n    Constraints.containsNumber(), Constraints.containsSymbol()); \npasswordEditText.addAllHelperTexts(\"Bad\", \"Low\", \"Sufficient\", \"Good\", \"High\"); \npasswordEditText.addAllHelperTextColorIds(R.color.black, R.color.red, R.color.orange, \n    R.color.light_green, R.color.dark_green);\n```\n\n## Spinner\n\nThe following example shows how a `Spinner` can be declared within a XML layout resource. The example contains all of the view's custom attributes.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \n    android:layout_width=\"match_parent\" \n    android:layout_height=\"match_parent\" \u003e\n        \n    \u003cde.mrapp.android.validation.Spinner\n        android:id=\"@+id/spinner\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:entries=\"@array/spinner_entries\"\n        android:hint=\"@string/spinner_hint\"\n        android:textColorHint=\"@color/spinner_text_color_hint\"\n        android:dropDownHorizontalOffset=\"@dimen/spinner_drop_down_horizontal_offset\"\n        android:dropDownVerticalOffset=\"@dimen/spinner_drop_down_vertical_offset\"\n        custom:dropDownWidth=\"@dimen/spinner_drop_down_width\"\n        custom:popupBackground=\"@color/spinner_drop_down_background\"\n        custom:prompt=\"@string/spinner_prompt\" /\u003e\n        \n\u003c/RelativeLayout\u003e\n```\n\nThe Java code below shows how to add validators to a `Spinner` widget. The validators and must be added programmatically, regardless of whether the view has been created via XML or programmatically. Therefore, if the view has been created via a XML resource, like shown above, it has to be referenced first using an activity's or parent view's `findViewById`-method.\n\n```java\nSpinner spinner = (Spinner) findViewById(R.id.spinner);\nspinner.addValidator(Validators.notNull(this, R.string.not_null_validator_error_message);\n```\n\n## Contact information\n\nFor personal feedback or questions feel free to contact me via the mail address, which is mentioned on my [Github profile](https://github.com/michael-rapp). If you have found any bugs or want to post a feature request please use the [bugtracker](https://github.com/michael-rapp/AndroidMaterialValidation/issues) to report them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rapp%2Fandroidmaterialvalidation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-rapp%2Fandroidmaterialvalidation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rapp%2Fandroidmaterialvalidation/lists"}