Android Open Source - collage-lwp Start Page Collage






From Project

Back to project page collage-lwp.

License

The source code is released under:

Apache License

If you think the Android project collage-lwp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package pohkahkong.livewallpaper.collage;
/*w  w  w. j  ava  2 s .co m*/
import pohkahkong.livewallpaper.collage.CollageWallpaperService.CollageWallpaperEngine;
import android.graphics.Canvas;
import android.graphics.Color;

/**
 * 
 * @author Poh Kah Kong
 *
 */
public class StartPageCollage extends Collage {    
  public StartPageCollage(CollageWallpaperEngine wallpaperEngine, ImageDevice imageDevice, int width, int height, 
              float initialScaleFactor, boolean isLockTransformation) {    
    super(wallpaperEngine, imageDevice, width, height, 0, false, Color.WHITE, Border.MEDIUM, initialScaleFactor, isLockTransformation);    
    // TODO Auto-generated constructor stub  
    imageDevice.loadStartPageCollage(this, width, height);
  }
  
  @Override
  protected void initDimension() {
    // TODO Auto-generated method stub    
  }  

  @Override
  public void draw(Canvas canvas) {    
    // TODO Auto-generated method stub
    super.draw(canvas);
    if (images[0]!=null)
      canvas.drawBitmap(images[0], 0, 0, paint);    
  }

}




Java Source Code List

pohkahkong.livewallpaper.collage.CollageWallpaperService.java
pohkahkong.livewallpaper.collage.Collage.java
pohkahkong.livewallpaper.collage.EightImagesCollage.java
pohkahkong.livewallpaper.collage.FiveImagesCollage.java
pohkahkong.livewallpaper.collage.FourImagesCollage.java
pohkahkong.livewallpaper.collage.ImageAdapter.java
pohkahkong.livewallpaper.collage.ImageDevice.java
pohkahkong.livewallpaper.collage.ImageItem.java
pohkahkong.livewallpaper.collage.ImageNumberDialog.java
pohkahkong.livewallpaper.collage.OneImageCollage.java
pohkahkong.livewallpaper.collage.PathDialog.java
pohkahkong.livewallpaper.collage.Preferences.java
pohkahkong.livewallpaper.collage.SevenImagesCollage.java
pohkahkong.livewallpaper.collage.SixImagesCollage.java
pohkahkong.livewallpaper.collage.StartDialog.java
pohkahkong.livewallpaper.collage.StartPageCollage.java
pohkahkong.livewallpaper.collage.ThreeImagesCollage.java
pohkahkong.livewallpaper.collage.TwoImagesCollage.java