ImageButton用canvus旋转后点不中,但还能在原位置点中ImageButton ibutton= (ImageButton) findViewById(R.id.btn_ibutton);
switch ( mOrientation ) {
case 0:
canvas.translate(0, 0);
canvas.rotate(-mOrientation, width / 2, height / 2);//旋转后新位置就点不到了
canvas.translate(mStartCoordinates[0],0);
break;
switch ( mOrientation ) {
case 0:
canvas.translate(0, 0);
canvas.rotate(-mOrientation, width / 2, height / 2);//旋转后新位置就点不到了
canvas.translate(mStartCoordinates[0],0);
break;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货