use of com.marshalchen.common.uimodule.ImageFilter.IImageFilter in project UltimateAndroid by cymcsg.
the class ImageFilterActivity method LoadImageFilter.
/**
* ����ͼƬfilter
*/
private void LoadImageFilter() {
Gallery gallery = (Gallery) findViewById(R.id.galleryFilter);
final ImageFilterAdapter filterAdapter = new ImageFilterAdapter(ImageFilterActivity.this);
gallery.setAdapter(new ImageFilterAdapter(ImageFilterActivity.this));
gallery.setSelection(2);
gallery.setAnimationDuration(3000);
gallery.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long id) {
IImageFilter filter = (IImageFilter) filterAdapter.getItem(position);
new processImageTask(ImageFilterActivity.this, filter).execute();
}
});
}
Aggregations