gkshdk91 / android-wheel

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

WheelView should have another parent class #26

Open GoogleCodeExporter opened 9 years ago

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

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