{"id":22468781,"url":"https://github.com/iametornam/passcodeview","last_synced_at":"2025-03-27T15:45:17.719Z","repository":{"id":109578277,"uuid":"119063524","full_name":"iamEtornam/PassCodeView","owner":"iamEtornam","description":"This is a custom view with keyboard and character display that can be used for authentication purpose.","archived":false,"fork":false,"pushed_at":"2018-01-26T14:59:26.000Z","size":249,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T19:43:51.684Z","etag":null,"topics":["android","android-library","android-studio","java","library","passcodeview","ui"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamEtornam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T14:49:57.000Z","updated_at":"2018-01-28T20:38:12.000Z","dependencies_parsed_at":"2023-04-07T21:24:41.574Z","dependency_job_id":null,"html_url":"https://github.com/iamEtornam/PassCodeView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamEtornam%2FPassCodeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamEtornam%2FPassCodeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamEtornam%2FPassCodeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamEtornam%2FPassCodeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamEtornam","download_url":"https://codeload.github.com/iamEtornam/PassCodeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874391,"owners_count":20686757,"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","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","android-library","android-studio","java","library","passcodeview","ui"],"created_at":"2024-12-06T11:19:37.523Z","updated_at":"2025-03-27T15:45:17.698Z","avatar_url":"https://github.com/iamEtornam.png","language":"Java","readme":"# PassCodeView\nThis is a custom view with keyboard and character display that can be used for authentication purpose.\n#\nThere are some customization options that can be used...\n## Demo\n\u003cimg src=\"https://developerbryte.files.wordpress.com/2018/01/gif_20180126133123114_by_gifguru.gif\" width=\"250\" /\u003e \n\n## Add to build.grade (project)\n```\n   dependencies {\n        classpath 'com.android.tools.build:gradle:3.0.1'\n        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'\n        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n```\n\n## Add gradle dependency\n```\n##build.gradle(app)\ndependencies {\n    implementation project(':passcodeview')\n}\n\n```\n\n## Usage\n Add the view in the layout file\n\n ```xml\n \u003cio.github.regnex.passcodesample.PassCodeView\n    android:id=\"@+id/pass_code_view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    app:digits=\"4\"\n    app:digit_size=\"30.0dp\"\n    app:key_text_size=\"30.0sp\"\n    android:padding=\"25.0dp\"\n    app:empty_drawable=\"@drawable/empty_dot\"\n    app:filled_drawable=\"@drawable/filled_dot\"/\u003e\n\n ```\n\nView attributes that can be included in xml are\n\n\n`digits` - number of digits in passcode\n\n`filled_drawable` - drawable to be show for filled digits\n\n`empty_drawable` - drawable to be show for empty digits\n\n`key_text_size` - size of text in keyboard's key\n\n`digit_spacing` - horizontal space between each digit\n\n`digit_vertical_padding` - vertical padding of digits\n\n`divider_visible` - boolean to show or hide divider between digits and keyboard\n\n\nOther customisations options available are\n\n```java\nPassCodeView passCodeView = findViewById(R.id.pass_code_view);\nTypeface typeFace = Typeface.createFromAsset(getAssets(), \"fonts/Font-Bold.ttf\");\n\n/**\n *Set TypeFace for the font in keys of keypad\n */\npassCodeView.setTypeFace(typeFace);\n\n/**\n * Set color for the keypad text\n * @param color - Resource id of the color to be set\n */\npassCodeView.setKeyTextColor(getResources.getColor(R.color.black));\n\n/**\n * Set size of keypad text\n * @param size - Text size value to be set\n */\npassCodeView.setKeyTextSize(30);\n\n/**\n * Set passcode digit lenght\n * @param length - digit length to be set\n */\npassCodeView.setDigitLength(6);\n\n\n/**\n * Set current passcode text\n * @param code - {@code String} passcode string to be set\n */\npublic void setPassCode(\"8854\")\n\n/**\n * Reset the code to empty\n */\npassCodeView.reset();\n\n/**\n * Set drawable for empty digits programmatically\n */\n passCodeView.setEmptyDrawable(R.drawable.empty);\n\n/**\n * Set drawable for filled digits programmatically\n */\n passCodeView.setFilledDrawable(R.drawable.filled);\n\n/**\n * Attach {@code TextChangeListener} to get notified on text changes\n * @param listener - {@Code TextChangeListener} object to be attached and notified\n */\npassCodeView.setOnTextChangeListener(new PassCodeView.TextChangeListener() {\n            @Override\n            public void onTextChanged(String text) {\n                Log.i(\"Passcode\", \"text\");\n            }\n        }); \n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiametornam%2Fpasscodeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiametornam%2Fpasscodeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiametornam%2Fpasscodeview/lists"}