当前位置: 首页>>代码示例>>Java>>正文


Java BaseZoomableImageView类代码示例

本文整理汇总了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();
        }
    });
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:25,代码来源:WatchMessagePictureActivity.java

示例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);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:15,代码来源:WatchMessagePictureActivity.java

示例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);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:8,代码来源:PickerPreviewPagerAdapter.java

示例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));
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:33,代码来源:PreviewImageFromLocalActivity.java

示例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));
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:29,代码来源:PickerAlbumPreviewActivity.java

示例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));
}
 
开发者ID:netease-im,项目名称:NIM_Android_UIKit,代码行数:16,代码来源:WatchMessagePictureActivity.java

示例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);
}
 
开发者ID:netease-im,项目名称:NIM_Android_UIKit,代码行数:8,代码来源:PickerPreviewPagerAdapter.java

示例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));
}
 
开发者ID:netease-im,项目名称:NIM_Android_UIKit,代码行数:33,代码来源:PreviewImageFromLocalActivity.java

示例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));
}
 
开发者ID:netease-im,项目名称:NIM_Android_UIKit,代码行数:29,代码来源:PickerAlbumPreviewActivity.java

示例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);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:6,代码来源:WatchSnapChatPictureActivity.java


注:本文中的com.netease.nim.uikit.common.ui.imageview.BaseZoomableImageView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。