Open
Conversation
Owner
|
This would be an awesome feature to add, however, it is very difficult to review as the entire files are shown as changed. Any chance you can update this with correct diffs? |
Author
|
I'll take a look, no guarantees because I'm a bit stretched for time this month. Without thinking I automatically changed tab indenting to 4 space indenting via the android studio prompt. |
|
Question 1: This line: int targetHeight = view.getHeight() - view.getPaddingTop() - view.getPaddingTop();Should it not be: int targetHeight = view.getHeight() - view.getPaddingTop() - view.getPaddingBottom();Question 2: These two lines: float textHeight = getTextHeight(text, paint, targetWidth, size);
textHeight = getTextHeight(text, paint, targetWidth, size);the second line seems redundant, is it not? |
|
Hey @grantland. can you merge this please? My specific case needs this badly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#19
Adds an option to allow text downsizing to fit height.
See methods:
See members:
Works in project https://github.com/KonradJanica/aMatch
Notes:
P.S. sorry about the entire file change, I think my IDE changed something... I suggest maybe leaving it as a new branch until thoroughly tested.