{"id":21130063,"url":"https://github.com/txusballesteros/AutosizeEditText","last_synced_at":"2025-07-09T01:32:11.554Z","repository":{"id":89822357,"uuid":"44343236","full_name":"txusballesteros/AutosizeEditText","owner":"txusballesteros","description":"AutosizeEditText for Android is an extension of native EditText that offer a smooth auto scale text size.","archived":false,"fork":false,"pushed_at":"2017-07-06T20:02:50.000Z","size":2488,"stargazers_count":361,"open_issues_count":2,"forks_count":46,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-12T23:42:15.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/txusballesteros.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":"2015-10-15T20:20:58.000Z","updated_at":"2024-10-06T08:52:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7c002d9-ac63-4d7b-9dfc-3367997a291f","html_url":"https://github.com/txusballesteros/AutosizeEditText","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/txusballesteros%2FAutosizeEditText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txusballesteros%2FAutosizeEditText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txusballesteros%2FAutosizeEditText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txusballesteros%2FAutosizeEditText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txusballesteros","download_url":"https://codeload.github.com/txusballesteros/AutosizeEditText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476376,"owners_count":17480215,"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":[],"created_at":"2024-11-20T05:32:14.206Z","updated_at":"2024-11-20T05:32:18.545Z","avatar_url":"https://github.com/txusballesteros.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"AutoscaleEditText\n=================\n\n![](assets/demo.gif)\n\nAutosizeEditText for Android is an extension of native EditText that offer a smooth auto scale text size.\n\n## Latest Version\n\n[![Download](https://api.bintray.com/packages/txusballesteros/maven/AutoscaleEditText/images/download.svg) ](https://bintray.com/txusballesteros/maven/AutoscaleEditText/_latestVersion) ![](https://img.shields.io/badge/platform-android-green.svg)\n\n## How to use\n\n### Configuring your project dependencies\n\nAdd the library dependency to your build.gradle file.\n\n```groovy\ndependencies {\n    ...\n    compile 'com.txusballesteros:AutoscaleEditText:1.0'\n}\n```\n\n### Adding and Customizing the View\n\nAdd the view to your xml layout file.\n\n```xml\n\u003ccom.txusballesteros.AutoscaleEditText\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"30sp\" /\u003e\n```\n\nNow you personalize some of custom parameters of the view.\n\n* **animation Duration**: With this field you can establish the transformation duration in milliseconds, by default it's set to 300ms.\n\n* **linesLimit**: You can use this attribute to set the approximate lines number when the view will triggers the text scale transformation, by default it's set to 2.\n\n* **textScale**: Use this attribute to set the text scale percentage, I mean, if you have set your text size to 30sp and the text scale to 0.7 for example, when the user write a text and this overflows the line limit, the view change the textSize to 21sp or (30 * 0.7), by default it's set to 0.7 (70%).\n\n```xml\n\u003ccom.txusballesteros.AutoscaleEditText\n        ...\n        app:linesLimit=\"3\"\n        app:textScale=\"0.75\"\n        app:animationDuration=\"200\" /\u003e\n```\n\n## Motivation of the Project\n\nI created this view as a little piece of the [Redbooth](https://redbooth.com/) App for Android.\n\n## License\n\nCopyright Txus Ballesteros 2015 (@txusballesteros)\n\nThis file is part of some open source application.\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\nContact: Txus Ballesteros \u003ctxus.ballesteros@gmail.com\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxusballesteros%2FAutosizeEditText","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxusballesteros%2FAutosizeEditText","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxusballesteros%2FAutosizeEditText/lists"}