我使用的持有人从解析图像设置为我的图像视图,下面是下面的代码得到错误,而从parse设置图像的ImageView
holder.rank.setText(worldpopulationlist.get(position).getRank());
holder.country.setText(worldpopulationlist.get(position).getCountry());
holder.population.setText(worldpopulationlist.get(position).getPopulation());
holder.flag.setImageResource(Integer.parseInt(worldpopulationlist.get(position).getFlag()));
而下面是由Android工作室给出的错误
* java.lang.NumberFormatException:无效INT: “http://listview123.herokuapp.com/parse/files/hlkhlkhyuiyemnbbmbackguyweuiyqw/10ad83c5546b993c18be84402e0f2bff_android_1.png” *
在此先感谢
非常感谢M4lik。 –