getitemId功能?
holder.seconds.setText(Math.round(getItemId(position)) + "\"");
ViewGroup.LayoutParams lp = holder.length.getLayoutParams();
lp.width = (int) (mMinItemWidth + (mMaxitemWidth / 60f * getItem(position).time));
麻煩問一下,這個getItemId會返回什么?為什么后邊加“”就出現時間長度了?
2016-07-28
其實就是mDatas.get(position).time
這么寫好理解些,個人覺得。。。
2015-12-21
holder.seconds.setText(Math.round(getItem(position).time)+"\"");
是getItem而不是getItemId,要獲得time