本文整理汇总了Java中com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView类的典型用法代码示例。如果您正苦于以下问题:Java BaseZoomableImageView类的具体用法?Java BaseZoomableImageView怎么用?Java BaseZoomableImageView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseZoomableImageView类属于com.netease.nim.uikit.common.ui.imageview包,在下文中一共展示了BaseZoomableImageView类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onImageViewFound
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
/**
* ***********************************图片点击事件*******************************************
*/
// 设置图片点击事件
protected void onImageViewFound(BaseZoomableImageView imageView) {
imageView.setImageGestureListener(new ImageGestureListener() {
@Override
public void onImageGestureSingleTapConfirmed() {
onImageViewTouched();
}
@Override
public void onImageGestureLongPress() {
showWatchPictureAction();
}
@Override
public void onImageGestureFlingDown() {
finish();
}
});
}
示例2: updateCurrentImageView
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
protected void updateCurrentImageView(final int position) {
View currentLayout = imageViewPager.findViewWithTag(position);
if (currentLayout == null) {
ViewCompat.postOnAnimation(imageViewPager, new Runnable() {
@Override
public void run() {
updateCurrentImageView(position);
}
});
return;
};
image = (BaseZoomableImageView) currentLayout.findViewById(R.id.watch_image_view);
}
示例3: destroyItem
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
@Override
public void destroyItem (ViewGroup container, int position, Object object) {
View layout = (View)object;
BaseZoomableImageView iv = (BaseZoomableImageView)layout.findViewById(R.id.imageView);
iv.clear();
container.removeView(layout);
}
示例4: updateCurrentImageView
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
public void updateCurrentImageView(final int position) {
if (selectImageList == null
|| (position > 0
&& position >= selectImageList.size()))
return;
if (currentPostion == position) {
return;
} else {
currentPostion = position;
}
setTitleIndex(position);
// LinearLayout currentLayout = (LinearLayout)
// imageViewPager.getChildAt(position);
LinearLayout currentLayout = (LinearLayout) imageViewPager.findViewWithTag(position);
if (currentLayout == null) {
Handler mHandler = new Handler();
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
updateCurrentImageView(position);
}
}, 300);
return;
}
currentImageView = (BaseZoomableImageView) currentLayout.findViewById(R.id.imageView);
currentImageView.setViewPager(imageViewPager);
setImageView(selectImageList.get(position));
}
示例5: updateCurrentImageView
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
public void updateCurrentImageView(final int position) {
if (photoLists == null
|| (position > 0
&& position >= photoLists.size()))
return;
if (currentPosition == position) {
return;
} else {
currentPosition = position;
}
LinearLayout currentLayout = (LinearLayout) imageViewPager.findViewWithTag(position);
if (currentLayout == null) {
Handler mHandler = new Handler();
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
updateCurrentImageView(position);
}
}, 300);
return;
}
currentImageView = (BaseZoomableImageView) currentLayout.findViewById(R.id.imageView);
currentImageView.setViewPager(imageViewPager);
setImageView(photoLists.get(position));
}
示例6: updateCurrentImageView
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
protected void updateCurrentImageView(final int position) {
View currentLayout = imageViewPager.findViewWithTag(position);
if (currentLayout == null) {
ViewCompat.postOnAnimation(imageViewPager, new Runnable() {
@Override
public void run() {
updateCurrentImageView(position);
}
});
return;
}
image = (BaseZoomableImageView) currentLayout.findViewById(R.id.watch_image_view);
requestOriImage(imageMsgList.get(position));
}
示例7: destroyItem
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
View layout = (View) object;
BaseZoomableImageView iv = (BaseZoomableImageView) layout.findViewById(R.id.imageView);
iv.clear();
container.removeView(layout);
}
示例8: updateCurrentImageView
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
public void updateCurrentImageView(final int position) {
if (selectImageList == null
|| (position > 0
&& position >= selectImageList.size()))
return;
if (currentPostion == position) {
return;
} else {
currentPostion = position;
}
setTitleIndex(position);
// LinearLayout currentLayout = (LinearLayout)
// imageViewPager.getChildAt(position);
LinearLayout currentLayout = (LinearLayout) imageViewPager.findViewWithTag(position);
if (currentLayout == null) {
Handler mHandler = new Handler();
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
updateCurrentImageView(position);
}
}, 300);
return;
}
currentImageView = (BaseZoomableImageView) currentLayout.findViewById(R.id.imageView);
currentImageView.setViewPager(imageViewPager);
setImageView(selectImageList.get(position));
}
示例9: updateCurrentImageView
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
public void updateCurrentImageView(final int position) {
if (photoLists == null
|| (position > 0
&& position >= photoLists.size()))
return;
if (currentPosition == position) {
return;
} else {
currentPosition = position;
}
LinearLayout currentLayout = (LinearLayout) imageViewPager.findViewWithTag(position);
if (currentLayout == null) {
Handler mHandler = new Handler();
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
updateCurrentImageView(position);
}
}, 300);
return;
}
currentImageView = (BaseZoomableImageView) currentLayout.findViewById(R.id.imageView);
currentImageView.setViewPager(imageViewPager);
setImageView(photoLists.get(position));
}
示例10: findViews
import com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView; //导入依赖的package包/类
private void findViews() {
alertDialog = new CustomAlertDialog(this);
loadingLayout = findViewById(R.id.loading_layout);
image = (BaseZoomableImageView) findViewById(R.id.watch_image_view);
}