Spinner2 is a re-implementation of the default Android's spinner, with a simple way for control selection behavior.
- 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
repositories {
maven { url "https://jitpack.io" }
}
Step 2. Add the dependency in the form
dependencies {
compile 'com.github.scijoker:spinner2:1.0.1'
}
Example in app
module
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.