課程
/移動開發(fā)
/Android
/Android必學(xué)-異步加載
老師講的很好,但是在跟著老師的進度中,別的問題沒有,就是在利用URL在ListView中得到ImageView中老是報空指針
2015-12-24
源自:Android必學(xué)-異步加載 4-3
正在回答
你是不是把mlistView寫成了mImageView正確答案:ImageView imageView = (ImageView) mlistView.findViewWithTag(mUrl);
肯定上面實例化出現(xiàn)問題,list的xml文件是否配置對。
是不是Adapter中g(shù)etCount沒有給返回值或者不對
舉報
了解Android中的異步加載處理方法,這是面試問的最多的知識點
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2015-12-31
你是不是把mlistView寫成了mImageView
正確答案:ImageView imageView = (ImageView) mlistView.findViewWithTag(mUrl);
2015-12-28
肯定上面實例化出現(xiàn)問題,list的xml文件是否配置對。
2015-12-27
是不是Adapter中g(shù)etCount沒有給返回值或者不對