ww6015132 / android-wheel

Automatically exported from code.google.com/p/android-wheel
0 stars 0 forks source link

add possibility to display only the current item when stopped #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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