Touch outside sticker doesn't hide sticker border and icons.
i want to hide sticker border and action icons when touch outside of sticker in StickerView.
I also want touch event outside of sticker in stickerview
@gajerarajnit I got the solution.
In StickerView.java change below code:
- Add
void onStickerNotClicked();intointerface OnStickerOperationListener - Write this code
if (onStickerOperationListener != null) {onStickerOperationListener.onStickerNotClicked();}insideonTouchDownmethods between if condition, which is writen below.
Like this,
if (currentIcon == null && handlingSticker == null) {
if (onStickerOperationListener != null) {
onStickerOperationListener.onStickerNotClicked();
}
return false;
}
After this, we can get outside click event in onStickerNotClicked() method.
Enjoy :)
but how to hide control items(border and action buttons) of sticker ??
write this code in implemented methods
@Override
public void onStickerNotClicked() {
stickerView.invalidate();
}
This will hide border and buttons
thnx
hey pinkal but invalidate is not working
@vrsrohit invalidate is working for me, check it whether it is another problem.
@Pinkal7600 kk wil see