https://github.com/hehonghui/materiallayout
materiallayout library and demo.
https://github.com/hehonghui/materiallayout
Last synced: over 1 year ago
JSON representation
materiallayout library and demo.
- Host: GitHub
- URL: https://github.com/hehonghui/materiallayout
- Owner: hehonghui
- License: mit
- Created: 2015-01-10T13:23:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-11T04:36:32.000Z (over 11 years ago)
- Last Synced: 2025-03-21T11:50:34.470Z (over 1 year ago)
- Language: Java
- Size: 1.04 MB
- Stars: 34
- Watchers: 4
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
MaterialLayout
===================
MaterialLayout是一个能够在低版本的Android 系统中实现点击布局中任何视图都会产生波纹效果的布局,它继承自RelativeLayout,因此能够当做普通的RelativeLayout使用,如果需要其他布局实现该功能,参考该布局实现即可。也可以使用Proxy代理所有的操作,将各个操作封装到一个代理类中,布局类只需要调用代理类来完成相应的工作即可,这样在多种布局都实现这种效果时能够避免代码重复。
MaterialLayout的使用示例如下:
```xml
```
注意不要com.example.materialdemo替换为你工程的包名。
运行一下就可以看到效果了。