Code example for Matrix

Methods: createBitmappostScalepostTranslatesetRotate

    private Drawable[] mThumbs;
    private TransitionDrawable mThumbTransition;
    private boolean mShouldAnimateThumb;
    private final Resources mResources;
    // The "frame" is a drawable we want to put on top of the thumbnail. 
    public ThumbnailController(Resources resources,
            ImageView button, ContentResolver contentResolver) {
        mResources = resources;
        mButton = button;
        mContentResolver = contentResolver;
    public void setData(Uri uri, Bitmap original) {
        // Make sure uri and original are consistently both null or both 
        // non-null. 
        if (uri == null || original == null) {
            uri = null;
            original = null;
        mUri = uri;
    public void setUri(Uri uri) {
    	mUri = uri;
Experience pair programming with AI  Get Codota for Java