Need help with CircleLoadingView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jhw-dev
406 Stars 62 Forks MIT License 24 Commits 0 Opened issues

Description

An image-view with circle loading animation

Services available

!
?

Need anything else?

Contributors list

No Data

CircleLoadingView

简体中文版

An image-view with circle loading animation

Android Arsenal

CircleLoadingView-screenshot

Integration

Android Studio

  allprojects {
      repositories {
          jcenter()
          maven { url "https://jitpack.io" }
      }
  }

dependencies { compile 'com.github.jhw-dev:CircleLoadingView:v1.3' }

Eclipse

Really? You need a new job!

Usage

CircleLoadingView

Declare a CircleLoadingView inside your XML layout file

<com.tengchong.android.circleloadingview android:id="@+id/loading" android:layout_width="100dp" android:layout_height="100dp" app:cl_circleradius="40dp" app:cl_circlestrokesize="5dp" app:cl_fillanimationduration="200" app:cl_src="@drawable/avatar"></com.tengchong.android.circleloadingview>

Or use CircleLoadingView from code dynamically && change percent of the circle.

        CircleLoadingView loadingView =new CircleLoadingView();
        loadingView.setImageBitmap(
                BitmapFactory.decodeResource(getResources(), R.drawable.avatar));
        loadingView.setPercent(88);

Customization

You can change several attributes in the XML file:

  • cl_circleRadius [dimension] --> the circle's radius
  • cl_circleStrokeSize [dimension] --> the circle's stroke size
  • cl_fillAnimationDuration [integer] --> duration of the animation when reached 100%
  • cl_src [dimension] --> Image drawable src.# Notice: CircleLoadingView only supports bitmapDrawable!

MIT License

The MIT License (MIT)

Copyright (c) 2015 聚会玩

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.