Android DrawBitmap绘制图像
import android.app.Activity;import android.os.Bundle;import android.util.DisplayMetrics;import android.view.KeyEvent;public class Test_DrawBitmap extends Activity { /** Called when the activity is first created. */private GameView gv = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); DisplayMetrics dm = new DisplayMetrics(); this.getWindowManager().getDefaultDisplay().getMetrics(dm); gv = new GameView(this,dm.widthPixels,dm.heightPixels); setContentView(gv); }@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) {return gv.onKeyDown(keyCode, event);} }?