StickerView icon indicating copy to clipboard operation
StickerView copied to clipboard

Text get Blured when rotating the text

Open MuhammedRefaat opened this issue 6 years ago • 4 comments

device-2018-03-22-103002 device-2018-03-22-103103 device-2018-03-22-103624

I'm implementing a TextSticker in a StickerView in my layout. When rotating the text with fingers, everything is ok till I reach the vertical state, once the text is 90 degrees flipped it gets blured, and it remains blured till I reach 270 degree rotation, can you till me how to fix that please. The attached images identify the issue before and after.

MuhammedRefaat avatar Mar 22 '18 06:03 MuhammedRefaat

@MuhammedRefaat Did you fix it?

HungTDO avatar Jun 12 '18 10:06 HungTDO

Try This...

@Override public void onResume() { super.onResume(); stickerContainer.setLayerType(View.LAYER_TYPE_SOFTWARE, null); }

vishrut2207 avatar Jun 28 '18 07:06 vishrut2207

@vishrut2207 Thanks so much! I'm edit code in StickerView class in constructor and add

setLayerType(View.LAYER_TYPE_SOFTWARE, null); It's worked

HungTDO avatar Jun 28 '18 09:06 HungTDO

actually this one is fixing the blurry issue, but on the other hand it noticeably affects the smoothness of the rotation/dragging process, any idea about that?

MuhammedRefaat avatar Jul 01 '18 07:07 MuhammedRefaat