private PictureElement getDummyScreenElement() { PictureElement screenElement = new PictureElement( graphicsView.getRootDrawableElement(), graphicsView, new BitmapDrawable( drawActivity.getResources(), BitmapFactory.decodeResource(drawActivity.getResources(), R.raw.test))); int left = 30, top = 35; PixelPoint tl = (PixelPoint) screenElement.getTopLeft(); tl.setOffsetX(left); tl.setOffsetY(35); int width = 20, height = 24; screenElement.setSize(width, height); return screenElement; }
@Override protected void onPause() { super.onPause(); zombieGame.createSoundPool(); }