Xama.JTPorts.RippleBackground
1.0.0
dotnet add package Xama.JTPorts.RippleBackground --version 1.0.0
NuGet\Install-Package Xama.JTPorts.RippleBackground -Version 1.0.0
<PackageReference Include="Xama.JTPorts.RippleBackground" Version="1.0.0" />
paket add Xama.JTPorts.RippleBackground --version 1.0.0
#r "nuget: Xama.JTPorts.RippleBackground, 1.0.0"
// Install Xama.JTPorts.RippleBackground as a Cake Addin
#addin nuget:?package=Xama.JTPorts.RippleBackground&version=1.0.0
// Install Xama.JTPorts.RippleBackground as a Cake Tool
#tool nuget:?package=Xama.JTPorts.RippleBackground&version=1.0.0
Xamarin Animated Circle Loading View
C# Port of the Android Java library AnimatedCircleLoadingView by jlmd
A determinate/indeterminate loading view animation. Based on android-watch-loading-animation by Nils Banner
Namespace: Xama.JTPorts.AnimatedCircleLoadingView
Basic Usage:
Create control in your xml layout:
<Xama.JTPorts.AnimatedCircleLoadingView.AnimatedCircleLoadingView
android:id="@+id/circle_loading_view_indeterminate"
android:layout_width="250dp"
android:layout_height="250dp"
android:background="@color/white" />
Indeterminate Progress
Get control and assign the colors, this is important as currently the control can't infer these if not provided
AnimatedCircleLoadingView animatedCircleLoadingView = FindViewById<AnimatedCircleLoadingView>(Resource.Id.circle_loading_view_indeterminate);
animatedCircleLoadingView.MainColor = Resource.Color.colorPrimaryDark;
animatedCircleLoadingView.SecondaryColor = Resource.Color.risualOrange;
animatedCircleLoadingView.TextColor = Resource.Color.colorAccent;
animatedCircleLoadingView.CheckMarkTintColor = Color.White;
You can define a center body of text to sit inside of the loading view if needed
animatedCircleLoadingView.TitleText = "Loading";
Then simply start the animation
animatedCircleLoadingView.StartIndeterminate();
Determinate Progress
Get control and assign the colors, this is important as currently the control can't infer these if not provided
AnimatedCircleLoadingView animatedCircleLoadingView = FindViewById<AnimatedCircleLoadingView>(Resource.Id.circle_loading_view_indeterminate);
animatedCircleLoadingView.MainColor = Resource.Color.colorPrimaryDark;
animatedCircleLoadingView.SecondaryColor = Resource.Color.risualOrange;
animatedCircleLoadingView.TextColor = Resource.Color.colorAccent;
animatedCircleLoadingView.CheckMarkTintColor = Color.White;
Start the animation
animatedCircleLoadingView.StartDeterminate();
Then simply set the percentage using this method (takes an integer value)
animatedCircleLoadingView.SetPercentage(50);
Currently when the control hits 100 percent it automatically adds the FinishedOK view, but you can also fire this manually.
animatedCircleLoadingView.StopOk();
or the failed view
animatedCircleLoadingView.StopFailure();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid81 is compatible. |
-
MonoAndroid 8.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 501 | 4/15/2020 |
Release 1.0.0 - Initial release.