Android五子棋课程,画出的线有的透明有的不透明,求解

public 
WuziqiPanel(Context context, AttributeSet attrs) {    
super
(context, attrs);
    setBackgroundColor(
0x44ff0000
);
    init();
}
private void 
init() {    
mPaint
.setColor(
0x88000000
);    
mPaint
.setAntiAlias(
true
);    
mPaint
.setDither(
true
);    
mPaint
.setStyle(Paint.Style.
STROKE
);    
mWhitePiece
= BitmapFactory.
decodeResource
(getResources(),R.drawable.
stone_w2
);    
mBlackPiece
= BitmapFactory.
decodeResource
(getResources(),R.drawable.
stone_b1
);

}

 

慕粉3946782
浏览 1439回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android
Java