Edit textSticker on click
how can i edit textsticker on click
maybe you want this : https://github.com/wuapnjie/StickerView/issues/54
For this You need to take currentSticker Object like below code. Add this code in Sticker click event.
if (stickerView.getCurrentSticker() instanceof TextSticker) {
((TextSticker) stickerView.getCurrentSticker()).setText(view);
((TextSticker) stickerView.getCurrentSticker()).setTextColor(Color.BLACK);
((TextSticker) stickerView.getCurrentSticker()).setTextAlign(Layout.Alignment.ALIGN_CENTER);
((TextSticker) stickerView.getCurrentSticker()).resizeText();
stickerView.replace(editSticker);
stickerView.invalidate();
}
how to edit the text in text sticker in run time??
and where is the editsticker you are replacing here plz reply asap
I am use this in double tapped on text sticker. That time i am open writing text dialog and when return from them that time add this code for edit current text sticker.
oh you are applying all these changes to variable editsticker (which is a instance of text sticker ) right??
Yes
and where is the editsticker you are replacing here plz reply asap
Hey I have a same problem did you solved your problem if yes then help me I want to do the same edit the text of sticker in edittext runtime