package com.ijoomer.customviews; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.Gallery; @SuppressWarnings("deprecation") public class IjoomerGallery extends Gallery { public IjoomerGallery(Context context) { super(context); } public IjoomerGallery(Context context, AttributeSet attrs) { super(context, attrs); this.setStaticTransformationsEnabled(true); } public IjoomerGallery(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); this.setStaticTransformationsEnabled(true); } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { return true; } }