R.attr


class R.attr


Summary

Public constructors

Public properties

java-static Int

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

java-static Int

The reference to the font file to be used.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

The length of the timeout during fetching.

java-static Int

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

java-static Int

The query to be sent over to the provider.

java-static Int

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

java-static Int

The style of the given font file.

java-static Int

Common name attributes.

java-static Int

The weight of the given font file.

java-static Int

Perceptual luminance applied to the base color.

java-static Int

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

java-static Int

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

java-static Int

The index of the font in the tcc font file.

Public constructors

attr

attr()

Public properties

alpha

java-static val alphaInt

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

java-static val fontInt

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

java-static val fontProviderAuthorityInt

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

java-static val fontProviderCertsInt

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

java-static val fontProviderFetchStrategyInt

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

java-static val fontProviderFetchTimeoutInt

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

java-static val fontProviderPackageInt

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

java-static val fontProviderQueryInt

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

java-static val fontProviderSystemFontFamilyInt

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

fontStyle

java-static val fontStyleInt

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

java-static val fontVariationSettingsInt

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

java-static val fontWeightInt

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

java-static val lStarInt

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

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

queryPatterns

java-static val queryPatternsInt

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

java-static val shortcutMatchRequiredInt

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

java-static val ttcIndexInt

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".