Пример #1
0
 @Override
 public int getAttributeResourceValue(int resourceId, int defaultValue) {
   String attrName = resourceExtractor.getResourceName(resourceId);
   String value = getAttributeValueInMap(attrName);
   return (value == null) ? defaultValue : resourceExtractor.getResourceId(value);
 }
Пример #2
0
 @Override
 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) {
   String value = getAttributeValueInMap(attribute);
   return (value != null) ? resourceExtractor.getResourceId(value) : defaultValue;
 }