68
GitHub - chenshouyin/SatelliteMenu: 一行代码搞定Android弧形卫星动画菜单,支持上...
source link: https://github.com/chenshouyin/SatelliteMenu
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
- 支持上下左右四个方向展开弧形菜单
- 支持扩展菜单,理论上多少个子菜单都可以
- 支持自定义菜单图标和子菜单图标
- 支持自定义菜单弹出的圆弧半径
- 支持设置菜单按钮和子菜单按钮大小
- 支持是否显示子菜单文字
compile 'csy.menu.satellitemenulib:SatelliteMenu:1.0.3'
使用介绍:
xml属性 | 描述 | 值 |
---|---|---|
radius | 圆弧直径 | dimension |
menu_image_width | 菜单大小 | dimension |
menu_item_image_width | 子菜单大小 | dimension |
menu_item_text_size | 子菜单文字大小 | dimension |
menu_item_text_color | 子菜单文字颜色 | color |
menu_postion | 菜单展开方向 | left_top,right_top,left_bottom,right_bottom |
布局中使用
代码中使用
传送门 Github地址 https://github.com/chenshouyin/SatelliteMenu 喜欢的话给个Star哦
知识点总结
- 属性动画的应用
- 代码中动态添加布局
- 自定义View相关知识
- 设计模式:建造者模式(Builder)的应用
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK