@Override public int getAttributeResourceValue(int resourceId, int defaultValue) { String attrName = resourceExtractor.getResourceName(resourceId); String value = getAttributeValueInMap(attrName); return (value == null) ? defaultValue : resourceExtractor.getResourceId(value); }
@Override public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { String value = getAttributeValueInMap(attribute); return (value != null) ? resourceExtractor.getResourceId(value) : defaultValue; }