{"id":18001554,"url":"https://github.com/hehonghui/materiallayout","last_synced_at":"2025-03-26T08:30:50.561Z","repository":{"id":25622598,"uuid":"29057817","full_name":"hehonghui/materiallayout","owner":"hehonghui","description":"materiallayout library and demo.","archived":false,"fork":false,"pushed_at":"2015-01-11T04:36:32.000Z","size":1093,"stargazers_count":34,"open_issues_count":0,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T11:50:34.470Z","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-10T13:23:06.000Z","updated_at":"2019-09-26T08:02:40.000Z","dependencies_parsed_at":"2022-07-29T13:19:12.705Z","dependency_job_id":null,"html_url":"https://github.com/hehonghui/materiallayout","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%2Fmateriallayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hehonghui%2Fmateriallayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hehonghui%2Fmateriallayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hehonghui%2Fmateriallayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hehonghui","download_url":"https://codeload.github.com/hehonghui/materiallayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618572,"owners_count":20645024,"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:55.860Z","updated_at":"2025-03-26T08:30:49.875Z","avatar_url":"https://github.com/hehonghui.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"MaterialLayout\n===================\n   MaterialLayout是一个能够在低版本的Android 系统中实现点击布局中任何视图都会产生波纹效果的布局，它继承自RelativeLayout，因此能够当做普通的RelativeLayout使用，如果需要其他布局实现该功能，参考该布局实现即可。也可以使用Proxy代理所有的操作，将各个操作封装到一个代理类中，布局类只需要调用代理类来完成相应的工作即可，这样在多种布局都实现这种效果时能够避免代码重复。\n   MaterialLayout的使用示例如下:      \n```xml\n\n    \u003corg.simple.MaterialLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:ml=\"http://schemas.android.com/apk/res/com.example.materialdemo\"\n    android:id=\"@+id/layout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_margin=\"5dp\"\n    android:background=\"#f0f0f0\"\n    android:gravity=\"center\"\n    ml:duration=\"200\"\n    ml:alpha=\"200\"\n    ml:scale=\"1.2\"\n    ml:color=\"#FFD306\" \u003e\n\n    \u003cButton\n        android:id=\"@+id/my_button\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"#33CC99\"\n        android:padding=\"10dp\"\n        android:text=\"@string/click\"\n        android:textSize=\"20sp\" /\u003e\n\n    \u003cImageView\n        android:id=\"@+id/my_imageview1\"\n        android:layout_width=\"100dp\"\n        android:layout_height=\"100dp\"\n        android:layout_below=\"@id/my_button\"\n        android:layout_marginTop=\"30dp\"\n        android:background=\"#33CC99\"\n        android:contentDescription=\"@string/app_name\"\n        android:padding=\"10dp\"\n        android:src=\"@drawable/ic_launcher\" /\u003e\n\n\u003c/org.simple.MaterialLayout\u003e\t\n```     \n\n   注意不要com.example.materialdemo替换为你工程的包名。      \n   运行一下就可以看到效果了。         \n   \u003cimg src=\"http://img.blog.csdn.net/20150110214259223\" width=\"200\" height=\"320\" /\u003e\n\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhehonghui%2Fmateriallayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhehonghui%2Fmateriallayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhehonghui%2Fmateriallayout/lists"}