{"id":13396250,"url":"https://github.com/erchenger/SizeAdjustingTextView","last_synced_at":"2025-03-13T22:31:56.013Z","repository":{"id":13339784,"uuid":"16026889","full_name":"erchenger/SizeAdjustingTextView","owner":"erchenger","description":"This is based on an open source autosizing textview for Android.","archived":false,"fork":false,"pushed_at":"2015-05-07T20:43:33.000Z","size":946,"stargazers_count":253,"open_issues_count":4,"forks_count":53,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-07-31T18:16:51.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erchenger.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-01-18T14:25:28.000Z","updated_at":"2023-08-13T11:32:11.000Z","dependencies_parsed_at":"2022-09-04T10:50:30.799Z","dependency_job_id":null,"html_url":"https://github.com/erchenger/SizeAdjustingTextView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erchenger%2FSizeAdjustingTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erchenger%2FSizeAdjustingTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erchenger%2FSizeAdjustingTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erchenger%2FSizeAdjustingTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erchenger","download_url":"https://codeload.github.com/erchenger/SizeAdjustingTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243494079,"owners_count":20299762,"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-30T18:00:43.134Z","updated_at":"2025-03-13T22:31:55.643Z","avatar_url":"https://github.com/erchenger.png","language":"Java","readme":"SizeAdjustingTextView\n=====================\n\nThis is based on an open source autosizing textview for Android I found a few weeks ago. The initial approach\ndidn't resize multiple lines and wasn't maintained to keep up with changes in Android. I decided to go ahead\nand create this as a place to preserve the auto sizing text view as well as giving it a platform for some change\nand to possibly add some features and functionality.\n\n## Usage\nTo use the SizeAdjustingTextView make sure you have the custom view somewhere in your project.\nFrom there when using XML Layouts you can simply use the \u003cb\u003ecom.some.package.name.SizeAdjustingTextView\u003c/b\u003e\nwidget and thats it. From there you need to make sure that you set a text size as the baseline for the view. \n```XML\n\u003ccom.example.sizeadjustingtextview.view.SizeAdjustingTextView\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"100dp\"\n        android:id=\"@+id/topBox\"\n        android:layout_below=\"@id/text_input\"\n        android:gravity=\"center\"\n        android:padding=\"0dp\"\n        android:textSize=\"60sp\" /\u003e\n```\nLastly when using custom views in XML, make sure you have the XLMNS tag in the root of the layout tag. \n```XML\n xmlns:app=\"http://schemas.android.com/apk/res/com.example.SizeAdjustingTextView\"\n```\n\nI didn't want to make this a library because there is no need for adding a library for one view. Just port over the SizeAdjustingTextView and you should be good. \n\n\n\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Libs","etc"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferchenger%2FSizeAdjustingTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferchenger%2FSizeAdjustingTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferchenger%2FSizeAdjustingTextView/lists"}