Back to project page music-tag.
The source code is released under:
Apache License
If you think the Android project music-tag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package binauld.pierre.musictag.helper; //w ww . j a v a 2 s . c o m import android.content.res.Resources; import java.io.FileFilter; import binauld.pierre.musictag.R; import binauld.pierre.musictag.decoder.BitmapDecoder; import binauld.pierre.musictag.decoder.ResourceBitmapDecoder; import binauld.pierre.musictag.factory.LibraryItemFactory; public class LibraryItemFactoryHelper { /** * Build the library item factory. * @param res The activity resources. * @param defaultArtworkBitmapDecoder The default artwork bitmap decoder. * @return A library item factory. */ public static LibraryItemFactory buildFactory(Resources res, FileFilter filter, BitmapDecoder defaultArtworkBitmapDecoder) { BitmapDecoder folderBitmapDecoder = new ResourceBitmapDecoder(res, R.drawable.folder); return new LibraryItemFactory(defaultArtworkBitmapDecoder, folderBitmapDecoder, filter, res); } }