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


Java MediaController.allPhotosAlbumEntry方法代码示例

本文整理汇总了Java中org.telegram.messenger.MediaController.allPhotosAlbumEntry方法的典型用法代码示例。如果您正苦于以下问题:Java MediaController.allPhotosAlbumEntry方法的具体用法?Java MediaController.allPhotosAlbumEntry怎么用?Java MediaController.allPhotosAlbumEntry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.telegram.messenger.MediaController的用法示例。


在下文中一共展示了MediaController.allPhotosAlbumEntry方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void init(ChatActivity parentFragment) {
    if (MediaController.allPhotosAlbumEntry != null) {
        for (int a = 0; a < Math.min(100, MediaController.allPhotosAlbumEntry.photos.size()); a++) {
            MediaController.PhotoEntry photoEntry = MediaController.allPhotosAlbumEntry.photos.get(a);
            photoEntry.caption = null;
            photoEntry.imagePath = null;
            photoEntry.thumbPath = null;
        }
    }
    if (currentHintAnimation != null) {
        currentHintAnimation.cancel();
        currentHintAnimation = null;
    }
    hintTextView.setAlpha(0.0f);
    hintTextView.setVisibility(View.INVISIBLE);
    attachPhotoLayoutManager.scrollToPositionWithOffset(0, 1000000);
    photoAttachAdapter.clearSelectedPhotos();
    baseFragment = parentFragment;
    layoutManager.scrollToPositionWithOffset(0, 1000000);
    updatePhotosButton();
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:22,代码来源:ChatAttachAlert.java

示例2: getCellForIndex

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
private PhotoAttachPhotoCell getCellForIndex(int index) {
    if (MediaController.allPhotosAlbumEntry == null) {
        return null;
    }
    int count = attachPhotoRecyclerView.getChildCount();
    for (int a = 0; a < count; a++) {
        View view = attachPhotoRecyclerView.getChildAt(a);
        if (view instanceof PhotoAttachPhotoCell) {
            PhotoAttachPhotoCell cell = (PhotoAttachPhotoCell) view;
            int num = (Integer) cell.getImageView().getTag();
            if (num < 0 || num >= MediaController.allPhotosAlbumEntry.photos.size()) {
                continue;
            }
            if (num == index) {
                return cell;
            }
        }
    }
    return null;
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:21,代码来源:ChatAttachAlert.java

示例3: init

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void init() {
    if (MediaController.allPhotosAlbumEntry != null) {
        for (int a = 0; a < Math.min(100, MediaController.allPhotosAlbumEntry.photos.size()); a++) {
            MediaController.PhotoEntry photoEntry = MediaController.allPhotosAlbumEntry.photos.get(a);
            photoEntry.caption = null;
            photoEntry.imagePath = null;
            photoEntry.thumbPath = null;
            photoEntry.stickers.clear();
        }
    }
    if (currentHintAnimation != null) {
        currentHintAnimation.cancel();
        currentHintAnimation = null;
    }
    hintTextView.setAlpha(0.0f);
    hintTextView.setVisibility(View.INVISIBLE);
    attachPhotoLayoutManager.scrollToPositionWithOffset(0, 1000000);
    photoAttachAdapter.clearSelectedPhotos();
    layoutManager.scrollToPositionWithOffset(0, 1000000);
    updatePhotosButton();
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:22,代码来源:ChatAttachAlert.java

示例4: onRevealAnimationEnd

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
private void onRevealAnimationEnd(boolean open) {
    NotificationCenter.getInstance().setAnimationInProgress(false);
    revealAnimationInProgress = false;
    if (open && Build.VERSION.SDK_INT <= 19 && MediaController.allPhotosAlbumEntry == null) {
        MediaController.loadGalleryPhotosAlbums(0);
    }
    if (open) {
        showHint();
    }
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:11,代码来源:ChatAttachAlert.java

示例5: getItemCount

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
@Override
public int getItemCount() {
    int count = 0;
    if (deviceHasGoodCamera) {
        count++;
    }
    if (MediaController.allPhotosAlbumEntry != null) {
        count += MediaController.allPhotosAlbumEntry.photos.size();
    }
    return count;
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:12,代码来源:ChatAttachAlert.java

示例6: onRevealAnimationEnd

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
private void onRevealAnimationEnd(boolean open) {
    NotificationCenter.getInstance().setAnimationInProgress(false);
    revealAnimationInProgress = false;
    if (open && Build.VERSION.SDK_INT <= 19 && MediaController.allPhotosAlbumEntry == null) {
        MediaController.loadGalleryPhotosAlbums(0);
    }
    if (open) {
        checkCamera(true);
        showHint();
    }
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:12,代码来源:ChatAttachAlert.java

示例7: init

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void init(ChatActivity parentFragment) {
    if (MediaController.allPhotosAlbumEntry != null) {
        for (int a = 0; a < Math.min(100, MediaController.allPhotosAlbumEntry.photos.size()); a++) {
            MediaController.PhotoEntry photoEntry = MediaController.allPhotosAlbumEntry.photos.get(a);
            photoEntry.caption = null;
            photoEntry.imagePath = null;
            photoEntry.thumbPath = null;
        }
    }
    attachPhotoLayoutManager.scrollToPositionWithOffset(0, 1000000);
    photoAttachAdapter.clearSelectedPhotos();
    baseFragment = parentFragment;
    updatePhotosButton();
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:15,代码来源:ChatAttachView.java

示例8: loadGalleryPhotos

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void loadGalleryPhotos() {
    if (MediaController.allPhotosAlbumEntry == null && Build.VERSION.SDK_INT >= 21) {
        MediaController.loadGalleryPhotosAlbums(0);
    }
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:6,代码来源:ChatAttachAlert.java

示例9: onRevealAnimationEnd

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
public void onRevealAnimationEnd(boolean open) {
    if (open && Build.VERSION.SDK_INT <= 19 && MediaController.allPhotosAlbumEntry == null) {
        MediaController.loadGalleryPhotosAlbums(0);
    }
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:6,代码来源:ChatAttachView.java

示例10: getItemCount

import org.telegram.messenger.MediaController; //导入方法依赖的package包/类
@Override
public int getItemCount() {
    return (MediaController.allPhotosAlbumEntry != null ? MediaController.allPhotosAlbumEntry.photos.size() : 0);
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:5,代码来源:ChatAttachView.java


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