Devlight / NavigationTabStrip

Navigation tab strip with smooth interaction.
Apache License 2.0
2.24k stars 313 forks source link

Title new line #15

Closed oZBo closed 8 years ago

oZBo commented 8 years ago

Hi! Thanks for providing such a good library! I have a question: is there possibility to add new line to the TabTitle? I set text with "\n" but it drawing like single line. Thanks in advance!

GIGAMOLE commented 8 years ago

Hello. Thanks for feedback. Unfortunately, this feature is unavailable because it is inconsistent guidelines of design.

GIGAMOLE commented 8 years ago

Just try to set short titles like google recommends.

Eeram commented 7 years ago

Hi,

Thanks for this very sweet lib! It's quite unfortunate that the \n doesn't work though.

Assuming I'd like to have a long title anyway and to put it on two lines, could you give me a hint on what I should change in your lib to make it work?

Thank you!

GIGAMOLE commented 7 years ago

Hello. Thanks for this question. No. Its impossible. Google design guidelines doesnt recommend to use multiline in navigation bars, so there is the result.

Yes. You can get this effect in next way: Just modify onDraw() where the title are drawn and split title by \n and then draw it.