本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: OnAlbumItemClick
import com.netease.nim.uikit.common.media.picker.model.AlbumInfo; //导入依赖的package包/类
public void OnAlbumItemClick(AlbumInfo info);