All Projects → akamud → MaterialSpinner-Xamarin

akamud / MaterialSpinner-Xamarin

Licence: MIT License
Xamarin bindings for MaterialSpinner by @ganfra

Programming Languages

C#
18002 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to MaterialSpinner-Xamarin

LaunchMapsPlugin
Launch External Maps Plugin for Xamarin and Windows
Stars: ✭ 49 (+226.67%)
Mutual labels:  xamarin, xamarin-android, xamarin-plugin
XamarinClipboardPlugin
Cross Platform Clipboard access for Xamarin
Stars: ✭ 24 (+60%)
Mutual labels:  xamarin, xamarin-android, xamarin-plugin
VersionTrackingPlugin
Version Tracking Plugin for Xamarin and Windows
Stars: ✭ 62 (+313.33%)
Mutual labels:  xamarin, xamarin-android, xamarin-plugin
Prototype.Forms.Controls
This sample app contains a random mixture of Xamarin/Xamarin.Forms controls, views, and functionality snippets that I've created.
Stars: ✭ 21 (+40%)
Mutual labels:  xamarin, xamarin-android, xamarin-plugin
Xamarin.Plugin.ImageEdit
Image Edit Plugin for Xamarin
Stars: ✭ 52 (+246.67%)
Mutual labels:  xamarin, xamarin-android
Xamarin.BookReader
Xamarin.Android复刻实现的 📕 "任阅" 网络小说阅读器 https://github.com/JustWayward/BookReader
Stars: ✭ 74 (+393.33%)
Mutual labels:  xamarin, xamarin-android
XamarinAzureChallenge
Create an iOS/Android app using Xamarin.Forms and connect it to a serverless Azure Function
Stars: ✭ 59 (+293.33%)
Mutual labels:  xamarin, xamarin-android
bottomnavigationviewex-android-binding
Xamarin.Android Binding Library for Ittianyu BottomNavigationViewEx
Stars: ✭ 25 (+66.67%)
Mutual labels:  xamarin, xamarin-android
UITestSampleApp
A sample app to demonstrate how to create Xamarin UITests using the Page Object architecture, Backdoor Methods and App Links (aka Deep Linking)
Stars: ✭ 38 (+153.33%)
Mutual labels:  xamarin, xamarin-android
vs-material-icons-generator
This plugin will help you to set material design icons to your Xamarin projects In Visual Studio.
Stars: ✭ 50 (+233.33%)
Mutual labels:  xamarin, xamarin-android
DarkModeSplashScreen
A sample app for iOS and Android written in Xamarin.Forms showing how to implement a Splash Page for Dark Mode
Stars: ✭ 28 (+86.67%)
Mutual labels:  xamarin, xamarin-android
XamarinIoTWorkshop
A workshop that demonstrates how to collect IoT data from a mobile device using a Xamarin app, aggregating the data to the cloud using Azure IoT Hub
Stars: ✭ 13 (-13.33%)
Mutual labels:  xamarin, xamarin-android
XamUI
Xamarin UI Challenges 🏆
Stars: ✭ 57 (+280%)
Mutual labels:  xamarin, xamarin-android
InvestmentDataSampleApp
This app utilizes a SQLite databse, MVVM, along with these Xamarin.Forms controls: Search Bar, Picker, Grid, StackLayout, Navigation Page, ListView, ViewCell. It also shows how to tweak the UI to best appear on larger tablet screens.
Stars: ✭ 56 (+273.33%)
Mutual labels:  xamarin, xamarin-android
Xama.JTPorts.ShowcaseView
Xamarin.Android Native showcase view.
Stars: ✭ 17 (+13.33%)
Mutual labels:  xamarin-android, xamarin-plugin
SimpleXamarinGraphQL
An iOS and Android app built in Xamarin.Forms demonstrating how to interact with GitHub's GraphQL API
Stars: ✭ 18 (+20%)
Mutual labels:  xamarin, xamarin-android
Xamarin.MediaGallery
This plugin is designed to picking and save images and video files from native gallery of Android and iOS devices and capture photos
Stars: ✭ 106 (+606.67%)
Mutual labels:  xamarin, xamarin-android
WeakEventListener
The WeakEventListener allows the owner to be garbage collected if its only remaining link is an event handler.
Stars: ✭ 25 (+66.67%)
Mutual labels:  xamarin, xamarin-android
XamSvg-Samples
Samples for Xamarin Svg enterprise cross platform and full featured Svg image control
Stars: ✭ 25 (+66.67%)
Mutual labels:  xamarin, xamarin-android
Xamarin.Forms-CardView
A Package to create a CardView using Xamarin.Forms that works on the three platforms (Android, iOS, UWP)
Stars: ✭ 65 (+333.33%)
Mutual labels:  xamarin, xamarin-components

MaterialSpinner-Xamarin


Xamarin bindings for MaterialSpinner by @ganfra

Spinner with Material Design - Down to API 9

This library provides you a Spinner with the Material style. You can use it like any regular Spinner. Add floating label text, hint and error messages.

Installing


NuGet package available:

PM> Install-Package MaterialSpinner-Xamarin

Usage

There is a sample project available here

Using in a XML:

<fr.ganfra.materialspinner.MaterialSpinner
    android:id="@+id/spinner"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" 
    app:ms_multiline="false"
    app:ms_hint="hint"
    app:ms_enableFloatingLabel="false"
    app:ms_enableErrorLabel="false"
    app:ms_floatingLabelText="floating label"
    app:ms_baseColor="@color/base"
    app:ms_highlightColor="@color/highlight"
    app:ms_errorColor="@color/error"
    app:ms_typeface="typeface.ttf"
    app:ms_thickness="2dp"
    app:ms_hintColor="@color/hint"
    app:ms_arrowColor="@color/arrow"
    app:ms_arrowSize="16dp"
    app:ms_alignLabels="false"
    app:ms_floatingLabelColor="@color/floating_label"/>

You can set a hint and a floating label text. If no floating label text is provided, the hint will be set instead.

You use it like a regular spinner, setting an adapter to it:

string[] ITEMS = {"Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6"};
var adapter = new ArrayAdapter<String>(this, Android.Resource.Layout.SimpleSpinnerItem, ITEMS);
adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
var spinner = FindViewById<MaterialSpinner>(Resource.Id.spinner1);
spinner.Adapter = adapter;

If you need to set an error message, you can do it the same way as an EditText:

// Activate
spinner.Error = "Error";
// Deactivate
spinner.Error = null;

You can choose to have a scrolling animation or to set the error message on multiple lines with the ms_multiline attribute in XML (default is true).

Gif example

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].