public interface ReferenceMapper
Android .arsc/.xml files include many resource references. These are ints of the form 0xPPTTIIII encoding three things: package, type, index. The index part is an index into an array of integers (or rather, into multiple arrays of integers).
A ReferenceMapper implements a method to update references and to rewrite those arrays that they refer to.
Modifier and Type | Method and Description |
---|---|
int |
map(int id)
Converts an id to its new value under this mapping.
|
void |
rewrite(int type,
IntBuffer buf)
Given an IntBuffer with an entry for every value of the given type, rearranges the entries in
the buffer to match the id reassignment.
|
int map(int id)
void rewrite(int type, IntBuffer buf)