本文整理了Java中com.gloomyer.zoomimageview.ZoomImageView.reSetState()
方法的一些代码示例,展示了ZoomImageView.reSetState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoomImageView.reSetState()
方法的具体详情如下:
包路径:com.gloomyer.zoomimageview.ZoomImageView
类名称:ZoomImageView
方法名:reSetState
[英]设置初始化状态为false
[中]设置初始化状态为错误的
代码示例来源:origin: Gloomyer/ZoomImageView
@Override
public void setImageResource(int resId) {
reSetState();
super.setImageResource(resId);
}
代码示例来源:origin: Gloomyer/ZoomImageView
@Override
public void setImageDrawable(Drawable drawable) {
reSetState();
super.setImageDrawable(drawable);
}
代码示例来源:origin: Gloomyer/ZoomImageView
@Override
public void setImageBitmap(Bitmap bm) {
reSetState();
super.setImageBitmap(bm);
}
代码示例来源:origin: Gloomyer/ZoomImageView
@Override
public Object instantiateItem(ViewGroup container, int position) {
ZoomImageView ziv = new ZoomImageView(MultiImageAct.this);
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
ziv.placeholder(R.mipmap.ic_launcher);
ziv.reSetState();
Glide.with(MultiImageAct.this)
.load(imgs[position])
.into(ziv);
//ziv.setImageForUrl(imgs[position]);
ziv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
MultiImageAct.this.finish();
}
});
container.addView(ziv, layoutParams);
return ziv;
}
内容来源于网络,如有侵权,请联系作者删除!