• Stars
    star
    286
  • Rank 144,690 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A light Wheel Picker View for Android.

EasyPickerView

A light PickerView for Android.

ScreenShots

picker scale

Usage

layout

    <com.hzn.easypickerview.EasyPickerView
        android:id="@+id/cpv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="15dp"
        android:paddingRight="15dp"
        custom:epvRecycleMode="true"
        custom:epvTextColor="#4aa4a4"
        custom:epvTextMaxScale="2.0"
        custom:epvTextMinAlpha="0.35"
        custom:epvTextPadding="10dp"
        custom:epvTextSize="30sp"/>

Activity

    cpv.setDataList(dataList);
    cpv.setOnScrollChangedListener(new EasyPickerView.OnScrollChangedListener() {
        @Override
        public void onScrollChanged(int curIndex) {
            // your codes.
        }

        @Override
        public void onScrollFinished(int curIndex) {
            // your codes.
        }
    });