Lines Matching defs:attribute
343 * Returns the raw value from the given attribute float-type value string.
346 public static TypedValue getValue(String attribute, String value, boolean requireUnit) {
347 if (parseFloatAttribute(attribute, value, mValue, requireUnit)) {
355 * Parse a float attribute and return the parsed value into a given TypedValue.
356 * @param attribute the name of the attribute. Can be null if <var>requireUnit</var> is false.
357 * @param value the string value of the attribute
362 public static boolean parseFloatAttribute(String attribute, @NonNull String value,
364 assert !requireUnit || attribute != null;
425 "Dimension \"%1$s\" in attribute \"%2$s\" is missing unit!",
426 value, attribute),