github

wuapnjie / StickerView

  • пятница, 12 августа 2016 г. в 03:13:01
https://github.com/wuapnjie/StickerView

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



StickerView

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

screenshots

usage

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)