-
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
Incorrect Ellipsis placement for multiline TextView #132
Comments
Interesting. There was an issue with ellipsize on the ActionBar as we use Spans to set typeface on those, everywhere else we use native methods. Calligraphy won't cause the above effect, we just call Looking at the linked solution, it's hard to decipher what is going on let alone what could potentially cause the issue. I would assume something like calling the Someone else here might be able to spread some more light on the issue. As per usual this feels like an Android bug (although can't confirm that yet). |
I agree ellipsizing multiline text in Android is buggy, hence the stackoverflow question and solution, so perhaps the issue is not with Calligraphy here. Perhaps the reason why the EllipsizingTextView does not have the specified custom font is because we call The documentation of 'disableCustomViewInflation' states:
How can we insure a view is created before onViewCreated is reached? |
Have a look at the Not sure why you need to disable it? I use mortar and calligraphy fine. Create an issue with that stack trace so I can compare with my setup. On Mon, 9 Feb 2015 23:38 Nathaniel Wolf [email protected] wrote:
|
Mortar crash issue created: #135 |
So @nathanielwolf, If you enable e.g. @Override
public View onCreateView(final String name, @NonNull final Context context, @NonNull final AttributeSet attrs) {
switch (name) {
case "EllipsizeTextView":
return new EllipsizeTextView(this, attrs);
}
return super.onCreateView(name, context, attrs);
} I'm going to close as it will apply the Typeface if you allow |
When ellipsizing multiline TextView's that use Calligraphy, the results look like the following about 20% of the time:
The xml used is:
Using solutions like Micah's here results in the TextView loosing it's custom font.
http://stackoverflow.com/questions/2160619/android-ellipsize-multiline-textview
Any suggestions?
The text was updated successfully, but these errors were encountered: