android - How to change/customize getItem method in custom array adapter? -
i want make custom getitem method in custom adapter class. however, when replace default getitem custom one, error tells me tht have implement default getitem method because extend baseadapter. when have both of them in there, still returning null when use in activity.
public imageview getitem(int rownum, int columnnum) { return gridcontent[rownum][columnnum]; } public object getitem(int i) { return null; }
you have class extends arrayadapter
a specific type belive in case imageview :-?
try :
public t getitem(int rownum, int columnnum) { return gridcontent[rownum][columnnum]; }
Comments
Post a Comment