当前位置: 代码迷 >> 综合 >> The method getResources() is undefined for the type
  详细解决方案

The method getResources() is undefined for the type

热度:80   发布时间:2023-12-17 22:20:07.0

holder.iv.setImageDrawable(getResources().getDrawable(localGroup.getImageId()));

改为

holder.iv.setImageDrawable(contextAdapter.getResources().getDrawable(localGroup.getImageId()));

  相关解决方案