Пример #1
0
 @Override
 protected void serializeExtraXmlAttrs(XmlSerializer serializer, ResResource res)
     throws IOException {
   if (ResXmlEncoders.hasMultipleNonPositionalSubstitutions(mRawValue)) {
     serializer.attribute(null, "formatted", "false");
   }
 }
Пример #2
0
 @Override
 public String encodeAsResXmlItemValue() {
   return ResXmlEncoders.enumerateNonPositionalSubstitutionsIfRequired(
       ResXmlEncoders.encodeAsXmlValue(mRawValue));
 }
Пример #3
0
 @Override
 public String encodeAsResXmlValue() {
   return ResXmlEncoders.encodeAsXmlValue(mRawValue);
 }
Пример #4
0
 @Override
 public String encodeAsResXmlAttr() {
   return checkIfStringIsNumeric(ResXmlEncoders.encodeAsResXmlAttr(mRawValue));
 }