本文整理匯總了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);
}
示例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);
}