{"id":13645461,"url":"https://github.com/wuapnjie/StickerView","last_synced_at":"2025-04-21T14:31:00.247Z","repository":{"id":111392478,"uuid":"65281247","full_name":"wuapnjie/StickerView","owner":"wuapnjie","description":"[No more support] A view which can add sticker and zoom,drag,delete it","archived":true,"fork":false,"pushed_at":"2023-11-12T16:50:10.000Z","size":3020,"stargazers_count":1273,"open_issues_count":101,"forks_count":310,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-01-17T20:37:48.926Z","etag":null,"topics":["customview","drag","stickers","stickerview"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wuapnjie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-09T09:17:54.000Z","updated_at":"2024-12-26T00:47:37.000Z","dependencies_parsed_at":"2024-08-02T01:38:27.507Z","dependency_job_id":null,"html_url":"https://github.com/wuapnjie/StickerView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuapnjie%2FStickerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuapnjie%2FStickerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuapnjie%2FStickerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuapnjie%2FStickerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuapnjie","download_url":"https://codeload.github.com/wuapnjie/StickerView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customview","drag","stickers","stickerview"],"created_at":"2024-08-02T01:02:35.528Z","updated_at":"2025-04-21T14:30:59.549Z","avatar_url":"https://github.com/wuapnjie.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-StickerView-brightgreen.svg?style=flat)]() \nStickerView\n=========\n\nA view which can add sticker and zoom,drag,flip,delete it\n\n**I hope you can copy the source code to your project so you can design your own function.**\n\n## Screenshots\n![](https://github.com/wuapnjie/StickerView/blob/master/screenshots/screenshot1.png)\n![](https://github.com/wuapnjie/StickerView/blob/master/screenshots/screenshot2.png)\n\n## Usage\n\n**Suggestion**\n\n**copy the source code to your project so you can design your own function.**\n\n\n**Tips**:StickerView extends FrameLayout\n#### In layout\n```xml\n\u003ccom.xiaopo.flying.sticker.StickerView\n        android:id=\"@+id/sticker_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"center\"\u003e\n    \u003c!-- custom, maybe you will like to put an ImageView--\u003e \n    \u003cImageView\n        android:src=\"@drawable/haizewang_2\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\" /\u003e\n\u003c/com.xiaopo.flying.sticker.StickerView\u003e\n```\n#### Add sticker\nIf the sticker is drawable, it's intrinsic width and height can not be zero.\nIf the sticker is text, you can set text color, font and alignment and the region which holds the text.\n\n```java\nstickerView.addSticker(sticker)\nstickerView.replace(sticker)\nstickerView.remove(sticker)\nstickerView.removeCurrentSticker()\nstickerView.removeAllStickers()\nstcikerView.setLocked(true)\n```\n\nAlso you can custom the icon and icon event and position\n\n```java\n BitmapStickerIcon heartIcon =\n        new BitmapStickerIcon(ContextCompat.getDrawable(this, R.drawable.ic_favorite_white_24dp),\n            BitmapStickerIcon.LEFT_BOTTOM);\nheartIcon.setIconEvent(new HelloIconEvent());\n\nstickerView.setIcons(Arrays.asList(deleteIcon, zoomIcon, flipIcon, heartIcon));\n```\n\n## Update\n\n* **2016/10/11** Add horizontal flip function.\n* **2016/10/12** Add Lock function to disable handle stickers.\n* **2016/11/30** Added text stickers which supports both text and image background. Thanks to [taoliuh](https://github.com/taoliuh).\n* **2016/12/02** Fixed the region of sticker bigger bug,and add more custom configure.\n* **2016/12/03** Add more callback\n* **2016/12/14** Add [PhotoView](https://github.com/chrisbanes/PhotoView) support.\n* **2016/12/15** Add remove methods.\n* **2016/12/16** Add Double Tap Callback\n* **2016/12/17** Add Constrain Sticker's move area\n* **2017/02/07** Custom your icon and icon event\n* **2017/04/25** Fix scale err and add more useful function\n\n## Todo\n- [x] Constrain the sticker's moving area\n- [x] Add Double Tap callback\n\n## Licence\n\n```\nCopyright 2016 wuapnjie\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n\n","funding_links":[],"categories":["其他"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuapnjie%2FStickerView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuapnjie%2FStickerView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuapnjie%2FStickerView/lists"}