Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 778 Bytes

File metadata and controls

31 lines (27 loc) · 778 Bytes

StickerView

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

###screenshots

###usage add dependencies

compile 'com.flying.xiaopo:sticker:1.1.0'

StickerView extends ImageView 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"
        android:src="@drawable/haizewang_215" />

add sticker, support bitmap and drawable. if the sticker is drawable, it's intrinsic width and height can not be zero.

stickerView.addSticker(bitmap)
stickerView.addSticker(drawable)

licence

MIT LICENCE