aligungor/android-wheel

WheelView should have another parent class

Opened this issue · 1 comments

After investigating the source code and android api docs I came out to 
conclusion that WheelView should extend AdapterView class.
That class extends View itself and has a method setAdapter which is common 
contract for every adapter-awared views.
See 
http://developer.android.com/reference/android/widget/AdapterView.html
for details. Thus WheelAdapter.setViewAdapter is redundant and method 
AdapterView.setAdapter must be used instead.

Original issue reported on code.google.com by buckel...@gmail.com on 3 Dec 2011 at 4:49

Also it is very strange that Wheel adapters does not provide access to 
underlying item itself... only item view (WheelViewAdapter.getItem(...)) or its 
text label (ArrayWheelAdapter.getItemText(int)).
For now I need to extends whatever class I need to provide this access 
method... It is not like in a "standard" adapter contract../

Original comment by buckel...@gmail.com on 11 Dec 2011 at 8:28