Giter Club home page Giter Club logo

satellitemenu's Introduction

特性:

  • 支持上下左右四个方向展开弧形菜单
  • 支持扩展菜单,理论上多少个子菜单都可以
  • 支持自定义菜单图标和子菜单图标
  • 支持自定义菜单弹出的圆弧半径
  • 支持设置菜单按钮和子菜单按钮大小
  • 支持是否显示子菜单文字

效果图:
效果图

使用

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)的应用


我的博客
微信公众号
我的简书
我的GitHub,喜欢的话给个star吧

satellitemenu's People

Contributors

chenshouyin avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.