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

how to remove border or icon? #51

Open
rahul107 opened this issue Aug 4, 2017 · 2 comments
Open

how to remove border or icon? #51

rahul107 opened this issue Aug 4, 2017 · 2 comments

Comments

@rahul107
Copy link

rahul107 commented Aug 4, 2017

i want to remove border and icon like remove, flip or resize on click of out of the text sticker and show again when i click on text again how can i get this?

@Hitexroid
Copy link

Hitexroid commented Aug 30, 2017

👍 Sorry for my English ...

Go to StickerView class and remove final from these variables : showIcons , showBorder

    private final boolean showIcons;  to -->   private boolean showIcons;
    private final  boolean showBorder;  to -->  private boolean showBorder;

make these methods :

    public void setShowBorder(boolean ShowBorder) {
        showBorder = ShowBorder;
    }
    public void setShowIcons(boolean ShowIcon) {
        showIcons = ShowIcon;
    }

    public boolean getShowBorder() {
        return showBorder;
    }

    public boolean getShowIcons() {
        return showIcons;
    }

    public void Toggle() {
        setShowBorder(!getShowBorder());
        setShowIcons(!getShowIcons());
        invalidate();
    }

with Toggle() check if border and icons are shown , hide and Vice versa ...

i don't know about outside touch listener , find it and use above codes.

@rahul107
Copy link
Author

rahul107 commented Aug 31, 2017 via email

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

2 participants