Coder Social home page Coder Social logo

commoncircleview's Introduction

CommonCircleView

一个带阴影效果的圆形控制的View,可以上下左右中进行控制 用法:

 <!--   app:center_text="@string/tv"  中间的文本
        app:center_icon="@drawable/ok_tv_normal" 中间的图标 两个都设置优先使用图标
        app:center_is_can_click="true"   中间是否可以点击 默认可以
        app:control_radius="85dp"  圆的半径 设置这个来控制view的大小,设置宽高没有用的
        app:first_icon="@drawable/up_tv" //第一个图标 图标顺序为顺时针 上 右 下 左
        app:four_icon="@drawable/left_tv" 第四个图标
        app:icon_num="4" //设置图标的个数不包括中间的
        app:second_icon="@drawable/right_tv" 第二个图标
        app:third_icon="@drawable/down_tv" 第三个图标
        -->

<com.at.smarthome.commoncircleview
        android:id="@+id/cv_tv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:center_icon="@drawable/ok_tv_normal"
        app:center_is_can_click="true"
        app:control_radius="85dp"
        app:first_icon="@drawable/up_tv"
        app:four_icon="@drawable/left_tv"
        app:icon_num="3"
        app:second_icon="@drawable/right_tv"
        app:third_icon="@drawable/down_tv" />

本圆形控制View,支持中间小圆里可以放文字或者图标,圆边上的图标最多支持4个图标,可以通过xml自定义属性动态配置1-4个图标。还可以为其点击区域添加点击事件。非常灵活 具体详解介绍请访问https://blog.csdn.net/u014795729/article/details/105204708 如果觉得对你有用,给个star,(^__^)

commoncircleview's People

Contributors

linux-liu avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  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.