{"id":13395880,"url":"https://github.com/balysv/material-ripple","last_synced_at":"2025-04-12T20:38:13.192Z","repository":{"id":20831409,"uuid":"24117407","full_name":"balysv/material-ripple","owner":"balysv","description":"Android L Ripple effect wrapper for Views","archived":false,"fork":false,"pushed_at":"2022-09-05T08:30:00.000Z","size":2821,"stargazers_count":2350,"open_issues_count":47,"forks_count":473,"subscribers_count":86,"default_branch":"master","last_synced_at":"2024-04-28T23:04:51.796Z","etag":null,"topics":["android","java","material-ripple","ripple","wrapper"],"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/balysv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-09-16T20:54:56.000Z","updated_at":"2024-04-26T00:15:04.000Z","dependencies_parsed_at":"2022-08-25T10:01:35.903Z","dependency_job_id":null,"html_url":"https://github.com/balysv/material-ripple","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balysv%2Fmaterial-ripple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balysv%2Fmaterial-ripple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balysv%2Fmaterial-ripple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balysv%2Fmaterial-ripple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balysv","download_url":"https://codeload.github.com/balysv/material-ripple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631668,"owners_count":21136554,"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","java","material-ripple","ripple","wrapper"],"created_at":"2024-07-30T18:00:34.844Z","updated_at":"2025-04-12T20:38:13.172Z","avatar_url":"https://github.com/balysv.png","language":"Java","readme":"# ⚠️ The project is deprecated ⚠️\n\nAny issues or pull requests will not be addressed. Please consider forking your own version if changes are needed.\n\nMaterial Ripple Layout\n===============\n\nRipple effect wrapper for Android Views\n\n![Demo Image][1]\n\nIncluding in your project\n-------------------------\n\n```groovy\ncompile 'com.balysv:material-ripple:1.0.2'\n```\n\nCheck for latest version number on the widget below or visit [Releases](https://github.com/balysv/material-ripple/releases)\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.balysv/material-ripple/badge.svg?style=flat)](http://mvnrepository.com/artifact/com.balysv/material-ripple)\n\nUsage\n-----\n\nUse static initializer on your `View` (see `xml` attributes below for customization)\n\n```java\nMaterialRippleLayout.on(view)\n           .rippleColor(Color.BLACK)\n           .create();\n```\n\nOr wrap your `View` with `MaterialRippleLayout` in your layout file:\n\n```xml\n\u003ccom.balysv.materialripple.MaterialRippleLayout\n    android:id=\"@+id/ripple\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\u003e\n\n    \u003cButton\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"center\"\n        android:text=\"Button inside a ripple\"/\u003e\n\n\u003c/com.balysv.materialripple.MaterialRippleLayout\u003e\n```\n\nIf using in an `AdapterView` you must set `rippleInAdapter` to `true`\n\n\nConfigure using xml attributes or setters in code:\n\n```java\napp:mrl_rippleOverlay=\"true\"              // if true, ripple is drawn in foreground; false - background\napp:mrl_rippleColor=\"#ff0000\"             // color of ripple\napp:mrl_rippleAlpha=\"0.1\"                 // alpha of ripple\napp:mrl_rippleDimension=\"10dp\"            // radius of hover and starting ripple\napp:mrl_rippleHover=\"true\"                // if true, a hover effect is drawn when view is touched\napp:mrl_rippleRoundedCorners=\"10dp\"       // radius of corners of ripples. Note: it uses software rendering pipeline for API 17 and below\napp:mrl_rippleInAdapter=\"true\"            // if true, MaterialRippleLayout will optimize for use in AdapterViews\napp:mrl_rippleDuration=\"350\"              // duration of ripple animation\napp:mrl_rippleFadeDuration=\"75\"           // duration of fade out effect on ripple\napp:mrl_rippleDelayClick=\"true\"           // if true, delays calls to OnClickListeners until ripple effect ends\napp:mrl_rippleBackground=\"#FFFFFF\"        // background under ripple drawable; used with rippleOverlay=\"false\"\napp:mrl_ripplePersistent=\"true\"           // if true, ripple background color persists after animation, until setRadius(0) is called\n```\n\nSet an `OnClickListener` to `MaterialRippleLayout`:\n\n```java\nfindViewById(R.id.ripple).setOnClickListener(new View.OnClickListener() {\n    @Override public void onClick(View v) {\n        // handle me \n    }\n});\n```\n\nOr if using in an `AdapterView`, simply use `OnItemClickListener`\n\nSupport for Android api versions \u003c  14 \n-----\n\nFor those unlucky developers that need to support older versions than 14, there's a way to do it.\n\nYou can use this library in addition with Jake Wharton's animation backport (http://nineoldandroids.com/) changing the imports from ` import android.animation.*;` to: ` import com.nineoldandroids.animation.*;` ,\n`import android.util.Property`; to   `import com.nineoldandroids.util.Property;` and in MaterialRippleLayout.java file, calling function `shouldDelayChildPressedState()`  only if you're using api greater than 14.\n\n\nDeveloped By\n--------------------\nBalys Valentukevicius\n\nLicense\n-----------\n\n```\nCopyright 2015 Balys Valentukevicius\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[1]: https://raw.github.com/balysv/material-ripple/master/art/demo.gif\n","funding_links":[],"categories":["Index `(light-weight pages)`","MD","Index","Libs","\u003ca name=\"Ripple\"\u003eRipple\u003c/a\u003e"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget","Personal Blog"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalysv%2Fmaterial-ripple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalysv%2Fmaterial-ripple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalysv%2Fmaterial-ripple/lists"}