{"id":13395888,"url":"https://github.com/traex/RippleEffect","last_synced_at":"2025-03-13T22:31:05.491Z","repository":{"id":21884685,"uuid":"25208398","full_name":"traex/RippleEffect","owner":"traex","description":"Implementation of Ripple effect from Material Design for Android API 9+","archived":false,"fork":false,"pushed_at":"2021-02-04T10:54:44.000Z","size":833,"stargazers_count":4929,"open_issues_count":54,"forks_count":1079,"subscribers_count":202,"default_branch":"master","last_synced_at":"2024-07-31T18:15:59.966Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/traex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-14T13:32:51.000Z","updated_at":"2024-07-24T11:48:19.000Z","dependencies_parsed_at":"2022-07-25T13:02:08.028Z","dependency_job_id":null,"html_url":"https://github.com/traex/RippleEffect","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traex%2FRippleEffect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traex%2FRippleEffect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traex%2FRippleEffect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traex%2FRippleEffect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traex","download_url":"https://codeload.github.com/traex/RippleEffect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382923,"owners_count":20282049,"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:35.052Z","updated_at":"2025-03-13T22:31:05.462Z","avatar_url":"https://github.com/traex.png","language":"Java","readme":"RippleEffect\n================\n\n![RippleEffect](https://github.com/traex/RippleEffect/blob/master/header.png)\n\nExpandableLayout provides an easy way to create a view called header with an expandable view. Both view are external layout to allow a maximum of customization. [You can find a sample](https://github.com/traex/ExpandableLayout/blob/master/sample/) that how to use an ExpandableLayout to your layout.\n\n![RippleEffect GIF](https://github.com/traex/RippleEffect/blob/master/demo.gif)\n\n### Integration\nThe lib is available on Maven Central, you can find it with [Gradle, please](http://gradleplease.appspot.com/#rippleeffect)\n\n``` xml\n\ndependencies {\n    compile 'com.github.traex.rippleeffect:library:1.3'\n}\n\n```\n\n### Usage\n\n#### RippleView\n\nDeclare a RippleView inside your XML layout file with a content like an ImageView or whatever.\n\n``` xml\n\u003ccom.andexert.library.RippleView\n  android:id=\"@+id/more\"\n  android:layout_width=\"?android:actionBarSize\"\n  android:layout_height=\"?android:actionBarSize\"\n  android:layout_toLeftOf=\"@+id/more2\"\n  android:layout_margin=\"5dp\"\n  rv_centered=\"true\"\u003e\n\n  \u003cImageView\n    android:layout_width=\"?android:actionBarSize\"\n    android:layout_height=\"?android:actionBarSize\"\n    android:src=\"@android:drawable/ic_menu_edit\"\n    android:layout_centerInParent=\"true\"\n    android:padding=\"10dp\"\n    android:background=\"@android:color/holo_blue_dark\"/\u003e\n\n\u003c/com.andexert.library.RippleView\u003e\n```\n\nIf you want to know when the Ripple effect is finished, you can set a listener on your view\n``` java\n    rippleView.setOnRippleCompleteListener(new RippleView.OnRippleCompleteListener() {\n\n        @Override\n        public void onComplete(RippleView rippleView) {\n            Log.d(\"Sample\", \"Ripple completed\");\n        }\n\n    });\n```\n\nIf you want to add an `OnClickListener` don't forget to add it to the RippleView like this:\n``` java\n    final RippleView rippleView = (RippleView) findViewById(R.id.rippleView);\n    rippleView.setOnClickListener(new View.OnClickListener() {\n        @Override\n        public void onClick(View v) {\n            //TODO: onRippleViewClick\n        }\n    });\n```\n\n\n### Customization\n\nYou can change several attributes in the XML file, you have to remove \"rv_\" if you are using a version below v1.1.1 :\n\n* app:rv_alpha [integer def:90 0-255] --\u003e Alpha of the ripple\n* app:rv_framerate [integer def:10] --\u003e Frame rate of the ripple animation\n* app:rv_rippleDuration [integer def:400] --\u003e Duration of the ripple animation\n* app:rv_ripplePadding [dimension def:0] --\u003e Add a padding to the ripple\n* app:rv_color [color def:@android:color/white] --\u003e Color of the ripple\n* app:rv_centered [boolean def:false] --\u003e Center ripple in the child view\n* app:rv_type [enum (simpleRipple, doubleRipple) def:simpleRipple] --\u003e Simple or double ripple\n* app:rv_zoom [boolean def:false] --\u003e Enable zoom animation\n* app:rv_zoomDuration [integer def:150] --\u003e Duration of zoom animation\n* app:rv_zoomScale [float def:1.03] --\u003e Scale of zoom animation\n\nFor each attribute you can use getters and setters to change values dynamically.\n\n### Troubleshooting\n\nIf you want to use the double ripple you have to set a background for the RippleView or for its child.\n\n#### Acknowledgements\n\nThanks to [Google](https://www.google.com/design/spec/material-design/introduction.html) for its Material Design :)\n\n### MIT License\n\n```\n    The MIT License (MIT)\n\n    Copyright (c) 2014 Robin Chutaux\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n```\n","funding_links":[],"categories":["Index `(light-weight pages)`","Java","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%2Ftraex%2FRippleEffect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraex%2FRippleEffect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraex%2FRippleEffect/lists"}