Reputation: 399
IS there a library I can use to implement a horizontally-scrolling number picker such as the one shown below:
Upvotes: 3
Views: 1548
Reputation: 13555
You need to make it custom as per requirement.
<com.wefika.horizontalpicker.HorizontalPicker
xmlns:picker="http://schemas.android.com/apk/res/com.wefika.horizontalpicker"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/textColor"
android:textSize="@dimen/textSize"
android:ellipsize="none | start | middle | end | marquee"
android:marqueeRepeatLimit="-1"
picker:values="@array/values"
picker:dividerSize="@dimen/itemPadding"
picker:sideItems="@integer/sideItems" />
Follow this
Upvotes: 1