Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

hide and show selected sticker not remove it #62

Open
pawaom opened this issue Aug 30, 2017 · 3 comments
Open

hide and show selected sticker not remove it #62

pawaom opened this issue Aug 30, 2017 · 3 comments

Comments

@pawaom
Copy link

pawaom commented Aug 30, 2017

hide and show selected sticker not remove it

is it possible to hide and show a selected sticker not remove it totally

@Surabhi3
Copy link

Surabhi3 commented Sep 5, 2017

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());

@v1234567
Copy link

v1234567 commented Nov 7, 2017

when first time click on sticker it display small icon but when i again click than it must be remove... How ???

@SumitMarwha
Copy link

SumitMarwha commented Nov 27, 2017

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();
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants