lynMarkdigRenderTest99 1.0.0
dotnet add package lynMarkdigRenderTest99 --version 1.0.0
NuGet\Install-Package lynMarkdigRenderTest99 -Version 1.0.0
<PackageReference Include="lynMarkdigRenderTest99" Version="1.0.0" />
paket add lynMarkdigRenderTest99 --version 1.0.0
#r "nuget: lynMarkdigRenderTest99, 1.0.0"
// Install lynMarkdigRenderTest99 as a Cake Addin #addin nuget:?package=lynMarkdigRenderTest99&version=1.0.0 // Install lynMarkdigRenderTest99 as a Cake Tool #tool nuget:?package=lynMarkdigRenderTest99&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();
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- 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 | 0 | 11/24/2020 |