问题:调试app时,可能有时需要注释掉某些代码,方便快速调试
android.content.res.Resources.getText(Resources.java:413)
android.widget.TextView.setText(TextView.java:6427)
...ImagePreviewActivity$SamplePagerAdapter.instantiateItem(ImagePreviewActivity.java:74)
...ImagePreviewActivity$SamplePagerAdapter.instantiateItem(ImagePreviewActivity.java:54)
android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1010)
android.support.v4.view.ViewPager.populate(ViewPager.java:1158)
解决方案:
显示TextView setText报错,原因是xml中组件被注释了,导致找不到Resource