-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
android:maxLines and android:ellipsis results in ellipsis not displayed #43
Comments
Try playing with |
android:includeFontPadding doesn't help unfortunately. The TextView code is super complex and it is not obvious why it doesn't work.. |
Again this is odd, I used |
singleLine works with ellipsizing. But doesn't with maxLines. But after more research, it is not a Calligraphy bug but with ellipsizing not working with Spannable text: http://stackoverflow.com/questions/14691511/textview-using-spannable-ellipsize-doesnt-work |
@bubbleguuum ahh ok, That will effect 1.0 as we moved to using Spannables to set the Typeface. |
I wonder if using a Spannable to set the Typeface may have other undesired side effects. |
Agreed but it let's us set typeface where text view does stupid things.
|
@bubbleguuum this should be been cleared up, we only use Spannable in rare cases now (mainly ActionBar(Sub)Title. Closing. |
Spannable in rare cases? No. Now a days, we use in many cases and this issue still exists... |
Setting below attribute works(show ... at the end) only if the TextView width is match parent |
Thanks @dinakarmaurya-innova this actually worked. |
A TextView defining both maxLine (whatever the value) and ellipsize results in the TextView applying the custom font but not displaying the ellipsis (...) for strings longer than maxLines.
With the following text:
this is line1
this is line2
this is line3
the TextView above will display:
this is line1
this is line2
instead of:
this is line1
this is line2...
Removing the fontPath element produces the expected result
The text was updated successfully, but these errors were encountered: