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

set text size in Snackbar #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kosiara
Copy link

@kosiara kosiara commented Mar 4, 2015

textSize(int unit, float size)

allows to set text size with :
.textSize(TypedValue.COMPLEX_UNIT_DIP, 22) /* in dp - recommended / or
.textSize(22) /
in pixels - not recommended */

Snackbar.with(getApplicationContext())
.type(SnackbarType.SINGLE_LINE)
.text("Some text")
.textSize(TypedValue.COMPLEX_UNIT_DIP, 16)
.show(this);

textSize(int unit, float size)

allows to set text size with :
.textSize(TypedValue.COMPLEX_UNIT_DIP, 22)  /* in dp - recommended */ or
.textSize(22) /* in pixels - not recommended */
@wmora
Copy link
Contributor

wmora commented Mar 6, 2015

@kosiara could you please resolve the merge conflicts?

@robholmes
Copy link

@kosiara Would be great if you could resolve merge conflicts like @wmora said. As this would be a great feature to have.

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.

None yet

4 participants