Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: Added text centering options #206

Merged
merged 1 commit into from
Sep 26, 2024
Merged

add: Added text centering options #206

merged 1 commit into from
Sep 26, 2024

Conversation

areemadev
Copy link
Contributor

I wanted an option to center the label text, so we added it. Please review.

@JDMathew
Copy link

@cooperka this is nice have, would it be possible to get it merged?

Copy link
Owner

@cooperka cooperka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good @areemadev, thank you for the contribution.

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
snackbarText.setTextAlignment(View.TEXT_ALIGNMENT_TEXT_START);
} else {
snackbarText.setGravity(Gravity.START);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only concern is that this runs new code by default where it did nothing before, which could subtly alter how it looks on certain devices. I assume it won't change anything.

@cooperka cooperka merged commit f5f3ff1 into cooperka:main Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants