{"id":20009247,"url":"https://github.com/samlss/bling","last_synced_at":"2025-05-04T19:35:53.591Z","repository":{"id":201738099,"uuid":"172873928","full_name":"samlss/Bling","owner":"samlss","description":"🐧A shapes fall effect library for android","archived":false,"fork":false,"pushed_at":"2019-02-28T02:32:28.000Z","size":5683,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T11:38:01.040Z","etag":null,"topics":["android","animation","fall","rectangle","shapes","star"],"latest_commit_sha":null,"homepage":"","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-02-27T08:21:36.000Z","updated_at":"2024-05-10T13:36:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c09a344c-9f62-42dd-8adb-1e6c98b1da59","html_url":"https://github.com/samlss/Bling","commit_stats":null,"previous_names":["samlss/bling"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/Bling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390671,"owners_count":21740362,"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","animation","fall","rectangle","shapes","star"],"created_at":"2024-11-13T07:14:50.148Z","updated_at":"2025-05-04T19:35:50.643Z","avatar_url":"https://github.com/samlss.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Bling](https://github.com/samlss/Bling/blob/master/screenshots/bling.png)\n\n[![Download](https://api.bintray.com/packages/samlss/maven/bling/images/download.svg?version=1.0.0)](https://bintray.com/samlss/maven/bling/1.0.0/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/Bling/blob/master/LICENSE)  \n\n\n\n### Screenshots\n\n#### Circle\n\n![Circle](https://github.com/samlss/Bling/blob/master/screenshots/screenshot1.gif)\n\n\u003cbr\u003e\n\n#### Rectangle\n\n![Rectangle](https://github.com/samlss/Bling/blob/master/screenshots/screenshot2.gif)\n\n\u003cbr\u003e\n\n#### Triangle\n![Triangle](https://github.com/samlss/Bling/blob/master/screenshots/screenshot3.gif)\n\n\u003cbr\u003e\n\n#### Star\n![Star](https://github.com/samlss/Bling/blob/master/screenshots/screenshot4.gif)\n\n\u003cbr\u003e\n\n#### Mixed\n![Mixed](https://github.com/samlss/Bling/blob/master/screenshots/screenshot5.gif)\n\n\u003cbr\u003e\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:bling:1.0.0'\n  }\n  ```\n\n#### Maven\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003eme.samlss\u003c/groupId\u003e\n  \u003cartifactId\u003ebling\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### Sample Usage\n\n```java\n//Build a 'Bling'\nBling bling = new Bling.Builder('viewgroup' or 'activity')\n    .setDuration(8000) //Set the drop time of the shapes.\n    .setShapeCount(66) //Set how many shapes will fall.\n    .setRadiusRange(10, 20) //Set the range of the shape radius.\n    .setRotationSpeedRange(-3f, 3f) //Set the rotation speed range of falling shapes.\n    .setAutoHide(true) //Set whether to hide the shapes when the animation ends\n    .setColors(colors) //Set the colors of shapes.\n    .setSpeedRange(0.1f, 0.5f) //Set shape drop speed.\n    .setRotationRange(90, 150) //Set the rotation range of falling shapes.\n    .setInterpolator(new LinearInterpolator()) //Set the drop interpolator of the shapes.\n    .setBlingListener(new BlingListener() {\n        @Override\n        public void onBegin() {\n            //begin to fall\n        }\n\n        @Override\n        public void onEnd() {\n            //end to fall\n        }\n    })\n    .build(); \n\n//The you can call the Bling's method:\nbling.show('shapeType'); //The shape type can be: CIRCLE, RECTANGLE, TRIANGLE, STAR, MIXED\n\nbling.dismiss(); //Dismiss the shapes, event though they are doing animation.\n\nbling.release(); //To release Bling \u0026 remove the bling view immediately.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fbling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fbling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fbling/lists"}