GithubHelp home page GithubHelp logo

ringview's Introduction

RingView

带阴影效果图

image

    <com.taoyixun.ringviewlib.RingView
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:layout_centerInParent="true"
        app:ringView_background_color="@android:color/white"
        app:ringView_ring_end_color="@color/colorAccent"
        app:ringView_ring_margin="20dp"
        app:ringView_ring_max="100"
        app:ringView_ring_progress="50"
        app:ringView_ring_progress_unit="%"
        app:ringView_ring_start_color="@color/colorPrimary"
        app:ringView_ring_width="40dp"
        app:ringView_shadow_color="#cccccc"
        app:ringView_shadow_width="1dp"
        app:ringView_text="Progress:"
        app:ringView_text_auto_color="true"
        app:ringView_text_color="@color/colorAccent"
        app:ringView_text_margin="10dp"
        android:onClick="OnRingViewClick"
        app:ringView_text_size="18sp" />

无阴影效果图

image

    <com.taoyixun.ringviewlib.RingView
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:layout_centerInParent="true"
        app:ringView_background_color="@android:color/white"
        app:ringView_ring_end_color="@color/colorAccent"
        app:ringView_ring_margin="0dp"
        app:ringView_ring_max="100"
        app:ringView_ring_progress="80"
        app:ringView_ring_progress_unit="%"
        app:ringView_ring_start_color="@color/colorPrimary"
        app:ringView_ring_width="40dp"
        app:ringView_shadow_color="#cccccc"
        app:ringView_shadow_width="0dp"
        app:ringView_text="Progress:"
        app:ringView_text_auto_color="true"
        app:ringView_text_color="@color/colorAccent"
        app:ringView_text_margin="10dp"
        app:ringView_text_size="18sp" />

属性

  • ringView_shadow_width : 阴影宽度
  • ringView_shadow_color : 阴影颜色
  • ringView_ring_margin : 内环外边距
  • ringView_ring_width : 内环宽度
  • ringView_ring_start_color : 内环开头颜色
  • ringView_ring_end_color : 内环末尾颜色
  • ringView_ring_progress : 进度
  • ringView_ring_progress_unit : 进度单位
  • ringView_ring_max : 最大进度
  • ringView_background_color : 背景颜色
  • ringView_text_color : 文本颜色
  • ringView_text : 文本
  • ringView_text_size : 文本字体大小
  • ringView_text_margin : 文本边距
  • ringView_text_auto_color : 文本颜色是否随进度颜色变化而变化
  • ...

ringview's People

Contributors

xutao29 avatar

Watchers

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