Search in sources :

Example 1 with Styleable

use of com.android.aapt.Resources.Styleable in project jadx by skylot.

the class ResProtoParser method parse.

private ProtoValue parse(Styleable s) {
    List<ProtoValue> namedValues = new ArrayList<>(s.getEntryCount());
    for (int i = 0; i < s.getEntryCount(); i++) {
        Styleable.Entry e = s.getEntry(i);
        namedValues.add(new ProtoValue('@' + e.getAttr().getName()));
    }
    return new ProtoValue().setNamedValues(namedValues);
}
Also used : ArrayList(java.util.ArrayList) Styleable(com.android.aapt.Resources.Styleable) ProtoValue(jadx.core.xmlgen.entry.ProtoValue)

Aggregations

Styleable (com.android.aapt.Resources.Styleable)1 ProtoValue (jadx.core.xmlgen.entry.ProtoValue)1 ArrayList (java.util.ArrayList)1