當前位置: 首頁>>代碼示例>>Java>>正文


Java PickerPreviewPagerAdapter類代碼示例

本文整理匯總了Java中com.netease.nim.uikit.common.media.picker.adapter.PickerPreviewPagerAdapter的典型用法代碼示例。如果您正苦於以下問題:Java PickerPreviewPagerAdapter類的具體用法?Java PickerPreviewPagerAdapter怎麽用?Java PickerPreviewPagerAdapter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PickerPreviewPagerAdapter類屬於com.netease.nim.uikit.common.media.picker.adapter包,在下文中一共展示了PickerPreviewPagerAdapter類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initUI

import com.netease.nim.uikit.common.media.picker.adapter.PickerPreviewPagerAdapter; //導入依賴的package包/類
private void initUI(){		
	previewOperationBar = (LinearLayout) findViewById(R.id.picker_image_preview_operator_bar);
	originalImage = (ImageButton) findViewById(R.id.picker_image_preview_orignal_image);
	originalImage.setOnClickListener(this);
	originalImageSizeTip = (TextView) findViewById(R.id.picker_image_preview_orignal_image_tip);
	if(!isSupportOriginal){
		originalImage.setVisibility(View.INVISIBLE);
		originalImageSizeTip.setVisibility(View.INVISIBLE);
	}
	previewSendBtn = (TextView) findViewById(R.id.picker_image_preview_send);
	previewSendBtn.setOnClickListener(this);
	updateSelectBtnStatus();
	updateOriImageSizeTip(isSendOriginalImage);
			
	imageViewPager = (ViewPager) findViewById(R.id.picker_image_preview_viewpager);
	imageViewPager.setOnPageChangeListener(this);
	imageViewPager.setOffscreenPageLimit(2);
	imageViewPagerAdapter = new PickerPreviewPagerAdapter(this, photoLists, getLayoutInflater(),
			imageViewPager.getLayoutParams().width, imageViewPager.getLayoutParams().height, this);
	imageViewPager.setAdapter(imageViewPagerAdapter);
	
	setTitleIndex(firstDisplayImageIndex);
	updateTitleSelect(firstDisplayImageIndex);
	imageViewPager.setCurrentItem(firstDisplayImageIndex);
}
 
開發者ID:newDeepLearing,項目名稱:decoy,代碼行數:26,代碼來源:PickerAlbumPreviewActivity.java

示例2: initUI

import com.netease.nim.uikit.common.media.picker.adapter.PickerPreviewPagerAdapter; //導入依賴的package包/類
private void initUI() {
    previewOperationBar = (LinearLayout) findViewById(R.id.picker_image_preview_operator_bar);
    originalImage = (ImageButton) findViewById(R.id.picker_image_preview_orignal_image);
    originalImage.setOnClickListener(this);
    originalImageSizeTip = (TextView) findViewById(R.id.picker_image_preview_orignal_image_tip);
    if (!isSupportOriginal) {
        originalImage.setVisibility(View.INVISIBLE);
        originalImageSizeTip.setVisibility(View.INVISIBLE);
    }
    previewSendBtn = (TextView) findViewById(R.id.picker_image_preview_send);
    previewSendBtn.setOnClickListener(this);
    updateSelectBtnStatus();
    updateOriImageSizeTip(isSendOriginalImage);

    imageViewPager = (ViewPager) findViewById(R.id.picker_image_preview_viewpager);
    imageViewPager.setOnPageChangeListener(this);
    imageViewPager.setOffscreenPageLimit(2);
    imageViewPagerAdapter = new PickerPreviewPagerAdapter(this, photoLists, getLayoutInflater(),
            imageViewPager.getLayoutParams().width, imageViewPager.getLayoutParams().height, this);
    imageViewPager.setAdapter(imageViewPagerAdapter);

    setTitleIndex(firstDisplayImageIndex);
    updateTitleSelect(firstDisplayImageIndex);
    imageViewPager.setCurrentItem(firstDisplayImageIndex);
}
 
開發者ID:netease-im,項目名稱:NIM_Android_UIKit,代碼行數:26,代碼來源:PickerAlbumPreviewActivity.java


注:本文中的com.netease.nim.uikit.common.media.picker.adapter.PickerPreviewPagerAdapter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。