講師回答 / hyman
目前,上述課程不支持多布局的情況,不過我在github添加了多布局的支持https://github.com/hongyangAndroid/base-adapter-helper?, 代碼不一定一模一樣,可以借鑒。
2015-04-19
講師回答 / hyman
目前,上述課程不支持多布局的情況,不過我在github添加了多布局的支持https://github.com/hongyangAndroid/base-adapter-helper , 代碼不一定一模一樣,可以借鑒。
2015-04-19
已采納回答 / hyman
恩,不是單例,會根據傳入的參數去返回ViewHolder,如果當前convertView中已經setTag為ViewHolder則直接返回,否則根據參數構建個新的ViewHolder,并通過setTag綁定。
2015-04-17