devaige/WheelPicker

"wheel_item_space" have no affect

verybluebot opened this issue · 4 comments

"wheel_item_space" have no effect. void setItemSpace(int space); method have effect either

xml:

        <com.aigestudio.wheelpicker.WheelPicker
            android:id="@+id/wheelPicker"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:wheel_item_space="20dp"/>

Java:

        WheelPicker wheelPicker = (WheelPicker) findViewById(R.id.wheelPicker);
        wheelPicker.setItemSpace(20);
        wheelPicker.setAtmospheric(true);
        wheelPicker.setData(testList);

help

ItemSpace doesn't seem to work for me either.

@verybluebot Sorry, I deleted my response because after further analise I still have the same issue where ItemSpace makes no difference for me either.

I get the height I want by playing around with both methods:

setVisibleItemCount() setItemSpace()

Sorry again for that