public static Pair<Integer, Value> parseLayer(ObjectValue layer, Context context) { String id = layer.getAsString(ID_STR); int resId = View.NO_ID; if (id != null) { resId = ParseHelper.getAndroidXmlResId(id); } Value drawable = layer.get(DRAWABLE_STR); Value out = DrawableResourceProcessor.staticCompile(drawable, context); return new Pair<>(resId, out); }