{"id":16372580,"url":"https://github.com/hidroh/numeric-edittext","last_synced_at":"2025-10-26T08:30:17.558Z","repository":{"id":27999868,"uuid":"31494112","full_name":"hidroh/numeric-edittext","owner":"hidroh","description":"A numeric EditText widget for Android","archived":false,"fork":false,"pushed_at":"2017-03-31T07:53:57.000Z","size":341,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T17:09:46.790Z","etag":null,"topics":["android","java","library"],"latest_commit_sha":null,"homepage":null,"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/hidroh.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":"2015-03-01T11:03:56.000Z","updated_at":"2022-02-09T18:48:22.000Z","dependencies_parsed_at":"2022-08-03T05:30:16.763Z","dependency_job_id":null,"html_url":"https://github.com/hidroh/numeric-edittext","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/hidroh%2Fnumeric-edittext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidroh%2Fnumeric-edittext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidroh%2Fnumeric-edittext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hidroh%2Fnumeric-edittext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hidroh","download_url":"https://codeload.github.com/hidroh/numeric-edittext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238293157,"owners_count":19448129,"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","java","library"],"created_at":"2024-10-11T03:11:50.294Z","updated_at":"2025-10-26T08:30:17.256Z","avatar_url":"https://github.com/hidroh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numeric-edittext\n\n[![Build Status](https://travis-ci.org/hidroh/numeric-edittext.svg?branch=master)](https://travis-ci.org/hidroh/numeric-edittext)\n\nA simple numeric EditText widget for Android that automatically formats input text using locale-specific decimal number format.\n\n**Behaviour**\n\nInput\n\n    100000.75\n\nWill be displayed as\n\n    100,000.75\n\nWith numeric value of\n\n    100000.75\n\n![](sample.gif)\n\n**Usage**\n\nLayout declaration:\n\n```xml\n\u003cio.github.hidroh.numericedittext.NumericEditText\n    android:inputType=\"numberDecimal|number\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\" /\u003e\n```\n\nAdd and remove numeric value watcher the same way `TextWatcher` works for `EditText`:\n\n```java\nnumericEditText.addNumericValueChangedListener(new NumericEditText.NumericValueWatcher() {\n        @Override\n        public void onChanged(double newValue) {\n            // handle on numeric value changed\n        }\n\n        @Override\n        public void onCleared() {\n            // handle value cleared\n        }\n    });\n```\n\nGet numeric value behind input value in `EditText`:\n\n```java\nnumericEditText.getNumericValue();\n```\n\n**Download**\n\nGradle:\n\n```groovy\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n\ndependencies {\n    compile 'com.github.hidroh:numeric-edittext:0.1.0'\n}\n```\n\n**License**\n\n    Copyright 2015 Ha Duy Trung\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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhidroh%2Fnumeric-edittext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhidroh%2Fnumeric-edittext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhidroh%2Fnumeric-edittext/lists"}