ImageButton用canvus旋转后点不中了

andylao62 2011-12-02 05:27:29
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;
...全文
103 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ffyd2000 2011-12-02
  • 打赏
  • 举报
回复
canvas是啥呢?

80,337

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧