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