本文整理了Java中android.widget.ImageView.postInvalidate()
方法的一些代码示例,展示了ImageView.postInvalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.postInvalidate()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:postInvalidate
暂无
代码示例来源:origin: qiujuer/Genius-Android
@Override
public void call() {
mView.postInvalidate();
mLoading.stop();
mButton.setVisibility(View.VISIBLE);
isBlurring = false;
}
});
代码示例来源:origin: stackoverflow.com
private LoadHiResImageTask loadHiResImageTask = new LoadHiResImageTask();
private class LoadHiResImageTask extends AsyncTask<Double, Void, Bitmap> {
/** The system calls this to perform work in a worker thread and
* delivers it the parameters given to AsyncTask.execute() */
protected Bitmap doInBackground(Double... numbers) {
return getCroppedBitmap(
// You will have to change first parameter here!
Uri.parse(imagesToCrop[0]),
numbers[0].intValue(), numbers[1].intValue(),
numbers[2], numbers[3], numbers[4], numbers[5]);
}
/** The system calls this to perform work in the UI thread and delivers
* the result from doInBackground() */
protected void onPostExecute(Bitmap result) {
ImageView hiresImage = (ImageView) findViewById(R.id.hiresImage);
hiresImage.setImageBitmap(result);
hiresImage.postInvalidate();
}
}
代码示例来源:origin: PrivacyApps/document-viewer
@Override
public void onImageLoaded(final Bitmap image) {
if (image != null && imageView.getTag() == newTF) {
imageView.setImageBitmap(image);
imageView.postInvalidate();
}
}
});
内容来源于网络,如有侵权,请联系作者删除!