Android Wheel Picker library
Supports from Android SDK version 16 and above.
Android doesn't have an inbuilt wheel picker view, so this was build to provide similair features like its iOS counterpart.
This library provides two types of wheel picker views - Vertical and Horizontal.
Gradle dependency:
Add the following to your project level build.gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add this to your app build.gradle:
dependencies {
compile 'com.github.vikramezhil:WheelPicker:1.0.3'
}
Maven:
Add the following to the section of your pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the following to the section of your pom.xml:
<dependency>
<groupId>com.github.vikramezhil</groupId>
<artifactId>WheelPicker</artifactId>
<version>1.0.3</version>
</dependency>
Vertical Wheel Picker:
<com.github.vikramezhil.wheelpicker.view.WheelPicker
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:wheelPickerBgColor="@color/colorAccent"
app:wheelPickerDividerColor="@android:color/white"
app:wheelPickerItemSelectedBgColor="@color/colorAccent"
app:wheelPickerItemUnselectedBgColor="@color/colorAccent"
app:wheelPickerItemsTextBold="true"
app:wheelPickerItemsTextItalic="true"
app:wheelPickerOrientationVertical="true"
app:wheelPickerScaleDownEnabled="true"
app:wheelPickerItemsUnselectedTextAlpha="0.8"
app:wheelPickerItems="@array/app_items"/>
Horizontal Wheel Picker:
<com.github.vikramezhil.wheelpicker.view.WheelPicker
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:wheelPickerBgColor="@color/colorAccent"
app:wheelPickerDividerColor="@android:color/white"
app:wheelPickerItemSelectedBgColor="@color/colorAccent"
app:wheelPickerItemUnselectedBgColor="@color/colorAccent"
app:wheelPickerItemsTextBold="true"
app:wheelPickerItemsTextItalic="true"
app:wheelPickerOrientationVertical="false"
app:wheelPickerScaleDownEnabled="true"
app:wheelPickerItemsUnselectedTextAlpha="0.8"
app:wheelPickerItems="@array/app_items"/>
For a detailed documentation 📔, please have a look at the Wiki.
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.