Interface background configuration method, device, wearable device and storage medium

By configuring interface background animation in wearable devices, the problem of single interface background display is solved, achieving richer display content and user experience.

CN113934479BActive Publication Date: 2025-08-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010670603.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-13
Publication Date
2025-08-15
Estimated Expiration
2041-02-11

AI Technical Summary

Technical Problem

The interface background display content of existing wearable devices is relatively single, lacking dynamic changes, and insufficient user experience.

Method used

By responding to the interface background configuration event, obtaining configuration information, and determining that the interface background type is an animation type, configure the interface background animation and display it to enrich the display content of the interface background.

Benefits of technology

It realizes animation display of wearable device interface background, improves the amount of information and richness of display content, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934479B_ABST
    Figure CN113934479B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, wearable device, and computer-readable storage medium for configuring an interface background. The method includes: in response to an interface background configuration event, obtaining configuration information for the wearable device's interface background; determining the type of the interface background based on the configuration information; if the type is an animation, determining an interface background animation based on the configuration information; and configuring the interface background animation into the interface background. This method enables animation to be configured in the wearable device's interface background, enriching the wearable device's display content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wearable technology, and in particular to an interface background configuration method, apparatus, wearable device, and computer-readable storage medium. Background Art

[0002] With the development of wearable technology, more and more wearable devices are being widely used in daily life, work, and entertainment. Wearable devices such as smart bracelets, smart watches, and smart glasses have greatly facilitated people's lives. Generally, users can interact with wearable devices through their display interface, which displays relevant functional content. For example, the display interface of a smartwatch can display content such as a watch face and clock. Summary of the Invention

[0003] The embodiments of the present application provide an interface background configuration method, apparatus, wearable device, and computer-readable storage medium, which can enable the interface background of the wearable device to play animation, thereby enriching the display content of the wearable device.

[0004] A method for configuring an interface background, comprising:

[0005] In response to an interface background configuration event, obtaining configuration information of the interface background of the wearable device;

[0006] Determine the type of interface background according to configuration information;

[0007] When the type is animation type, the interface background animation is determined according to the configuration information;

[0008] Configure the interface background animation to the interface background.

[0009] An interface background configuration device, comprising:

[0010] A configuration information acquisition module, configured to acquire configuration information of the interface background of the wearable device in response to an interface background configuration event;

[0011] A type determination module is used to determine the type of the interface background according to the configuration information;

[0012] Animation determination module, used to determine the interface background animation according to the configuration information when the type is animation type;

[0013] Background configuration module, used to configure the interface background animation to the interface background.

[0014] A wearable device includes a memory and a processor, wherein the memory stores a computer program, wherein when the computer program is executed by the processor, the following steps are implemented:

[0015] In response to an interface background configuration event, obtaining configuration information of the interface background of the wearable device;

[0016] Determine the type of interface background according to configuration information;

[0017] When the type is animation type, the interface background animation is determined according to the configuration information;

[0018] Configure the interface background animation to the interface background.

[0019] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0020] In response to an interface background configuration event, obtaining configuration information of the interface background of the wearable device;

[0021] Determine the type of interface background according to configuration information;

[0022] When the type is animation type, the interface background animation is determined according to the configuration information;

[0023] Configure the interface background animation to the interface background.

[0024] The above-mentioned interface background configuration method, device, wearable device and computer-readable storage medium determine the type of interface background by obtaining the configuration information of the interface background of the wearable device in response to the interface background configuration event, determine the interface background animation when the type is an animation type, and configure the interface background animation to the interface background, thereby realizing the configuration of corresponding animation in the interface background of the wearable device through the configuration information, increasing the amount of information displayed on the interface background, and enriching the display content of the wearable device. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0026] Figure 1 This is an application environment diagram of the interface background configuration method in one embodiment;

[0027] Figure 2 A flowchart of a method for configuring an interface background in one embodiment;

[0028] Figure 3 A schematic diagram of the background configuration of the smartwatch interface in one embodiment;

[0029] Figure 4 A flowchart of obtaining configuration information in one embodiment;

[0030] Figure 5 A schematic diagram of an interface for adjusting resolution in one embodiment;

[0031] Figure 6 This is a schematic diagram of an interface for centering animation playback in one embodiment;

[0032] Figure 7 It is a structural block diagram of an interface background configuration device in one embodiment;

[0033] Figure 8 A structural block diagram of a configuration information acquisition module in one embodiment;

[0034] Figure 9 Schematic diagram of the internal structure of a wearable device in one embodiment. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0036] It will be understood that the terms "first," "second," and the like used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are used solely to distinguish a first element from another element. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of this application. The first client and the second client are both clients, but they are not the same client.

[0037] Figure 1 FIG. 1 is a schematic diagram of an application environment of an interface background configuration method in an embodiment. Figure 1 As shown, the application environment includes a wearable device 100. The wearable device 100 determines the type of the interface background by obtaining the configuration information of the interface background in response to the interface background configuration event, and determines the interface background animation when the type is an animation type, such as Figure 1 The background animation in the middle interface is an animation of rainy clouds, and this background animation is configured as the interface background of the wearable device 100. When the user triggers the interface background display event, the wearable device 100 responds to the interface background display event and plays the animation of rainy clouds on the interface background. The wearable device 100 can be a wearable device capable of displaying graphics, such as a smartwatch, smart bracelet, or smart glasses.

[0038] Figure 2The flowchart of the interface background configuration method in one embodiment is shown in FIG. The interface background configuration method in this embodiment is to run on Figure 1 The wearable device in the example is described. Figure 2 As shown, the interface background configuration method includes steps 202 to 208.

[0039] Step 202: In response to the interface background configuration event, obtain configuration information of the interface background of the wearable device.

[0040] The "interface" refers to the display area of a wearable device, such as the display screen. Users can interact with the wearable device through the wearable device's interface, such as by clicking an icon in the interface to access the corresponding function. An icon is a small image or object representing a file, program, page, or command. Users can manipulate the icon to perform operations on the corresponding object, such as playing music or opening an image. The "interface background" refers to the background image displayed on the wearable device's interface. Various display elements, such as images, icons, and text, can be added to the interface background to form the wearable device's interface display content. In a specific application, such as a smartwatch, the interface is the watch face of the smartwatch, and the interface background is the watch face background. Various display elements can be added to the watch face, and these various display elements and the watch face background form the smartwatch's display content. The "interface background configuration event" is used to control the wearable device's interface background configuration process, triggering the configuration of the wearable device's interface background. For example, the interface background image can be configured as an animation. The interface background configuration event can be configured based on actual needs, such as being triggered by a specific user action. Configuration information corresponds to the interface background and is used to define and describe the content of the interface background. For example, the configuration information can define the interface background as an image and further describe the image's location and size. Another example is that the configuration information can define the interface background as an animation and describe the animation's location, animation playback count, and animation playback triggering conditions. Configuration information can be customized by the user and sent to the wearable device. By customizing the configuration information, the user can define and describe the wearable device's interface background according to their needs.

[0041] Specifically, in response to a user-triggered interface background configuration event, the wearable device obtains its own interface background configuration information. Specifically, the wearable device obtains a resource file package corresponding to the interface background from its own storage module and parses the resource file package to obtain the configuration information corresponding to its own interface background. The resource file package can be obtained by the user customizing the wearable device's interface background and stored in the wearable device's storage module.

[0042] Step 204: Determine the type of the interface background according to the configuration information.

[0043] The interface background type refers to the type of screen displayed by the interface background, including but not limited to animation, images, and text. That is, the screen displayed by the interface background can be dynamic, such as dynamic images or text, movies, TV series, etc., or it can be a selected static image or text. The interface background is defined and described by configuration information, and the interface background type can be determined based on the configuration information.

[0044] Specifically, after obtaining the configuration information for its own interface background, the wearable device determines the type of the interface background based on the obtained configuration information. Specifically, type attribute information describing the type of the interface background can be extracted from the configuration information. The wearable device then determines the type of the interface background corresponding to the configuration information based on the type attribute information. The type attribute information can be numerical data, such as 1 representing an animation type and 0 representing a non-animation type. The type attribute information can also be a field, such as the type attribute information can directly record whether the interface background type is animation, image, or text.

[0045] Step 206: When the type is animation type, determine the interface background animation according to the configuration information.

[0046] Among them, the animation type indicates that the screen that needs to be displayed on the interface background of the wearable device is a dynamic screen, such as a video, a GIF (Graphics Interchange Format, which can be translated as Graphics Interchange Format) picture or other dynamic pictures, or dynamic text, etc. The interface background animation is the animation that needs to be displayed on the interface background as defined and described by the configuration information. The animation file of the interface background animation can be encapsulated in the configuration information, and the interface background animation can be directly extracted from the configuration information; the configuration information can also record the animation file name or animation file path of the interface background animation, and the corresponding interface background animation can be obtained according to the animation file name or animation file path.

[0047] Specifically, when the wearable device determines that the type of the interface background is an animation type, it indicates that the wearable device needs to play an animation on the interface background. The interface background animation is then determined based on the configuration information. Specifically, the animation file name can be extracted from the identification attribute information in the configuration information, and the corresponding interface background animation is determined based on the animation file name.

[0048] Step 208: configure the interface background animation to the interface background.

[0049] After determining the interface background animation, the wearable device configures the interface background animation to the interface background, thereby configuring the wearable device's interface background as a dynamic image. Furthermore, the wearable device can also display the configured interface background animation on the interface background in response to a triggered interface background display event. The interface background display event is used to control the wearable device to display the interface background. Specifically, it can control the wearable device to display an interface background image, such as an image, animation, or text. The interface background display event can be defined according to actual needs, such as defining a triggering operation for the interface background display event. When the triggering operation is met, the interface background display event is triggered, indicating that the wearable device's interface background image needs to be displayed. The triggering of the interface background display event can be configured as needed. Specifically, it can be set to user interaction triggering, such as displaying the interface background image when a user clicks the wearable device's interface background; or it can be triggered by a conditional triggering, such as displaying the interface background image when a predetermined time is reached or the wearable device screen turns on. The interface background display event can be monitored by an event listener.

[0050] Specifically, after the wearable device determines the interface background animation and configures the interface background animation to the interface background, it monitors whether an interface background display event is triggered. When the interface background display event is detected, the wearable device responds to the interface background display event and plays the interface background animation on the interface background. In a specific application, when the wearable device plays the interface background animation on the interface background, it can determine the playback area in the interface background and obtain the interface background animation through the player to play it in the playback area.

[0051] The interface background configuration method in this embodiment determines the type of interface background by obtaining the configuration information of the interface background of the wearable device in response to the interface background configuration event, determines the interface background animation when the type is an animation type, and configures the interface background animation to the interface background, thereby realizing the playback of corresponding animations on the interface background of the wearable device through the configuration information, increasing the amount of information displayed on the interface background, and enriching the display content of the wearable device.

[0052] Figure 3 FIG. 1 is a schematic diagram of the interface background configuration of a smart watch in one embodiment. Figure 3As shown, the smartwatch's dial displays the current time and the weather information "rain." The smartwatch responds to an interface background configuration event, such as when a user clicks on the weather information "rain," triggering the interface background configuration event. Based on the acquired configuration information, the smartwatch determines that the dial background type is an animation. Furthermore, based on the interface background animation determined by the configuration information, the animation depicts rainy clouds. The animation is then set as the smartwatch's dial background. Furthermore, when the user triggers the interface background display event, the smartwatch plays the rainy clouds animation in the interface background. In other embodiments, the smartwatch can also respond to other types of interface background display events, such as when a user touches a blank area of the interface background to play the interface background animation. Furthermore, the smartwatch can also trigger the playback of the interface background animation as soon as the screen turns on, without requiring user interaction.

[0053] In one embodiment, Figure 4 As shown, get the configuration information of the wearable device's interface background, including:

[0054] Step 402: Obtain a resource file package of the interface background of the wearable device.

[0055] In this embodiment, the wearable device obtains configuration information for the wearable device's interface background by parsing its own interface background resource file package. The resource file package contains a resource file that defines and describes the display screen of the wearable device's interface background, and the resource file carries configuration information. The resource file can be an XML (Extensible Markup Language) file that defines and describes the display screen of the interface background according to a custom set of grammatical description rules. The resource file package can be customized by the user and imported into the wearable device. When obtaining configuration information, the wearable device can obtain the interface background resource file package from its own storage module.

[0056] Step 404: parse the resource file package to obtain configuration information of the interface background.

[0057] Among them, the parsing corresponds to the grammatical description rules of the resource file. By parsing the resource file package, the display screen of the interface background defined and described by the resource file package can be known. The configuration information is the information that defines and describes the display screen of the interface background. The configuration information specifically includes the node elements of the interface background and the corresponding attribute information. The node element is the element that constitutes the interface background, which reflects the characteristics of a certain part of the interface background. The interface background is composed of multiple node elements, so that a variety of interface backgrounds can be obtained based on various node elements; the attribute information is the data corresponding to the attribute of the node element, which reflects the attribute characteristics of the node element corresponding to the interface background. For example, the node element in the configuration information <watchface>It can be an element that constitutes the smart watch dial, which reflects the characteristics of the smart watch dial, node element <watchface>The type attribute can be included to describe the type of the dial background. If the attribute information corresponding to the type attribute is 1, the type of the dial background is non-animated; if the attribute information corresponding to the type attribute is 0, the type of the dial background is animated.

[0058] In this embodiment, after the wearable device obtains the resource file package of its own interface background, the wearable device parses the resource file package according to the preset syntax description rules corresponding to each resource file in the resource file package, obtains each node element and corresponding attribute information of the interface background, that is, obtains the configuration information of the interface background.

[0059] In this embodiment, the wearable device obtains the configuration information of the interface background of the wearable device by parsing the resource file package of its own interface background, thereby obtaining the configuration information of the interface background from the defined resource file package, and configuring the interface background of the wearable device through the configuration information, which can effectively improve the processing efficiency of the interface background configuration.

[0060] In one embodiment, the configuration information includes each node element of the interface background and corresponding attribute information; determining the type of the interface background based on the configuration information includes: constructing a root tag corresponding to the interface background based on each node element of the interface background and corresponding attribute information; determining the type of the interface background based on the type attribute information in the root tag.

[0061] In this embodiment, a root tag corresponding to the interface background is constructed based on each node element of the interface background included in the configuration information and the corresponding attribute information, so as to determine the type of the interface background according to the type attribute information in the root tag. Among them, the root tag is the outermost tag, and the tag can be an HTML (Hyper Text Markup Language) tag. The HTML tag is the most basic unit in the HTML language, and the HTML tag is the most important component of HTML. The root tag may include various attribute information, such as a type attribute that reflects the type of the interface background. By constructing the configuration information of the interface background into a root tag, the configuration information can be effectively managed and controlled through the tag structure of the root tag.

[0062] Specifically, the wearable device constructs a root tag corresponding to the interface background, and the root tag is used to manage and control the configuration information of the interface background. For example, the root tag WatchFaceElementRoot can be constructed in a smart watch. The wearable device writes each node element and corresponding attribute information of the obtained interface background into the constructed root tag. Specifically, each node element can be constructed, and the attribute information can be written into the corresponding node element to obtain the root tag after the configuration information is written. The root tag carries the configuration information of the interface background. The wearable device can extract the configuration information of the interface background from the root tag, such as extracting the type attribute information reflecting the type of the interface background, so as to determine the type of the interface background. By extracting each node element and the corresponding attribute information of the interface background from the root tag, the interface background of the wearable device can be further configured and processed according to each node element and the corresponding attribute information.

[0063] In this embodiment, the node elements and corresponding attribute information of the interface background are managed and controlled through the root tag, so that the wearable device can quickly extract the configuration information of the interface background from the root tag constructed based on the configuration information, such as determining the type of the interface background based on the type attribute information in the root tag.

[0064] In one embodiment, determining the interface background animation according to the configuration information includes: determining the animation identifier of the interface background from the configuration information; and determining the interface background animation according to the animation identifier.

[0065] In this embodiment, when the type of the interface background is determined to be an animation type according to the configuration information, the interface background animation is determined according to the animation identifier of the interface background. The animation identifier can be identification attribute information in the configuration information, which is used to distinguish various animation files. Specifically, it can be an animation file name, animation file number, or animation file path, etc. The animation identifier can be extracted from the configuration information. In a specific implementation, if a corresponding root tag is constructed according to the configuration information, the animation identifier of the interface background can be determined by the identification attribute information in the root tag, thereby determining the interface background animation according to the animation identifier.

[0066] Specifically, when determining the interface background animation, the wearable device determines the animation identifier of the interface background from the configuration information. For example, the interface background identifier attribute information can be retrieved from the root tag after the configuration information is written. The interface background animation identifier is obtained based on the identifier attribute information, and the interface background animation is determined based on the animation identifier. In a specific implementation, the interface background animation can be directly stored in the configuration information, so that the wearable device can directly obtain the interface background animation from the configuration information; the interface background animation can also be extracted based on the animation file path stored in the configuration information.

[0067] In this embodiment, the wearable device determines the interface background animation according to the animation identifier in the configuration information, so that the animation corresponding to the interface background of the wearable device can be accurately determined according to the configuration information in the configuration information.

[0068] In one embodiment, the method further includes: in response to an interface background display event, determining a playback area of the interface background animation in the interface background according to configuration information; and playing the interface background animation in the playback area.

[0069] In this embodiment, when an interface background display event is triggered, i.e., when the interface background animation configured in the interface background display is activated, the interface background animation plays in a playback area determined according to the configuration information. The interface background display event is used to control the wearable device to display the interface background. Specifically, it can control the wearable device to display an interface background image, such as an image, animation, or text. The interface background display event can be defined according to actual needs, such as defining a triggering operation for the interface background display event. When the triggering operation is met, the interface background display event is triggered, indicating that the wearable device's interface background image should be displayed. The triggering of the interface background display event can be configured as needed. Specifically, it can be set to user interaction triggering, such as displaying the interface background image when a user clicks the wearable device's interface background. It can also be triggered conditionally, such as displaying the interface background image when a predetermined time is reached or when the wearable device screen turns on. The interface background display event can be monitored by an event listener. The playback area refers to the range within the interface background where the animation is played and displayed. The playback area is determined based on the configuration information, specifically based on the location attribute information in the configuration information. The location attribute information describes the location and size of the playback area within the interface background. The playback area within the interface background can be determined based on the location attribute information. In specific implementation, if a root tag is constructed according to the configuration information, the playback area of the interface background animation can be obtained according to the position attribute information in the root tag, so as to play the corresponding interface background animation in the playback area.

[0070] Specifically, when the wearable device detects an interface background display event, indicating that an interface background animation needs to be displayed, that is, the interface background animation needs to be played on the interface background, the wearable device determines the playback area of the interface background animation in the interface background according to the configuration information, specifically extracts the position attribute information from the configuration information or from the root tag constructed according to the configuration information, and determines the playback area in the interface background according to the position attribute information. After determining the playback area, the interface background animation is played in the playback area. In a specific application, determining the playback area in the interface background according to the position attribute information can be to determine the position and range of the animation player in the interface background according to the position attribute information, and playing the interface background animation in the corresponding position and range through the animation player, thereby realizing the animation display processing of the interface background.

[0071] In this embodiment, the interface background animation is played in the playback area determined according to the configuration information, thereby determining the playback area of the interface background animation in the interface background according to the configuration information corresponding to the interface background, thereby implementing the configuration processing of the playback area of the interface background animation based on the configuration information.

[0072] In one embodiment, playing the interface background animation in the play area includes: determining play parameters of the interface background animation according to the configuration information; and playing the interface background animation in the play area according to the play parameters.

[0073] In this embodiment, the interface background animation is played in the playback area according to the playback parameters determined according to the configuration information. The playback parameters are parameters corresponding to the playback control of the interface background animation, and may include, for example, parameters for controlling the playback time of the interface background animation, parameters for controlling whether the playback of the interface background animation is looped, etc. The playback parameters can be determined from the configuration information, and specifically can be determined according to the playback attribute information in the configuration information, and the playback attribute information is set by the user when defining the configuration information. In a specific implementation, if a root tag is constructed according to the configuration information, the playback parameters of the interface background animation can be obtained according to the playback attribute information in the root tag, so as to play the corresponding interface background animation according to the playback parameters.

[0074] Specifically, when the wearable device plays the interface background animation in the playback area, it determines the playback parameters of the interface background animation based on the configuration information. Thus, the playback control parameters of the interface background animation are determined based on the configuration information, and the interface background animation is played in the playback area according to the playback parameters. By playing the interface background animation based on the playback parameters determined by the configuration information, the playback control of the interface background animation played in the playback area can be made to correspond to the configuration information, thereby meeting the user's configuration requirements for the animation displayed on the interface background.

[0075] In one embodiment, the playback parameter includes at least one of a playback mode, a playback frequency, and a playback time.

[0076] The playback mode may include, but is not limited to, loop playback or one-time playback. The playback frequency may include a repeat playback period, such as once an hour or once a week. The playback time is the duration of the animation playback, such as 10 seconds or 5 seconds. The playback parameters are determined based on the playback attribute information in the configuration information, which is defined by the user as needed. The playback parameters may include at least one of the playback mode, playback frequency, and playback time, thereby enabling flexible control of the playback of the interface background animation.

[0077] In one embodiment, before playing the interface background animation in the playback area, it includes: determining the resolution of the interface background animation and the resolution of the playback area; when the resolution of the interface background animation does not match the resolution of the playback area, adjusting the resolution of the interface background animation.

[0078] In this embodiment, the resolution of the interface background animation is adjusted according to the resolution of the interface background animation and the resolution of the playback area, so that the resolution of the interface background animation matches the resolution of the playback area, thereby improving the display effect of the interface background animation.

[0079] Specifically, when the wearable device plays the interface background animation in the playback area, it first determines the resolution of the interface background animation and the resolution of the playback area respectively. Resolution is a parameter used to measure the amount of data in an image. The resolution of the interface background animation is the number of effective pixels in the horizontal and vertical directions of each frame image that makes up the interface background animation. For example, the resolution is 320×180ppi (Pixel per inch), that is, the number of effective pixels in the horizontal direction of the image is 320, and the number of effective pixels in the vertical direction is 180. Generally speaking, the higher the resolution, the clearer the animation.

[0080] The resolution of the interface background animation is determined according to the properties of the interface background animation itself. Specifically, it can be determined according to the resolution properties of the interface background animation, or the resolution of the image in the interface background animation can be analyzed to obtain the resolution of the interface background animation. The resolution of the playback area is related to the hardware device of the wearable device's interface background. The resolution of the playback area can be determined based on the display parameters of the wearable device and the size of the playback area. For example, if the playback area is the entire interface background of the wearable device, the resolution of the playback area is the same as the resolution of the wearable device's interface background; if the playback area is a part of the interface background, the resolution of the playback area can be determined based on the ratio of the playback area to the interface background, combined with the resolution of the interface background.

[0081] After the wearable device obtains the resolution of the interface background animation and the resolution of the playback area, it compares the resolution of the interface background animation and the resolution of the playback area. If the resolution of the interface background animation does not match the resolution of the playback area, it indicates that the effect of the interface background animation is limited when played directly in the playback area. The wearable device can then adjust the resolution of the interface background animation so that the adjusted resolution of the interface background animation matches the resolution of the playback area, ensuring the animation playback effect of the interface background animation played in the playback area.

[0082] In a specific implementation, if the resolution of the interface background animation is smaller than the resolution of the playback area, the wearable device may not adjust the resolution of the interface background animation and directly play the interface background animation in the playback area. Alternatively, the wearable device may increase the resolution of the interface background animation so that the resolution of the adjusted interface background animation is the same as the resolution of the playback area. On the other hand, if the resolution of the interface background animation is larger than the resolution of the playback area, the wearable device may reduce the resolution of the interface background animation so that the resolution of the adjusted interface background animation is the same as the resolution of the playback area.

[0083] Furthermore, playing the interface background animation in the play area includes: playing the adjusted interface background animation in the play area.

[0084] After adjusting the resolution of the interface background animation, the adjusted interface background animation is played in the playback area. This allows the playback area to play the adjusted interface background animation that matches the resolution of the playback area, improving the animation display effect of the interface background.

[0085] In this embodiment, when the resolution of the interface background animation does not match the resolution of the playback area, the wearable device adjusts the resolution of the interface background animation so that the resolution of the adjusted interface background animation matches the resolution of the playback area, thereby improving the display effect of the adjusted interface background animation.

[0086] like Figure 5 FIG. 1 is a schematic diagram of adjusting the resolution of the interface background animation in one embodiment. Figure 5 As shown, the interface background animation determined according to the configuration information is an animation of rainy clouds, and the resolution of the interface background animation is greater than the resolution of the dial background playback area in the smart watch, then the resolution of the interface background animation is adjusted, and the adjusted animation of rainy clouds is played in the playback area of the dial background, so that the resolution of the adjusted interface background animation matches the resolution of the playback area, thereby improving the display effect of the adjusted interface background animation.

[0087] In one embodiment, the resolution includes a first number of pixels in a first direction and a second number of pixels in a second direction, and the first direction is perpendicular to the second direction; adjusting the resolution of the interface background animation includes: adjusting the first number of pixels of the interface background animation to be the same as the first number of pixels of the playback area; adjusting the second number of pixels of the interface background animation according to the ratio of the first number of pixels to the second number of pixels of the interface background animation.

[0088] In this embodiment, the resolution of the interface background animation is adjusted based on a first number of pixels in a first direction and a second number of pixels in a second direction. The first direction is perpendicular to the second direction. If the first direction is horizontal, the second direction is vertical; if the first direction is vertical, the second direction is horizontal. The first number of pixels is the number of pixels corresponding to the first direction, and the second number of pixels is the number of pixels corresponding to the second direction.

[0089] Specifically, when adjusting the resolution of the interface background animation, the wearable device adjusts the first pixel number of the interface background animation to the same as the first pixel number of the playback area, and then adjusts the second pixel number of the interface background animation accordingly based on the ratio of the first pixel number to the second pixel number of the interface background animation. For example, if the resolution of the playback area is X0×Y0 and the resolution of the interface background animation is X1×Y1, the wearable device can first adjust X1 to be the same as X0, and then proportionally adjust Y1 according to the proportional relationship between X1 and Y1 to obtain Y', and then the resolution of the adjusted interface background animation is X0×Y'. If Y' is the same as Y0, the adjusted interface background animation can be played and displayed completely in the playback area. In addition, the wearable device can first adjust Y1 to be the same as Y0, and then proportionally adjust X1 according to the proportional relationship between X1 and Y1 to obtain X', and then the resolution of the adjusted interface background animation is X'×Y0.

[0090] In this embodiment, the resolution of the interface background animation is adjusted by the ratio of the first number of pixels to the second number of pixels of the interface background animation, which can avoid compression or stretching of the interface background animation, resulting in distortion of the interface background animation, thereby improving the display effect of the interface background animation.

[0091] In one embodiment, the interface background configuration method also includes: during the process of playing the adjusted interface background animation, when the second pixel number of the adjusted interface background animation does not match the second pixel number of the playback area, controlling the adjusted interface background animation to play in the center of the second direction of the playback area.

[0092] In this embodiment, when the second pixel number of the adjusted interface background animation does not match the second pixel number of the playback area according to the ratio of the first pixel number to the second pixel number of the interface background animation, the adjusted interface background animation can be controlled to be played in the center of the second direction of the playback area, thereby avoiding compression or stretching of the interface background animation, which causes distortion of the interface background animation, and ensuring the display effect of the interface background animation.

[0093] Specifically, when the wearable device is playing the adjusted interface background animation, if the second pixel count of the adjusted interface background animation does not match the second pixel count of the playback area, it indicates that the ratio of the first pixel count to the second pixel count in the resolution of the interface background animation is different from the ratio of the first pixel count to the second pixel count in the resolution of the playback area. The wearable device then controls the adjusted interface background animation to be played in the center of the second direction of the playback area, thereby ensuring that the interface background animation will not be squashed or stretched when displayed in playback areas of different sizes, resulting in image distortion, thereby improving the animation display effect of the interface background.

[0094] like Figure 6 This is a schematic diagram of playing the adjusted interface background animation in the center in one embodiment. Figure 6 In the example, if the interface background animation determined according to the configuration information is an animation of rainy clouds, and the resolution of the interface background animation is greater than the resolution of the dial background playback area in the smartwatch, the resolution of the interface background animation is adjusted, and the adjusted animation of rainy clouds is played in the playback area of the dial background. Furthermore, if the width of the adjusted interface background animation is the same as the width of the playback area, and the height of the adjusted interface background animation is greater than the height of the playback area, the wearable device controls the adjusted interface background animation to be played in the center in the height direction, thereby ensuring that the interface background animation will not be squashed or stretched when displayed in playback areas of different sizes, causing the screen to be distorted, thereby improving the animation display effect of the interface background.

[0095] In one embodiment, the interface background display event includes at least one of a screen light event and a click event.

[0096] Among them, the screen-on event is the event that the display screen of the wearable device lights up, and the click event is the event that the user performs human-computer interaction based on the interface of the wearable device. Specifically, the screen-on event or click event of the wearable device can be set according to the actual needs of the wearable device. For example, the screen-on event of a smartwatch can be a hand-raising wake-up event, that is, when the smartwatch detects the user raising their hand, it lights up the display screen and plays the interface background animation in the playback area of the interface background in response to the screen-on event; for another example, when the user clicks the dial background of the smartwatch, the interface background animation plays in the playback area of the interface background in response to the click event.

[0097] The interface background display event includes at least one of a screen light event or a click event, so that the wearable device can respond to various interface background display events and play interface background animation on the interface background, expanding the application scenarios of the interface background configuration method.

[0098] In one embodiment, the interface background configuration method further includes: obtaining an interface background switching instruction in response to an interface background switching event; determining a target interface background according to the interface background switching instruction; and switching the interface background animation to the target interface background.

[0099] In this embodiment, the interface background animation of the interface background can also be switched in response to the interface background switching event. The interface background switching event is used to control the interface background animation played when the wearable device switches the interface background. The interface background switching event can be flexibly configured by the user, such as long pressing the interface background animation, clicking the animation switching component, etc. The interface background switching event can also be monitored by the event listener.

[0100] Specifically, when the wearable device detects that an interface background switching event is triggered, indicating that the interface background animation corresponding to the interface background needs to be switched, the wearable device responds to the interface background switching event and obtains an interface background switching instruction. The interface background switching instruction can be an instruction that triggers the interface background switching event. According to the interface background switching instruction, the target interface background to which the interface background needs to be switched can be determined. In specific implementation, if it is detected that the user long-presses the interface background animation, the background switching interface can be displayed, and the interface background screens can be scrolled in sequence on the background switching interface. When the user releases the long-press operation, the interface background screen corresponding to the long-press operation is determined to be the target interface background. The wearable device determines the target interface background according to the interface background switching instruction. The target interface background is the screen that needs to be displayed after the interface background is updated. The wearable device switches the interface background animation to the target interface background, that is, switches the interface background animation to the target interface background, thereby realizing the switching of the interface background.

[0101] In this embodiment, in response to the interface background switching event, the interface background animation of the interface background is switched, so that the interface background can be flexibly switched, which enriches the interface background display content and improves the configuration efficiency of the interface background.

[0102] In one embodiment, the interface background configuration method provided in the present application is applied to a smart watch, thereby configuring the dial background of the smart watch so that the dial background of the smart watch can play animation, thereby enriching the display content of the smart watch.

[0103] Specifically, the operating system engine of a smartwatch, such as the ColorOS Watch engine, parses and renders the resource file package (i.e., the resource file package) on the storage device. The parsing is based on a set of grammatical description rules customized using XML files. Each watch face needs to describe the desired effect in the XML file according to the designed grammatical rules, such as which images or text to display, the display position, and the animation rules. The watch face engine can read the XML file and the required image resources and other materials from the compressed package, parse the rules in the XML, and render it into the actual display content.

[0104] There are many types of watch faces for smart watches, such as picture watch faces, text watch faces, and animation watch faces. Animation watch faces set a dynamic image, such as a video, as the watch face background. This video will start playing in response to events such as screen lighting and clicks. To support the configuration restoration of animation watch faces, the operating system engine of smart watches can add a root tag: WatchFaceElementRoot. The root tag will store all node elements and attribute information read from the XML. Among them, <watchface>The node element has a type attribute, which is used to mark the type of watch face. 0 indicates a non-animated watch face, and 1 indicates an animated watch face. When the animation is a video, that is, when the watch face is a video, the WatchFaceElementRoot object also has a member variable VideoManager (video manager). Only when the type attribute is 1, that is, when the current watch face is a video watch face, will the VideoManager activate the job. The job of VideoManager is to control an area on the smartwatch display to play videos. This area is videoView (video player). VideoManager sets the playback content and playback mode of videoView by reading other attributes stored in WatchFaceElementRoot, such as videoName (video file name, such as xxx.mp4), loop (marking whether the video is played in a loop), etc.

[0105] Specifically, the smartwatch's operating system engine reads the type attribute of the WatchFaceElementRoot and determines if it's set to 1, indicating that the watch face is a video-based watch face. The engine then reads the videoName attribute to assign the video file to the videoView. Furthermore, the operating system engine can also read the loop attribute to set whether the video should play in a loop.

[0106] Furthermore, when the same video is played on different screen sizes, it is placed on the watch face with a uniform aspect ratio of 402:476. The width of the video will remain consistent with the screen width, and the height will be proportionally converted. The portion exceeding the screen height will be shifted upward to keep the video vertically centered. This ensures that the original video will not be squashed or stretched, causing distortion, when displayed on screens of different sizes. Response events can be handled through method calls and registering click event listeners.

[0107] After configuring the above attributes in the WatchFaceElementRoot tag, the smartwatch's operating system engine will parse and render the video as the watch face background on the watch face interface. This achieves the effect of displaying the video as the background on the watch face interface through configuration. By defining video-related attributes in the root tag, the smartwatch's operating system engine can parse it and convert it into a video background and display it on the watch face interface, thereby increasing the types of watch faces that can be restored through configuration and enriching the display content of the smartwatch.

[0108] It should be understood that although Figure 2 and Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2 and Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0109] Figure 7 FIG. 1 is a structural block diagram of an interface background configuration device according to an embodiment. Figure 7 As shown, in one embodiment, an interface background configuration device includes a configuration information acquisition module 702, a type determination module 704, an animation determination module 706 and a background configuration module 708.

[0110] The configuration information acquisition module 702 is used to obtain the configuration information of the interface background of the wearable device in response to the interface background configuration event;

[0111] Type determination module 704, used to determine the type of the interface background according to the configuration information;

[0112] Animation determination module 706, for determining the interface background animation according to the configuration information when the type is animation type;

[0113] The background configuration module 708 is used to configure the interface background animation into the interface background.

[0114] like Figure 8 As shown, in one embodiment, the configuration information acquisition module 702 includes a resource file package acquisition module 802 and a resource file package parsing module 804.

[0115] The resource file package acquisition module 802 is used to acquire the resource file package of the interface background of the wearable device;

[0116] The resource file package parsing module 804 is used to parse the resource file package to obtain the configuration information of the interface background.

[0117] In one embodiment, the configuration information includes each node element of the interface background and the corresponding attribute information; the type determination module 704 includes a root tag construction module and a type attribute module; wherein: the root tag construction module is used to construct the root tag corresponding to the interface background according to each node element of the interface background and the corresponding attribute information; the type attribute module is used to determine the type of the interface background according to the type attribute information in the root tag.

[0118] In one embodiment, the animation determination module 706 includes an animation identification determination module and an animation identification processing module; wherein: the animation identification determination module is used to determine the animation identification of the interface background from the configuration information; the animation identification processing module is used to determine the interface background animation according to the animation identification.

[0119] In one embodiment, it also includes a playback area determination module and a playback area playback module; wherein: the playback area determination module is used to respond to the interface background display event and determine the playback area of the interface background animation in the interface background according to the configuration information; the playback area playback module is used to play the interface background animation in the playback area.

[0120] In one embodiment, the playback area playback module includes a playback parameter determination module and a playback control module; wherein: the playback parameter determination module is used to determine the playback parameters of the interface background animation according to the configuration information; the playback control module is used to play the interface background animation in the playback area according to the playback parameters.

[0121] In one embodiment, the playback parameter includes at least one of a playback mode, a playback frequency, and a playback time.

[0122] In one embodiment, it also includes a resolution determination module and a resolution adjustment module; wherein: the resolution determination module is used to determine the resolution of the interface background animation and the resolution of the playback area; the resolution adjustment module is used to adjust the resolution of the interface background animation when the resolution of the interface background animation does not match the resolution of the playback area; the playback area playback module is also used to play the adjusted interface background animation in the playback area.

[0123] In one embodiment, the resolution includes a first number of pixels in a first direction and a second number of pixels in a second direction, and the first direction is perpendicular to the second direction; the resolution adjustment module includes a first pixel number adjustment module and a second pixel number adjustment module; wherein: the first pixel number adjustment module is used to adjust the first pixel number of the interface background animation to the same as the first pixel number of the playback area; the second pixel number adjustment module is used to adjust the second pixel number of the interface background animation according to the ratio of the first pixel number to the second pixel number of the interface background animation.

[0124] In one embodiment, a centered playback control module is also included, which is used to control the adjusted interface background animation to be played centered in the second direction of the playback area when the second pixel number of the adjusted interface background animation does not match the second pixel number of the playback area during the playback of the adjusted interface background animation.

[0125] In one embodiment, the interface background display event includes at least one of a screen light event and a click event.

[0126] In one embodiment, it also includes a switching instruction acquisition module, a target background determination module and an interface background switching module; wherein: the switching instruction acquisition module is used to obtain an interface background switching instruction in response to an interface background switching event; the target background determination module is used to determine the target interface background according to the interface background switching instruction; the interface background switching module is used to switch the interface background animation to the target interface background.

[0127] The division of the various modules in the above interface background configuration device is only for illustration. In other embodiments, the interface background configuration device can be divided into different modules as needed to complete all or part of the functions of the above interface background configuration device.

[0128] For the specific definition of the interface background configuration device, please refer to the definition of the interface background configuration method above and will not be repeated here. The various modules in the above-mentioned interface background configuration device can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of the above-mentioned modules.

[0129] Figure 9 FIG. 1 is a schematic diagram of the internal structure of a wearable device in one embodiment. Figure 9 As shown, the wearable device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire wearable device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an interface background configuration method provided in the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The wearable device can be a wearable device that can display graphics, such as a smart bracelet, a smart watch, or smart glasses.

[0130] The various modules in the interface background configuration device provided in the embodiments of the present application may be implemented in the form of a computer program. The computer program may be executed on a terminal or server. The program modules comprising the computer program may be stored in a memory of an electronic device. When the computer program is executed by a processor, the steps of the method described in the embodiments of the present application are implemented.

[0131] The present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of the interface background configuration method.

[0132] A computer program product comprising instructions enables the computer to execute an interface background configuration method when the computer program product is run on the computer.

[0133] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Nonvolatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).

[0134] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.< / watchface> < / watchface> < / watchface>

Claims

1. A method for configuring an interface background, characterized in that: Applied to wearable devices, including: In response to an interface background configuration event, obtaining a resource file package of the interface background of the wearable device from a local storage module; the resource file package records a resource file that defines and describes a display screen corresponding to the interface background, and the resource file carries configuration information; Parsing the resource file package to obtain configuration information of the interface background, wherein the configuration information includes each node element constituting the interface background and corresponding attribute information; Constructing a root tag corresponding to the interface background according to each node element and corresponding attribute information of the interface background; writing each node element and corresponding attribute information of the interface background into the constructed root tag respectively; Determine the type of the interface background according to the type attribute information in the root tag; When the type is an animation type, determining the interface background animation according to the configuration information; Configuring the interface background animation to the interface background; In response to an interface background display event, determining a playback area of the interface background animation in the interface background according to the position attribute information in the root tag; Determine the playback parameters of the interface background animation according to the position attribute information in the root tag; According to the playback parameters, the interface background animation is played in the playback area.

2. The method according to claim 1, characterized in that The determining of the interface background animation according to the configuration information includes: Determine the animation identifier of the interface background from the configuration information; The interface background animation is determined according to the animation identifier.

3. The method according to claim 1, characterized in that The playback parameters include at least one of a playback mode, a playback frequency, and a playback time.

4. The method according to claim 1, wherein Before playing the interface background animation in the playback area, the method includes: Determine the resolution of the interface background animation and the resolution of the playback area; When the resolution of the interface background animation does not match the resolution of the playback area, adjusting the resolution of the interface background animation; Playing the interface background animation in the playback area includes: The adjusted interface background animation is played in the playback area.

5. The method according to claim 4, characterized in that The resolution includes a first number of pixels in a first direction and a second number of pixels in a second direction, the first direction being perpendicular to the second direction; The adjusting the resolution of the interface background animation includes: Adjusting the first pixel number of the interface background animation to be the same as the first pixel number of the playback area; According to the ratio of the first number of pixels to the second number of pixels of the interface background animation, the second number of pixels of the interface background animation is adjusted.

6. The method according to claim 5, characterized in that The method further comprises: During the process of playing the adjusted interface background animation, when the second pixel number of the adjusted interface background animation does not match the second pixel number of the playback area, the adjusted interface background animation is controlled to be played in the center of the second direction of the playback area.

7. The method according to any one of claims 1 to 6, characterized in that The interface background display event includes at least one of a screen light event and a click event.

8. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In response to an interface background switching event, obtaining an interface background switching instruction; Determine the target interface background according to the interface background switching instruction; Switch the interface background animation to the target interface background.

9. An interface background configuration device, characterized in that: Applied to wearable devices, including: A configuration information acquisition module is configured to, in response to an interface background configuration event, obtain a resource file package of the interface background of the wearable device from a local storage module; the resource file package records a resource file that defines and describes a display screen corresponding to the interface background, and the resource file carries configuration information; parse the resource file package to obtain configuration information of the interface background, the configuration information including each node element constituting the interface background and corresponding attribute information; A type determination module is used to construct a root tag corresponding to the interface background based on each node element and corresponding attribute information of the interface background; write each node element and corresponding attribute information of the interface background into the constructed root tag; and determine the type of the interface background based on the type attribute information in the root tag; Animation determination module, used for determining the interface background animation according to the configuration information when the type is an animation type; A background configuration module, used to configure the interface background animation into the interface background; A playback area determination module, configured to determine, in response to an interface background display event, a playback area of the interface background animation within the interface background according to the position attribute information in the root tag; The playback area playback module is used to determine the playback parameters of the interface background animation according to the position attribute information in the root tag; and play the interface background animation in the playback area according to the playback parameters.

10. The device according to claim 9, characterized in that The animation determination module is further configured to determine an animation identifier of the interface background from the configuration information; and determine the interface background animation according to the animation identifier.

11. The device according to claim 9, characterized in that The playback parameters include at least one of a playback mode, a playback frequency, and a playback time.

12. The device according to claim 9, characterized in that The device further comprises: A resolution determination module, used to determine the resolution of the interface background animation and the resolution of the playback area; A resolution adjustment module, configured to adjust the resolution of the interface background animation when the resolution of the interface background animation does not match the resolution of the playback area; The playback area playback module is further configured to play the adjusted interface background animation in the playback area.

13. The device according to claim 12, characterized in that The resolution includes a first number of pixels in a first direction and a second number of pixels in a second direction, the first direction being perpendicular to the second direction; The resolution adjustment module includes: A first pixel number adjustment module, configured to adjust the first pixel number of the interface background animation to be the same as the first pixel number of the playback area; The second pixel number adjustment module is used to adjust the second pixel number of the interface background animation according to the ratio of the first pixel number to the second pixel number of the interface background animation.

14. A wearable device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the interface background configuration method according to any one of claims 1 to 8.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the interface background configuration method according to any one of claims 1 to 8 are implemented.

16. A computer program product comprising instructions, which, when executed on a computer, enables the computer to implement the steps of the interface background configuration method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image processing method and system

    CN104320563A

  • Control display method and device

    CN107203389A

  • Equipment, device and method for realizing animation dial background on smart watch

    CN109782563A