Error in displaying data with TextView.setText: Resources$NotFoundException: String resource ID #0x0

后端 未结 1 536
深忆病人
深忆病人 2020-12-22 01:24

I am getting this exception:

android.content.res.Resources$NotFoundException: String resource ID #0x0
<
相关标签:
1条回答
  • 2020-12-22 02:12

    You're accidentally calling the version of TextView.setText that takes an int resource ID.

    You should explicitly convert it to a String:

    holder.no_of_sems.setText(Integer.toString(cgpa.getNo_of_sems()));
    
    0 讨论(0)
提交回复
热议问题