for(byte i=0;i<2;i++){
Tools.drawClipImg(canvas, paint, IBM.bitMenuWords, x,
nameY+IBM.bitGameName.getHeight()-8+(countMenu-1)*(8+IBM.bitWordBackOne.getHeight()),
IBM.bitMenuWords.getWidth(), IBM.bitMenuWords.getHeight()/MenuWord.length, countMenu-1);
}不知道为什么这样循环切割就会报空指针的错。
Tools.drawClipImg(canvas, paint, IBM.bitMenuWords, x,
nameY+IBM.bitGameName.getHeight()-8+(countMenu-1)*(8+IBM.bitWordBackOne.getHeight()),
IBM.bitMenuWords.getWidth(), IBM.bitMenuWords.getHeight()/MenuWord.length, countMenu-1);
}不知道为什么这样循环切割就会报空指针的错。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货