Android Open Source - unmp Iconic Adapter From Project Back to project page unmp .
License The source code is released under:
MIT License
If you think the Android project unmp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package com.parnswir.unmp.core;
/ / f r o m w w w . j a v a 2 s . c o m
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.parnswir.unmp.R;
public class IconicAdapter extends ArrayAdapter<String> {
private ImageLoader loader;
private AlbumCoverRetriever retriever;
public IconicAdapter(Activity activity, CoverList items) {
super (activity, R.layout.image_row_layout, R.id.label, items.names);
loader = new ImageLoader(activity, DatabaseUtils.getDB(activity));
retriever = new AlbumCoverRetriever();
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View row = super.getView(position, convertView, parent);
TextView text = (TextView)row.findViewById(R.id.label);
ImageView icon = (ImageView)row.findViewById(R.id.icon);
String name = (String) text.getText();
loader.displayAlbumImage(name, icon, ImageLoader.DO_COMPRESS, retriever);
return (row);
}
}
Java Source Code List com.parnswir.unmp.AbstractFragment.java com.parnswir.unmp.DirectoryChooserDialog.java com.parnswir.unmp.DrawerActivity.java com.parnswir.unmp.DrawerState.java com.parnswir.unmp.LibraryFragment.java com.parnswir.unmp.ListFragment.java com.parnswir.unmp.MainActivity.java com.parnswir.unmp.PlayerFragment.java com.parnswir.unmp.PlayerService.java com.parnswir.unmp.PlaylistsFragment.java com.parnswir.unmp.SplashActivity.java com.parnswir.unmp.core.AlbumCoverRetriever.java com.parnswir.unmp.core.C.java com.parnswir.unmp.core.CoverList.java com.parnswir.unmp.core.DatabaseUtils.java com.parnswir.unmp.core.IceCreamSandwichNotificationBuilder.java com.parnswir.unmp.core.IconicAdapter.java com.parnswir.unmp.core.ImageLoader.java com.parnswir.unmp.core.ImageRetriever.java com.parnswir.unmp.core.JellybeanNotificationBuilder.java com.parnswir.unmp.core.MemoryCache.java com.parnswir.unmp.core.MusicDatabaseHelper.java com.parnswir.unmp.core.NotificationBuilder.java com.parnswir.unmp.core.ProgressObservable.java com.parnswir.unmp.core.ProjectResources.java com.parnswir.unmp.core.Utils.java com.parnswir.unmp.media.DefaultFileHandler.java com.parnswir.unmp.media.FileAdditionThread.java com.parnswir.unmp.media.FileCrawlerThread.java com.parnswir.unmp.media.FileHandler.java com.parnswir.unmp.media.FileRemovalThread.java com.parnswir.unmp.media.MP3Handler.java com.parnswir.unmp.media.MediaInformation.java com.parnswir.unmp.media.MediaPlayerStatus.java com.parnswir.unmp.media.PlaylistHandler.java com.parnswir.unmp.playlist.MediaFile.java com.parnswir.unmp.playlist.PlaylistElement.java com.parnswir.unmp.playlist.Playlist.java com.parnswir.unmp.playlist.parser.PlaylistParser.java com.parnswir.unmp.playlist.parser.WPLParser.java