HTML/JavaScript小工具

HTML/JavaScript小工具

2013年4月4日 星期四

在AndEange中使用Gesturer 記得在onCreateEngineOptions中宣告好!!


public EngineOptions onCreateEngineOptions() {
// TODO Auto-generated method stub
myGestureDetector = new GestureDetector(this.getBaseContext(),new TestGesture());
final Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
return new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED
new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), camera);
}

沒有留言:

張貼留言