Пример #1
0
  private void initBallSkin(Context context) {
    Bitmap ballSkinFull =
        BitmapFactory.decodeResource(
            getResources(),
            dataHolder.getConfiguration() == null
                ? R.drawable.balls
                : dataHolder.getConfiguration().getSkin());

    dataHolder.setBallSkin(ballSkinFull);
    dataHolder.setExploseBallSkin(
        BitmapFactory.decodeResource(getResources(), R.drawable.explosion));
  }
Пример #2
0
 private void initBackgroundImage() {
   dataHolder.setBackgroundImage(
       BitmapFactory.decodeResource(getResources(), R.drawable.background));
 }