當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。