有人遇见过ImageSwitcher.setFactory(this);报空的问题吗?
调试了一下ImageSwitcher里面是有值的。代码如下: myImageSwitcher01 = (ImageSwitcher)findViewById(R.id.myImageSwitcher);
myImageSwitcher01.setFactory(this);报错说myImageSwitcher01.setFactory(this);空指针。纠结。
调试了一下ImageSwitcher里面是有值的。代码如下: myImageSwitcher01 = (ImageSwitcher)findViewById(R.id.myImageSwitcher);
myImageSwitcher01.setFactory(this);报错说myImageSwitcher01.setFactory(this);空指针。纠结。
你这行代码是在setCoontentView后面吗?