Android Live Wallpaper Animation
问题 What's the best way to display an animation as a live wallpaper? Right now I have a gif split into 11 pngs (one per frame) and then I just am doing public Bitmap frame0; ArrayList<Bitmap> frameArray = new ArrayList<Bitmap>(); frame0 = BitmapFactory.decodeResource(getResources(), R.drawable.nyancat0); frame0 = Bitmap.createScaledBitmap(frame0, minWidth, minHeight, true); frameArray.add(frame0); Then I just use a For Loop to loop through the frames and draw them on a canvas canvas.drawBitmap