StickerView is a android UI library that make you able to use Single hand gesture to rotate, scale and flip the ‘sticker’.
The usage is simple, just like adding a child view. For example, if you have an activity:
FrameLayoutcanvas = findViewById(R.id.vg_canvas); //……// add a stickerImage to canvasStickerImageViewiv_sticker = newStickerImageView(getContext());
iv_sticker.setImageDrawable(((ImageView)view.findViewById(R.id.iv_sticker)).getDrawable());
canvas.adView(iv_sticker);
// add a stickerText to canvasStickerTextViewtv_sticker = newStickerTextView(getContext());
tv_sticker.setText(“callmebaby”);
canvas.addView(tv_sticker);
// add a stickerText to canvasStickerGifViewgifSticker = newStickerGifView(this);
gifSticker.setGifPath(stkrName);
Stringtag = String.valueOf(<tag> + 1);
gifSticker.setStickerTag(tag);
gifSticker.setOnSelectListener(stickerOperation);
canvas.addView(gifSticker);
//Sticker ListenerprivateIStickerOperationstickerOperation=newIStickerOperation() {
@OverridepublicvoidonSelect(@NotNullStringtag) {
}
@OverridepublicvoidonDelete(@NotNullStringtag) {
}
};Orignal GifView Repository : https://github.com/Cutta/GifView
Copyright 2017 Iqbal Ahmed.
Copyright 2017 ken_cheung.
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.
