好的,所以我有我的数组,我正在调用我的数组,但它不会更新画布的背景?我究竟做错了什么?也许一些教程链接在这里会有所帮助。谢谢。
int[] myImageList = {
R.drawable.lettersa, R.drawable.lettersb,
R.drawable.lettersc, R.drawable.lettersd,
R.drawable.letterse, R.drawable.lettersf, R.drawable.lettersg,
R.drawable.lettersh, R.drawable.lettersi, R.drawable.lettersj,
R.drawable.lettersk, R.drawable.lettersl, R.drawable.lettersm,
R.drawable.lettersn, R.drawable.letterso, R.drawable.lettersp,
R.drawable.lettersq, R.drawable.letterss, R.drawable.letterst,
R.drawable.lettersu, R.drawable.lettersv, R.drawable.lettersw,
R.drawable.lettersx, R.drawable.lettersy, R.drawable.lettersz};
mNextBtn.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
int i;
if (mNextBtn.equals(mNextBtn)) {
for (i=0;i<myImageList.length;i++)
{
mSCanvas.setBackgroundResource(i);
}
return;
}
mNextBtn.setEnabled(mSCanvas.isUndoable());
}
});