Code example for PorterDuffXfermode

0
public class ProfileBannerImageView extends ClickableImageView implements IExtendedView, Constants { 
 
	private static final int[] COLORS = new int[] { 0xFFFFFFFF, 0x00FFFFFF };
	private static final int[] COLORS_REVERSED = new int[] { 0x00FFFFFF, 0xFFFFFFFF };
	private static final float[] POSITIONS = new float[] { 0.0f, 1.0f };
	private static final PorterDuffXfermode DST_IN = new PorterDuffXfermode(PorterDuff.Mode.DST_IN);
	private final Paint mPaint = new Paint();
 
	private LinearGradient mShader;
	private OnSizeChangedListener mOnSizeChangedListener;
 
	public ProfileBannerImageView(final Context context) {
		this(context, null);
	} 
 
	public ProfileBannerImageView(final Context context, final AttributeSet attrs) {
		this(context, attrs, 0);
	} 
 
	public ProfileBannerImageView(final Context context, final AttributeSet attrs, final int defStyle) {
Contextual code suggestions in your IDE  Get Codota for Java