Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Comments

set text size in Snackbar#92

Open
kosiara wants to merge 1 commit intonispok:masterfrom
kosiara:feature/add.set.text.size.support
Open

set text size in Snackbar#92
kosiara wants to merge 1 commit intonispok:masterfrom
kosiara:feature/add.set.text.size.support

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants