StickerView
StickerView copied to clipboard
hide and show selected sticker not remove it
hide and show selected sticker not remove it
is it possible to hide and show a selected sticker not remove it totally
You can set realBounds = new Rect(0,0,0,0); to hide the sticker and again when you want to show it set realBounds = new Rect(0, 0, getWidth(), getHeight());
when first time click on sticker it display small icon but when i again click than it must be remove... How ???
Create these two function inside StickerView Class:-
public void hideSticker(Sticker sticker){
if(stickers.contains(sticker)){
sticker.setAlpha(0);
}
invalidate();
}
public void showStickers(sticker){
if(stickers.contains(sticker)){
sticker.setAlpha(255);
}
invalidate();
}