Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 我如何比较可见性和Tic tac toe_Android_Visibility_Tic Tac Toe - Fatal编程技术网

Android 我如何比较可见性和Tic tac toe

Android 我如何比较可见性和Tic tac toe,android,visibility,tic-tac-toe,Android,Visibility,Tic Tac Toe,嘿,我需要帮助,我正试着做这个游戏,但是我对“如果”的句子有问题 当3个圆圈可见时,现在我想让行可见,但代码不起作用 if ( cir9.getVisibility() == View.VISIBLE && cir8.getVisibility() == View.VISIBLE && cir7.getVisibility() == View.VISIBLE ) { linea_horizontal.setVisibility(Vi

嘿,我需要帮助,我正试着做这个游戏,但是我对“如果”的句子有问题

当3个圆圈可见时,现在我想让行可见,但代码不起作用

if (
    cir9.getVisibility() == View.VISIBLE &&
    cir8.getVisibility() == View.VISIBLE &&
    cir7.getVisibility() == View.VISIBLE
) {
    linea_horizontal.setVisibility(View.VISIBLE);
}
使用什么方法


显示
圆圈
类和错误堆栈跟踪,如果您得到任何错误。nop两者都没有,并且没有错误。我尝试使用Sajmon的代码,当我将isShown==false放入时,会显示该行,但当它为true时,如果(cir9.isShown()==false){linea_horizontal.setVisibility(View.VISIBLE);}
if (cir7.isShown() && cir8.isShown() && cir9.isShown()) {
   // make your work
}
else {
  // are not visible
}