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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an error with this:
"Inconsistent alignment specification between textAlignment and gravity attributes: was center_vertical, expected start"
So we'd need to keep
android:gravity="center_vertical|start"
. However then it's easier to just keep it as is without settingtextAlignment
sincegravity
is already working as intended.What is your reason to use textAlignment instead of gravity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the message from the
RtlCompat
lint check, isn't it?I've added an issue, see description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thank you for filing the issue! the message is from the lint check but it's a blocking error, but I confirmed that keeping both
android:gravity="center_vertical|start"
andandroid:textAlignment="viewStart"
fixes the issue so we can do that!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've rebased the branch with
android:gravity="center_vertical|start"
.It's a false positive.
RtlCompat
should not be used in the library because it no longer supports API < 17.