{"id":20009252,"url":"https://github.com/samlss/bubble","last_synced_at":"2025-05-04T19:35:55.092Z","repository":{"id":201738107,"uuid":"182928472","full_name":"samlss/Bubble","owner":"samlss","description":"🎈To display a pretty bubble when touch in android.","archived":false,"fork":false,"pushed_at":"2019-04-24T09:13:33.000Z","size":9102,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T11:38:01.472Z","etag":null,"topics":["android","bubble","bubbleview","customview"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samlss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-04-23T03:59:27.000Z","updated_at":"2024-02-25T21:21:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"32d19dae-e88b-4898-90e0-4e4230600600","html_url":"https://github.com/samlss/Bubble","commit_stats":null,"previous_names":["samlss/bubble"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBubble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBubble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBubble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBubble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/Bubble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390680,"owners_count":21740364,"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":["android","bubble","bubbleview","customview"],"created_at":"2024-11-13T07:14:51.254Z","updated_at":"2025-05-04T19:35:51.311Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"![Head](https://github.com/samlss/Bubble/blob/master/screenshots/head.gif)\n\n [![Download](https://api.bintray.com/packages/samlss/maven/bubble/images/download.svg?version=1.0.0-snapshot)](https://bintray.com/samlss/maven/bubble/1.0.0-snapshot/link) [![Api reqeust](https://img.shields.io/badge/API-11+-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=11#l11) [![Apache License 2.0](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/samlss/Bubble/blob/master/LICENSE)  \n\nInspired by Ali Ant Forest.\n\n灵感来源于阿里蚂蚁森林\n\n### Screenshots\n\n#### white bubbles\n\n![white_bubbles](https://github.com/samlss/Bubble/blob/master/screenshots/screenshot1.gif)\n\n\u003cbr\u003e\n\n#### yellow bubbles\n\n![yellow_bubbles](https://github.com/samlss/Bubble/blob/master/screenshots/screenshot2.gif)\n\n\n\n------\n### Dependency\n\n#### Gradle\nAdd it in your module build.gradle at the end of repositories:\n  ```java\n  dependencies {\n      implementation 'me.samlss:bubble:1.0.0-snapshot'\n  }\n  ```\n\n#### Maven\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003eme.samlss\u003c/groupId\u003e\n  \u003cartifactId\u003ebubble\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0-snapshot\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### Sample Usage\n\n```java\nBubble bubble = new Bubble.Builder('activity' or 'viewgroup')\n    .setAlpha(0.5f) //Set the alpha of bubble\n    .setBubbleColor(Color.YELLOW) //Set the color of bubble\n    .setDuration(3000) //Set the duration of animation in millisecond\n    .setInterpolator(new LinearInterpolator()) //Set the interpolator of animation\n    .setBubbleRadius(30) //Set the radius of bubble\n    .build(); //To build a bubble obj\n\n//When you want to display the bubble when touch screen, you can call the below method like:\n@Override\npublic boolean onTouchEvent(MotionEvent event) {\n    if (event.getAction() == MotionEvent.ACTION_DOWN) {\n        bubble.shoot((int) event.getX(), (int) event.getY());\n    }\n\n    return super.onTouchEvent(event);\n}\n\n//other methods\nbubble.stop(); //Stop the bubble animations\nbubble.destroy(); //Stop the bubble animations \u0026 Remove the bubble view so that you can not show bubbles anymore\n\n```\n\n\n### License\n\n```\nCopyright 2019 samlss\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fbubble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fbubble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fbubble/lists"}