已采納回答 / 愛你的笑
怎么沒有代碼貼出來?如果布局下沒有問題的話,可能是在myAdapter.java或者是在MainActivity下代碼出現(xiàn)錯誤,漏寫也是很有可能的!自己查找一下!
2016-10-30
最贊回答 / CoolComma
你直接在CommonAdapter<T>的構(gòu)造方法里面加入?yún)?shù)傳入R.layout.item_xxx就行了。public CommonAdapter(Context context, List<T> datas,int itemLayoutId) { ? ?mContext = context; ? ?mInflater = LayoutInflater.from(context);? ?mDatas = datas;? ?mItemLayoutId = itemLayoutId;...
2016-10-14