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