感谢老师花费这么长时间出的教程,学到了很多,老师的代码复用性还是比较高的,刚开始定义的时候不是很能理解,到了后期,才发现开始定义的代码复用性这么高,谢谢让我学习到了这么多的知识
2016-08-19
删除错误答案:在deleteOneWordEvent()中进行判断,for循环累加有多少是可见的,然后吧可见数和正确答案的长度进行相等判断,就可以解决,当然正确答案的长度需要减去1
2016-08-17
//设置增加与删除按钮的不可点击
btnDelete.setClickable(true);
btnTip.setClickable(true);
btnBack.setClickable(true);
btnCoinAdd.setClickable(true);
//金币数量变化
mCurrentCoins += 3;
mViewCurrentCoins.setText(mCurrentCoins + "");
btnDelete.setClickable(true);
btnTip.setClickable(true);
btnBack.setClickable(true);
btnCoinAdd.setClickable(true);
//金币数量变化
mCurrentCoins += 3;
mViewCurrentCoins.setText(mCurrentCoins + "");
2016-08-17
// 打乱文字顺序
for (int i = MyGridView.COUNTS_WORDS - 1; i >= 0; i--) {
int index = random.nextInt(i + 1);
String str = words[index];
words[index] = words[i];
words[i] = str;
}
for (int i = MyGridView.COUNTS_WORDS - 1; i >= 0; i--) {
int index = random.nextInt(i + 1);
String str = words[index];
words[index] = words[i];
words[i] = str;
}
2016-07-28