本文整理了Java中android.widget.ImageView.removeOnLayoutChangeListener()
方法的一些代码示例,展示了ImageView.removeOnLayoutChangeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.removeOnLayoutChangeListener()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:removeOnLayoutChangeListener
暂无
代码示例来源:origin: stackoverflow.com
final ImageView postImageView = (ImageView) getActivity().findViewById(R.id.post_image);
postImageView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
postImageView.removeOnLayoutChangeListener(this);
Log.e(TAG, "W:" + postImageView.getWidth() + " H:"+postImageView.getHeight());
}
});
postImageView.setVisibility(View.INVISIBLE);
代码示例来源:origin: derry/delion
@Override
protected void onDetachedFromWindow() {
if (mNavigationButton != null) mNavigationButton.removeOnLayoutChangeListener(this);
if (mUrlBar != null) mUrlBar.removeOnLayoutChangeListener(this);
if (mLocationBar != null) {
mLocationBar.getContainerView().removeOnLayoutChangeListener(this);
}
getRootView().removeOnLayoutChangeListener(this);
super.onDetachedFromWindow();
}
}
内容来源于网络,如有侵权,请联系作者删除!