android - My list is null after the first getView() -


i using 2 different lists because need information both. getitem(position) gets item mchampionlist can retrieve id , champion mchampionliststatic list. first time calls getview(), mchampionliststatic populated , can information needed. after that, mchampionliststatic null.

@override     public view getview(int position, view convertview, viewgroup parent) {     ///     //holder stuff happens here, removed save space//     ///         champion champion = getitem(position);         champion_static championstatic = mchampionliststatic.getchampionbyid(champion.getid());         holder.icon.setimageresource(mcontext.getresources().getidentifier(championstatic.getname().tolowercase(), "drawable", mcontext.getpackagename()));         holder.name.settext(championstatic.getname());          return convertview;     } 


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -