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

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -