Karamunting.Android.Ramotion.FluidSlider
0.3.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Karamunting.Android.Ramotion.FluidSlider --version 0.3.1
NuGet\Install-Package Karamunting.Android.Ramotion.FluidSlider -Version 0.3.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Karamunting.Android.Ramotion.FluidSlider" Version="0.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Karamunting.Android.Ramotion.FluidSlider --version 0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Karamunting.Android.Ramotion.FluidSlider, 0.3.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Karamunting.Android.Ramotion.FluidSlider as a Cake Addin
#addin nuget:?package=Karamunting.Android.Ramotion.FluidSlider&version=0.3.1
// Install Karamunting.Android.Ramotion.FluidSlider as a Cake Tool
#tool nuget:?package=Karamunting.Android.Ramotion.FluidSlider&version=0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Example
// Created by Rofiq Setiawan (rofiqsetiawan@gmail.com)
using Android.App;
using Android.OS;
using Android.Support.V7.App;
using Android.Views;
using Android.Widget;
using Kotlin;
using Ramotion.FluidSliderLib;
using R = FluidSliderDemo.Resource;
namespace FluidSliderDemo
{
[Activity(MainLauncher = true)]
public class MainActivity : AppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(R.Layout.activity_main);
var textView = FindViewById<TextView>(R.Id.textView);
const int max = 45;
const int min = 10;
var total = max - min;
var slider = FindViewById<FluidSlider>(R.Id.fluidSlider);
slider.BeginTrackingListener = new Function0<Unit>(
() =>
{
textView.Visibility = ViewStates.Invisible;
return Unit.Instance;
}
);
slider.EndTrackingListener = new Function0<Unit>(
() =>
{
textView.Visibility = ViewStates.Visible;
return Unit.Instance;
}
);
slider.PositionListener = new Function1<Java.Lang.Float, Unit>(
pos =>
{
slider.BubbleText = pos.FloatValue().ToString("0.00");
return Unit.Instance;
}
);
slider.Position = 0.52f;
slider.StartText = min.ToString();
slider.EndText = max.ToString();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid81 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
MonoAndroid 8.1
- Xamarin.Android.Support.v7.AppCompat (>= 28.0.0.1)
- Xamarin.Kotlin.StdLib (>= 1.3.31)
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 |
---|---|---|
0.3.1.1 | 601 | 4/12/2020 |