Android Open Source - ByakuGallery Touch Image View Sample Activity






From Project

Back to project page ByakuGallery.

License

The source code is released under:

Apache License

If you think the Android project ByakuGallery 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 com.diegocarloslima.byakugallery.sample;
/*w  ww . j av a 2 s .  co  m*/
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;

import com.diegocarloslima.byakugallery.R;
import com.diegocarloslima.byakugallery.lib.TileBitmapDrawable;
import com.diegocarloslima.byakugallery.lib.TouchImageView;

import java.io.InputStream;

public class TouchImageViewSampleActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.touch_image_view_sample);

    final TouchImageView image = (TouchImageView) findViewById(R.id.touch_image_view_sample_image);
    final InputStream is = getResources().openRawResource(R.raw.android1);
    final Drawable placeHolder = getResources().getDrawable(R.drawable.android_placeholder);
    TileBitmapDrawable.attachTileBitmapDrawable(image, is, placeHolder, null);
  }
}




Java Source Code List

com.diegocarloslima.byakugallery.lib.FlingScroller.java
com.diegocarloslima.byakugallery.lib.GalleryViewPager.java
com.diegocarloslima.byakugallery.lib.MathUtils.java
com.diegocarloslima.byakugallery.lib.TileBitmapDrawable.java
com.diegocarloslima.byakugallery.lib.TouchGestureDetector.java
com.diegocarloslima.byakugallery.lib.TouchImageView.java
com.diegocarloslima.byakugallery.sample.GalleryViewPagerSampleActivity.java
com.diegocarloslima.byakugallery.sample.MainActivity.java
com.diegocarloslima.byakugallery.sample.TouchImageViewSampleActivity.java