You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a TabLayout with four items in fixed mode. This means that on some devices, the text of some items ends up being too long and therefore breaks on to a second line. Since the text is only a single word though, it has to break in the middle of a word. With the current behaviour it does so without adding a hyphen/dash and in weird places.
Describe the solution you'd like
I would like to be able to set the break strategy, similar to how it can be set for a TextView.
Describe alternatives you've considered
I have considered making the tabs have 1 line maximum to prevent the line breaks entirely, but as far as I could figure out, the maxLines value is hardcoded in this library and can't be changed from implementors of this library. I have also considered setting the mode to auto or scrollable, however both produce unwanted effects when there would be enough space (these issues are already covered by #650).
Additional context
In this screenshot you can see, that it sometimes puts just a single character on a new line.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have a TabLayout with four items in
fixed
mode. This means that on some devices, the text of some items ends up being too long and therefore breaks on to a second line. Since the text is only a single word though, it has to break in the middle of a word. With the current behaviour it does so without adding a hyphen/dash and in weird places.Describe the solution you'd like
I would like to be able to set the break strategy, similar to how it can be set for a TextView.
Describe alternatives you've considered
I have considered making the tabs have 1 line maximum to prevent the line breaks entirely, but as far as I could figure out, the maxLines value is hardcoded in this library and can't be changed from implementors of this library. I have also considered setting the mode to
auto
or scrollable, however both produce unwanted effects when there would be enough space (these issues are already covered by #650).Additional context
In this screenshot you can see, that it sometimes puts just a single character on a new line.
The text was updated successfully, but these errors were encountered: