Skip to content

Lichenwei-Dev/StickerView

Repository files navigation

Android开发之仿微博贴纸效果实现——StickerView

效果图:

1、如何在项目中引入该贴纸库:

compile 'com.lcw.library:StickeView:1.0.1'

2、布局设置:

 <com.lcw.library.stickerview.StickerLayout
        android:id="@+id/sl_sticker_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

3、添加贴纸:

                Sticker sticker = new Sticker(mContext,mBitmap);
                mStickerLayout.addSticker(sticker);

就这么简单,持续更新,欢迎各种优化建议~

具体实现可以参考文章:

Android开发之仿微博贴纸效果实现——基础篇

Android开发之仿微博贴纸效果实现——进阶

欢迎Star,欢迎Fork

Releases

No releases published

Packages

No packages published

Languages