Versions in this module Expand all Collapse all v1 v1.0.13 Apr 27, 2022 v1.0.12 Apr 27, 2022 v1.0.11 Apr 27, 2022 v1.0.10 Apr 27, 2022 v1.0.9 Apr 27, 2022 v1.0.8 Apr 25, 2022 v1.0.7 Apr 25, 2022 v1.0.6 Apr 25, 2022 v1.0.5 Apr 25, 2022 Changes in this version + const NilResStringPoolRef + func IsResID(s string) bool + type Bool struct + func (v *Bool) SetBool(value bool) + func (v *Bool) SetResID(resID ResID) + func (v *Bool) UnmarshalXMLAttr(attr xml.Attr) error + func (v Bool) Bool() (bool, error) + func (v Bool) MarshalXMLAttr(name xml.Name) (xml.Attr, error) + func (v Bool) MustBool() bool + func (v Bool) WithResTableConfig(config *ResTableConfig) Bool + func (v Bool) WithTableFile(table *TableFile) Bool + type ChunkType uint16 + const ResNullChunkType + const ResStringPoolChunkType + const ResTableChunkType + const ResTablePackageType + const ResTableTypeSpecType + const ResTableTypeType + const ResXMLCDataType + const ResXMLChunkType + const ResXMLEndElementType + const ResXMLEndNamespaceType + const ResXMLFirstChunkType + const ResXMLLastChunkType + const ResXMLResourceMapType + const ResXMLStartElementType + const ResXMLStartNamespaceType + type DataType uint8 + const TypeAttribute + const TypeDemention + const TypeFirstColorInt + const TypeFirstInt + const TypeFloat + const TypeFraction + const TypeIntBoolean + const TypeIntColorARGB4 + const TypeIntColorARGB8 + const TypeIntColorRGB4 + const TypeIntColorRGB8 + const TypeIntDec + const TypeIntHex + const TypeLastColorInt + const TypeLastInt + const TypeNull + const TypeReference + const TypeString + type Flags uint32 + const SortedFlag + const UTF8Flag + type InputFlags uint8 + const KeysHiddenAny + const KeysHiddenNo + const KeysHiddenSoft + const KeysHiddenYes + const MaskKeysHidden + const MaskNavHidden + const NavHiddenAny + const NavHiddenNo + const NavHiddenYes + type Int32 struct + func (v *Int32) SetInt32(value int32) + func (v *Int32) SetResID(resID ResID) + func (v *Int32) UnmarshalXMLAttr(attr xml.Attr) error + func (v Int32) Int32() (int32, error) + func (v Int32) MarshalXMLAttr(name xml.Name) (xml.Attr, error) + func (v Int32) MustInt32() int32 + func (v Int32) WithResTableConfig(config *ResTableConfig) Bool + func (v Int32) WithTableFile(table *TableFile) Int32 + type ResChunkHeader struct + HeaderSize uint16 + Size uint32 + Type ChunkType + type ResID uint32 + func ParseResID(s string) (ResID, error) + func (id ResID) Entry() int + func (id ResID) Package() uint32 + func (id ResID) String() string + func (id ResID) Type() int + type ResStringPool struct + Header ResStringPoolHeader + Strings []string + Styles []ResStringPoolSpan + func (pool *ResStringPool) GetString(ref ResStringPoolRef) string + type ResStringPoolHeader struct + Flags Flags + Header ResChunkHeader + StringCount uint32 + StringStart uint32 + StyleCount uint32 + StylesStart uint32 + type ResStringPoolRef uint32 + type ResStringPoolSpan struct + FirstChar uint32 + LastChar uint32 + type ResTableConfig struct + Country [2]uint8 + Density uint16 + InputFlags InputFlags + InputPad0 uint8 + Keyboard uint8 + Language [2]uint8 + Mcc uint16 + MinorVersion uint16 + Mnc uint16 + Navigation uint8 + Orientation uint8 + SDKVersion uint16 + ScreenHeight uint16 + ScreenHeightDp uint16 + ScreenLayout ScreenLayout + ScreenWidth uint16 + ScreenWidthDp uint16 + Size uint32 + SmallestScreenWidthDp uint16 + Touchscreen uint8 + UIMode UIMode + func (c *ResTableConfig) IsBetterThan(o *ResTableConfig, r *ResTableConfig) bool + func (c *ResTableConfig) IsLocaleBetterThan(o *ResTableConfig, r *ResTableConfig) bool + func (c *ResTableConfig) IsLocaleMoreSpecificThan(o *ResTableConfig) int + func (c *ResTableConfig) IsMoreSpecificThan(o *ResTableConfig) bool + func (c *ResTableConfig) Locale() string + func (c *ResTableConfig) Match(settings *ResTableConfig) bool + type ResTableEntry struct + Flags uint16 + Key ResStringPoolRef + Size uint16 + type ResTableHeader struct + Header ResChunkHeader + PackageCount uint32 + type ResTablePackage struct + Header ResChunkHeader + ID uint32 + KeyStrings uint32 + LastPublicKey uint32 + LastPublicType uint32 + Name [128]uint16 + TypeStrings uint32 + type ResTableType struct + Config ResTableConfig + EntriesStart uint32 + EntryCount uint32 + Header ResChunkHeader + ID uint8 + Res0 uint8 + Res1 uint16 + type ResTableTypeSpec struct + EntryCount uint32 + Header ResChunkHeader + ID uint8 + Res0 uint8 + Res1 uint16 + type ResValue struct + Data uint32 + DataType DataType + Res0 uint8 + Size uint16 + type ResXMLTreeAttrExt struct + AttributeCount uint16 + AttributeSize uint16 + AttributeStart uint16 + ClassIndex uint16 + IDIndex uint16 + NS ResStringPoolRef + Name ResStringPoolRef + StyleIndex uint16 + type ResXMLTreeAttribute struct + NS ResStringPoolRef + Name ResStringPoolRef + RawValue ResStringPoolRef + TypedValue ResValue + type ResXMLTreeEndElementExt struct + NS ResStringPoolRef + Name ResStringPoolRef + type ResXMLTreeNamespaceExt struct + Prefix ResStringPoolRef + URI ResStringPoolRef + type ResXMLTreeNode struct + Comment ResStringPoolRef + Header ResChunkHeader + LineNumber uint32 + type ScreenLayout uint8 + const LayoutDirAny + const LayoutDirLTR + const LayoutDirRTL + const MaskLayoutDir + const MaskScreenLong + const MaskScreenSize + const ScreenLongAny + const ScreenLongNo + const ScreenLongYes + const ScreenSizeAny + const ScreenSizeLarge + const ScreenSizeNormal + const ScreenSizeSmall + const ScreenSizeXLarge + const ShiftLayoutDir + const ShiftScreenLong + type String struct + func (v *String) SetResID(resID ResID) + func (v *String) SetString(value string) + func (v *String) UnmarshalXMLAttr(attr xml.Attr) error + func (v String) MarshalXMLAttr(name xml.Name) (xml.Attr, error) + func (v String) MustString() string + func (v String) String() (string, error) + func (v String) WithResTableConfig(config *ResTableConfig) String + func (v String) WithTableFile(table *TableFile) String + type TableEntry struct + Flags uint32 + Key *ResTableEntry + Value *ResValue + type TableFile struct + func NewTableFile(r io.ReaderAt) (*TableFile, error) + func (f *TableFile) GetResource(id ResID, config *ResTableConfig) (interface{}, error) + func (f *TableFile) GetString(ref ResStringPoolRef) string + type TablePackage struct + Header ResTablePackage + KeyStrings *ResStringPool + TableTypes []*TableType + TypeStrings *ResStringPool + type TableType struct + Entries []TableEntry + Header *ResTableType + type UIMode uint8 + const MaskUIModeNight + const MaskUIModeType + const ShiftUIModeNight + const UIModeNightAny + const UIModeNightNo + const UIModeNightYes + const UIModeTypeAny + const UIModeTypeCar + const UIModeTypeDesk + const UIModeTypeNormal + type XMLFile struct + func NewXMLFile(r io.ReaderAt) (*XMLFile, error) + func (f *XMLFile) Decode(v interface{}, table *TableFile, config *ResTableConfig) error + func (f *XMLFile) GetString(ref ResStringPoolRef) string + func (f *XMLFile) Reader() *bytes.Reader