{"id":13645466,"url":"https://github.com/Yasic/QQBubbleView","last_synced_at":"2025-04-21T14:31:06.509Z","repository":{"id":93072177,"uuid":"60268302","full_name":"Yasic/QQBubbleView","owner":"Yasic","description":"利用三阶贝塞尔曲线模仿QQ空间直播页面右下角的礼物冒泡特效","archived":false,"fork":false,"pushed_at":"2016-06-03T05:46:06.000Z","size":89,"stargazers_count":873,"open_issues_count":6,"forks_count":155,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-08-02T01:25:25.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yasic.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-06-02T13:55:17.000Z","updated_at":"2024-06-26T23:04:07.000Z","dependencies_parsed_at":"2023-06-04T16:00:20.187Z","dependency_job_id":null,"html_url":"https://github.com/Yasic/QQBubbleView","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/Yasic%2FQQBubbleView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasic%2FQQBubbleView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasic%2FQQBubbleView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasic%2FQQBubbleView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yasic","download_url":"https://codeload.github.com/Yasic/QQBubbleView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223868217,"owners_count":17217051,"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":[],"created_at":"2024-08-02T01:02:35.560Z","updated_at":"2024-11-09T18:31:24.133Z","avatar_url":"https://github.com/Yasic.png","language":"Java","funding_links":[],"categories":["其他"],"sub_categories":[],"readme":"# QQBubbleView\n\n## Outline\n\n利用三阶贝塞尔曲线模仿QQ空间直播时右下角的礼物冒泡特效\n\n## ScreenShot\n\n![](http://diycode.b0.upaiyun.com/photo/2016/55b80c4c270e41e429c468973f215cc7.gif)\n\n## Usage\n\n* 引入依赖\n\n```\ncompile 'yasic.library.BubbleView:bubbleview:0.0.4'\n```\n\n* 启动动画\n\n```\nvoid startAnimation(final int rankWidth, final int rankHeight)\nvoid startAnimation(final int rankWidth, final int rankHeight, int count)\nvoid startAnimation(final int rankWidth, final int rankHeight, int delay, int count)\n```\n\n* 使用默认图片样式\n\n```\nBubbleView setDefaultDrawableList()\n```\n\n* 自定义图片样式\n\n```\nBubbleView setDrawableList(drawableList)\n```\n\n* 设置上升动画持续时间\n\n```\nBubbleView setRiseDuration(int riseDuration)\n```\n\n* 设置初始点相对于底边边距\n\n```\nBubbleView setBottomPadding(int px)\n```\n\n* 设置三个随机初始点的间距\n\n```\nBubbleView setOriginsOffset(int px)\n```\n\n* 设置缩放动画最大最小比例\n```\nBubbleView setScaleAnimation(float maxScale, float minScale)\n```\n\n* 设置两个上升动画之间的时间间隔\n\n```\nBubbleView setAnimationDelay(int delay)\n```\n\n* 设置图片数目最大最小值\n\n```\nvoid setMaxHeartNum(int maxHeartNum)\nvoid setMinHeartNum(int minHeartNum)\n```\n\n* 设置每一个view的宽高\n\n```\nBubbleView setItemViewWH(int viewWidth, int viewHeight)\n```\n\n## Point\n\n* 继承自Relativelayout\n\n* 使用三阶贝塞尔曲线模拟运动路径，三阶贝塞尔曲线公式如下\n\n\n![](http://img.my.csdn.net/uploads/201008/28/0_1282984326C3m1.gif)\n\n* 参考博客http://www.html-js.com/article/1628\n\n* 强烈推荐一个模拟贝塞尔曲线的网站，可以在线模拟出想要的曲线http://myst729.github.io/bezier-curve/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYasic%2FQQBubbleView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYasic%2FQQBubbleView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYasic%2FQQBubbleView/lists"}