Android Circular Progress Save

Android custom view that loads a circular progress indicator using ImageView or FrameLayout

Project README

Circular Progress

Hex.pm Platform

Portrait        Ring Samples        Gradient Samples

Preview in Android Studio

Android Studio Preview

Dependency

Latest stable version: Bintray Version

If you are working with gradle, add the dependency to your build.gradle file:

dependencies{
    implementation "com.github.franriadigos:circular-progress:<latest version>"
}

How to use:

Add ImageViewCircularProgress or FrameLayoutCircularProgress in the layout.

<com.franriadigos.view.ImageViewCircularProgress
        android:id="@+id/view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:scaleType="centerCrop"
        android:adjustViewBounds="true"
        android:src="@drawable/my_placeholder_image"
        app:progress="42"
        app:progressRingSize="10dp"
        app:progressRingCorner="ROUND"
        app:progressRingOutline="true"/>

Get the CircularProgress view in your activity or fragment.

ImageViewCircularProgress view = findViewById(R.id.view);

Set your desired progress

view.setProgress(59.5f);

Start the animation

view.startAnimation();

You can access the ObjectAnimator by calling getAnimator()

profile.getAnimator().addListener(new AnimatorListener());

License

Copyright 2015-2020 Fran Riadigos

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Open Source Agenda is not affiliated with "Android Circular Progress" Project. README Source: FranRiadigos/Android-Circular-Progress

Open Source Agenda Badge

Open Source Agenda Rating