public GameView(Context context) {
super(context);
addView(
LayoutInflater.from(getContext()).inflate(R.layout.game_view, null),
new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
this.gameManager = new GameManager(getContext());
this.surfaceView = (SurfaceView) findViewById(R.id.surface_view);
this.scoreView = (TextView) findViewById(R.id.txt_score);
this.highScoreView = (TextView) findViewById(R.id.txt_high_score);
this.whiteView = findViewById(R.id.view_white);
this.downArrowView = (ImageView) findViewById(R.id.img_arrow_down);
this.arrowFadeOutAnim = AnimationUtils.loadAnimation(context, R.anim.arrow_fade_out);
SurfaceHolder surfaceHolder = surfaceView.getHolder();
surfaceHolder.addCallback(this);
surfaceHolder.setFormat(PixelFormat.TRANSPARENT);
surfaceView.setBackgroundColor(Color.TRANSPARENT);
surfaceView.setZOrderOnTop(true);
}