{"action":"created","issue":{"url":"https://api.github.com/repos/nomanr/ZoomTextView/issues/1","repository_url":"https://api.github.com/repos/nomanr/ZoomTextView","labels_url":"https://api.github.com/repos/nomanr/ZoomTextView/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nomanr/ZoomTextView/issues/1/comments","events_url":"https://api.github.com/repos/nomanr/ZoomTextView/issues/1/events","html_url":"https://github.com/nomanr/ZoomTextView/issues/1","id":132418021,"number":1,"title":"Question: Can the same logic here work for auto-resizing TextViews ?","user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars.githubusercontent.com/u/5357526?v=3","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-09T13:21:57Z","updated_at":"2016-02-09T17:01:42Z","closed_at":null,"body":"I've searched in so many repositories and samples for a way to auto-resize the textView font size (and line count) to fit into its boundaries.\r\nAll solutions don't work well: text gets truncated, part of a word goes to next line, ...\r\nSome solutions work, but only if the TextView has a single line of text that it can show.\r\n\r\nMy question:\r\nAs this sample seems to work very well, is it possible to use a similar logic, and put it in a library that handles TextView's font and line count?\r\n\r\nHere's a library I've made that has almost what I need:\r\nhttps://github.com/AndroidDeveloperLB/AutoFitTextView\r\nBut as I wrote, all solutions I've found do not work well.\r\n\r\nWhat I'd like to achieve is to start from a specified max font size, increasing line count up to the max that was set, and when reaching the max line count, reduce the font size (till the min font size allowed) so that the text will fit the boundaries of the TextView."},"comment":{"url":"https://api.github.com/repos/nomanr/ZoomTextView/issues/comments/181957638","html_url":"https://github.com/nomanr/ZoomTextView/issues/1#issuecomment-181957638","issue_url":"https://api.github.com/repos/nomanr/ZoomTextView/issues/1","id":181957638,"user":{"login":"nomanr","id":8149827,"avatar_url":"https://avatars.githubusercontent.com/u/8149827?v=3","gravatar_id":"","url":"https://api.github.com/users/nomanr","html_url":"https://github.com/nomanr","followers_url":"https://api.github.com/users/nomanr/followers","following_url":"https://api.github.com/users/nomanr/following{/other_user}","gists_url":"https://api.github.com/users/nomanr/gists{/gist_id}","starred_url":"https://api.github.com/users/nomanr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomanr/subscriptions","organizations_url":"https://api.github.com/users/nomanr/orgs","repos_url":"https://api.github.com/users/nomanr/repos","events_url":"https://api.github.com/users/nomanr/events{/privacy}","received_events_url":"https://api.github.com/users/nomanr/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T17:01:42Z","updated_at":"2016-02-09T17:01:42Z","body":"I think yes, if we bind the font size with width and height of the TextView then this solution can work. "}}