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

The library Light has max lines allowed? #8

Closed
dpulgarin opened this issue Jul 10, 2019 · 2 comments
Closed

The library Light has max lines allowed? #8

dpulgarin opened this issue Jul 10, 2019 · 2 comments

Comments

@dpulgarin
Copy link

dpulgarin commented Jul 10, 2019

Hi,

I have imported Light in my project to show, in special cases, long String alerts. The issue appears when the String has 3 lines or more, for example:

"Welcome"
System.lineSeparator()
"Name: Diego Gómez Pérez"
System.lineSeparator()
"You have agreed at 10:00 am"

With these Strings, Light shows:

"Welcome
Name: Diego Gómez ..."

I think that you have a maximum of allowed lines, could you please solve it in some way?

Thanks!

@dpulgarin dpulgarin changed the title The library Light have max lines? The library Light has max lines allowed? Jul 10, 2019
@TonnyL
Copy link
Owner

TonnyL commented Jul 10, 2019

Hi, @dpulgarin

The answer is yes. Light is based on TSnackBar, and TSnackBar has a maxLines limit of SnackBar text(https://github.com/AndreiD/TSnackBar/blob/master/topsnackbar/src/main/res/layout/tsnackbar_layout_include.xml#L29) and the value is 2 or 1 which is defined in android design library (https://github.com/material-components/material-components-android/blob/8f7dc21a27880eed391f45548a40de8189f31172/lib/java/com/google/android/material/snackbar/res/values/config.xml).

@dpulgarin
Copy link
Author

Thanks @TonnyL .

Is solved!

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

No branches or pull requests

2 participants