Back to project page ByakuGallery.
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.
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); } }