Package org.robolectric.res.android
Class AttributeResolution
java.lang.Object
org.robolectric.res.android.AttributeResolution
public class AttributeResolution extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttributeResolution.BagAttributeFinder
static class
AttributeResolution.XmlAttributeFinder
-
Field Summary
Fields Modifier and Type Field Description static boolean
kThrowOnBadId
static int
STYLE_ASSET_COOKIE
static int
STYLE_CHANGING_CONFIGURATIONS
static int
STYLE_DATA
static int
STYLE_DENSITY
static int
STYLE_NUM_ENTRIES
static int
STYLE_RESOURCE_ID
static int
STYLE_TYPE
-
Constructor Summary
Constructors Constructor Description AttributeResolution()
-
Method Summary
Modifier and Type Method Description static void
ApplyStyle(ResTableTheme theme, ResXMLParser xmlParser, int defStyleAttr, int defStyleRes, int[] attrs, int attrsLength, int[] outValues, int[] outIndices)
static boolean
ResolveAttrs(ResTableTheme theme, int defStyleAttr, int defStyleRes, int[] srcValues, int srcValuesLength, int[] attrs, int attrsLength, int[] outValues, int[] outIndices)
static boolean
RetrieveAttributes(ResTable res, ResXMLParser xmlParser, int[] attrs, int attrsLength, int[] outValues, int[] outIndices)
-
Field Details
-
kThrowOnBadId
public static final boolean kThrowOnBadId- See Also:
- Constant Field Values
-
STYLE_NUM_ENTRIES
public static final int STYLE_NUM_ENTRIES- See Also:
- Constant Field Values
-
STYLE_TYPE
public static final int STYLE_TYPE- See Also:
- Constant Field Values
-
STYLE_DATA
public static final int STYLE_DATA- See Also:
- Constant Field Values
-
STYLE_ASSET_COOKIE
public static final int STYLE_ASSET_COOKIE- See Also:
- Constant Field Values
-
STYLE_RESOURCE_ID
public static final int STYLE_RESOURCE_ID- See Also:
- Constant Field Values
-
STYLE_CHANGING_CONFIGURATIONS
public static final int STYLE_CHANGING_CONFIGURATIONS- See Also:
- Constant Field Values
-
STYLE_DENSITY
public static final int STYLE_DENSITY- See Also:
- Constant Field Values
-
-
Constructor Details
-
AttributeResolution
public AttributeResolution()
-
-
Method Details
-
ResolveAttrs
public static boolean ResolveAttrs(ResTableTheme theme, int defStyleAttr, int defStyleRes, int[] srcValues, int srcValuesLength, int[] attrs, int attrsLength, int[] outValues, int[] outIndices) -
ApplyStyle
public static void ApplyStyle(ResTableTheme theme, ResXMLParser xmlParser, int defStyleAttr, int defStyleRes, int[] attrs, int attrsLength, int[] outValues, int[] outIndices) -
RetrieveAttributes
public static boolean RetrieveAttributes(ResTable res, ResXMLParser xmlParser, int[] attrs, int attrsLength, int[] outValues, int[] outIndices)
-