本文整理了Java中android.widget.ImageView.onDetachedFromWindow()
方法的一些代码示例,展示了ImageView.onDetachedFromWindow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.onDetachedFromWindow()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:onDetachedFromWindow
暂无
代码示例来源:origin: igreenwood/SimpleCropView
@Override protected void onDetachedFromWindow() {
mExecutor.shutdown();
super.onDetachedFromWindow();
}
代码示例来源:origin: dinuscxj/LoadingDrawable
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
stopAnimation();
}
代码示例来源:origin: jiangqqlmj/FastDev4Android
@Override
protected void onDetachedFromWindow() {
mAttacher.cleanup();
super.onDetachedFromWindow();
}
代码示例来源:origin: jeasonlzy/NineGridView
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
setImageDrawable(null);
}
代码示例来源:origin: mcxiaoke/android-volley
@Override
protected void onDetachedFromWindow() {
if (mImageContainer != null) {
// If the view was bound to an image request, cancel it and clear
// out the image from the view.
mImageContainer.cancelRequest();
setImageBitmap(null);
// also clear out the container so we can reload the image if necessary.
mImageContainer = null;
}
super.onDetachedFromWindow();
}
代码示例来源:origin: chentao0707/SimplifyReader
@Override
protected void onDetachedFromWindow() {
if (mImageContainer != null) {
// If the view was bound to an image request, cancel it and clear
// out the image from the view.
mImageContainer.cancelRequest();
setImageBitmap(null);
// also clear out the container so we can reload the image if necessary.
mImageContainer = null;
}
super.onDetachedFromWindow();
}
代码示例来源:origin: jiangqqlmj/FastDev4Android
@Override
protected void onDetachedFromWindow() {
if (mImageContainer != null) {
// If the view was bound to an image request, cancel it and clear
// out the image from the view.
mImageContainer.cancelRequest();
setImageBitmap(null);
// also clear out the container so we can reload the image if necessary.
mImageContainer = null;
}
super.onDetachedFromWindow();
}
代码示例来源:origin: android-cjj/Android-MaterialRefreshLayout
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
if (mProgressDrawable != null) {
mProgressDrawable.stop();
mProgressDrawable.setVisible(false, false);
}
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
if (mProgressDrawable != null) {
mProgressDrawable.stop();
mProgressDrawable.setVisible(false, false);
}
}
代码示例来源:origin: wangdan/AisenWeiBo
protected void onDetachedFromWindow() {
if (mGestureAttacherr != null) {
mGestureAttacherr.cleanup();
} else if (mAttacher != null) {
mAttacher.cleanup();
}
super.onDetachedFromWindow();
}
代码示例来源:origin: chrisbanes/Android-BitmapCache
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
// Will cause displayed bitmap wrapper to be 'free-able'
setImageDrawable(null);
}
代码示例来源:origin: code-mc/loadtoast
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
Log.d(getClass().getSimpleName(), "detached");
cleanup();
}
代码示例来源:origin: felipecsl/GifImageView
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
clear();
}
代码示例来源:origin: weexteam/weex-hackernews
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
if (mProgressDrawable != null) {
mProgressDrawable.stop();
mProgressDrawable.setVisible(false, false);
}
}
代码示例来源:origin: dongjunkun/GanK
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
if (mProgressDrawable != null) {
mProgressDrawable.stop();
mProgressDrawable.setVisible(false, false);
}
}
代码示例来源:origin: huangfangyi/FanXin
/**
* @see android.widget.ImageView#onDetachedFromWindow()
*/
@Override
protected void onDetachedFromWindow() {
// This has been detached from Window, so clear the drawable
setImageDrawable(null);
super.onDetachedFromWindow();
}
代码示例来源:origin: parse-community/ParseUI-Android
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
// AdapterViews tend to try and avoid calling this, instead preferring to recycle the Views +
// subviews. This is, however, called when the AdapterView itself is detached, or the Activity
// is destroyed.
if (this.file != null) {
this.file.cancel();
}
}
代码示例来源:origin: huangfangyi/FanXin
@Override
protected void onDetachedFromWindow() {
mAttacher.cleanup();
super.onDetachedFromWindow();
}
代码示例来源:origin: SwiftyWang/FingerColoring-Android
@Override
protected void onDetachedFromWindow() {
mAttacher.cleanup();
super.onDetachedFromWindow();
}
代码示例来源:origin: MewX/light-novel-library_Wenku8_Android
@Override
protected void onDetachedFromWindow() {
if (mImageContainer != null) {
// If the view was bound to an image request, cancel it and clear
// out the image from the view.
mImageContainer.cancelRequest();
setImageBitmap(null);
// also clear out the container so we can reload the image if necessary.
mImageContainer = null;
}
super.onDetachedFromWindow();
}
内容来源于网络,如有侵权,请联系作者删除!