Not working on Android API 21
Text is aligned to left no matter which letter is "red". Correct behaviour would be to align red letter to markers - work as this on any tested API version < 21.
Probably calculatePivotXOffset() does something wrong.
Problem is bug in the system - https://code.google.com/p/android-developer-preview/issues/detail?id=110
I get around it my explicitly setting the font.
mSingleText = (SpritzerTextView) stub.findViewById(R.id.singletext); mSingleText.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));
Yeah, I have created pull request with setting Typeface.MONOSPACE from code. Just waiting for author to merge it.
Could probably do this without a monospace font too. Would certainly look nicer.
@eh3andark I don't think it is related to previous issue.
@eh3andark but how your issue is related to "Not working on Android API 21" and my first post, solved by my pull request #19 ?
@tajchert I'm sorry ...