Skip to content

Spinner2 is a re-implementation of the default Android's spinner, with a simple way for control selection behavior.

Notifications You must be signed in to change notification settings

ablack13/spinner2

Repository files navigation

Spinner2

Spinner2 is a re-implementation of the default Android's spinner, with a simple way for control selection behavior.

ezgif com-video-to-gif

Supported features

  • Enable/Disable autostart call onItemSelected(AdapterView<?> arg0, View arg1, int position, long arg3) after adapter is assigned: spinner.setAdapter(adapter, withAction); to a widget
  • Enable/Disable call item click action after calling spinner.setSelection(withAction, pos);

where withAction is a boolean flag for enable/disable call item click action

Setup

Step 1. Add the JitPack repository to your build file
repositories {
       maven { url "https://jitpack.io" }
   }

Step 2. Add the dependency in the form

  dependencies {
          compile 'com.github.scijoker:spinner2:1.0.1'
  }

How to use

Example in app module

License

Copyright 2015 Andrew Prayzner

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.

About

Spinner2 is a re-implementation of the default Android's spinner, with a simple way for control selection behavior.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages