SpritzerTextView icon indicating copy to clipboard operation
SpritzerTextView copied to clipboard

Not working on Android API 21

Open tajchert opened this issue 9 years ago • 7 comments

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.

tajchert avatar Mar 06 '15 09:03 tajchert

Problem is bug in the system - https://code.google.com/p/android-developer-preview/issues/detail?id=110

tajchert avatar Mar 06 '15 12:03 tajchert

I get around it my explicitly setting the font.

mSingleText = (SpritzerTextView) stub.findViewById(R.id.singletext); mSingleText.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));

aliafshar avatar Apr 07 '15 07:04 aliafshar

Yeah, I have created pull request with setting Typeface.MONOSPACE from code. Just waiting for author to merge it.

tajchert avatar Apr 07 '15 08:04 tajchert

Could probably do this without a monospace font too. Would certainly look nicer.

aliafshar avatar Apr 07 '15 09:04 aliafshar

@eh3andark I don't think it is related to previous issue.

tajchert avatar Feb 23 '17 17:02 tajchert

@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 avatar Feb 23 '17 18:02 tajchert

@tajchert I'm sorry ...

eh3andark avatar Feb 23 '17 19:02 eh3andark