Giter Club home page Giter Club logo

scrollrulerview's Introduction

ScrollRulerView

Android滑动卷尺控件

效果图

gif(有点被拉伸了):
image1
screenshot:
image2

使用方法

直接布局里引用即可:

    <ccy.scrollrulerview.ScrollRulerView
        android:layout_width="match_parent"
        android:layout_height="150dp"/>

可用的属性:

xml属性 对应方法 作用 默认值
primary_color setPrimaryColor 当前刻度文字颜色 0xFF3CB371
primary_text_size setPrimaryTextSize 当前刻度文字大小 30sp
text_color setTextColor 刻度文字颜色 0xFF000000
text_size setTextSize 刻度文字大小 15sp
line_color setLineColor 刻度线颜色 0xFF888888
rulerBackgroundColor setRulerBackground 刻度版背景颜色 透明
unit setUnit 单位 kg
start_num setStartNum 起点值 0
end_num setEndNum 终点值 100
min_gap setMinGap 最小刻度间隔 10dp
/ setCurrentValue 设置当前刻度值 起点值

scrollrulerview's People

Contributors

ccy0122 avatar yongchenrc avatar

Stargazers

 avatar Randy avatar Pranav Lathigara avatar MAY3AM avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

msdgwzhy6

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.