Spinner2

Additional

Language
Java
Version
1.0.1 (Oct 31, 2015)
Created
Oct 12, 2015
Updated
Oct 31, 2015 (Retired)
Owner
Andrew Black (ablack13)
Contributor
Andrew Black (ablack13)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

Spinner2

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

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.