Git Product home page Git Product logo

expandedcircleprogressview's Introduction

ExpandedCircleProgressView

this is a android-custom view to show progressing with an expanded circle.

Sample ExpandedCircleProgressView
ExpandedCircleProgressView

Overview

ExpandedCircleProgressView, helps you to show progress with expading circle with smooth animation.

Usage

Add ExpandedCircleProgressView namespace on the top element :

xmlns:tigerlee="http://schemas.android.com/apk/res-auto" 

Add namespace of ExpandedCircleProgressView :

<com.tigerlee.widget.ExpandedCircleProgressView
android:id="@+id/expanded_circle_progress"
android:layout_centerInParent="true"
android:layout_height="match_parent"/>

Supported Attributs

declare-styleable :

<declare-styleable name="ExpandedCircleProgressView">
	<attr name="innerCircleSize" format="dimension" />
	<attr name="outerCircleSize" format="dimension" />
	<attr name="innerCircleColor" format="color" />
	<attr name="outerCircleColor" format="color" />
	<attr name="textProgressColor" format="color" />
	<attr name="progressCircleColor" format="color" />
	<attr name="outerCircleLineWidth" format="dimension" />
	<attr name="textProgressSize" format="dimension" />
</declare-styleable>

Detail role of attributes :

XML Attribute Java Attribute Description
tigerlee:innerCircleSize setInnerCircleSize(int) Set size of the inner circle
tigerlee:outerCircleSize setOuterCircleSize(int) Set size of the inner circle
tigerlee:innerCircleColor setInnerCircleColor(int) Set color of the inner circle
tigerlee:outerCircleColor setOuterCircleColor(int) Set color of the outer circle
tigerlee:textProgressColor setProgressTextColor(int) Set color of the progress text
tigerlee:progressCircleColor setProgresColor(int) Set color of circle of expanding progress
tigerlee:outerCircleLineWidth setOuterCircleLineWidth(int) Set width of the outer circle line
tigerlee:textProgressSize setTextProgressSize(int) Set size of the progress text

Sample

Please follow these steps

SampleResult

Add expandedeCircleProgress view on layout :

android:id="@+id/expanded_circle_progress"
android:layout_centerInParent="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
tigerlee:innerCircleSize="40dp"
tigerlee:outerCircleSize="100dp"
tigerlee:innerCircleColor="@android:color/holo_orange_light"
tigerlee:outerCircleColor="@android:color/black"
tigerlee:outerCircleLineWidth="1dp"
tigerlee:progressCircleColor="@android:color/holo_orange_light"
tigerlee:textProgressColor="@android:color/white"
tigerlee:textProgressSize="20sp"

Get view from findbprogress with int value :

  mCircleProgressView = (ExpandedCircleProgressView) rootView.findViewById(R.id.expanded_circle_progress);

Set progress :

  mCircleProgressView.setProgress(mProgress);

Qustion?

Horyun Lee

Feel free to email at [email protected]

expandedcircleprogressview's People

Watchers

 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.