@@ -0,0 +1,1054 @@
+package com.doridori.android.lib.view;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Bitmap;%0Aimport android.graphics.Matrix;%0Aimport android.util.AttributeSet;%0A%0Aimport com.android.volley.toolbox.NetworkImageView;%0A%0A/**%0A * @author abdyer%0A */%0Apublic class NetworkImageViewTopCrop extends NetworkImageView%0A%7B%0A    public NetworkImageViewTopCrop(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public NetworkImageViewTopCrop(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A    %7D%0A%0A    public NetworkImageViewTopCrop(Context context, AttributeSet attrs, int defStyle) %7B%0A        super(context, attrs, defStyle);%0A    %7D%0A%0A    @Override%0A    public void setImageBitmap(Bitmap bm) %7B%0A        super.setImageBitmap(bm);%0A        if(bm != null) %7B%0A            setScaleType(ScaleType.MATRIX);%0A            Matrix matrix = getImageMatrix();%0A            float scaleFactor = getWidth()/(float)getDrawable().getIntrinsicWidth();%0A            matrix.setScale(scaleFactor, scaleFactor, 0, 0);%0A            setImageMatrix(matrix);%0A        %7D%0A    %7D%0A%7D%0A

Add NetworkImageViewTopCrop class for use with Volley library