{"id":13428586,"url":"https://github.com/AndroidDeveloperLB/AutoFitTextView","last_synced_at":"2025-03-16T01:32:44.659Z","repository":{"id":17738617,"uuid":"20579595","full_name":"AndroidDeveloperLB/AutoFitTextView","owner":"AndroidDeveloperLB","description":"A TextView that automatically fit its font and line count based on its available size and content","archived":false,"fork":false,"pushed_at":"2022-12-28T21:04:07.000Z","size":3620,"stargazers_count":911,"open_issues_count":13,"forks_count":156,"subscribers_count":63,"default_branch":"master","last_synced_at":"2024-10-28T07:48:38.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AndroidDeveloperLB.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":"2014-06-06T22:06:37.000Z","updated_at":"2024-09-25T16:14:21.000Z","dependencies_parsed_at":"2023-01-11T20:27:15.239Z","dependency_job_id":null,"html_url":"https://github.com/AndroidDeveloperLB/AutoFitTextView","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndroidDeveloperLB%2FAutoFitTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndroidDeveloperLB%2FAutoFitTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndroidDeveloperLB%2FAutoFitTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndroidDeveloperLB%2FAutoFitTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndroidDeveloperLB","download_url":"https://codeload.github.com/AndroidDeveloperLB/AutoFitTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814905,"owners_count":20352037,"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-07-31T01:01:01.269Z","updated_at":"2025-03-16T01:32:44.243Z","avatar_url":"https://github.com/AndroidDeveloperLB.png","language":"Kotlin","readme":"[![Release](https://img.shields.io/github/release/AndroidDeveloperLB/AutoFitTextView.svg?style=flat)](https://jitpack.io/#AndroidDeveloperLB/AutoFitTextView)\n\nAutoFitTextView\n===============\n\nA TextView that automatically fit its font and line count based on its available size and content\n\nThis code is heavily based on [**this StackOverflow thread**][1].\n\nThe sample shows how the library can handle various parameters being changed on the TextView: width, height, number of lines allowed, and the content (text) itself. You can play with the various properties to see how the library handle them.\n\nNote that even though the sample is of API 17, it should work fine on most cases for API 14 and above.\n\nA nice example of how to use an EditText that has this functionality can be found [here][4] (didn't test it, but it looks promising).\n\nPreview\n--\n![preview animation][2]\n\nImport using Gradle\n--\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n\t\n\t\tdependencies {\n\t        implementation 'com.github.AndroidDeveloperLB:AutoFitTextView:XXX'\n\t}\n\nYou can find recent version here (replace XXX):\n\nhttps://jitpack.io/#AndroidDeveloperLB/AutoFitTextView\n\n\n  [1]: http://stackoverflow.com/questions/16017165/auto-fit-textview-for-android/21851239\n  [2]: https://raw.githubusercontent.com/AndroidDeveloperLB/AutoFitTextView/master/animationPreview.gif\n  [4]: https://viksaaskool.wordpress.com/2014/11/16/using-auto-resize-to-fit-edittext-in-android/\n","funding_links":[],"categories":["Libraries","TextView","Kotlin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndroidDeveloperLB%2FAutoFitTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAndroidDeveloperLB%2FAutoFitTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndroidDeveloperLB%2FAutoFitTextView/lists"}