StickerView icon indicating copy to clipboard operation
StickerView copied to clipboard

Text sticker with Shadow

Open nithinpmolethu opened this issue 7 years ago • 7 comments

Hi is there any way to add shadow to text sticker like we add shadow to textviews.

nithinpmolethu avatar Jul 11 '17 20:07 nithinpmolethu

go to TextSticker class and use
textPaint.setShadowLayer(20,0,5, Color.RED); that way you can achieve this shadow effect.

chnouman avatar Jul 21 '17 13:07 chnouman

Is there any method to add white stroke around text like we add shadow

nithinpmolethu avatar Sep 12 '17 09:09 nithinpmolethu

yes you can

chnouman avatar Sep 15 '17 14:09 chnouman

textPaint.setStrokeWidth() and textPaint.setStrokeCap(...) etc in TextSticker class.

chnouman avatar Sep 15 '17 14:09 chnouman

but when i add stroke color to the text by using above method the fill color and stroke color become same. i only need to pass a white color stroke to the text.

nithinpmolethu avatar Sep 16 '17 06:09 nithinpmolethu

have you add the different colors for both text and stroke?

chnouman avatar Sep 16 '17 06:09 chnouman

Yea and one more thing either stroke or fill appear once

nithinpmolethu avatar Sep 17 '17 12:09 nithinpmolethu