MikeWallaceDev/android-wheel

add possibility to display only the current item when stopped

Opened this issue · 2 comments

In my use-case I need to display only the current item, not the previous item, 
the current and the next.
Only when the user does scroll with the finger, then the previous and the next 
appear, for the time that the user picks values.
When the user is done picking a value, the previous and next appear again.

This patch adds an option to do that.

NOTE: this patch and the one for bug #13 could be combined in a new API

setDisplayOptions(int bitmask)

with bitmask values:
DISPLAY_OPTION_DISPLAY_SHADOWS
DISPLAY_OPTION_DISPLAY_ONLY_CURRENT_ITEM_EXCEPT_ON_SCROLL (or something like 
that)

Original issue reported on code.google.com by etouz...@gmail.com on 28 Feb 2011 at 2:30

Attachments:

sorry the first patch had a bug inside, this one is correct.

Original comment by etouz...@gmail.com on 28 Feb 2011 at 2:57

Attachments:

Thank you for the good idea!

I suppose the wheel view should provide just base wheel features, like 
scrolling, rendering items via adapters, drawing. But there should be the 
ability to extend all these features, to have behavior defined by you.
So the wheel view should be "tuned" either by delivered classes or by using 
configuration objects.

Original comment by yuri.kan...@gmail.com on 3 Mar 2011 at 4:59