當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。