All Projects → wuapnjie → Stickerview

wuapnjie / Stickerview

Licence: mit
[No more support] A view which can add sticker and zoom,drag,delete it

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Stickerview

Hexagon
◀️⏹▶️ R package for creating hexagon shaped xy data frames.
Stars: ✭ 40 (-96.54%)
Mutual labels:  stickers
Mojito
微信、bilibili大图、长图、gif、视频、自定义view的转场效果,The transition effect of wechat, bilibili large image, long image, GIF, video and custom view
Stars: ✭ 1,068 (-7.53%)
Mutual labels:  drag
Circlefloatbar
CircleFloatBar(with animation) 圆形悬浮窗(带动画特效)
Stars: ✭ 63 (-94.55%)
Mutual labels:  customview
Vue Slicksort
A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
Stars: ✭ 1,010 (-12.55%)
Mutual labels:  drag
Vue Data Board
A Data Analysis Board in Vue.
Stars: ✭ 1,046 (-9.44%)
Mutual labels:  drag
Testleavesloading
Android 自定义 View 之 LeavesLoading
Stars: ✭ 55 (-95.24%)
Mutual labels:  customview
Dragscroll
micro library for drag-n-drop scrolling style
Stars: ✭ 989 (-14.37%)
Mutual labels:  drag
Kiwifacesdk demo ios
贴纸、美颜、滤镜SDK(类似Faceu,B612),由开为科技开发的KiwiFace SDK,短视频demo,支持Kiwi人脸跟踪/特效/录制。进入demo页面生成license - iOS版
Stars: ✭ 65 (-94.37%)
Mutual labels:  stickers
Hexsticker
Create hexagon stickers automatically
Stars: ✭ 53 (-95.41%)
Mutual labels:  stickers
Dragranksquare
edit personal information which enables users to drag and rank image order
Stars: ✭ 1,115 (-3.46%)
Mutual labels:  drag
Vue Drag Drop Sort Demo
Vue demo for drag drop sort (for Vue.js 2.x see https://github.com/kenberkeley/vue2-drag-and-drop-demo)
Stars: ✭ 42 (-96.36%)
Mutual labels:  drag
Uploader
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
Stars: ✭ 1,042 (-9.78%)
Mutual labels:  drag
Bmlongpressdragcellcollectionview
🎉 🎉 🎉 🎉 🎉 让你轻松实现类似支付宝的拖拽重排功能, 支持各种自定义操作。
Stars: ✭ 1,090 (-5.63%)
Mutual labels:  drag
Vue Drag Resize
Vue Component for resize and drag elements
Stars: ✭ 1,007 (-12.81%)
Mutual labels:  drag
Vue Smooth Dnd
Vue wrapper components for smooth-dnd
Stars: ✭ 1,121 (-2.94%)
Mutual labels:  drag
Legacytableview
simple light weight android library for displaying tabulated data
Stars: ✭ 39 (-96.62%)
Mutual labels:  customview
Whatsapp Sticker Maker
Whatsapp android sticker maker
Stars: ✭ 54 (-95.32%)
Mutual labels:  stickers
Laravel Schematics
A Laravel package making a diagram of your models, relations and the ability to build them with it
Stars: ✭ 1,137 (-1.56%)
Mutual labels:  drag
Recordbutton
Android record button view
Stars: ✭ 65 (-94.37%)
Mutual labels:  customview
Better Onetab
📑 A better OneTab for Chrome 📝 Temporarily removed from firefox ⚠️ without maintaining in a period & any cooperative purpose are welcome
Stars: ✭ 1,097 (-5.02%)
Mutual labels:  drag

Android Arsenal StickerView

A view which can add sticker and zoom,drag,flip,delete it

I hope you can copy the source code to your project so you can design your own function.

Screenshots

Usage

Suggestion

copy the source code to your project so you can design your own function.

Tips:StickerView extends FrameLayout

In layout

<com.xiaopo.flying.sticker.StickerView
        android:id="@+id/sticker_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center">
    <!-- custom, maybe you will like to put an ImageView--> 
    <ImageView
        android:src="@drawable/haizewang_2"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</com.xiaopo.flying.sticker.StickerView>

Add sticker

If the sticker is drawable, it's intrinsic width and height can not be zero. If the sticker is text, you can set text color, font and alignment and the region which holds the text.

stickerView.addSticker(sticker)
stickerView.replace(sticker)
stickerView.remove(sticker)
stickerView.removeCurrentSticker()
stickerView.removeAllStickers()
stcikerView.setLocked(true)

Also you can custom the icon and icon event and position

 BitmapStickerIcon heartIcon =
        new BitmapStickerIcon(ContextCompat.getDrawable(this, R.drawable.ic_favorite_white_24dp),
            BitmapStickerIcon.LEFT_BOTTOM);
heartIcon.setIconEvent(new HelloIconEvent());

stickerView.setIcons(Arrays.asList(deleteIcon, zoomIcon, flipIcon, heartIcon));

Update

  • 2016/10/11 Add horizontal flip function.
  • 2016/10/12 Add Lock function to disable handle stickers.
  • 2016/11/30 Added text stickers which supports both text and image background. Thanks to taoliuh.
  • 2016/12/02 Fixed the region of sticker bigger bug,and add more custom configure.
  • 2016/12/03 Add more callback
  • 2016/12/14 Add PhotoView support.
  • 2016/12/15 Add remove methods.
  • 2016/12/16 Add Double Tap Callback
  • 2016/12/17 Add Constrain Sticker's move area
  • 2017/02/07 Custom your icon and icon event
  • 2017/04/25 Fix scale err and add more useful function

Todo

  • [x] Constrain the sticker's moving area
  • [x] Add Double Tap callback

Licence

Copyright 2016 wuapnjie

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].