mirror of
https://github.com/revanced/Apktool.git
synced 2025-04-30 22:24:25 +02:00
Worked on ResLayout, just put fake 0x0? in. Need to map it out.
This commit is contained in:
parent
6eb419af7d
commit
d6b4767ff8
@ -43,6 +43,8 @@ public class TypedValue {
|
|||||||
/** The <var>data</var> field holds a complex number encoding a fraction
|
/** The <var>data</var> field holds a complex number encoding a fraction
|
||||||
* of a container. */
|
* of a container. */
|
||||||
public static final int TYPE_FRACTION = 0x06;
|
public static final int TYPE_FRACTION = 0x06;
|
||||||
|
|
||||||
|
public static final int TYPE_LAYOUT = 0x07;
|
||||||
|
|
||||||
/** Identifies the start of plain integer values. Any type value
|
/** Identifies the start of plain integer values. Any type value
|
||||||
* from this to {@link #TYPE_LAST_INT} means the
|
* from this to {@link #TYPE_LAST_INT} means the
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
/**
|
||||||
|
* Copyright 2011 Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
|
* use this file except in compliance with the License. You may obtain a copy of
|
||||||
|
* the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
* License for the specific language governing permissions and limitations under
|
||||||
|
* the License.
|
||||||
|
*/
|
||||||
|
package brut.androlib.res.data.value;
|
||||||
|
|
||||||
|
import brut.androlib.AndrolibException;
|
||||||
|
import brut.androlib.res.data.ResResource;
|
||||||
|
import java.io.IOException;
|
||||||
|
import org.xmlpull.v1.XmlSerializer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author peaches
|
||||||
|
*/
|
||||||
|
public class ResLayoutValue {
|
||||||
|
|
||||||
|
public void serializeToResValuesXml(XmlSerializer serializer, ResResource res) throws IOException, AndrolibException {
|
||||||
|
serializer.startTag(null, "item");
|
||||||
|
serializer.attribute(null, "type", res.getResSpec().getType().getName());
|
||||||
|
serializer.attribute(null, "name", res.getResSpec().getName());
|
||||||
|
serializer.endTag(null, "item");
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user