我对android非常陌生。我必须将图像动态加载到回收站视图行。由于空对象,我正在使用下面的代码和应用程序崩溃。从抽屉崩溃应用程序动态加载图像
String uri = "@drawable/menu_howtouse";
int imageResource = this.context.getResources().getIdentifier(uri, null, this.PACKAGE_NAME);
Drawable res = this.context.getResources().getDrawable(imageResource);
holder.iconImageView.setImageDrawable(res);
后堆栈跟踪 – Rahul