Closed thoemmi closed 8 years ago
+1 or just decrease the font size.
Thanks for your PR @thoemmi. You are right, CoordinatorToolbarLayout
doesn't allow multiline for the title, but making it transparent and adding another TextView
solves this.
I am going to merge this PR and make a little change to the style to support API < 17.
@cevem I think it is the best way to achieve this. Decreasing the font size to the title doesn't ensure that devices with smaller screen show the full title.
The title
Beta Updater for WhatsApp
is quite long, so the text is clipped: This PR changes the layout so wrapping is possible:I searched the internet for how to wrap the title of a
CollapsingToolbarLayout
. Unfortunately, that's not possible. Instead you have to make theCollapsingToolbarLayout
's title transparent and add anotherTextView
.I'm not an Android developer. In fact, I just downloaded Android Studio just to fix this (the cutoff title always annoyed me). So there might be a better to achieve this, and there might be layout issue when changing the display dimensions. Anyway, I wouldn't be offended if you'd reject this PR :wink:
I really appreciate your project.