ProgressProfileView

Additional

Language
Java
Version
demo/3.0.0 (May 23, 2020)
Created
Aug 24, 2015
Updated
May 23, 2020
Owner
Fran Riádigos (FranRiadigos)
Contributor
Fran Riádigos (FranRiadigos)
1
Activity
Badge
Generate
Download
Source code

Advertising

Circular Progress

                

Preview in Android Studio

Dependency

Latest stable 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.