已采納回答 / perry14
<...code...>check 少了一個(gè)吧?應(yīng)該是四個(gè)。private boolean checkRightl(int x, int y, List& ? Point&cou points) {?? ? ? int count = 1;? ? ? ?for(int i = 1 ; i&oinMAX_WIN; i++){? ? ? ? ? ?if(points.contains(new Point(x -i,y-i)...
2016-04-08
最贊回答 / 閑逛的螞蟻
點(diǎn)擊悔棋按鈕的時(shí)候執(zhí)行如下方法,可連續(xù)悔棋/** * 悔棋 */ public void regret(){???? if(mIsWhite){//mIsWhite的狀態(tài)為true,表示前面走的是黑棋,也就是說(shuō)黑棋要悔棋一步???? mBlackArray.remove(mBlackArray.size() - 1);???? }else{//表示白棋要悔棋???? mWhiteArray.remove(mWhiteArray.size() - 1);???? }???? //上一個(gè)走的棋...
2016-04-08
最贊回答 / 老王哥哥
你的drawPieces方法,就是繪制棋子的方法中,canvas.drawBitmap的參數(shù)不對(duì),1 - ratioPieceOfLineHeight) / 2這部分沒(méi)有放到括號(hào)里吧?放到括號(hào)里在乘以mLineHeight。完整的這一句是:canvas.drawBitmap(whitePiece, (whitePoint.x + (1 - ratioPieceOfLineHeight) / 2) * mLineHeight, (whitePoint.y + (1 - ratioPieceOfLineHei...
2016-04-07
最新回答 / cquxcm
父布局要relativelayout然后棋盤(pán)就是那個(gè)panel要match_parent,而且centerInParent = true
2016-04-04
最新回答 / MonKing__
電腦配置跟不上 ?看看配置 差不多 給自己加個(gè)固態(tài)硬盤(pán) ?內(nèi)存條應(yīng)該在8G 就可以運(yùn)行AS了
2016-04-03
已采納回答 / 無(wú)牙仔
getSize()和getMode()方法是MeasureSpec的靜態(tài)方法,而不是widthMeasureSpec中的方法,widthMeasureSpec只是個(gè)int型變量。
2016-04-01
已采納回答 / 無(wú)牙仔
command+o:按類名搜索,command+shift+o:按文件名搜索,command+f:當(dāng)前文件中搜索,command+shift+f:全局搜索
2016-04-01