{"id":20741221,"url":"https://github.com/joelarmah/currency-edittext","last_synced_at":"2026-05-04T22:40:45.611Z","repository":{"id":229839739,"uuid":"777776567","full_name":"joelarmah/currency-edittext","owner":"joelarmah","description":"Currency Editext allows formatting of currency inputs","archived":false,"fork":false,"pushed_at":"2024-11-20T07:29:52.000Z","size":1770,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T05:04:53.513Z","etag":null,"topics":["android","currency","edittext","kotlin","library"],"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/joelarmah.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-26T13:41:23.000Z","updated_at":"2024-11-20T07:29:57.000Z","dependencies_parsed_at":"2024-11-17T06:36:31.744Z","dependency_job_id":"672678e9-1c28-40df-825f-0aa949d12ab8","html_url":"https://github.com/joelarmah/currency-edittext","commit_stats":null,"previous_names":["joelarmah/currency-edittext"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/joelarmah/currency-edittext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelarmah%2Fcurrency-edittext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelarmah%2Fcurrency-edittext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelarmah%2Fcurrency-edittext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelarmah%2Fcurrency-edittext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelarmah","download_url":"https://codeload.github.com/joelarmah/currency-edittext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelarmah%2Fcurrency-edittext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","currency","edittext","kotlin","library"],"created_at":"2024-11-17T06:35:20.103Z","updated_at":"2026-05-04T22:40:45.582Z","avatar_url":"https://github.com/joelarmah.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Currency Edittext\nThis project is a fork of the original [currency-edittext](https://github.com/AbhinayMe/currency-edittext) repository by [Abhinay Me](https://github.com/AbhinayMe).\nA Custom EditText implementation that allows formatting of currency-based numeric inputs.\n\n## Installation\nAdd this in your app's build.gradle file:\n```groovy\ndependencies {\n  implementation 'com.github.joelarmah:currency-edittext:1.0.0'\n}\n```\n\n## Implementation\n\nXML\n\n```\n\u003ccom.github.joelarmah.currency.CurrencyEditText\n        android:id=\"@+id/currencyEditText\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:hint=\"Type value\"\n        android:inputType=\"number\"\n        android:textSize=\"24sp\" /\u003e\n```\n\nCode\n\n```\n override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        viewBinding = ActivityMainBinding.inflate(layoutInflater)\n        val view = viewBinding.root\n        setContentView(view)\n\n       viewBinding.currencyEditText.apply {\n            setCurrency(CurrencySymbols.GHANA) or Use any symbol \"$\"\n            setDelimiter(false)\n            setSpacing(false)\n            setDecimals(true)\n            setSeparator(\".\")\n        }\n}\n```\n\n## Customizing\n\nThe following attributes can be manipulated:\n\n- Currency by specifying the country\n- Spacing between currency and value\n- Delimeter\n- Decimals\n- Thousands Separator Symbol\n\n### Currency\n\nSpecify the currency by setting the country of your choice.\n\n```\ncurrencyEditText.Currency = Currency.GHANA;\n```\n\nCurrency can also be disabled by:\n\n```\ncurrencyEditText.Currency = Currency.NONE;\n```\n\n#### Custom Currency/Symbol\n\nIf a custom symbol that is not included in the library is required, any string value can be used since the the `Currency` attribute expects a `String` value.\n\n```\ncurrencyEditText.Currency = \"TEST\";\n```\n\nWhich produces:\n\u003eTEST 450.00\n\n**Note:** Currency is set to your app's Local currency by default.\n\n### Spacing\n\nThe spacing between the currency and the value can be specified by:\n\n```\ncurrencyEditText.Spacing = true;\n```\n\n**Note:** Spacing is `false` by default.\n\n### Delimeter\n\nThe delimeter attribute allows the addition of a `.` symbol after displaying the currency.\n\n\u003e Rs.100\n\n\u003e Rp.100\n\n**Note:** Delimeter is `false` by default.\n\n### Decimals\n\nDecimals can be turned off for the EditText using:\n\n```\ncurrencyEditText.Decimals = false;\n```\n\nThis outputs the following:\n\n\u003e $100,000\n\n### Separator\n\nThe Thousands Separator can be customized as required with any custom symbol to suit the currency formats of different countries. Example: Indonesia -\u003e 12.000.000 (Using . instead of , as the separator)\n\n**NOTE: Decimals must be set as `false` in order avoid conflicts in getting a clean Double or Integer output**\n\n### Getting Clean Output\n\nA `Double` value without Commas, Currency and Decimal places can be retrieved using:\n\n`double cleanOutput = currencyEditText.getCleanDoubleValue();`\n\nAn `Integer` value without Commas, Currency and Decimal places can be retrieved using:\n\n`int cleanOutput = currencyEditText.getCleanIntValue();`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelarmah%2Fcurrency-edittext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelarmah%2Fcurrency-edittext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelarmah%2Fcurrency-edittext/lists"}