diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java index 7d5092c9..84636fa3 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java @@ -62,6 +62,8 @@ public abstract class ResScalarValue extends ResValue } serializer.attribute(null, "name", res.getResSpec().getName()); + serializeExtraXmlAttrs(serializer, res); + String body = encodeAsResXmlValue(); if (! body.isEmpty()) { serializer.ignorableWhitespace(body); @@ -74,5 +76,9 @@ public abstract class ResScalarValue extends ResValue return mType; } + protected void serializeExtraXmlAttrs(XmlSerializer serializer, + ResResource res) throws IOException { + } + protected abstract String encodeAsResXml() throws AndrolibException; }