Related tags

UI/UX StickerView
Overview

Android Gems

StickerView

单手操作图片控件 镜像、置顶、缩放、移动

增加可以添加文字

FloatingActionButton address : https://github.com/futuresimple/android-floating-action-button

License

The MIT License (MIT)

Copyright (c) 2015 nimengbo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Comments
  • Loading bitmap of custom size

    Loading bitmap of custom size

    When I load a bitmap it resizes it How can I load a resized sticker say like 150px by 180px? I tried changing the layout params from match_parent to different sizes but it didn't work and I also tried scalling the bitmap before loading it in StickerView but StickerView resizes it Please help...

    opened by taimur97 2
  • BubbleTextView报错!

    BubbleTextView报错!

    你好, 用你提供的那个图片,没问题, 我换了一个自己的图片就处问题了 报错信息: 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: java.lang.NegativeArraySizeException: -21 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at net.mwplay.gifmaker.view.BubbleTextView.autoSplit(BubbleTextView.java:788) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at net.mwplay.gifmaker.view.BubbleTextView.onDraw(BubbleTextView.java:259) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14465) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13362) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13404) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14182) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.drawChild(ViewGroup.java:3103) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14468) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13362) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13404) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14182) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.drawChild(ViewGroup.java:3103) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13357) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13404) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14182) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.drawChild(ViewGroup.java:3103) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13357) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13404) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14182) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.drawChild(ViewGroup.java:3103) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13357) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13404) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14182) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.drawChild(ViewGroup.java:3103) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.draw(View.java:14468) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.widget.FrameLayout.draw(FrameLayout.java:472) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2326) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13362) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.View.getDisplayList(View.java:13404) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.HardwareRenderer$GlRenderer.buildDisplayList(HardwareRenderer.java:1570) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1449) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewRootImpl.draw(ViewRootImpl.java:2377) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2249) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1879) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:574) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:544) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:733) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5001) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 10-29 12:26:58.185 9549-9549/? E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method) 10-29 12:27:00.113 9584-9584/? E/dalvikvm: Could not find class 'com.squareup.okhttp.OkHttpClient', referenced from method cn.bmob.v3.requestmanager.thing. 10-29 12:27:00.377 9584-9584/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache 10-29 12:27:00.381 9584-9584/? E/OpenGLRenderer: MAX_TEXTURE_SIZE: 16384 10-29 12:27:00.385 9584-9584/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints() 10-29 12:27:00.389 9584-9584/? E/OpenGLRenderer: MAX_TEXTURE_SIZE: 16384

    图片如下: image

    opened by badboy-tian 1
  • How to implement Undo Redo feature for Sticker movement, scale, rotation

    How to implement Undo Redo feature for Sticker movement, scale, rotation

    I am implementing Undo Redo feature with this library. I have a undo/redo list like this. List<StickerPropertyModel> mUndoList = new ArrayList<>(); List<StickerPropertyModel> mRedoList = new ArrayList<>(); i want to set property value of xLocation, yLocation, scaling, degree. So i getting values from StickerView. like this.. model.setxLocation(stickerView.getX()); model.setyLocation(stickerView.getY()); model.setDegree(stickerView.getRotation());

    but the values not coming correctly...

    opened by Ramax11 0
  • Add StickerView functionalities to ImageView

    Add StickerView functionalities to ImageView

    I want to add Sticker view on a specific location in layout. I don't want to dynamically generate the sticker view, i want to assign it to an image-view. How can i implement this?

    opened by hammadpirzada1 0
  • I am trying to draw a sticker at specific position on the PhotoView or Image. How do I do that?

    I am trying to draw a sticker at specific position on the PhotoView or Image. How do I do that?

    For instance, I have used a Face++ sdk to detect face landmarks in an image. Now I want to add an eyebrow sticker on the obtained eyebrow landmarks over the PhotoView.

    opened by KanikaKachhawaha 2
Releases(0.2)
Owner
Abner
Abner