Search in sources :

Example 1 with IImageFilter

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();
        }
    });
}
Also used : IImageFilter(com.marshalchen.common.uimodule.ImageFilter.IImageFilter) Gallery(android.widget.Gallery) AdapterView(android.widget.AdapterView) ImageView(android.widget.ImageView) View(android.view.View) AdapterView(android.widget.AdapterView) TextView(android.widget.TextView)

Aggregations

View (android.view.View)1 AdapterView (android.widget.AdapterView)1 Gallery (android.widget.Gallery)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 IImageFilter (com.marshalchen.common.uimodule.ImageFilter.IImageFilter)1