StickerView icon indicating copy to clipboard operation
StickerView copied to clipboard

more than one sticker

Open marwanzak opened this issue 10 years ago • 3 comments

Hi,

When I try to add more than stickerview, I can only control one sticker view. How I can apply stickerview on textview?

marwanzak avatar May 30 '15 17:05 marwanzak

at StickerView.java, find method: public boolean dispatchTouchEvent(MotionEvent event) , add else part like this:

switch (event.getAction()) {
            case MotionEvent.ACTION_DOWN:
                if (isInController(x, y)) {
                    mInController = true;
                    mLastPointY = y;
                    mLastPointX = x;
                    break;
                }

                if (isInDelete(x, y)) {
                    mInDelete = true;
                    break;
                }

                if (mContentRect.contains(x, y)) {
                    mLastPointY = y;
                    mLastPointX = x;
                    mInMove = true;
                } 
                else {
                    // don't touch inside, pass to other view
                    return false;
                }
                break;

NtcWai avatar Sep 03 '15 04:09 NtcWai

Great Work! If i use multiple stickers and lets say i try to scale ( stretch)one of the stickers then at certain point the view gets stuck. To put simply if i stretch one of the stickers to the max level, the view gets stuck.

Please let me know a solution around this.

ashishsakarkar2020 avatar Oct 20 '16 11:10 ashishsakarkar2020

sorry current not support multi stickers。

sangmingming avatar Oct 21 '16 02:10 sangmingming