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


Java AlbumInfo类代码示例

本文整理汇总了Java中com.netease.nim.uikit.common.media.picker.model.AlbumInfo的典型用法代码示例。如果您正苦于以下问题:Java AlbumInfo类的具体用法?Java AlbumInfo怎么用?Java AlbumInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AlbumInfo类属于com.netease.nim.uikit.common.media.picker.model包,在下文中一共展示了AlbumInfo类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getView

import com.netease.nim.uikit.common.media.picker.model.AlbumInfo; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    ViewHolder viewHolder;
    if (convertView == null) {
        viewHolder = new ViewHolder();
        convertView = mInflater.inflate(R.layout.nim_picker_photofolder_item, null);
        viewHolder.folderCover = (ImageView) convertView.findViewById(R.id.picker_photofolder_cover);
        viewHolder.folderName = (TextView) convertView.findViewById(R.id.picker_photofolder_info);
        viewHolder.folderFileNum = (TextView) convertView.findViewById(R.id.picker_photofolder_num);
        convertView.setTag(viewHolder);
    } else {
        viewHolder = (ViewHolder) convertView.getTag();
    }

    final AlbumInfo albumInfo = mList.get(position);
    String thumbPath = ThumbnailsUtil.getThumbnailWithImageID(albumInfo.getImageId(), albumInfo.getFilePath());
    PickerImageLoader.display(thumbPath, albumInfo.getAbsolutePath(), viewHolder.folderCover, R.drawable.nim_image_default);
    viewHolder.folderName.setText(albumInfo.getAlbumName());
    viewHolder.folderFileNum.setText(String.format(mContext.getResources().getString(
            R.string.picker_image_folder_info), mList.get(position).getList().size()));
    return convertView;
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:23,代码来源:PickerAlbumAdapter.java

示例2: getView

import com.netease.nim.uikit.common.media.picker.model.AlbumInfo; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
	ViewHolder viewHolder;
	if (convertView == null) {
		viewHolder = new ViewHolder();
		convertView = mInflater.inflate(R.layout.nim_picker_photofolder_item, null);
		viewHolder.folderCover = (ImageView)convertView.findViewById(R.id.picker_photofolder_cover);
		viewHolder.folderName = (TextView)convertView.findViewById(R.id.picker_photofolder_info);
		viewHolder.folderFileNum = (TextView)convertView.findViewById(R.id.picker_photofolder_num);
		convertView.setTag(viewHolder);
	} else {
		viewHolder = (ViewHolder) convertView.getTag();
	}
	
	final AlbumInfo albumInfo = mList.get(position);
	String thumbPath = ThumbnailsUtil.getThumbnailWithImageID(albumInfo.getImageId(), albumInfo.getFilePath());
	PickerlImageLoadTool.disPlay(thumbPath, new RotateImageViewAware(viewHolder.folderCover, albumInfo.getAbsolutePath()),
			R.drawable.nim_image_default);
	viewHolder.folderName.setText(albumInfo.getAlbumName());
	viewHolder.folderFileNum.setText(String.format(mContext.getResources().getString(
			R.string.picker_image_folder_info), mList.get(position).getList().size()));
	return convertView;
}
 
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:24,代码来源:PickerAlbumAdapter.java

示例3: PickerAlbumAdapter

import com.netease.nim.uikit.common.media.picker.model.AlbumInfo; //导入依赖的package包/类
public PickerAlbumAdapter(Context context, List<AlbumInfo> list) {
    mContext = context;
    mInflater = LayoutInflater.from(context);
    this.mList = list;
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:6,代码来源:PickerAlbumAdapter.java

示例4: PickerAlbumAdapter

import com.netease.nim.uikit.common.media.picker.model.AlbumInfo; //导入依赖的package包/类
public PickerAlbumAdapter(Context context, List<AlbumInfo> list){
	mContext = context;
	mInflater = LayoutInflater.from(context);
	this.mList = list;
}
 
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:6,代码来源:PickerAlbumAdapter.java

示例5: OnAlbumItemClick

import com.netease.nim.uikit.common.media.picker.model.AlbumInfo; //导入依赖的package包/类
public void OnAlbumItemClick(AlbumInfo info); 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:2,代码来源:PickerAlbumFragment.java


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