{"id":13396358,"url":"https://github.com/skyfishjy/android-ripple-background","last_synced_at":"2025-09-29T00:31:10.870Z","repository":{"id":22953217,"uuid":"26302821","full_name":"skyfishjy/android-ripple-background","owner":"skyfishjy","description":"A beautiful ripple animation for your app","archived":true,"fork":false,"pushed_at":"2019-10-11T15:25:48.000Z","size":12766,"stargazers_count":2257,"open_issues_count":36,"forks_count":580,"subscribers_count":91,"default_branch":"master","last_synced_at":"2024-09-27T04:04:30.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/skyfishjy.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}},"created_at":"2014-11-07T03:52:06.000Z","updated_at":"2024-09-13T03:31:28.000Z","dependencies_parsed_at":"2022-07-15T13:47:01.645Z","dependency_job_id":null,"html_url":"https://github.com/skyfishjy/android-ripple-background","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/skyfishjy%2Fandroid-ripple-background","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfishjy%2Fandroid-ripple-background/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfishjy%2Fandroid-ripple-background/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfishjy%2Fandroid-ripple-background/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyfishjy","download_url":"https://codeload.github.com/skyfishjy/android-ripple-background/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234575215,"owners_count":18854924,"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-07-30T18:00:47.203Z","updated_at":"2025-09-29T00:31:04.982Z","avatar_url":"https://github.com/skyfishjy.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Java","Libs","\u003ca name=\"Ripple\"\u003eRipple\u003c/a\u003e"],"sub_categories":["\u003cA NAME=\"Animations\"\u003e\u003c/A\u003eAnimations","Personal Blog"],"readme":"# Android Ripple Background\n\nA beautiful ripple animation for your app. You can easily change its color, speed of wave, one ripple or multiple ripples. See demo below.\n\n![Simple Ripple](previews/rippleSimple.gif)　　　　　　![Multiple ripples](previews/rippleFoundDevice.gif)\n\n##Usage\n\n###Step 1\n\n####Install with Gradle\n\n```groovy\ndependencies {\n        compile 'com.skyfishjy.ripplebackground:library:1.0.1'\n}\n```\n###Step 2\n####RippleBackground\n\nAdd `RippleBackground` to your layout with content you want, like an ImageView. Configure the view customization elements using styleable attributes.\n \n```xml\n\u003ccom.skyfishjy.library.RippleBackground\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:id=\"@+id/content\"\n    app:rb_color=\"#0099CC\"\n    app:rb_radius=\"32dp\"\n    app:rb_rippleAmount=\"4\"\n    app:rb_duration=\"3000\"\n    app:rb_scale=\"6\"\u003e\n    \u003cImageView\n        android:layout_width=\"64dp\"\n        android:layout_height=\"64dp\"\n        android:layout_centerInParent=\"true\"\n        android:id=\"@+id/centerImage\"\n        android:src=\"@drawable/demoImage\"/\u003e\n\u003c/com.skyfishjy.library.RippleBackground\u003e\n```\nStart animation:\n\n```java\n    final RippleBackground rippleBackground=(RippleBackground)findViewById(R.id.content);\n    ImageView imageView=(ImageView)findViewById(R.id.centerImage);\n    imageView.setOnClickListener(new View.OnClickListener() {\n        @Override\n        public void onClick(View view) {\n            rippleBackground.startRippleAnimation();\n        }\n    });\n```\nStop animation:\n\n```java\n    rippleBackground.stopRippleAnimation();\n```\n\n##Theming\n* app:rb_color [color def:@android:color/holo_blue_dark] --\u003e Color of the ripple\n* app:rb_radius [dimension def:64dp ] --\u003e Radius of the ripple\n* app:rb_duration [integer def:3000 ] --\u003e Duration of one ripple animation (millisecond) \n* app:rb_rippleAmount [integer def:6] --\u003e Max amount of ripples at one screen\n* app:rb_scale [interger def:6] --\u003e Scale of ripple at the end of one animation cycle\n* app:rb_type [enum (fillRipple, strokeRipple) def:fillRipple] --\u003e Filled circle or ring\n* app:rb_strokeWidth [dimension def:2dp] --\u003e Stroke width of the ripple, ONLY work when rb_type=\"strokeRipple\"\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--ripple--background-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1107)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfishjy%2Fandroid-ripple-background","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyfishjy%2Fandroid-ripple-background","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfishjy%2Fandroid-ripple-background/lists"}