android.content.res.Resources$NotFoundException: String resource ID #0x2

報錯啦,遇到好屢次,記錄下來:blog 定位到這句話:class 百度後,獲得答案:當調用setText()方法時若是傳入int型是不會被當成內容而是resourceID來使用。百度 因而,轉換爲String類型就行了。方法
相關文章
相關標籤/搜索