{"id":18001539,"url":"https://github.com/hehonghui/ripplelayout","last_synced_at":"2025-03-26T08:30:49.376Z","repository":{"id":25563801,"uuid":"28997062","full_name":"hehonghui/ripplelayout","owner":"hehonghui","description":"RippleLayout library","archived":false,"fork":false,"pushed_at":"2015-01-10T07:38:01.000Z","size":336,"stargazers_count":50,"open_issues_count":1,"forks_count":25,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-21T11:50:35.169Z","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/hehonghui.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":"2015-01-09T02:37:00.000Z","updated_at":"2022-09-27T07:20:31.000Z","dependencies_parsed_at":"2022-09-08T14:01:15.911Z","dependency_job_id":null,"html_url":"https://github.com/hehonghui/ripplelayout","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/hehonghui%2Fripplelayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hehonghui%2Fripplelayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hehonghui%2Fripplelayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hehonghui%2Fripplelayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hehonghui","download_url":"https://codeload.github.com/hehonghui/ripplelayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618564,"owners_count":20645023,"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-10-29T23:17:54.574Z","updated_at":"2025-03-26T08:30:48.912Z","avatar_url":"https://github.com/hehonghui.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ripplelayout\n   这是一个类似于支付宝声波支付的波纹效果布局, 使用了NineOldAnimations动画库,使之可以兼容API 11以下的系统。效果如下:      \n\n\u003cimg src=\"http://img.blog.csdn.net/20150109114245750\" alt=\"\" width=\"200\" height=\"320\" style=\"border:1px solid black\"\u003e\n\n## 使用示例    \n   在布局文件中添加RippleLayout,并且将你的中心视图添加到RippleLayout中，例如 :     \n```xml\n\n    \u003corg.simple.ripple.RippleLayout\n        xmlns:ripple=\"http://schemas.android.com/apk/org.simple.ripplelayout\"\n        android:id=\"@+id/ripple_layout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        ripple:duration=\"3000\"\n        ripple:radius=\"32dp\"\n        ripple:rippleNums=\"1\"\n        ripple:scale=\"4\"\n        ripple:color=\"#8899CC\" \u003e\n\n        \u003cImageView\n            android:id=\"@+id/centerImage\"\n            android:layout_width=\"64dp\"\n            android:layout_height=\"64dp\"\n            android:layout_centerInParent=\"true\"\n            android:contentDescription=\"@string/app_name\"\n            android:src=\"@drawable/phone2\" /\u003e\n    \u003c/org.simple.ripple.RippleLayout\u003e\n```          \n\n    \n这样,图片就在RippleLayout的中心,RippleLayout会为你添加通过rippleNums指定的波形数量.   \n**注意**,上述布局中引用了xmlns:ripple=\"http://schemas.android.com/apk/org.simple.ripplelayout\"，这是RippleLayout的资源路径，修改成你包路径即可路径。       \n   更多详情请参考 : \u003ca href=\"http://blog.csdn.net/bboyfeiyu/article/details/42552249\" target=\"_blank\"\u003eMr.Simple的博客\u003c/a\u003e .          \n   \n   \n   \n**代码中启动动画**         \n   \n```java\n\n    ImageView imageview;\n    RippleLayout layout;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        layout = (RippleLayout) findViewById(R.id.ripple_layout);\n        imageview = (ImageView) findViewById(R.id.centerImage);\n        imageview.setOnClickListener(new OnClickListener() {\n\n            @Override\n            public void onClick(View v) {\n                if (layout.isRippleAnimationRunning()) {\n                    layout.stopRippleAnimation();\n                } else {\n                    layout.startRippleAnimation();\n                }\n            }\n        });\n    }\n```       \n\n\n\t","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhehonghui%2Fripplelayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhehonghui%2Fripplelayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhehonghui%2Fripplelayout/lists"}