Is it possible to load a drawable from the assets folder?
Here's a class with static method to get the drawable from the assets. It also closes the inputstream.
import android.content.Context;import android.graphics.drawable.Drawable;import java.io.IOException;import java.io.InputStream;/** * Created by bartburg on 4-11-2015. */public class AssetsReader { public static Drawable getDrawableFromAssets(Context context, String url){ Drawable drawable = null; InputStream inputStream = null; try { inputStream = context.getAssets().open(url); drawable = Drawable.createFromStream(inputStream, null); } catch (IOException e) { e.printStackTrace(); } finally { if(inputStream != null) { try { inputStream.close(); } catch (IOException e) { e.printStackTrace(); } } } return drawable; }}