R.attr


public final class R.attr


Summary

Public fields

static int

Definitions of attributes to be exposed as public Alpha multiplier applied to the base color.

static int

The reference to the font file to be used.

static int

The authority of the Font Provider to be used for the request.

static int

The sets of hashes for the certificates the provider should be signed with.

static int

The strategy to be used when fetching font data from a font provider in XML layouts.

static int

The length of the timeout during fetching.

static int

The package for the Font Provider to be used for the request.

static int

The query to be sent over to the provider.

static int

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

static int

The style of the given font file.

static int

Common name attributes.

static int

The weight of the given font file.

static int

Perceptual luminance applied to the base color.

static int

Resource reference to the string array of query patterns for a custom capability.

static int

Indicates whether a parameter in a capability template can only contain a matched shortcut id and not an arbitrary string.

static int

The index of the font in the tcc font file.

Public constructors

Public fields

alpha

public static int alpha

Definitions of attributes to be exposed as public Alpha multiplier applied to the base color.

May be a floating point value, such as "1.2".

font

public static int font

The reference to the font file to be used. This should be a file in the res/font folder and should therefore have an R reference value. e.g. @font/myfont

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

fontProviderAuthority

public static int fontProviderAuthority

The authority of the Font Provider to be used for the request.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

fontProviderCerts

public static int fontProviderCerts

The sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider, and is only required if the provider is not part of the system image. This value may point to one list or a list of lists, where each individual list represents one collection of signature hashes. Refer to your font provider's documentation for these values.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

fontProviderFetchStrategy

public static int fontProviderFetchStrategy

The strategy to be used when fetching font data from a font provider in XML layouts. This attribute is ignored when the resource is loaded from code, as it is equivalent to the choice of API between getFont (blocking) and getFont (async).

Must be one of the following constant values.

Constant Value Description
async 1 The async font fetch works as follows. First, check the local cache, then if the requested font is not cached, trigger a request the font and continue with layout inflation. Once the font fetch succeeds, the target text view will be refreshed with the downloaded font data. The fontProviderFetchTimeout will be ignored if async loading is specified.
blocking 0 The blocking font fetch works as follows. First, check the local cache, then if the requested font is not cached, request the font from the provider and wait until it is finished. You can change the length of the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the default typeface will be used instead.

fontProviderFetchTimeout

public static int fontProviderFetchTimeout

The length of the timeout during fetching.

May be an integer value, such as "100".

Must be one of the following constant values.

Constant Value Description
forever ffffffff A special value for the timeout. In this case, the blocking font fetching will not timeout and wait until a reply is received from the font provider.

fontProviderPackage

public static int fontProviderPackage

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

fontProviderQuery

public static int fontProviderQuery

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

fontProviderSystemFontFamily

public static int fontProviderSystemFontFamily

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

fontStyle

public static int fontStyle

The style of the given font file. This will be used when the font is being loaded into the font stack and will override any style information in the font's header tables. If unspecified, the value in the font's header tables will be used.

Must be one of the following constant values.

Constant Value Description
italic 1
normal 0

fontVariationSettings

public static int fontVariationSettings

Common name attributes. See comments of each attribute declaration in declare-styleable

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

fontWeight

public static int fontWeight

The weight of the given font file. This will be used when the font is being loaded into the font stack and will override any weight information in the font's header tables. Must be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most common values are 400 for regular weight and 700 for bold weight. If unspecified, the value in the font's header tables will be used.

May be an integer value, such as "100".

lStar

public static int lStar

Perceptual luminance applied to the base color. From 0 to 100.

May be a floating point value, such as "1.2".

queryPatterns

public static int queryPatterns

Resource reference to the string array of query patterns for a custom capability.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

shortcutMatchRequired

public static int shortcutMatchRequired

Indicates whether a parameter in a capability template can only contain a matched shortcut id and not an arbitrary string.

May be a boolean value, such as "true" or "false".

ttcIndex

public static int ttcIndex

The index of the font in the tcc font file. If the font file referenced is not in the tcc format, this attribute needs not be specified.

May be an integer value, such as "100".

Public constructors

attr

public attr()