How should I make this type of progress bar in android..
Example Link https://dribbble.com/shots/3231407-Progress-Bar-Animated
I want to create this type of progress bar in my android application with same design.
How should I make this type of progress bar in android..
Example Link https://dribbble.com/shots/3231407-Progress-Bar-Animated
I want to create this type of progress bar in my android application with same design.
You can use default progressbar and just add below code to your progressbar in xml
style="?android:attr/progressBarStyleHorizontal"
android:rotation="270"
Check this git repository.
Progress Bar (XML Component)
<RelativeLayout
android:id="@+id/parent_swipeable_view"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimary">
<View
android:id="@id/swipeable_view"
android:layout_width="?attr/actionBarSize"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorAccent"/>
</RelativeLayout>
ProgressListener
swipeCoordinator.setProgressListener(new SwipeCoordinator.ProgressListener() {
@Override public void onProgress(float progress) {
tvAccepted.setScaleX(progress);
tvAccepted.setScaleY(progress);
tvAccepted.setAlpha(progress);
}
});
Hope you got the answer here.