Same code on getView and getDropDownView on ANDROID spinner -
i read this question, making me understand why must override getdropdownview
, getview
within spinneradapter
class:
spinneractionadapter extends arrayadapter<string> implements spinneradapter
the problem have exact same code both in getdropdownview
, getview
, not think beautiful solution.
does uses spinneradapter
have code duplicated well? have improve solution?
note: code working there no need post it; looks unusual because have lot of duplicated code.
call getview getdropdownview , homecoming result
@override public view getdropdownview(int position, view convertview, viewgroup parent) { homecoming getview(position, convertview, parent); }
android spinner
No comments:
Post a Comment