Java Code Examples for android.widget.ImageView#getDrawingCache()

The following examples show how to use android.widget.ImageView#getDrawingCache() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
public void thumbNailScaleAnim(ImageView view) {
	view.setDrawingCacheEnabled(true);
	 Bitmap bitmap = view.getDrawingCache();
	  ActivityOptionsCompatICS options = ActivityOptionsCompatICS.makeThumbnailScaleUpAnimation(
	    view, bitmap, 0, 0);
	  // Request the activity be started, using the custom animation options.
	  ActivityCompatICS.startActivity(MainActivity.this, intent, options.toBundle());
	  //view.setDrawingCacheEnabled(false);
}
 
Example 2
/**
 * 这个方法可以用于4.x上,是将一个小块的Bitmpat进行拉伸的动画
 */
private void showThumbNailScaleAnim(ImageView view) {
    view.setDrawingCacheEnabled(true);
    Bitmap bitmap = view.getDrawingCache();
    if (mTestSwitch) {
        ActivityOptionsCompat optionsCompat
                = ActivityOptionsCompat.makeThumbnailScaleUpAnimation(
                view,
                bitmap,
                0, 0
        );
        ActivityCompat.startActivity(
                OptionsCompatDemoActivity.this,
                mIntent,
                optionsCompat.toBundle());
    } else {
        ActivityOptionsCompatICS optionsCompatICS
                = ActivityOptionsCompatICS.makeThumbnailScaleUpAnimation(
                view,
                bitmap,
                0, 0
        );
        ActivityCompatICS.startActivity(
                OptionsCompatDemoActivity.this,
                mIntent,
                optionsCompatICS.toBundle());
        // view.setDrawingCacheEnabled(false);
    }
}
 
Example 3
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 4
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 5
Source Project: Android   File: PhotoViewAttacher.java    License: MIT License 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 6
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 7
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 8
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 9
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 10
Source Project: Album   File: PhotoViewAttacher.java    License: Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 11
Source Project: Nimingban   File: PhotoViewAttacher.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 12
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 13
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 14
Source Project: MultiView   File: ImageViewScaler.java    License: Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 15
Source Project: GalleryFinal   File: PhotoViewAttacher.java    License: Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 16
public Bitmap getVisibleRectangleBitmap() {
 ImageView imageView = getImageView();
 return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 17
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 18
Source Project: Tweetin   File: PhotoViewAttacher.java    License: Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 19
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 20
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}