Coder Social home page Coder Social logo

dashlineview's Introduction

DashLineView

两头两个可以调节的半圆,中间用可控虚线连接,横竖方向可控的自定义View 图片

<!--两边两个半圆,中间一条虚线-->
<declare-styleable name="DashLineView">
    <!--半圆的半径-->
    <attr name="dlv_semicircle_radius" format="dimension|reference" />
    <!--半圆的颜色 默认白色-->
    <attr name="dlv_semicircle_color" format="color|reference" />
    <!--虚线的长度-->
    <attr name="dlv_dash_line_width" format="dimension|reference" />
    <!--虚线的间距-->
    <attr name="dlv_dash_line_gap" format="dimension|reference" />
    <!--虚线的高度-->
    <attr name="dlv_dash_line_height" format="dimension|reference" />
    <!--虚线的颜色 默认白色-->
    <attr name="dlv_dash_line_color" format="color|reference" />
    <!--整体的方向 默认水平-->
    <attr name="dlv_dash_line_orientation">
        <enum name="horizontal" value="0" />
        <enum name="vertical" value="1" />
    </attr>
    <!--第一个半圆是否展示 默认展示-->
    <attr name="dlv_semicircle_first_show" format="boolean" />
    <!--第二个半圆是否展示 默认展示-->
    <attr name="dlv_semicircle_last_show" format="boolean" />
    <!--第一个半圆距离虚线的margin 默认是0-->
    <attr name="dlv_dash_line_first_margin" format="dimension|reference" />
    <!--第二个半圆距离虚线的margin 默认是0-->
    <attr name="dlv_dash_line_last_margin" format="dimension|reference" />
</declare-styleable>

dashlineview's People

Contributors

jasonmouse 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.