All Projects → tiper → Materialspinner

tiper / Materialspinner

Licence: apache-2.0
Implementation of a Material Spinner for Android with TextInputLayout functionalities

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Materialspinner

Smartmaterialspinner
The powerful android spinner library for your application
Stars: ✭ 108 (+0.93%)
Mutual labels:  material-design, material, dropdown, spinner
Materialtimelineview
With MaterialTimelineView you can easily create a material looking timeline.
Stars: ✭ 443 (+314.02%)
Mutual labels:  material-design, material, material-ui
Material Auto Rotating Carousel
Introduce users to your app with this Material-style carousel.
Stars: ✭ 400 (+273.83%)
Mutual labels:  material-design, material, material-ui
Materialfavoritebutton
Animated favorite/star/like button
Stars: ✭ 586 (+447.66%)
Mutual labels:  material-design, material, material-ui
Alyle Ui
Minimal Design, a set of components for Angular 9+
Stars: ✭ 234 (+118.69%)
Mutual labels:  material-design, material, material-ui
Materiallettericon
Material first letter icon like lollipop contacts icon. Letter(s) on a shape drawn on canvas.
Stars: ✭ 255 (+138.32%)
Mutual labels:  material-design, material, material-ui
Cardview
Material Design Cards ? How cool is that !
Stars: ✭ 101 (-5.61%)
Mutual labels:  material-design, material, material-ui
Material Singleinputform
A single EditText instead of a classical form. Library that implements flavienlaurent's singleinputform
Stars: ✭ 202 (+88.79%)
Mutual labels:  material-design, material, material-ui
React Saas Template
🌊 Template for building an SaaS / admin website using React + Material-UI
Stars: ✭ 942 (+780.37%)
Mutual labels:  material-design, material, material-ui
Shards Dashboard
🔥A beautiful Bootstrap 4 admin dashboard templates pack.
Stars: ✭ 1,143 (+968.22%)
Mutual labels:  material-design, material, material-ui
Mahapps.metro.iconpacks
Awesome icon packs for WPF and UWP in one library
Stars: ✭ 1,157 (+981.31%)
Mutual labels:  material-design, material, material-ui
Motion Shapeofview
Explain how to use MotionLayout with ShapeOfView
Stars: ✭ 236 (+120.56%)
Mutual labels:  material-design, material, material-ui
Material Admin
Free Material Admin Template
Stars: ✭ 219 (+104.67%)
Mutual labels:  material-design, material, material-ui
Sequent
A simple continuous animation library for Android UI.
Stars: ✭ 263 (+145.79%)
Mutual labels:  material-design, material, material-ui
Hubuntu Ui
Material Admin Dashboard Starter UI ( Ubuntu style ) - https://720kb.github.io/hubuntu-ui/
Stars: ✭ 207 (+93.46%)
Mutual labels:  material-design, material, material-ui
Android Iconics
Android-Iconics - Use any icon font, or vector (.svg) as drawable in your application.
Stars: ✭ 4,916 (+4494.39%)
Mutual labels:  material-design, material, material-ui
Togglebuttons
Android toggle buttons that adhere to the Material Design documentation.
Stars: ✭ 88 (-17.76%)
Mutual labels:  material-design, material, material-ui
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (+28.04%)
Mutual labels:  material-design, material, material-ui
Jekyll Material Theme
A Jekyll Theme based on Material Design using Materialize.
Stars: ✭ 165 (+54.21%)
Mutual labels:  material-design, material, material-ui
Slidetoact
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄
Stars: ✭ 783 (+631.78%)
Mutual labels:  material-design, material, material-ui

MaterialSpinner

Kotlin Version ktlint License

MaterialSpinner aims to provide a Material Design Spinner.

This widget is based on TextInputLayout.

For more information please check:

Screenshot

Dependency

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

Then, add the library to your module build.gradle

dependencies {
    implementation 'com.github.tiper:MaterialSpinner:latest.release.here'
    implementation 'com.android.support:design:android.design.version.here'
}

If your using the Material Components for Android, make sure you have android.useAndroidX=true and android.enableJetifier=true in your gradle.properties file!

Features

  • Quick way to select a value from a list.
  • Support for having no value selected or clearing it.
  • Styling and theming just like for TextInputLayout.
  • Showing a hint.
  • Showing an error.
  • Showing a prompt when spinnerMode is dialog.
  • Showing a bottom sheet when spinnerMode is bottomsheet.
  • Custom spinner drawables.
  • RTL support.

Usage

There is a sample provided which shows how to use the library, but for completeness, here is all that is required to get MaterialSpinner working:

XML:

<com.tiper.MaterialSpinner
    android:id="@+id/material_spinner"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

If you want the options to be presented to the user as a dialog window just add:

app:spinnerMode="dialog"

If you want the options to be presented to the user as a bottom sheet window just add:

app:spinnerMode="bottomsheet"

JAVA:

final MaterialSpinner materialSpinner = findViewById(R.id.material_spinner);
materialSpinner.setAdapter(adapter);

Kotlin (with synthetics):

material_spinner.adapter = adapter

That's it!

License

Copyright 2019 Tiago Pereira

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the 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].