Lines Matching refs:resources

3 During application development, you may need to use different resources, such as colors, fonts, spa…
5 - Application resources: configure device- or configuration-specific resources in the resource file…
7resources: Obtain the ID and configuration-specific values of colors, fonts, or other resources in…
16 > The common resource files used across projects in the stage model are stored in the **resources**…
18 Example of the **resources** directory:
20 resources
28 |---en_US // Default directory. When the device language is en-us, resources in this directory are…
35 |---zh_CN // Default directory. When the device language is zh-cn, resources in this directory are…
49 …pes of files are saved as raw files and will not be integrated into the resources.index file. You …
50 …pes of files are saved as raw files and will not be integrated into the resources.index file. You …
71 … specified in the following table. Otherwise, the resource files in the resources directory cannot…
96 …nclude **element**, **media**, and **profile**, which are used to store resources of specific type…
102 | element | Element resources. Each type of data is represented by a JSON file. (Only files are sup…
103 | media | Indicates media resources, including non-text files such as images, audios, and videos.…
211 You can create a directory and its files under the **resources** directory based on the preceding d…
215 Right-click the **resources** directory and choose **New** > **Resource File**. If no qualifier is …
223 Right-click the **resources** directory and choose **New** > **Resource Directory** to create a dir…
229 Right-click a directory under **resources** and choose **New** > **XXX Resource File**. This operat…
254 The **attr** attribute applies to the string, strarray, and plural resources in the **base** direct…
256 resources
292resources through **$r()** or **$rawfile()**.<br>To access resources of the color, float, string, …
324 …access different resources.<br>For example, call **getContext().resourceManager.getStringByNameSyn…
331 …../reference/apis-localization-kit/js-apis-resource-manager.md) APIs to access different resources.
336 …../reference/apis-localization-kit/js-apis-resource-manager.md) APIs to access different resources.
338 - Access resources through **$r()** or **$rawfile()**. Specifically, perform either of the followin…
378 …ailable at compile time, and you need to manually check that the target resources exist in the cor…
383 …lors, fonts, or other resources in [Resources](https://gitee.com/openharmony/docs/blob/master/en/d…
385 To access system resources, use the "$r('sys.type.resource_name')" format, where **sys** indicates …
389 > - The use of system resources is only supported in the declarative development paradigm.
391 …dvised to use system resources. For third-party applications, you can choose to use system resourc…
393 > - You can view the fonts for the system resources in the **system/etc/fontconfig.json** file. The…
417resources** directory does not contain any qualifiers subdirectories that match the current device…
421 - Qualifiers are matched with the device resources in the following priorities: MCC&MNC > locale (o…
423 …e status so that the subdirectories can be used for matching the device resources. For example, th…
427 For more information about how resources are loaded in applications, see the internationalization a…
433 … **resources** directory to meet different system settings such as multi-language support and dark…
435 If this is the case, you can use the following APIs to obtain resources for a specific configuratio…
441 ….md#resourcemanager) | Obtains a **ResourceManager** object for loading resources for a specific c…
447 …n the resources for languages other than the one in use. Assume that the following resource files …
449 - entry/src/main/resources/zh_CN/element/string.json
462 - entry/src/main/resources/en_US/element/string.json
475 - entry/src/main/resources/de_DE/element/string.json
488 In **Index.ets**, add code to obtain the resources of the three languages and display them in the t…
501 …// Obtain resources that match the current system configuration, including the color mode and reso…
504 …// Obtain resources that match the current system configuration, including the color mode and reso…
510 …// Obtain resources that match the current system configuration, including the color mode and reso…
546resources and uses [removeResource(path)](../reference/apis-localization-kit/js-apis-resource-man…