我有onOptionsItemSelected的代码,如下所示:
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_draw:
draw();
return true;
case R.id.action_settings:
openSettings();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
我应该为draw()写什么来放置下面的图像
android:icon="@drawable/ic_action_draw"
在画布的特定坐标中?像:
canvas.drawBitmap(bmp, 250, 500, null);
提前谢谢你,