最近,android工作室做了一些完全不合逻辑的事情,彻底疯了。
看看控制台上的指纹:
I/System.out: 0 + 518 < 518 is true
I/System.out: 518 + 518 < 518 is true
然后看看代码:

System.out.print(j + " + " + squareSize + " < " + squareWidth);

if (j + squareSize < screenSizeY) {
    squareHeight = squareSize;
    System.out.print(" is true");
} else {
    squareHeight = screenSizeY - j;
    System.out.print(" is false");
}

没有其他线程可以更改这些变量。我是在监督一些显而易见的事情,还是安卓工作室昨晚喝得太多了?

最佳答案

看看这两行:

(j + " + " + squareSize + " < " + squareWidth)


if (j + squareSize < screenSizeY)

如果squareWidth等于screenSizeY则为醉酒,否则为:)

10-06 14:30
查看更多