implemented CustomCocos2dxActivity class to override default layout of cocos2d-x