android中baseAdapter中的getview三个参数的position指的是什么?
if(position==1){Log.v("shiji1",String.valueOf(position));viewHolder.count.setVisibili...
if(position == 1) {
Log.v("shiji1", String.valueOf(position));
viewHolder.count.setVisibility(View.GONE);
viewHolder.count1.setVisibility(View.VISIBLE);
viewHolder.count1.setText((String)mdata.get(position).get("count"));
} else {
viewHolder.count.setText((String)mdata.get(position).get("count"));
}
一共五个数据,为什么显示的时候“shiji1”显示了5次1 展开
Log.v("shiji1", String.valueOf(position));
viewHolder.count.setVisibility(View.GONE);
viewHolder.count1.setVisibility(View.VISIBLE);
viewHolder.count1.setText((String)mdata.get(position).get("count"));
} else {
viewHolder.count.setText((String)mdata.get(position).get("count"));
}
一共五个数据,为什么显示的时候“shiji1”显示了5次1 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询