Karamunting.Android.Ramotion.FluidSlider
0.3.1.1
dotnet add package Karamunting.Android.Ramotion.FluidSlider --version 0.3.1.1
NuGet\Install-Package Karamunting.Android.Ramotion.FluidSlider -Version 0.3.1.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.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.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.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.1 // Install Karamunting.Android.Ramotion.FluidSlider as a Cake Tool #tool nuget:?package=Karamunting.Android.Ramotion.FluidSlider&version=0.3.1.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.Runtime;
using Android.Support.V7.App;
using Android.Views;
using Android.Widget;
using Ramotion.FluidSliderLib;
using R = Demo.Resource;
namespace Demo
{
[Register("id.karamunting.fluidsliderdemo.MainActivity")]
[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.SetBeginTrackingListener(
() => textView.Visibility = ViewStates.Invisible
);
slider.SetEndTrackingListener(
() => textView.Visibility = ViewStates.Visible
);
slider.SetPositionListener(
pos =>
{
var @value = (int)(min + total * pos);
slider.BubbleText = @value.ToString();
}
);
slider.Position = 0.52f;
slider.StartText = min.ToString();
slider.EndText = max.ToString();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid90 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
MonoAndroid 9.0
- Xamarin.Android.Support.v7.AppCompat (>= 28.0.0.3)
- Xamarin.Kotlin.StdLib (>= 1.3.50.1)
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 | 647 | 4/12/2020 |