see at night are written : holder.apptitle.setText (. (String) list.get (position) get ("apptitle"));
But I write compiled through ah. .
------ Solution ---------------------------------------- ----
landlord has the wrong places , findViewById signature fewer things.
holder.apptitle = (TextView)convertView.findViewById(R.id.tv_item1);
holder.apptico = (TextView)convertView.findViewById(R.id.tv_item);
------ eference ------------------------------------- -
you can put a little detail? ? My new infrastructure is poor
------ eference ------------------------------------ ---
public View getView (int position, View convertView, ViewGroup parent) {
ViewHolder holder = null;
if (convertView == null) {
holder = new ViewHolder ();
convertView = inflater.inflate (R.layout.list, null);
holder.apptitle = (TextView) convertView.findViewById (R.id.tv_item1);
; holder.apptico = (TextView) convertView.findViewById (R.id.tv_item);
convertView.setTag (holder);
}
------ eference ----------------------------------- ----
positive solution ! But ViewHolder holder = null; feeling a little redundant
------ eference ----------------------------- ----------
really is the problem. . Here even wrong . .
Thank you ah ! !
------ eference --------------------------------------- < br> there is a problem , ah, I write , it seems intelligent display an Item data ah , this should be how to solve ah ?
没有评论:
发表评论