WheelPicker icon indicating copy to clipboard operation
WheelPicker copied to clipboard

"wheel_item_space" have no affect

Open verybluebot opened this issue 7 years ago • 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

verybluebot avatar Nov 01 '17 11:11 verybluebot

Hi, Barbara Thanks for the response, for some reason cant see this message in the issue on git, never mind...

I tryed to play with these values:

setVisibleItemCount() setItemSpace()

how can I control this 'TextMaxHeight'?

in any case none of those worked. NOTE: I need the height of the wheel be not changed.

Thanks On Fri, Nov 10, 2017 at 1:00 AM, Barbara Gomes [email protected] wrote:

Try to play around with the height of the Wheel and the visible items.

The item height will be calculated in terms of those constrains, like written in the code:

mTextMaxHeight * mVisibleItemCount + mItemSpace * (mVisibleItemCount - 1)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AigeStudio/WheelPicker/issues/125#issuecomment-343320051, or mute the thread https://github.com/notifications/unsubscribe-auth/AR4EE0rpFp2V26ZrUf7xGPYcXH1Tqyguks5s04QFgaJpZM4QOE8x .

verybluebot avatar Nov 11 '17 18:11 verybluebot

ItemSpace doesn't seem to work for me either.

plrdev avatar Nov 13 '17 13:11 plrdev

@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

barbaragomes avatar Nov 13 '17 18:11 barbaragomes

for me those two do nothing :/

On Nov 13, 2017 20:29, "Barbara Gomes" [email protected] wrote:

@verybluebot https://github.com/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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AigeStudio/WheelPicker/issues/125#issuecomment-344012853, or mute the thread https://github.com/notifications/unsubscribe-auth/AR4EE0LUtIlVBfWWpj1Cfa9b2HY2nuEaks5s2IqZgaJpZM4QOE8x .

verybluebot avatar Nov 13 '17 19:11 verybluebot