Giter Club home page Giter Club logo

rulerview's Introduction

RulerView

尺子控件 RulerView

FourStylesOfRuler

属性:

序号 属性名 属性值 说明
1 lineColor color 刻度线颜色
2 textColor color 文本颜色
3 xOry int 刻度尺方向 (x轴/y轴)
4 pOrn int 刻度尺方向 (正向/反向)
5 textSize dimension 刻度值文本大小
6 lineWidth dimension 刻度线宽度
7 lineLength dimension 刻度线最大长度
8 lengthOfRuler int 尺子长度(单位:mm)

引用:

    maven {
            url "https://jitpack.io"
          }
   implementation 'com.github.Ztech-G:RulerView:1.0.1'

使用:

<com.ztech.lib.RulerView
        android:id="@+id/rv1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#8A215CAC"
        app:lengthOfRuler="50"
        app:pOrn="POSITIVE"
        app:lineColor="#DE1414"
        app:textColor="#055223"
        app:textSize="20sp"
        app:lineLength="30dp"
        app:lineWidth="2dp"
        app:xOry="Y_AXIS" />

rulerview's People

Contributors

ztech-g 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.