{"id":16558077,"url":"https://github.com/shiburagi/blockedittext","last_synced_at":"2025-03-16T20:30:27.970Z","repository":{"id":55141636,"uuid":"135315515","full_name":"shiburagi/BlockEditText","owner":"shiburagi","description":"Block EditText is a library provide an input view present in multiple block style that common use in TAC or credit card field.","archived":false,"fork":false,"pushed_at":"2021-05-31T03:11:26.000Z","size":609,"stargazers_count":122,"open_issues_count":3,"forks_count":25,"subscribers_count":5,"default_branch":"v0.3","last_synced_at":"2025-02-27T12:45:58.275Z","etag":null,"topics":["android","credit-card","edittext","gradle","kotlin","tac","widget"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/shiburagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-29T15:21:19.000Z","updated_at":"2024-04-16T14:37:33.000Z","dependencies_parsed_at":"2022-08-14T13:20:16.008Z","dependency_job_id":null,"html_url":"https://github.com/shiburagi/BlockEditText","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiburagi%2FBlockEditText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiburagi%2FBlockEditText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiburagi%2FBlockEditText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiburagi%2FBlockEditText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiburagi","download_url":"https://codeload.github.com/shiburagi/BlockEditText/tar.gz/refs/heads/v0.3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826798,"owners_count":20354221,"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","credit-card","edittext","gradle","kotlin","tac","widget"],"created_at":"2024-10-11T20:09:32.457Z","updated_at":"2025-03-16T20:30:27.532Z","avatar_url":"https://github.com/shiburagi.png","language":"Kotlin","funding_links":["https://ko-fi.com/A0A0FB3V'","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=D9JKYQL8452AL"],"categories":[],"sub_categories":[],"readme":"# BlockEditText\n\n[ ![Download](https://api.bintray.com/packages/infideap2/Block-EditText/com.infideap.blockedittext/images/download.svg) ](https://bintray.com/infideap2/Block-EditText/com.infideap.blockedittext/_latestVersion)\n\nBlock EditText is a library provide an input view present in multiple block style that common use in **TAC** or **credit card field**.\n\n![Alt Text](https://raw.githubusercontent.com/shiburagi/BlockEditText/preview/preview2.gif)\n\nAndroid 14.0+ support\n\n---\n\n\u003ca href='https://ko-fi.com/A0A0FB3V' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=D9JKYQL8452AL)\n\n## Including In Your Project\nIf you are a Maven user you can easily include the library by specifying it as\na dependency:\n\n#### Gradle\n```groovy\nrepositories {\n maven{\n   maven { url 'https://jitpack.io' }\n }\n}\n```\n```groovy\ndependencies {\n\t implementation 'com.github.shiburagi:BlockEditText:v0.2'\n}\n```\n\n**or**,\nyou can include it by **download this project** and **import /blockedittext** as **module**.\n\n## How to use\n**Creating the layout**\n### TAC\n```xml\n\u003ccom.infideap.blockedittext.BlockEditText\n    android:id=\"@+id/blockEditText_tac\"\n    app:defaultLength=\"1\"\n    app:numberOfBlock=\"4\"\n    app:inputType=\"Integer\"\n    app:hintTextAppearance=\"@style/TextAppearance.AppCompat.Medium\"\n    app:hint=\"TAC\"\n    app:textSize=\"24sp\"\n    android:layout_width=\"300dp\"\n    app:editTextBackground=\"@drawable/selector_edittext_round_border\"\n    android:layout_height=\"wrap_content\" /\u003e\n\n```\n\n### Credit Card\n```xml\n\u003ccom.infideap.blockedittext.BlockEditText\n    android:id=\"@+id/blockEditText_visa\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    app:defaultLength=\"4\"\n    app:hint=\"Visa/Mastercard\"\n    app:hintTextAppearance=\"@style/TextAppearance.AppCompat.Medium\"\n    app:inputType=\"Integer\"\n    app:numberOfBlock=\"4\"\n    app:text=\"131321323-13213-21321312\" /\u003e\n```\n\n\n### Customize\n```java\namexEditText.setNumberOfBlock(3);\namexEditText.setDefaultLength(4);\namexEditText.setLengthAt(1,6);\n\namexEditText.setHint(\"Amex\");\namexEditText.setText(\"1234567890\");\namexEditText.getText();\n\namexEditText.setTextSize(16);\namexEditText.setHintTextSize(16);\namexEditText.setSeparatorTextSize(16);\n\namexEditText.setSeparatorCharacter('-');\namexEditText.setSeparatorPadding(8);\n\namexEditText.setInputType(InputType.TYPE_CLASS_NUMBER);\n\namexEditText.setTextAppearance(android.support.v7.appcompat.R.style.Base_TextAppearance_AppCompat_Medium);\namexEditText.setHintTextAppearance(android.support.v7.appcompat.R.style.Base_TextAppearance_AppCompat_Medium);\namexEditText.setSeparatorTextAppearance(android.support.v7.appcompat.R.style.Base_TextAppearance_AppCompat_Medium);\n\namexEditText.setEdiTextBackground(ContextCompat.getDrawable(this, R.drawable.selector_edittext_round_border_line));\n\namexEditText.setSelection(0);\namexEditText.setShiftPosition(true);\n\namexEditText.addCardPrefix(CardPrefix.amex(this))\namexEditText.addCardPrefix(CardPrefix.amex(amexDrawable))\namexEditText.addCardPrefix(new CardPrefix(this, R.drawable.ic_amex, \"34\"))\namexEditText.addCardPrefix(new CardPrefix(amexDrawable, \"34\"))\n\n```\n\n### Listener\n\n```java\namexEditText.setTextChangedListener(TextWatcher watcher)\namexEditText.setOnCardPrefixListener(OnCardPrefixListener listener)\n```\n\n\n## Contact\nFor any enquiries, please send an email to tr32010@gmail.com. \n\n## License\n\n    Copyright 2018 Shiburagi\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiburagi%2Fblockedittext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiburagi%2Fblockedittext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiburagi%2Fblockedittext/lists"}