Git Product home page Git Product logo

lifeclockview's Introduction

高仿【时光提醒】生命时钟View

使用Canvas绘制的生命时钟View,效果如下所示:

支持的自定义属性:

属性名 类型 默认值 说明
lcv_age_text_color color #333333 表盘未到达当前年龄年龄的字体颜色
lcv_past_age_text_color color #C5C5C5 表盘已超过当前年龄的字体颜色
lcv_age_text_size dimension 22sp 表盘年龄字体大小
lcv_age_text_offset dimension 24dp 表盘年龄字体中心与表盘半径的偏移量
lcv_zero_age_down_circle_radius dimension 4dp 0岁下方圆点的半径
lcv_zero_age_down_circle_color color #F7C747 0岁下方圆点的颜色
lcv_zero_age_down_circle_offset dimension 5dp 0岁下方圆点的偏移量
lcv_center_circle_radius dimension 6dp 中心圆点的半径
lcv_center_circle_color color #000000 中心圆点的颜色
lcv_pointer_line_width dimension 4dp 指针的宽度
lcv_pointer_line_color color #000000 指针的颜色
lcv_current_max_age integer 80 表盘中显示的最大年龄,不可超过MAX_AGE(120)

lifeclockview's People

Contributors

hurryyu avatar

Stargazers

VegetableDog avatar  avatar  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.