WO2017097140A1 - 一种界面元素属性值的设置方法、装置及智能设备 - Google Patents
一种界面元素属性值的设置方法、装置及智能设备 Download PDFInfo
- Publication number
- WO2017097140A1 WO2017097140A1 PCT/CN2016/107595 CN2016107595W WO2017097140A1 WO 2017097140 A1 WO2017097140 A1 WO 2017097140A1 CN 2016107595 W CN2016107595 W CN 2016107595W WO 2017097140 A1 WO2017097140 A1 WO 2017097140A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- attribute value
- attribute
- interface element
- setting message
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Definitions
- the present application relates to the field of computer technology, and in particular, to a method, an apparatus, and a smart device for setting an attribute value of an interface element.
- the change of the display effect of the interface element is generally implemented by relying on a downloaded resource package (or a theme package).
- the user terminal needs to download the resource package that meets the requirement to the local device first. If the application needs to adjust the display effect of the interface element, the corresponding resource package is loaded to implement the change of the overall terminal interface display.
- the disadvantage of the above method is that if the display effect of the interface element is to be changed, the resource package needs to be downloaded.
- the resource package is generally designed for the overall interface of the terminal, and includes all the resources needed to support the overall interface change of the terminal. Therefore, the download and Loading the resource bundle will consume more resources on the terminal.
- the embodiment of the present application provides a method for setting an attribute value of an interface element, which is used to solve the problem that the interface element of the terminal is changed according to the prior art, which may result in more resources consumed by the terminal.
- the embodiment of the present application further provides a device for setting an interface element attribute value, which is used to solve the problem that the interface element of the terminal is changed according to the prior art, which may result in more resources consumed by the terminal.
- the embodiment of the present application further provides a smart device, which is used to solve the problem that the interface element of the terminal is changed according to the prior art, which may result in more resources consumed by the terminal.
- a method for setting the attribute value of an interface element including:
- the attribute value setting message includes an attribute value
- the attribute value setting message is sent such that the recipient application of the attribute value setting message assigns an attribute of the interface element according to the attribute value.
- a method for setting the attribute value of an interface element including:
- the application receives the attribute value setting message; the attribute value setting message includes the attribute value;
- a device for setting an attribute value of an interface element comprising:
- a message obtaining unit configured to obtain an attribute value setting message; the attribute value setting message includes an attribute value; and a message sending unit, configured to send an attribute value setting message, so that the receiver of the attribute value setting message is applied according to the The attribute value assigns an attribute to the interface element.
- a device for setting an attribute value of an interface element comprising:
- a message receiving unit configured to receive an attribute value setting message; the attribute value setting message includes an attribute value; and an assigning unit is configured to assign a value to an attribute of the interface element of the application according to the attribute value.
- a smart device that includes:
- a memory for storing computer program instructions
- a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
- the attribute value setting message includes an attribute value
- the attribute value setting message is sent such that the recipient application of the attribute value setting message assigns an attribute of the interface element according to the attribute value.
- a smart device that includes:
- a memory for storing computer program instructions
- a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
- the attribute value setting message includes an attribute value
- the application can send the attribute value setting message to the application, the application sets the attribute of the interface element according to the attribute value in the attribute value setting message, and does not need to download and load the resource package, thereby avoiding changing the interface element of the terminal, which may result in the consumption of the terminal.
- the problem of multiprocessing resources since the application can send the attribute value setting message to the application, the application sets the attribute of the interface element according to the attribute value in the attribute value setting message, and does not need to download and load the resource package, thereby avoiding changing the interface element of the terminal, which may result in the consumption of the terminal.
- FIG. 1 is a specific implementation flowchart of a method for setting an attribute value of an interface element according to an embodiment of the present disclosure
- Figure 1b is a schematic diagram of setting interface element identifiers for different interface elements
- FIG. 2 is a flowchart of a specific implementation of a method for setting an attribute value of an interface element according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a method for setting a color value of an interface element of an application according to an embodiment of the present application
- FIG. 4 is a schematic structural diagram of an apparatus for setting an attribute value of an interface element according to an embodiment of the present disclosure
- FIG. 5 is a schematic structural diagram of an apparatus for setting an attribute value of an interface element according to an embodiment of the present disclosure.
- the execution body of the method may be various applications installed by the user terminal, for example, an application (base application) provided by the operating system of the user terminal, or other applications (third party applications) other than the base application.
- the executor of the present invention is not limited to the present application.
- the embodiments of the present application are described by taking an execution subject as a third-party application as an example.
- a specific implementation flowchart of a method for setting an attribute value of the interface element mainly includes the following steps:
- Step 11 The third-party application receives the attribute value setting message.
- the attribute value setting message may generally include an attribute value.
- the number of attribute values included in the message is not limited.
- the attribute value included in the message may be at least one of a color value, a brightness value, and a transparency value.
- the attribute value contained in the message can be used to assign values to the attributes of the interface element.
- the attribute is generally an attribute related to a display effect, such as at least one of color, brightness, and transparency. Assigning an attribute of an interface element, such as, but not limited to, assigning an attribute of a picture as a background image of the interface element value.
- the size and shape of the image can be set according to the expected display effect of the interface element.
- the image can be a bitmap or a vector.
- the image may or may not have a texture feature or a shape feature, which is not limited in this embodiment of the present application.
- the interface element may be, for example, but not limited to, at least one of a button element including a button, a title, a toolbar, a selection box, a switch, a slider, a progress bar, or an input box, which can achieve a predetermined display effect by using a picture as a background. .
- the attribute value setting message may be sent by the operating system or sent by other applications to the third-party application.
- the attribute value setting message may be sent by broadcast or directed to a third party application.
- the attribute value setting message may include an identifier of the third-party application, so that the third-party application can determine, according to the identifier, that it can respond to the attribute value setting message.
- the attribute value setting message may be generated by a preset interface provider.
- the interface provider can provide an interface element attribute adjustment interface (the name of the interface can be COLOR_CHANGE). After the interface provided by the interface provider is invoked, the interface provider generates an attribute value setting message containing the attribute value; then, the interface provider can invoke the message to send the first interface (the name of the interface can be For updateConfigruation), send a property value setting message to the operating system. The operating system can then send a second interface (the name of the interface can be onConfigruationChange/onCreate) to send a property value setting message to the third-party application.
- the attribute value setting message may also be generated by the operating system.
- the operating system can generate an attribute value setting message triggered by a specified trigger condition.
- the specified triggering condition may be, for example, receiving a wallpaper setting instruction, or receiving a theme setting instruction, or receiving an attribute value adjustment notification sent by the server.
- the theme setting instruction may be triggered by the user selecting a theme setting option provided by the user terminal.
- the theme setting options may be operable options set for different color themes.
- the user operates the option, such as executing a click command or a gesture command, to trigger the theme setting instruction.
- the operating system may generate an attribute value setting message including the attribute value according to the preset attribute value or the obtained attribute value. Taking the attribute value as the transparency value, the operating system can obtain the preset transparency value, and generate an attribute value setting message including the transparency value according to the obtained transparency value; taking the attribute value as a color value, the operating system can The target color value is determined according to at least one of the following information, and an attribute value setting message including the target color value is generated according to the determined target color value:
- the picture generally refers to a picture that can be used for the background picture of the interface element.
- the size and shape of the picture It can be set according to the expected display effect of the interface element.
- the image can be a bitmap or a vector.
- the image may or may not have a texture feature or a shape feature, which is not limited in this embodiment of the present application.
- the following describes how the operating system determines the target color value based on at least one of the above information:
- the specified picture may be any picture saved locally by the user terminal.
- it may be a wallpaper currently used by the user terminal, or may be a certain picture specified by the user.
- the wallpaper may be a desktop wallpaper, a lock screen wallpaper, or the like.
- the picture may be, for example, a certain picture determined by the user terminal in response to the received picture selection instruction.
- the picture selection instruction may be, for example, a click command or a gesture instruction for the picture.
- the specified picture may be a bitmap.
- each pixel of the specified picture has a color value, and the color value of the pixel may also be referred to as a pixel color value.
- Each pixel color value may be, but is not limited to, represented by one or more Red Green Blue (RGB) arrays, or represented by one or more parameter values determined from the RGB array, and the like.
- RGB Red Green Blue
- the target color value may be at least one color value determined according to a pixel color value of the specified picture.
- the user terminal may determine a certain pixel color value of the specified picture as the target color value; or the user terminal may also calculate an average value of all pixel color values of the specified picture, and determine the average value as a target color value; or, the user terminal may further count the number of pixels having different color values in the specified picture, and use the color value corresponding to the largest number of all the counted numbers as the target color value; or, the user The terminal may also determine a pixel color value for representing a dominant color of the specified picture, and determine the pixel color value as a target color value;
- the pixel color value of the specified picture may be, but is not limited to, obtained by the user terminal by sampling the color value of the pixel of the specified picture.
- the above "primary color tone” indicates a basic tendency of color appearance.
- a picture uses a variety of colors, the picture has a tendency in color overall, such as bluish or reddish, warm or cold, etc.
- the basic tendency of color appearance is one.
- the main color of the picture Generally, the main color is divided from the warm and cold side, and there may be "warm tone", “cold tone” and “middle tone”.
- red, orange, and yellow indicate warm colors; green, blue, and black indicate cool colors; and gray, purple, and white indicate intermediate colors. The higher the brightness of the cool color, the warmer the overall feeling, the higher the brightness of the warm color, the colder the overall feeling.
- the specified event mentioned here may be, for example, a time-related event, such as an arrival of a holiday, or a birthday of a user, etc.; or, an event occurring at a user terminal, such as a short message that the user terminal receives the specified contact.
- the user terminal makes an order payment or the user terminal obtains forecast information of a specified type of weather (such as a sunny day or a cloudy day), and the like.
- the color value mapped to the currently existing specified event may be determined as the target color value according to the mapping relationship between each specified event and the color value.
- a color value interface including at least two colors may be displayed; subsequently, the corresponding color value is determined as the target color value according to the user's selection of the color included in the displayed color value interface.
- Step 12 The third-party application sets the attribute value of the interface element of the third-party application according to the attribute value set by the attribute value.
- the third-party application can directly set the attribute value of the interface element of the third-party application according to the attribute value setting attribute value of the message; or the third-party application can determine whether the attribute value included in the message can be set according to the attribute value, and the interface of the third-party application is set.
- the attribute of the element when the judgment result is yes, set the attribute value contained in the message according to the attribute value, and set the attribute of the interface element of the third-party application; otherwise, it may refuse to set the attribute value included in the message according to the attribute value, and set the interface of the third-party application.
- the attribute of the element - for example, the message can be set by discarding the attribute value, thereby deny the attribute assignment of the interface element of the third-party application based on the attribute value contained in the message.
- the third-party application may use, but is not limited to, any one of the following methods to determine whether the attribute value of the interface element of the third-party application is set according to the attribute value set by the attribute value setting message:
- the third-party application obtains the pre-set and saved interface element attribute adjustment rule, and determines whether the rule allows the third-party application to set the attribute of the interface element according to the attribute value of the attribute value setting message; if yes, the determination can The attribute of the interface element is set according to the attribute value; if not, it is determined that the attribute of the interface element cannot be set according to the attribute value.
- the rules can be set by the developer of the third party application and saved in the database of the third party application.
- the second method the third-party application determines whether the attribute value included in the attribute value setting message is applicable to the interface element of the third-party application; if yes, determines that the attribute of the interface element can be set according to the attribute value; if not, then It is determined that the attribute of the interface element cannot be set according to the attribute value.
- the attribute value setting message may include an interface element identifier mapped to the attribute value in addition to the attribute value.
- the third-party application receives the attribute value setting message, whether there is an interface element identifier that is the same as the interface element identifier of the third-party application in the interface element identifier included in the attribute value setting message knowledge. If the determination result is that, it may be determined that the attribute of the interface element may be set according to the attribute value included in the attribute value setting message; if the determination result is not present, it is determined that the attribute of the interface element cannot be set according to the attribute value.
- the interface element identifier included in the attribute value setting message may be an interface element identifier set in advance according to an interface function corresponding to the interface element. For example, interface elements of different applications may be sorted and determined, such as title areas, control areas, toolbars, and the like, corresponding to different interface functions; after that, different interface element identifiers may be set for these interface elements. In this way, it is possible to identify the interface elements that correspond to different interface functions by different interface elements.
- the interface of APP1 and APP2 shown in Figure 1b Take the interface of APP1 and APP2 shown in Figure 1b as an example.
- the area numbered 1 is the title area; the area numbered 2 is the control area; the area numbered 3 is the toolbar.
- the interface element identifiers set for these regions can be HEAD, MAIN, and TOOLBAR, respectively.
- the specific design content includes: setting identifiers for different areas of the application interface, and establishing a mapping relationship between identifiers and resources. Subsequent developers package the mappings and resources into the theme package.
- the disadvantage of this way is that the amount of work that designers and developers need to accomplish is very large; in addition, if the interface of the application is adjusted, the original identifier may be invalid, and the mapping relationship set by the designer is invalid. The designer needs to reset the mapping between identifiers and resources, that is, the theme package needs to be upgraded.
- the designer does not need to establish a mapping relationship between the identifier and the resource, but adopts a manner of setting the interface element identifier for different regions of the application interface.
- the application may determine whether the attribute of the interface element can be set according to the attribute value included in the attribute value setting by using the second method described above, and if so, may be set according to the attribute value.
- the attribute value contained in the message assigns a value to the attribute of the interface element of the application.
- the embodiment of the present application adopts a method for setting interface element identifiers for different regions of the interface, and can simplify design and development work and save human resources under the premise of realizing the adjustment of the attribute values of the interface elements.
- the attribute value included in the message is set according to the attribute value, and the implementation manner of assigning the attribute of the interface element of the third-party application can be flexible and diverse.
- the third-party application may directly assign the attribute value included in the attribute setting message to some or all of the interface elements of the third-party application; or calculate the genus according to the attribute value and the preset attribute value first mapping rule.
- the first mapping rule of the attribute value may be a simple one-to-one mapping relationship, or may be a complex calculation formula, which is not limited by the embodiment of the present application.
- setting the attribute value of the message according to the attribute value, and setting the attribute of the interface element of the third-party application may include:
- the third-party application selects an attribute value from the at least two attribute values, and assigns a value to the attribute of the interface element of the application according to the selected attribute value.
- the third-party application may directly assign the selected attribute value to the attribute of the interface element of the application; or the third-party application may calculate the selected attribute value mapping according to the selected attribute value and the preset attribute value second mapping rule.
- the attribute setting message may include the attribute and the attribute in addition to the attribute value.
- the interface element identifier of the value phase map That is, in the attribute setting message, interface elements respectively mapped by different attribute values may be specified, for example, the attribute value "blue” mapping interface element "control”, the attribute value “white” mapping interface element “title bar”, etc. .
- the third-party application may select the attribute value from the attribute values included in the attribute setting message according to the interface element identifier of the third-party application.
- the selected attribute value is satisfied: the interface element identifier in the mapped attribute setting message is the same as the interface element identifier of the third-party application.
- the third-party application can assign a value to the attribute of the interface element of the third-party application that has the corresponding interface element identifier according to the selected attribute value.
- the third-party application can identify the third-party application according to "blue".
- the attributes of the interface elements of KJ are assigned. Specifically, if it is assumed that the interface element of the third-party application having the identifier "KJ" is a control, the third-party application can assign "blue" to the attribute of the control of the third-party application.
- the third party application may also not filter the attribute value in the attribute setting message, but directly assign the attribute value of the interface element corresponding to the third party application corresponding to the interface element identifier included in the attribute setting message according to the attribute value included in the attribute setting message. .
- the interface element identifier may be set according to the function of the interface element as described above.
- the third-party application may receive the attribute value setting message, and may also forward the received attribute value setting message to other applications, so that other applications determine whether to set the attribute in the message according to the attribute value.
- the third-party application may send an attribute value setting message to other applications by sending a second interface onConfigruationChange/onCreate by calling the message described in the foregoing.
- the numbers are set for each step in order to describe the steps in a structured manner, and the order of the steps is not limited. It is considered a feature that limits the order in which steps are performed.
- the application can receive the attribute value setting message, the attribute of the interface element is set according to the attribute value setting message in the attribute value setting, and the resource package is not required to be downloaded and loaded, thereby avoiding changing the terminal.
- the interface elements cause the problem that the terminal consumes more resources.
- the application after the application obtains the attribute value, it can decide whether to assign the attribute or decide which interface element attributes to assign.
- the execution body of the method may be an operating system of the user terminal; or various applications installed on the user terminal, such as a base application or a third party application.
- the executor of the present invention is not limited to the present application.
- the embodiments of the present application are described by taking an execution host as an operating system as an example.
- a specific implementation flowchart of a method for setting an attribute value of the interface element mainly includes the following steps:
- Step 21 The operating system obtains an attribute value setting message.
- the attribute value setting message may contain an attribute value that can be assigned to the attribute.
- the attribute is generally an attribute related to a display effect, such as at least one of color, brightness, and transparency.
- the number of attribute values included in the message is not limited.
- the attribute value included in the message may be at least one of a color value, a brightness value, and a transparency value.
- the operating system obtains the attribute value setting message, which may include: the operating system generates an attribute value setting message, or the operating system receives the attribute value setting message.
- the operating system can generate an attribute value setting message triggered by the specified trigger condition.
- the specified triggering condition may be, for example, receiving a wallpaper setting instruction, or receiving a theme setting instruction, or receiving an attribute value adjustment notification sent by the server.
- the theme setting instruction may be triggered by the user selecting a theme setting option provided by the user terminal.
- the operating system may generate an attribute value setting message including the attribute value according to the preset attribute value or the obtained attribute value. Taking the attribute value as a color value, the operating system can determine the target color value and generate an attribute value setting message including the target color value according to the determined target color value.
- the target color value referred to herein may be, but is not limited to, determined based on at least one of a specified picture, a specified event, and a color value selected by the user. For details, refer to the related description in Embodiment 1, and details are not described herein again.
- the attribute value setting message can be generated by a preset interface provider.
- the interface provider can provide interface element attribute adjustment interface COLOR_CHANGE. After the interface provided by the interface provider is invoked, the interface provider generates an attribute value setting message containing the attribute value; then, the interface provider can invoke the message to send the first interface updateConfigruation to send to the operating system. Property value setting message.
- the attribute value setting message may be sent by the server to the operating system.
- Step 22 The operating system sends an attribute value setting message, so that the receiver application of the attribute value setting message assigns an attribute of the interface element according to the attribute value included in the message.
- the attribute value setting message may be sent by means of broadcast, or may be sent by means of directional transmission to the receiver.
- the receiver application can directly set the attribute value of the interface element of the third-party application according to the attribute value setting attribute value of the message; or the receiver application can determine whether the attribute value of the message element can be set according to the attribute value, and the attribute of the interface element is set; When the judgment result is yes, the attribute value included in the message is set according to the attribute value, and the attribute of the interface element is set. Otherwise, the attribute value included in the message setting object may be rejected according to the attribute value, and the attribute of the interface element is set—for example, by discarding the attribute
- the value sets the message, thereby implementing a refusal to assign a value to the attribute of the interface element based on the attribute value contained in the message.
- the attribute value setting message may include an interface element identifier mapped to the attribute value in addition to the attribute value.
- an interface element identifier mapped to the attribute value in addition to the attribute value.
- the setting method of the interface element may include the following steps, for example:
- the operating system may also record the utilization by the receiver application.
- the attribute value in the attribute value setting message, and the interface element identifier corresponding to the attribute assigned by the receiver application using the attribute value in the attribute value setting message Therefore, the subsequent operating system can use the recorded attribute value used by the receiver application to specify the interface element of the corresponding receiver application identifier for the recorded interface element under the specified trigger condition. In this way, it is possible to assign an interface element to the receiver application by the operating system.
- the application since the attribute setting message is sent to the application, the application sets the attribute of the interface element according to the attribute value in the attribute value setting message, and does not need to download and load the resource package, thereby avoiding Changing the interface elements of the terminal leads to the problem that the terminal consumes more resources.
- Embodiment 3 of the present application mainly provides a method for setting the color value of the interface element of the application in combination with the actual situation, and is used to describe the specific implementation manner of the method provided in Embodiment 1 and Embodiment 2 of the present application.
- Step 31 the user uses the desktop wallpaper setting application to select an image from the locally saved image as a desktop.
- the wallpaper the operation performed by the user to select the image as a desktop wallpaper, causes the desktop wallpaper setting application to receive a desktop wallpaper setting instruction.
- Step 32 The desktop wallpaper setting application sets the image as a desktop wallpaper in response to the desktop wallpaper setting instruction.
- the desktop wallpaper setting application calls the COLOR_CHANGE interface provided by the DynController shown in FIG.
- step 33 the DynController responds to the desktop wallpaper setting application call to the COLOR_CHANGE interface, and determines the first color value according to the pixel color value of the image currently being the desktop wallpaper.
- the first color value is at least one color value determined according to a pixel color value of the image.
- the DynController may determine one or several pixel color values of the image as the first color value; or, the DynController may also calculate the mean value of all the pixel color values of the image, and determine the average value as the first Color value; alternatively, DynController can also count the number of pixels with different color values in the image, and use the color value corresponding to the largest number of all the numbers as the first color value; or, DynController can also determine a pixel color value for indicating a dominant color of the image, and determining the pixel color value as a first color value;
- the pixel color value of the image may be, but is not limited to, obtained by the DynController by sampling the color value of the pixel of the image.
- the above “primary color tone” indicates a basic tendency of color appearance.
- the image generally has a tendency in color, such as being bluish or reddish, being warm or cold, etc.
- the basic tendency of color appearance is one.
- the primary color of the image Generally, the main color is divided from the warm and cold side, and there may be "warm tone", “cold tone” and “middle tone”.
- red, orange, and yellow indicate warm colors; green, blue, and black indicate cool colors; and gray, purple, and white indicate intermediate colors. The higher the brightness of the cool color, the warmer the overall feeling, the higher the brightness of the warm color, the colder the overall feeling.
- step 34 the DynController generates a color value setting message according to the first color value.
- the generating a color value setting message according to the first color value may include: directly generating a color value setting message including the first color value; or determining the first color value according to the first color value.
- the second color value is mapped and a color value setting message containing the second color value is generated.
- a preset number of color value sets may be set, and a mapping relationship between each color value set and a different color value range (hereinafter referred to as a first mapping relationship) may be established.
- Each color value set includes at least one color value; each color value set includes a color value corresponding to the second color value; a collection of each color value set may be referred to as a system Guideline chromatography.
- you can a first color value and the different color value range determining a range of color values into which the first color value falls; determining, according to the first mapping relationship, a color value range mapping in which the first color value falls from the system Guideline chromatography A collection of color values.
- the color value in the determined set of color values is the second color value.
- first color value or second color value included in the color value setting message, and the message includes, in addition to the color value, corresponding to each color value.
- Interface element identifier included in the color value setting message, and the message includes, in addition to the color value, corresponding to each color value.
- step 35 the DynController sends the first interface updateConfigruation by calling the message, and sends the generated color value setting message to the System.
- Step 36 After receiving the color value setting message, the System sends a second interface onConfigruationChange/onCreate by calling a message to send a color value setting message to APP1 and APP2.
- the following steps take the example of APP1 responding to the color value setting message as an example, and describe the processing manner in which the application receives the color value setting message.
- Step 37 APP1 obtains a preset and saved interface element attribute adjustment rule in response to the color value setting message, and determines whether the rule allows APP1 to set the color of the interface element according to the color value included in the color value setting message, and if the judgment result is If yes, go to step 38. Otherwise, the color value setting message can be discarded.
- Step 38 APP1 selects, according to the identifier of the interface element of APP1, the color value corresponding to the identifier of the interface element of APP1 from the color values included in the color value setting message.
- step 39 APP1 assigns a color attribute of the interface element of APP1 by using the selected color value.
- APP1 can call the DynColorSetting interface.
- the function of the DynColorSetting interface is to trigger the System to obtain the identifier of the interface element assigned by the APP1 in the process and the color value used by the APP1 when assigning the color attribute.
- the flow of the method can be ended.
- APP1 For the subsequent steps that may be performed, when an interface of APP1 needs to be displayed, and the interface element to be displayed in the interface is an interface element that uses the selected color value for attribute assignment, APP1 performs execution from APP1 for saving.
- the operations of obtaining the color values of the interface elements and the corresponding interface element identifiers In the database of the attribute values of the interface elements and the identifiers of the interface elements, the operations of obtaining the color values of the interface elements and the corresponding interface element identifiers.
- the operating system intercepts the method for implementing the operation, and provides the color value obtained from the database and the corresponding interface element identifier as the execution result of the method to APP1; APP1 performs the execution according to the obtained
- the color value included in the result is adjusted for the display effect of the interface element corresponding to the interface element identifier included in the execution result.
- the operating system since the operating system can send the attribute value setting message to the application, the application sets the attribute of the interface element according to the attribute value in the attribute value setting message, without Loading and loading resource bundles can avoid the problem of changing the interface elements of the terminal, which leads to more processing resources by the terminal.
- the adjustment of the interface element attribute value can be realized without the support of the theme package, and the storage resource required for saving the theme package in the user terminal is avoided.
- the message receiving unit 41 is configured to receive an attribute value setting message, where the attribute value setting message includes an attribute value.
- the assignment unit 42 is configured to assign a value to an attribute of an interface element of the application according to the attribute value.
- the message receiving unit 41 may be configured to receive an attribute value setting message broadcasted by the operating system. Alternatively, the message receiving unit 41 may also receive an attribute value setting message sent by the third-party application or the basic application.
- the attribute value setting message by using the attribute value setting message, it is possible to implement an interface element that specifies what attribute value included in the message can be specifically assigned to.
- the attribute value setting message may include an interface element identifier mapped to the attribute value in addition to the attribute value.
- the assignment unit 42 may be configured to: assign an attribute of an interface element of the application corresponding to the interface element identifier according to the attribute value.
- the attribute value setting message may include at least two attribute values.
- the assignment unit 42 may select an attribute value for assignment according to the requirement.
- the assignment unit 42 may select an attribute value from the at least two attribute values, and use the selected attribute value as the interface of the application. The attribute assignment of the element.
- the assignment unit 42 may set the interface element mapped by each attribute value in the attribute setting message.
- the identifier from the attribute value included in the attribute setting message, selects the mapped interface element identifier to be the same attribute value as the interface element identifier of the application, and assigns a value to the attribute of the interface element of the application. In this way, the attribute value in the attribute value setting message that cannot be used to assign the interface element of the application can be avoided, and the processing resource is wasted.
- the identifier of the interface element included in the attribute value setting message and the identifier of the interface element of the application may be the interface element identifier set according to the function of the interface element as described above.
- the apparatus provided in the embodiment of the present application may further include: an identifier setting unit.
- the unit may be specifically configured to: determine the function of different interface elements in the application interface; Interface elements with the same function are set with the same interface element identifier, and different interface elements are set for different interface settings, and interface element identifiers are set for different interface elements in the application interface.
- the interface elements in the application interface include at least one of the following:
- Buttons titles, toolbars, selection boxes, switches, sliders, progress bars, input boxes.
- the evaluation unit 42 may be configured to: set an attribute value in the message according to the attribute value and a preset attribute value mapping rule, and calculate another attribute value mapped by the attribute value; according to the other attribute value, the interface element of the application is Property assignment.
- the attribute value of the interface element of the application may be different from the attribute value in the attribute value setting message, so that the attribute value of the interface element of the application is more personalized by the application itself.
- the device may also act as a sender of the attribute value setting message.
- the apparatus may also include a message transmitting unit.
- the message sending unit may be configured to send an attribute value setting message to other applications, so that other applications determine whether to set an attribute of an interface element of another application according to the attribute value in the attribute value setting message.
- the attribute of the interface element is set according to the attribute value in the attribute value setting message, and the resource package is not required to be downloaded and loaded, thereby avoiding changing the terminal.
- Interface elements can cause problems with the terminal processing more resources.
- the message obtaining unit 51 is configured to obtain an attribute value setting message.
- the attribute value setting message includes an attribute value.
- the message sending unit 52 is configured to send an attribute value setting message, so that the receiver application of the attribute value setting message assigns an attribute of the interface element according to the attribute value.
- the manner in which the message obtaining unit 51 obtains the attribute value setting message may include, but is not limited to, generating an attribute value setting message; or receiving an attribute value setting message;
- the message obtaining unit 51 may generate an attribute value setting message after receiving the wallpaper setting instruction, or after receiving the theme setting instruction, in the embodiment of the present application, the message obtaining unit 51 may generate the attribute value setting message. Generate an attribute value setting message; or generate an attribute value setting message after receiving the attribute value adjustment notification sent by the server; and so on.
- the message obtaining unit 51 may be an attribute value setting message transmitted by the receiving server or the second application.
- the message obtaining unit 51 may determine the target color value; and generate an attribute value setting message including the target color value based on the determined target color value.
- the message obtaining unit 51 may determine the target color value according to at least one of the following information:
- the color value selected by the user is the color value selected by the user.
- an interface element can be specifically assigned to a specified attribute value in order to achieve it.
- the attribute value setting message may include an interface element identifier mapped to the attribute value in addition to the attribute value. So that the first application can assign a value to the attribute of the interface element of the first application corresponding to the interface element identifier according to the attribute value included in the message.
- the apparatus can also include a setting unit that sets an interface element identification for the interface element.
- the setting unit can be specifically configured to set the interface element identifier in the following manner:
- the interface element in the application interface may include, but is not limited to, at least one of the following:
- Buttons titles, toolbars, selection boxes, switches, sliders, progress bars, input boxes.
- the foregoing apparatus provided by the embodiment of the present application may further implement an attribute assignment directly to an interface element of the first application.
- the apparatus may comprise a determining unit and an assigning unit.
- the determining unit is configured to: after the message sending unit 51 sends the attribute value setting message to the first application, determine, by the first application, the identifier of the interface element that is assigned by the attribute value in the attribute value setting message, and is first The attribute value utilized by the application.
- the assignment unit is configured to assign an attribute of the interface element of the first application corresponding to the identifier to the attribute value used by the first application determined by the determining unit under the specified trigger condition.
- the application since the attribute setting event message is sent to the application, the application sets the attribute of the interface element according to the attribute value in the attribute value setting message, and does not need to download and load the resource package, thereby avoiding Changing the interface elements of the terminal leads to the problem that the terminal consumes more resources.
- the smart device can include the following functional units:
- a memory for storing computer program instructions
- a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
- the attribute value setting message includes an attribute value
- the attribute value setting message is sent such that the recipient application of the attribute value setting message assigns an attribute of the interface element according to the attribute value.
- the specific implementation manner in which the processor obtains the attribute value setting message may include:
- the processor generates an attribute value setting message, which may specifically include:
- the processor receiving the attribute value setting message may include: receiving an attribute value setting message sent by the server or the application.
- the processor generating the attribute value setting message may include: determining a target color value; and generating an attribute value setting message including the target color value according to the determined target color value.
- the target color value is determined based on at least one of the following information:
- the color value selected by the user is the color value selected by the user.
- the attribute value setting message includes, in addition to the attribute value, an interface element identifier mapped to the attribute value.
- the interface element identification is set in the following manner:
- the interface element identifiers are set for different interface elements in the application interface by setting the same interface element identifiers for the interface elements having the same function, and identifying different interface elements for the interfaces having different functions.
- the interface element in the application interface may include, but is not limited to, at least one of the following:
- Buttons titles, toolbars, selection boxes, switches, sliders, progress bars, input boxes.
- the processor may further be configured to: determine, by the receiver application, an identifier of the interface element assigned by the attribute value in the attribute value setting message, and receive the The attribute value utilized by the party application; under the specified trigger condition, using the determined attribute value utilized by the receiver application to assign a value to the interface element of the recipient application corresponding to the identifier.
- the above-mentioned smart device provided by the embodiment of the present application can implement the setting of the attribute value setting message, and realize setting the attribute of the interface element according to the attribute value in the attribute value setting message, without downloading and loading the resource package, thereby avoiding changing the terminal.
- the interface elements cause the problem that the terminal consumes more resources.
- the smart device can include the following functional units:
- a memory for storing computer program instructions
- a processor coupled to the memory for reading computer program instructions stored by the memory and, in response, performing the following operations:
- the attribute value setting message includes an attribute value
- the processor receiving the attribute value setting message may include: receiving an attribute value setting message broadcasted by the operating system; or receiving an attribute value setting message sent by another application.
- the attribute value setting message includes at least two attribute values
- the processor assigns a value to the attribute of the interface element of the application according to the attribute value
- the method includes: the processor selects an attribute value from the at least two attribute values, and selects an interface element of the application according to the selected attribute value.
- the processor assigns a value to the attribute of the interface element of the application according to the attribute value, which may include: The interface element identifier of each attribute value mapping in the attribute setting message, from the attribute value included in the attribute setting message, selecting the mapped interface element identifier to be the same attribute value as the interface element identifier of the application, which is the interface element of the application. Property assignment.
- the processor assigns a value to the attribute of the interface element of the application according to the attribute value, and specifically includes: calculating the mapping of the attribute value according to the attribute value and a preset attribute value mapping rule. Other attribute values; assign values to the attributes of the interface elements of the application based on the other attribute values.
- the processor assigns a value to the attribute of the interface element of the application, which may specifically include : for The interface element identifies the attribute assignment of the interface element of the application corresponding to the interface element.
- the processor assigns an attribute of the interface element of the application corresponding to the interface element identifier, and specifically includes: the interface element identifier mapped according to the attribute value, and the pre-corresponding to the interface element.
- the interface function is an identifier set by the interface element of the application, and the interface element having the same identifier as the interface element identifier included in the mapping relationship is determined from the interface element of the application; the attribute of the determined interface element is determined Assignment.
- the interface element identifier may be set by the processor in the following manner:
- the interface element identifiers are set for different interface elements in the application interface by setting the same interface element identifiers for the interface elements having the same function, and identifying different interface elements for the interfaces having different functions.
- the interface element in the application interface may include, but is not limited to, at least one of the following:
- Buttons titles, toolbars, selection boxes, switches, sliders, progress bars, input boxes.
- the processor may be further configured to: send an attribute value setting message to other applications, so that other applications assign attribute values of interface elements of other applications according to attribute values in the attribute value setting message.
- the above attributes are attributes related to the display effect.
- the attributes include at least one of the following:
- the application since the attribute setting message is sent to the application, the application sets the attribute of the interface element according to the attribute value in the attribute value setting message, and does not need to download and load the resource package, thereby avoiding Changing the interface elements of the terminal leads to the problem that the terminal consumes more resources.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请公开了一种界面元素属性值的设置方法、装置及智能设备,用以解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题。方法包括:获得属性值设置消息;所述属性值设置消息中,包含属性值;发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
Description
本申请要求2015年12月09日递交的申请号为201510908199.2、发明名称为“一种界面元素属性值的设置方法、装置及智能设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,尤其涉及一种界面元素属性值的设置方法、装置及智能设备。
现有技术中,界面元素显示效果的改变,一般是依靠下载的资源包(或称为主题包)来实现的。用户终端需要先将满足需求的资源包下载到本地,若应用需要调整界面元素的显示效果,会加载对应的资源包以实现整体终端界面显示的改变。
上述方法存在的缺陷在于:如果要改变界面元素的显示效果,需要下载资源包,该资源包一般是为终端整体界面而设计,会包括支持终端整体界面改变所需要的全部资源,因此,下载和加载该资源包会耗费终端较多的资源。
发明内容
本申请实施例提供一种界面元素属性值的设置方法,用以解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题。
本申请实施例还提供一种界面元素属性值的设置装置,用以解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题。
本申请实施例还提供一种智能设备,用以解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题。
本申请实施例采用下述技术方案:
一种界面元素属性值的设置方法,包括:
获得属性值设置消息;所述属性值设置消息中,包含属性值;
发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
一种界面元素属性值的设置方法,包括:
应用接收属性值设置消息;所述属性值设置消息中,包含属性值;
根据所述属性值,为所述应用的界面元素的属性赋值。
一种界面元素属性值的设置装置,包括:
消息获得单元,用于获得属性值设置消息;所述属性值设置消息中,包含属性值;消息发送单元,用于发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
一种界面元素属性值的设置装置,包括:
消息接收单元,用于接收属性值设置消息;所述属性值设置消息中,包含属性值;赋值单元,用于根据所述属性值,为应用的界面元素的属性赋值。
一种智能设备,包括:
存储器,用于存储计算机程序指令;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:
获得属性值设置消息;所述属性值设置消息中,包含属性值;
发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
一种智能设备,包括:
存储器,用于存储计算机程序指令;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:
接收属性值设置消息;所述属性值设置消息中,包含属性值;
根据所述属性值,为所述应用的界面元素的属性赋值。
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:
由于可以通过向应用发送属性值设置消息的方式,使得应用根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1a为本申请实施例提供的一种界面元素属性值的设置方法的具体实现流程图;
图1b为不同界面元素设置界面元素标识的示意图;
图2为本申请实施例提供的一种界面元素属性值的设置方法的具体实现流程图;
图3为本申请实施例提供的一种对应用的界面元素的颜色值进行设置的方法;
图4为本申请实施例提供的一种界面元素属性值的设置装置的具体结构示意图;
图5为本申请实施例提供的一种界面元素属性值的设置装置的具体结构示意图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
以下结合附图,详细说明本申请各实施例提供的技术方案。
实施例1
为解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题,本申请实施例提供一种界面元素属性值的设置方法。该方法的执行主体可以是用户终端安装的各种应用,例如,用户终端的操作系统自带的应用(基础应用),或者是除基础应用外的其他应用(第三方应用)。所述的执行主体并不构成对本申请的限定,为了便于描述,本申请实施例均以执行主体是第三方应用为例进行说明。
可以理解,该方法的执行主体为第三方应用只是一种示例性的说明,并不应理解为对该方法的限定。
如图1a所示,为本申请实施例提供的该界面元素属性值的设置方法的具体实现流程图,主要包括下述步骤:
步骤11,第三方应用接收属性值设置消息;
其中,该属性值设置消息中,一般可以包含属性值。本申请实施例中,对该消息中包含的属性值的数量不进行限定。
该消息中包含的属性值,可以是颜色值、亮度值和透明度值中的至少一种。
该消息中包含的属性值,可以用于为界面元素的属性进行赋值。所述属性,一般为与显示效果相关的属性,比如可以是颜色、亮度以及透明度中的至少一种。为界面元素的属性进行赋值,比如可以但不限于是指对作为界面元素背景图片的图片的属性进行赋
值。该图片的大小和形状,可以是根据界面元素的预期显示效果来设置的。该图片可以是位图,也可以是矢量图。该图片可以具备,也可以不具备纹理特征或形状特征,本申请实施例对此不作限定。所述界面元素,比如可以但不限于包括按钮、标题、工具栏、选择框、开关、滑块、进度条或输入框等可以借助图片作为背景从而达到预定显示效果的界面元素中的至少一种。
该属性值设置消息,可以是操作系统发送的,也可以是其他应用发送给该第三方应用的。该属性值设置消息可以是采用广播的方式发送的,也可以是定向发送给第三方应用的。该属性值设置消息中,可以包含第三方应用的标识,从而使得第三方应用可以根据该标识,确定自身可以对该属性值设置消息进行响应。
本申请实施例中,属性值设置消息可以由预先设置的接口提供方生成。该接口提供方,可以提供界面元素属性调整接口(该接口的名称可以为COLOR_CHANGE)。该接口提供方所提供的该接口一旦被调用,则该接口提供方会生成包含所述属性值的属性值设置消息;然后,该接口提供方可以调用消息发送第一接口(该接口的名称可以为updateConfigruation),向操作系统发送属性值设置消息。而操作系统,则可以调用消息发送第二接口(该接口的名称可以为onConfigruationChange/onCreate),向所述第三方应用发送属性值设置消息。
或者,本申请实施例中,属性值设置消息也可以由操作系统生成。比如,操作系统可以在指定的触发条件的触发下,生成属性值设置消息。所述指定的触发条件,比如可以为:接收到壁纸设置指令,或接收到主题设置指令,或接收到服务器发送的属性值调整通知。其中需要说明的是,主题设置指令,可以是指用户对用户终端提供的主题设置选项进行选取而触发的。
所述主题设置选项,可以是针对不同颜色主题设置的可操作选项。用户对所述选项进行操作,比如执行点击指令或者手势指令,可以触发所述主题设置指令。
本申请实施例中,操作系统可以根据预设的属性值或者获取到的属性值,生成包含该属性值的属性值设置消息。以属性值为透明度值为例,操作系统可以获取预先设置的透明度值,并根据获取到的透明度值,生成包含该透明度值的属性值设置消息;以属性值为颜色值为例,操作系统可以根据下述信息中的至少一种,确定目标颜色值,,并根据确定的目标颜色值,生成包含目标颜色值的属性值设置消息:
指定图片;指定事件;用户选取的颜色值。
所述的图片,一般是指可用于界面元素的背景图片的图片。该图片的大小和形状,
可以是根据界面元素的预期显示效果来设置的。该图片可以是位图,也可以是矢量图。该图片可以具备,也可以不具备纹理特征或形状特征,本申请实施例对此不作限定。
以下分别介绍操作系统如何根据上述至少一种信息,确定目标颜色值:
1、根据指定图片,确定目标颜色值。
其中,所述指定图片,比如可以是用户终端本地保存的任意图片。如,可以是用户终端当前使用的壁纸,或者,可以是用户指定的某个图片。
所述壁纸,可以是桌面壁纸,也可以是锁屏壁纸,等等。
针对所述用户指定的某个图片而言,该图片比如可以是用户终端响应于接收到的图片选取指令而确定的某个图片。该图片选取指令,比如可以是针对图片的点击指令或者手势指令。
所述指定图片可以为位图。当所述指定图片为位图时,所述指定图片的各个像素具备颜色值,像素具备的颜色值也可称像素颜色值。各像素颜色值,均可以但不限于由一个或多个红绿蓝(Red Green Blue,RGB)数组表示,或者由根据RGB数组确定出的一个或多个参数值表示,等等。
所述目标颜色值,可以是根据所述指定图片的像素颜色值确定的至少一个颜色值。具体而言,用户终端可以将所述指定图片的某个像素颜色值,确定为目标颜色值;或者,用户终端也可以计算所述指定图片的所有像素颜色值的均值,并将该均值确定为目标颜色值;或者,用户终端还可以统计所述指定图片中具备不同颜色值的像素的数量,并将统计出的所有数量中的最大数量所对应的颜色值,作为目标颜色值;或者,用户终端还可以确定用于表示所述指定图片的主色调的像素颜色值,并将该像素颜色值确定为目标颜色值;等等。
所述指定图片的像素颜色值,可以但不限于是用户终端通过对所述指定图片的像素的颜色值进行采样而获得的。
其中,上述“主色调”表示色彩外观的基本倾向。具体而言,一幅图片虽然用了多种颜色,但图片在色彩总体上是有一种倾向的,比如是偏蓝或偏红,是偏暖或偏冷等等,色彩外观的基本倾向就是一幅图片的主色调。通常,主色调从冷暖方面进行划分,可以有“暖色调”、“冷色调”和“中间色调”。一般地,红色、橙色、黄色为表示暖色调;绿色、蓝色、黑色表示冷色调;而灰色、紫色、白色则表示中间色调。冷色调的亮度越高,其整体感觉越偏暖,暖色调的亮度越高,其整体感觉越偏冷。
2、根据指定事件,确定目标颜色值。
这里所说的指定事件,比如可以是与时间有关的事件,如节假日到来,或者用户生日到来,等等;或者,也可以是用户终端发生的事件,如用户终端接收到指定联系人的短消息、用户终端进行订单支付或者用户终端获取到指定类型的天气(如晴天或阴天)的预报信息,等等。
在当前存在指定事件时,可以根据各指定事件与颜色值的映射关系,确定与当前存在的该指定事件映射的颜色值作为目标颜色值。
3、根据用户选取的颜色值,确定目标颜色值。
比如,可以显示包括至少两种颜色的颜色值界面;后续根据用户对显示的该颜色值界面中包括的颜色的选择,确定相应的颜色值作为目标颜色值。
步骤12,第三方应用根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性。
第三方应用可以直接根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性;或者,第三方应用可以判断是否能够根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性;在判断结果是时,根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性,否则,可以拒绝根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性——比如,可以通过丢弃该属性值设置消息,从而实现拒绝根据该消息包含的属性值为第三方应用的界面元素的属性赋值。
本申请实施例中,第三方应用可以采用但不限于下述任何一种方式,实现判断是否能够根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性:
第一种方式:第三方应用获取预先设置并保存的界面元素属性调整规则,并判断所述规则是否允许第三方应用根据属性值设置消息包含的属性值设置界面元素的属性;若是,则判定能够根据所述属性值设置界面元素的属性;若否,则判定不能够根据所述属性值设置界面元素的属性。
所述规则,可以由第三方应用的开发者设置,并保存在第三方应用的数据库中。
第二种方式:第三方应用判断所述属性值设置消息包含的属性值,是否适用于第三方应用的界面元素;若是,则判定能够根据所述属性值设置界面元素的属性;若否,则判定不能够根据所述属性值设置界面元素的属性。
比如,所述属性值设置消息中除了包含属性值外,还可以包含与属性值相映射的界面元素标识。在这样的情况下,当第三方应用接收到属性值设置消息后,属性值设置消息中包含的界面元素标识中,是否存在与第三方应用的界面元素标识相同的界面元素标
识。若判断结果为存在,则可以判定可以根据所述属性值设置消息中包含的属性值设置界面元素的属性;若判断结果为不存在,则判定不能够根据所述属性值设置界面元素的属性。
本申请实施例中,所述属性值设置消息中包含的界面元素标识,可以是预先根据界面元素对应的界面功能而设置的界面元素标识。比如,可以针对不同应用的界面元素进行归类整理,确定出诸如标题区域、控件区域、工具栏等对应于不同界面功能的界面元素;之后,可以为这些界面元素设置不同的界面元素标识。按照这样的方式,可以实现以不同的界面元素标识,表示对应不同界面功能的界面元素。
以图1b所示的APP1和APP2的界面为例,编号为1的区域,为标题区域;编号为2的区域,为控件区域;编号为3的区域,为工具栏。为这些区域设置的界面元素标识,可以依次分别为:HEAD、MAIN和TOOLBAR。
需要说明的是,按照现有技术,为了实现对界面元素的与显示效果有关的属性的调整,需要设计人员针对每一个应用单独进行设计。具体设计内容包括:为应用的界面的不同区域分别设置标识符,并建立起标识符与资源的映射关系。后续开发人员会将所述映射关系以及资源打包到主题包中。这样的方式存在的缺点在于,设计师和开发人员需要完成的工作量非常大;此外,如果应用的界面有调整,就可能导致原有的标识符无效,进而导致设计师设置的映射关系无效,需要设计师重新设置标识符和资源的映射关系,即需要升级主题包。
而本申请实施例中,不需要设计师建立标识符与资源的映射关系,而是采用为应用的界面的不同区域设置界面元素标识的方式。基于界面元素被设置的界面元素标识,应用可以通过前文所述的第二种方式,判断是否能够根据属性值设置消息中包含的属性值设置界面元素的属性,若能够,则可以根据属性值设置消息中包含的属性值,为应用的界面元素的属性赋值。
相对于现有技术而言,本申请实施例提采用为界面的不同区域设置界面元素标识的方式,可以在达到实现调整界面元素的属性值的前提下,简化设计和开发工作,节省人力资源。
本申请实施例中,根据属性值设置消息包含的属性值,为第三方应用的界面元素的属性赋值的实现方式可以灵活多样。
比如,第三方应用可以直接将属性设置消息包含的属性值,直接赋值给第三方应用的部分或全部界面元素;也可以根据该属性值和预设的属性值第一映射规则,计算该属
性值所映射的其他属性值,并根据计算得到的所述其他属性值,为第三方应用的部分或全部界面元素的属性赋值。
本申请实施例中,所述属性值第一映射规则,可以是简单的一对一的映射关系,也可以是复杂的计算公式,本申请实施例对此不作限定。
再比如,当属性值设置消息中包含至少两个属性值时,根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性的具体实现方式可以包括:
第三方应用从所述至少两个属性值中选取属性值,并根据选取的属性值,为所述应用的界面元素的属性赋值。第三方应用可以直接将选取的属性值赋值给所述应用的界面元素的属性;或者,第三方应用可以根据选取的属性值和预设的属性值第二映射规则,计算选取的属性值所映射的其他属性值,并根据计算得到的所述其他属性值,为第三方应用的部分或全部界面元素的属性赋值。
考虑到为了使得对界面元素的属性进行赋值后,得到的不同界面元素的显示效果能够相互协调,在一种实施方式中,所述属性设置消息中,除包含属性值外,还可以包含与属性值相映射的界面元素标识。即,属性设置消息中,可以规定不同的属性值分别映射的界面元素,比如,规定属性值“蓝色”映射界面元素“控件”,属性值“白色”映射界面元素“标题栏”,等等。
在这样的条件下,第三方应用可以根据第三方应用的界面元素标识,从属性设置消息包含的属性值中选取属性值。其中,选取的属性值满足:所映射的属性设置消息中的界面元素标识与第三方应用的界面元素标识相同。之后,第三方应用可以根据选取的属性值,对第三方应用的具备相应界面元素标识的界面元素的属性赋值。
比如,若第三方应用选取了属性值“蓝色”,而“蓝色”映射属性设置消息中的标识“KJ”,则第三方应用根据“蓝色”,可以对第三方应用的具备标识“KJ”的界面元素的属性进行赋值。具体地,若假设具备标识“KJ”的第三方应用的界面元素为控件,则第三方应用可以将“蓝色”,赋值给第三方应用的控件的属性。
当所述属性设置消息中除包含属性值外,还包含与属性值相映射的界面元素标识时,若第三方应用具备属性设置消息中包含的各界面元素标识分别对应的界面元素,则第三方应用也可以不对属性设置消息中的属性值进行筛选,而是直接根据属性设置消息中包含的属性值,为属性设置消息中包含的界面元素标识所对应的、第三方应用的界面元素的属性赋值。
本申请实施例中,所述界面元素标识,可以是前文所述的根据界面元素的功能设置
的界面元素标识,也可以是用于表示界面元素的其它标识。
本申请实施例中,所述第三方应用除了可以接收属性值设置消息外,也可以将接收到的该属性值设置消息转发给其他应用,以使得其他应用判断是否根据属性值设置消息中的属性值,对所述其他应用的界面元素的属性进行赋值。比如,所述第三方应用可以通过调用前文所述的消息发送第二接口onConfigruationChange/onCreate,实现向其他应用发送属性值设置消息。
需要说明的是,本申请实施例中为各步骤设置编号,是为了有条理地描述各步骤,并不是对步骤的执行顺序进行限制,即,本申请实施例中为各步骤设置的编号并不能视为限制步骤执行顺序的特征。
采用本申请实施例提供的上述方法,由于应用可以通过接收属性值设置消息的方式,实现根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
此外,应用在获取到属性值后,可以自行决定是否进行属性的赋值,或者可以自行决定对哪些界面元素的属性进行赋值。
可见,如果有新的应用期望进行属性值的调整,则可以自由增加;或者,如果有应用期望拒绝进行属性值的调整,也可以非常灵活地实现。
实施例2
为解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题,本申请实施例提供一种界面元素属性值的设置方法。该方法的执行主体可以是用户终端的操作系统;或者用户终端上安装的各种应用,例如,基础应用或第三方应用。所述的执行主体并不构成对本申请的限定,为了便于描述,本申请实施例均以执行主体是操作系统为例进行说明。
可以理解,该方法的执行主体为操作系统只是一种示例性的说明,并不应理解为对该方法的限定。
如图2所示,为本申请实施例提供的该界面元素属性值的设置方法的具体实现流程图,主要包括下述步骤:
步骤21,操作系统获得属性值设置消息;
为了使得应用可以进行属性的调整,所述属性值设置消息中可以包含可以赋值给属性的属性值。所述属性,一般为与显示效果相关的属性,比如可以是颜色、亮度以及透明度中的至少一种。
本申请实施例中,对该消息中包含的属性值的数量不进行限定。
该消息中包含的属性值,可以是颜色值、亮度值和透明度值中的至少一种。
操作系统获得属性值设置消息,可以包括:操作系统生成属性值设置消息,或,操作系统接收属性值设置消息。
针对前一种实现方式而言,比如,操作系统可以在指定的触发条件的触发下,生成属性值设置消息。所述指定的触发条件,比如可以为:接收到壁纸设置指令,或接收到主题设置指令,或接收到服务器发送的属性值调整通知。其中需要说明的是,主题设置指令,可以是指用户对用户终端提供的主题设置选项进行选取而触发的。
本申请实施例中,操作系统可以根据预设的属性值或者获取到的属性值,生成包含该属性值的属性值设置消息。以属性值为颜色值为例,操作系统可确定目标颜色值,并根据确定的目标颜色值,生成包含目标颜色值的属性值设置消息。
这里所说的目标颜色值,可以但不限于是根据指定图片、指定事件和用户选取的颜色值中的至少一种确定的。具体确定方式,可以参见实施例1中的相关描述,此处不再赘述。
针对操作系统获得属性值设置消息的后一种实现方式而言,比如,属性值设置消息可以由预先设置的接口提供方生成。该接口提供方,可以提供界面元素属性调整接口COLOR_CHANGE。该接口提供方所提供的该接口一旦被调用,则该接口提供方会生成包含所述属性值的属性值设置消息;然后,该接口提供方可以调用消息发送第一接口updateConfigruation,向操作系统发送属性值设置消息。
或者,也可以是由服务器向操作系统发送该属性值设置消息。
步骤22,操作系统发送属性值设置消息,以使属性值设置消息的接收方应用根据该消息包含的属性值对界面元素的属性进行赋值。
该属性值设置消息可以是采用广播的方式发送的,也可以是采用向所述接收方应用定向发送的方式发送的。
接收方应用可以直接根据属性值设置消息包含的属性值,设置第三方应用的界面元素的属性;或者,接收方应用可以判断是否能够根据属性值设置消息包含的属性值,设置界面元素的属性;在判断结果是时,根据属性值设置消息包含的属性值,设置界面元素的属性,否则,可以拒绝根据属性值设置消息包含的属性值,设置界面元素的属性——比如,可以通过丢弃该属性值设置消息,从而实现拒绝根据该消息包含的属性值为界面元素的属性赋值。
接收方应用如何判断是否根据所述属性值对界面元素的属性进行赋值,可以参见本申请实施例1中对于第一应用如何进行所述判断的相关描述,此处不再赘述;此外,接收方应用如何根据所述属性值对界面元素的属性进行赋值,也可以参见本申请实施例1中的、对于第一应用如何根据属性值对界面元素的属性进行赋值的相关描述,此处也不再赘述。
与实施例1中的相关记载类似,所述属性值设置消息中,除包含属性值外,还可以包含与属性值相映射的界面元素标识。该界面元素标识的作用,可以参见实施例1中的相关描述,此处不再赘述。
该界面元素的设置方式,比如可以包括如下步骤:
确定应用界面中不同界面元素的功能;
按照为具备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为应用界面中不同界面元素设置界面元素标识。
在本申请实施例2中,操作系统发送属性值设置消息后,若接收方应用利用属性值设置消息中的属性值对界面元素的属性进行了赋值,则操作系统还可以记录由接收方应用利用过的、属性值设置消息中的属性值,以及被接收方应用利用属性值设置消息中的属性值赋值过的属性对应的界面元素标识。从而后续操作系统在在指定的触发条件下,可以利用记录的被所述接收方应用利用过的属性值,为记录的界面元素标识对应的接收方应用的界面元素赋值。采用该方式,可以实现由操作系统为接收方应用的界面元素赋值。
采用本申请实施例提供的上述方法,由于可以通过向应用发送属性值设置消息的方式,使得应用根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
实施例3
本申请实施例3主要是结合实际,提供一种对应用的界面元素的颜色值进行设置的方法,用以对本申请实施例1和实施例2提供的方法在实际中的具体实现方式进行说明。
本申请实施例3中,假设用户终端中安装有APP1和APP2,操作系统(System)在接收到壁纸设置指令后,向APP1和APP2发送颜色值设置消息(相当于前文所述的属性值设置消息),则本申请实施例3提供的该方法的实现流程图如图3所示,包括如下步骤:
步骤31,用户利用桌面壁纸设置应用,从本地保存的图像中选定一张图像作为桌面
壁纸,用户所执行的选定该图像作为桌面壁纸的操作,会使桌面壁纸设置应用接收到桌面壁纸设置指令。
步骤32,桌面壁纸设置应用响应于桌面壁纸设置指令,将该图像设置为桌面壁纸,此外,桌面壁纸设置应用会调用图3所示的DynController所提供的COLOR_CHANGE接口。
步骤33,DynController响应于桌面壁纸设置应用对于COLOR_CHANGE接口的调用,根据当前作为桌面壁纸的该图像的像素颜色值,确定第一颜色值。
所述的第一颜色值,是根据该图像的像素颜色值确定的至少一个颜色值。具体而言,DynController可以将该图像的某个或几个像素颜色值,确定为第一颜色值;或者,DynController也可以计算该图像的所有像素颜色值的均值,并将该均值确定为第一颜色值;或者,DynController还可以统计该图像中具备不同颜色值的像素的数量,并将统计出的所有数量中的最大数量所对应的颜色值,作为第一颜色值;或者,DynController还可以确定用于表示该图像的主色调的像素颜色值,并将该像素颜色值确定为第一颜色值;等等。
本申请实施例中,该图像的像素颜色值,可以但不限于是DynController通过对该图像的像素的颜色值进行采样而获得的。
其中,上述“主色调”表示色彩外观的基本倾向。具体而言,一幅图像虽然用了多种颜色,但图像在色彩总体上是有一种倾向的,比如是偏蓝或偏红,是偏暖或偏冷等等,色彩外观的基本倾向就是一幅图像的主色调。通常,主色调从冷暖方面进行划分,可以有“暖色调”、“冷色调”和“中间色调”。一般地,红色、橙色、黄色为表示暖色调;绿色、蓝色、黑色表示冷色调;而灰色、紫色、白色则表示中间色调。冷色调的亮度越高,其整体感觉越偏暖,暖色调的亮度越高,其整体感觉越偏冷。
步骤34,DynController根据第一颜色值,生成颜色值设置消息。
本申请实施例中,根据第一颜色值,生成颜色值设置消息,比如可以包括:直接生成包含该第一颜色值的颜色值设置消息;或,根据第一颜色值,确定与第一颜色值相映射的第二颜色值,并生成包含第二颜色值的颜色值设置消息。
针对后一种实现方式,实际应用中,可以设置预设数量的颜色值集合,并建立起各颜色值集合与不同颜色值范围的映射关系(后称第一映射关系)。其中,各颜色值集合分别包含至少一个颜色值;各颜色值集合中包含的颜色值,均相当于上述第二颜色值;各颜色值集合的合集,可称为系统Guideline色谱。基于系统Guideline色谱,可以根据
第一颜色值以及所述不同颜色值范围,确定第一颜色值所落入的颜色值范围;根据第一映射关系,从系统Guideline色谱中,确定第一颜色值所落入的颜色值范围映射的颜色值集合。确定的颜色值集合中的颜色值,即为所述第二颜色值。
本申请实施例中,假设颜色值设置消息中包含的颜色值(第一颜色值或第二颜色值)有多个,并且,该消息中除了包含颜色值外,还包含与各颜色值分别对应的界面元素标识。
步骤35,DynController通过调用消息发送第一接口updateConfigruation,向System发送生成的颜色值设置消息。
步骤36,System在接收到颜色值设置消息后,通过调用消息发送第二接口onConfigruationChange/onCreate,向APP1和APP2发送颜色值设置消息。
以下步骤以APP1对该颜色值设置消息进行响应为例,对应用接收到颜色值设置消息的处理方式进行说明。
步骤37,APP1响应于颜色值设置消息,获取预先设置并保存的界面元素属性调整规则,并判断所述规则是否允许APP1根据颜色值设置消息包含的颜色值设置界面元素的颜色,若判断结果为是,则执行步骤38,否则,可以丢弃该颜色值设置消息。
步骤38,APP1根据APP1的界面元素的标识,从颜色值设置消息包含的各颜色值中,选取对应的界面元素标识与APP1的界面元素的标识相同的颜色值。
步骤39,APP1利用选取的颜色值,对APP1的界面元素的颜色属性进行赋值。在该过程中,APP1可以调用DynColorSetting接口。该DynColorSetting接口的功能在于,触发System获取该过程中被APP1进行颜色属性赋值的界面元素的标识以及APP1在进行颜色属性赋值时采用的颜色值。至此,本方法的流程可以结束。
针对后续可能执行的步骤而言,当APP1的某界面需要被展示,且该界面中将要展示的界面元素,是利用选取的颜色值进行属性赋值的界面元素时,APP1会执行从APP1用于保存界面元素的属性值和界面元素标识的数据库中,获取界面元素的颜色值以及相应的界面元素标识的操作。操作系统会对实现所述操作的方法进行拦截,并将从所述数据库中获取的颜色值以及相应的界面元素标识,作为所述方法的执行结果提供给APP1;APP1根据获取到的所述执行结果包含的颜色值,对所述执行结果包含的界面元素标识对应的界面元素的显示效果进行调整。
采用本申请实施例提供的上述方法,由于可以由操作系统通过向应用发送属性值设置消息的方式,使得应用根据属性值设置消息中的属性值设置界面元素的属性,无需下
载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
此外,采用上述方法,无需主题包的支持也可实现对界面元素属性值的调整,避免了在用户终端保存主题包所需耗费的存储资源。
实施例4
为解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题,本申请实施例提供一种界面元素属性值的设置装置。该装置的具体结构示意图如图4所示,包括下述功能单元:
消息接收单元41,用于接收属性值设置消息;所述属性值设置消息中,包含属性值。
赋值单元42,用于根据所述属性值,为应用的界面元素的属性赋值。
在一种实施方式中,消息接收单元41,具体可以用于接收操作系统广播的属性值设置消息;或者,消息接收单元41也可以接收第三方应用或基础应用发送的属性值设置消息。
在一种实施方式中,利用所述属性值设置消息,可以实现指定该消息中包含的属性值具体可以赋值给什么的界面元素。具体地,所述属性值设置消息中,除包含属性值外,还可以包含与属性值相映射的界面元素标识。在这样的情况下,赋值单元42具体可以用于:根据所述属性值,为界面元素标识所对应的所述应用的界面元素的属性赋值。
在一种实施方式中,所述属性值设置消息中可以包含至少两个属性值。在这样的情况下,赋值单元42可以根据需求选取属性值进行赋值,比如,赋值单元42可以从所述至少两个属性值中选取属性值,并根据选取的属性值,为所述应用的界面元素的属性赋值。
在一种实施方式中,当属性值设置消息中除包含属性值外,还包含与各属性值相映射的界面元素标识时,赋值单元42可以根据属性设置消息中的各属性值映射的界面元素标识,从属性设置消息包括的属性值中,选取映射的界面元素标识与所述应用的界面元素标识相同的属性值,为该应用的界面元素的属性赋值。采用该方式,可以避免选取属性值设置消息中不可用于对应用的界面元素进行赋值的属性值,而导致的处理资源浪费。其中,属性值设置消息中包含的界面元素标识,以及应用的界面元素的标识,均可以是前文所述的根据界面元素的功能设置的界面元素标识。
为了实现为界面元素设置界面元素标识,本申请实施例中提供的该装置还可以包括:标识设置单元。该单元具体可以用于:确定应用界面中不同界面元素的功能;按照为具
备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为所述应用界面中不同界面元素设置界面元素标识。
所述应用界面中的界面元素,包括下述至少一种:
按钮、标题、工具栏、选择框、开关、滑块、进度条、输入框。
在一种实施方式中,考虑到直接利用属性值设置消息中的属性值对应用的界面元素进行赋值,可能会使得应用在整个界面中的色彩不够醒目,因此,为避免该问题,赋值单元42具体可以用于:根据属性值设置消息中的属性值和预设的属性值映射规则,计算所述属性值所映射的其他属性值;根据所述其他属性值,为所述应用的界面元素的属性赋值。采用该方式,可以使得应用的界面元素的属性值与属性值设置消息中的属性值有所不同,从而使得应用的界面元素的属性值更具应用自身的个性化特点。
在一种实施方式中,所述装置还可以作为属性值设置消息的发送方。具体而言,所述装置还可以包括消息发送单元。该消息发送单元,可以用于向其他应用发送属性值设置消息,以使得其他应用判断是否根据所述属性值设置消息中的属性值,对其他应用的界面元素的属性进行赋值。
采用本申请实施例提供的上述装置,由于可以通过接收属性值设置消息的方式,实现根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
实施例5
为解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题,本申请实施例提供一种界面元素属性值的设置装置。该装置的具体结构示意图如图5所示,包括下述功能单元:
消息获得单元51,用于获得属性值设置消息。所述属性值设置消息中,包含属性值。
消息发送单元52,用于发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
具体地,消息获得单元51获得属性值设置消息的方式可以包括但不限于:生成属性值设置消息;或接收属性值设置消息;等等。
针对消息获得单元51生成属性值设置消息的时机而言,本申请实施例中,消息获得单元51可以是在接收到壁纸设置指令后,生成属性值设置消息;或在接收到主题设置指令后,生成属性值设置消息;或在接收到服务器发送的属性值调整通知后,生成属性值设置消息;等等。
针对消息获得单元51接收属性值设置消息的方式而言,消息获得单元51可以是接收服务器或第二应用发送的属性值设置消息。
针对消息获得单元51生成属性值设置消息的方式而言,消息获得单元51可以确定目标颜色值;根据确定的目标颜色值,生成包含目标颜色值的属性值设置消息。
在一种实施方式中,消息获得单元51可以根据下述信息中的至少一种,确定目标颜色值:
指定图片;
指定事件;
用户选取的颜色值。
在一种实施方式中,为了实现指定属性值具体可以赋值给什么的界面元素。所述属性值设置消息中,除包含属性值外,还可以包含与属性值相映射的界面元素标识。以使得第一应用能够根据该消息中包含的属性值,为界面元素标识所对应的第一应用的界面元素的属性赋值。
所述装置还可以包括为界面元素设置界面元素标识的设置单元。该设置单元,具体可以用于采用下述方式设置界面元素标识:
确定应用界面中不同界面元素的功能;
按照为具备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为应用界面中不同界面元素设置界面元素标识。
所述应用界面中的界面元素,可以但不限于包括下述至少一种:
按钮、标题、工具栏、选择框、开关、滑块、进度条、输入框。
本申请实施例提供的上述装置,还可以实现直接为第一应用的界面元素的属性赋值。具体而言,该装置可以包括确定单元和赋值单元。其中,所述确定单元,用于在消息发送单元51向第一应用发送属性值设置消息后,确定第一应用利用属性值设置消息中的属性值所赋值的界面元素的标识,以及被第一应用利用的属性值。所述赋值单元,用于在指定的触发条件下,利用确定单元确定的被第一应用利用的属性值,为所述标识对应的第一应用的界面元素的属性赋值。
采用本申请实施例提供的上述装置,由于可以通过向应用发送属性值设置消息的方式,使得应用根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
实施例6
为解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题,本申请实施例提供一种智能设备。该智能设备可以包括下述功能单元:
存储器,用于存储计算机程序指令;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:
获得属性值设置消息;所述属性值设置消息中,包含属性值;
发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
在一种实施方式中,处理器获得属性值设置消息的具体实现方式可以包括:
生成属性值设置消息;或
接收属性值设置消息。
在一种实施方式中,处理器生成属性值设置消息,具体可以包括:
在接收到壁纸设置指令后,生成属性值设置消息;或在接收到主题设置指令后,生成属性值设置消息;或在接收到服务器发送的属性值调整通知后,生成属性值设置消息。
在一种实施方式中,处理器接收属性值设置消息,可以包括:接收服务器或应用发送的属性值设置消息。
在一种实施方式中,处理器生成属性值设置消息,可以包括:确定目标颜色值;根据确定的目标颜色值,生成包含目标颜色值的属性值设置消息。
在一种实施方式中,根据下述信息中的至少一种,确定目标颜色值:
指定图片;
指定事件;
用户选取的颜色值。
在一种实施方式中,所述属性值设置消息中,除包含属性值外,还包含与属性值相映射的界面元素标识。
在一种实施方式中,所述界面元素标识,是采用下述方式设置的:
确定应用界面中不同界面元素的功能;
按照为具备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为所述应用界面中不同界面元素设置界面元素标识。
在一种实施方式中,所述应用界面中的界面元素,可以但不限于包括下述至少一种:
按钮、标题、工具栏、选择框、开关、滑块、进度条、输入框。
在一种实施方式中,处理器在发送属性值设置消息后,还可以用于:确定所述接收方应用利用属性值设置消息中的属性值所赋值的界面元素的标识,以及被所述接收方应用利用的属性值;在指定的触发条件下,利用确定的被所述接收方应用利用的属性值,为所述标识对应的所述接收方应用的界面元素赋值。
采用本申请实施例提供的上述智能设备,由于可以通过接收属性值设置消息的方式,实现根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而可以避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
实施例7
为解决按照现有技术中改变终端的界面元素的方式会导致耗费终端较多资源的问题,本申请实施例提供一种智能设备。该智能设备可以包括下述功能单元:
存储器,用于存储计算机程序指令;
处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:
接收属性值设置消息;所述属性值设置消息中,包含属性值;
根据所述属性值,为所述应用的界面元素的属性赋值。
在一种实施方式中,处理器接收属性值设置消息,可以包括:接收操作系统广播的属性值设置消息;或接收其他应用发送的属性值设置消息。
在一种实施方式中,所述属性值设置消息中,包含至少两个属性值;则,
处理器根据所述属性值为所述应用的界面元素的属性赋值,包括:处理器从所述至少两个属性值中选取属性值,并根据选取的属性值,为所述应用的界面元素的属性赋值。
当所述属性设置消息中,除包含属性值外,还包含与属性值相映射的界面元素标识时,处理器根据所述属性值为所述应用的界面元素的属性赋值,具体可以包括:根据属性设置消息中的各属性值映射的界面元素标识,从属性设置消息包括的属性值中,选取映射的界面元素标识与所述应用的界面元素标识相同的属性值,为该应用的界面元素的属性赋值。
在一种实施方式中,处理器根据所述属性值为所述应用的界面元素的属性赋值,具体可以包括:根据所述属性值和预设的属性值映射规则,计算所述属性值所映射的其他属性值;根据所述其他属性值,为所述应用的界面元素的属性赋值。
在一种实施方式中,当所述属性设置消息中,除包含属性值外,还包含与属性值相映射的界面元素标识时,处理器为所述应用的界面元素的属性赋值,具体可以包括:为
界面元素标识所对应的所述应用的界面元素的属性赋值。
在一种实施方式中,处理器为界面元素标识所对应的所述应用的界面元素的属性赋值,具体可以包括:根据所述与属性值相映射的界面元素标识,以及预先根据界面元素对应的界面功能为所述应用的界面元素设置的标识,从所述应用的界面元素中,确定具备的标识与所述映射关系中包含的界面元素标识相同的界面元素;为确定出的界面元素的属性赋值。
其中,所述界面元素标识,可以是处理器采用下述方式设置的:
确定应用界面中不同界面元素的功能;
按照为具备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为所述应用界面中不同界面元素设置界面元素标识。
其中,所述应用界面中的界面元素,可以但不限于包括下述至少一种:
按钮、标题、工具栏、选择框、开关、滑块、进度条、输入框。
在一种实施方式中,处理器还可以用于:向其他应用发送属性值设置消息,以使得其他应用根据属性值设置消息中的属性值,对其他应用的界面元素的属性进行赋值。
上述属性,为与显示效果有关的属性。比如,所述属性包括下述至少一种:
颜色;透明度;亮度。
采用本申请实施例提供的上述智能设备,由于可以通过向应用发送属性值设置消息的方式,使得应用根据属性值设置消息中的属性值设置界面元素的属性,无需下载和加载资源包,从而避免改变终端的界面元素会导致耗费终端较多处理资源的问题。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指
定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。
Claims (34)
- 一种界面元素属性值的设置方法,其特征在于,包括:获得属性值设置消息;所述属性值设置消息中,包含属性值;发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
- 如权利要求1所述的方法,其特征在于,获得属性值设置消息,包括:生成属性值设置消息;或接收属性值设置消息。
- 如权利要求2所述的方法,其特征在于,生成属性值设置消息,包括:在接收到壁纸设置指令后,生成属性值设置消息;或在接收到主题设置指令后,生成属性值设置消息;或在接收到服务器发送的属性值调整通知后,生成属性值设置消息。
- 如权利要求2所述的方法,其特征在于,接收属性值设置消息,包括:接收服务器或应用发送的属性值设置消息。
- 如权利要求2或3所述的方法,其特征在于,生成属性值设置消息,包括:确定目标颜色值;根据确定的目标颜色值,生成包含目标颜色值的属性值设置消息。
- 如权利要求5所述的方法,其特征在于,根据下述信息中的至少一种,确定目标颜色值:指定图片;指定事件;用户选取的颜色值。
- 如权利要求1所述的方法,其特征在于,所述属性值设置消息中,除包含属性值外,还包含与属性值相映射的界面元素标识。
- 如权利要求7所述的方法,其特征在于,所述界面元素标识,是采用下述方式设置的:确定应用界面中不同界面元素的功能;按照为具备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为所述应用界面中不同界面元素设置界面元素标识。
- 如权利要求8所述的方法,其特征在于,所述应用界面中的界面元素,包括下述至少一种:按钮、标题、工具栏、选择框、开关、滑块、进度条、输入框。
- 如权利要求1所述的方法,其特征在于,发送属性值设置消息后,所述方法还包括:确定所述接收方应用利用属性值设置消息中的属性值所赋值的界面元素的标识,以及被所述接收方应用利用的属性值;在指定的触发条件下,利用确定的被所述接收方应用利用的属性值,为所述标识对应的所述接收方应用的界面元素赋值。
- 如权利要求1所述的方法,其特征在于,所述属性值设置消息中,包含至少两个属性值。
- 如权利要求1或11所述的方法,其特征在于,所述属性值设置消息中,还包含与各属性值相映射的界面元素标识。
- 一种界面元素属性值的设置方法,其特征在于,包括:应用接收属性值设置消息;所述属性值设置消息中,包含属性值;根据所述属性值,为所述应用的界面元素的属性赋值。
- 如权利要求13所述的方法,其特征在于,应用接收属性值设置消息,包括:所述应用接收操作系统广播的属性值设置消息;或接收其他应用发送的属性值设置消息。
- 如权利要求13所述的方法,其特征在于,所述属性值设置消息中,包含至少两个属性值;则,根据所述属性值为所述应用的界面元素的属性赋值,包括:所述应用从所述至少两个属性值中选取属性值,并根据选取的属性值,为所述应用的界面元素的属性赋值。
- 如权利要求13或15所述的方法,其特征在于,所述属性设置消息中,除包含属性值外,还包含与各属性值相映射的界面元素标识;则,所述根据所述属性值为所述应用的界面元素的属性赋值,包括:所述应用根据所述与各属性值相映射的界面元素标识,从所述属性设置消息包含的属性值中,选取映射的界面元素标识与所述应用的界面元素标识相同的属性值,为该应用的界面元素的属性赋值。
- 如权利要求13所述的方法,其特征在于,根据所述属性值为所述应用的界面元素的属性赋值,包括:根据所述属性值和预设的属性值映射规则,计算所述属性值所映射的其他属性值;根据所述其他属性值,为所述应用的界面元素的属性赋值。
- 如权利要求13~17任一权项所述的方法,其特征在于,当所述属性设置消息中,除包含属性值外,还包含与属性值相映射的界面元素标识时;为所述应用的界面元素的属性赋值,包括:为界面元素标识所对应的所述应用的界面元素的属性赋值。
- 如权利要求18所述的方法,其特征在于,为界面元素标识所对应的所述应用的界面元素的属性赋值,包括:根据所述与属性值相映射的界面元素标识,以及预先根据界面元素对应的界面功能为所述应用的界面元素设置的标识,从所述应用的界面元素中,确定具备的标识与所述映射关系中包含的界面元素标识相同的界面元素;为确定出的界面元素的属性赋值。
- 如权利要求19所述的方法,其特征在于,所述界面元素标识,是采用下述方式设置的:确定应用界面中不同界面元素的功能;按照为具备相同功能的界面元素设置相同的界面元素标识,且为具备不同功能的界面设置的界面元素标识不同的方式,为所述应用界面中不同界面元素设置界面元素标识。
- 如权利要求20所述的方法,其特征在于,所述应用界面中的界面元素,包括下述至少一种:按钮、标题、工具栏、选择框、开关、滑块、进度条、输入框。
- 如权利要求13所述的方法,其特征在于,所述方法还包括:所述应用向其他应用发送属性值设置消息,以使得其他应用根据属性值设置消息中的属性值,对其他应用的界面元素的属性进行赋值。
- 如权利要求13所述的方法,其特征在于,所述属性,为与显示效果有关的属性。
- 如权利要求23所述的方法,其特征在于,所述属性包括下述至少一种:颜色;透明度;亮度。
- 如权利要求13所述的方法,其特征在于,所述属性值设置消息中,包含至少两个属性值。
- 如权利要求13或25所述的方法,其特征在于,所述属性值设置消息中,还包含与各属性值相映射的界面元素标识。
- 一种界面元素属性值的设置装置,其特征在于,包括:消息获得单元,用于获得属性值设置消息;所述属性值设置消息中,包含属性值;消息发送单元,用于发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
- 如权利要求27所述的装置,其特征在于,消息获得单元,用于:生成属性值设置消息;或接收属性值设置消息。
- 如权利要求28所述的装置,其特征在于,消息获得单元,用于:在接收到壁纸设置指令后,生成属性值设置消息;或在接收到主题设置指令后,生成属性值设置消息;或在接收到服务器发送的属性值调整通知后,生成属性值设置消息。
- 一种界面元素属性值的设置装置,其特征在于,包括:消息接收单元,用于接收属性值设置消息;所述属性值设置消息中,包含属性值;赋值单元,用于根据所述属性值,为应用的界面元素的属性赋值。
- 如权利要求30所述的装置,其特征在于,所述属性值设置消息中,包含至少两个属性值;则,赋值单元用于:从所述至少两个属性值中选取属性值,并根据选取的属性值,为所述应用的界面元素的属性赋值。
- 如权利要求31所述的装置,其特征在于,所述属性设置消息中,除包含属性值外,还包含与各属性值相映射的界面元素标识;则,赋值单元用于:根据所述与各属性值相映射的界面元素标识,从所述属性设置消息包含的属性值中,选取映射的界面元素标识与所述应用的界面元素标识相同的属性值,为该应用的界面元素的属性赋值。
- 一种智能设备,其特征在于,包括:存储器,用于存储计算机程序指令;处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为 响应,执行如下操作:获得属性值设置消息;所述属性值设置消息中,包含属性值;发送属性值设置消息,以使所述属性值设置消息的接收方应用根据所述属性值对界面元素的属性进行赋值。
- 一种智能设备,其特征在于,包括:存储器,用于存储计算机程序指令;处理器,耦合到所述存储器,用于读取所述存储器存储的计算机程序指令,并作为响应,执行如下操作:接收属性值设置消息;所述属性值设置消息中,包含属性值;根据所述属性值,为所述应用的界面元素的属性赋值。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/995,685 US20180341380A1 (en) | 2015-12-09 | 2018-06-01 | System, method, and apparatus for configuring attributes of interface elements |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510908199.2A CN106855798A (zh) | 2015-12-09 | 2015-12-09 | 一种界面元素属性值的设置方法、装置及智能设备 |
| CN201510908199.2 | 2015-12-09 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/995,685 Continuation-In-Part US20180341380A1 (en) | 2015-12-09 | 2018-06-01 | System, method, and apparatus for configuring attributes of interface elements |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017097140A1 true WO2017097140A1 (zh) | 2017-06-15 |
Family
ID=59012699
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/107595 Ceased WO2017097140A1 (zh) | 2015-12-09 | 2016-11-29 | 一种界面元素属性值的设置方法、装置及智能设备 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20180341380A1 (zh) |
| CN (1) | CN106855798A (zh) |
| WO (1) | WO2017097140A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110297718A (zh) * | 2018-03-22 | 2019-10-01 | 阿里巴巴集团控股有限公司 | 界面元素联动处理方法、装置和设备 |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107391150A (zh) * | 2017-07-28 | 2017-11-24 | 闻泰通讯股份有限公司 | 移动终端主题色调自适应变更方法及系统 |
| CN110347454A (zh) * | 2018-04-08 | 2019-10-18 | 珠海市魅族科技有限公司 | 应用程序主题设定方法、终端设备控制方法及装置、终端设备及计算机可读存储介质 |
| CN109614186A (zh) * | 2018-11-29 | 2019-04-12 | 深圳市酷达通讯有限公司 | 应用程序色彩切换方法、系统及终端设备 |
| CN114780198B (zh) * | 2018-12-28 | 2024-12-20 | 创新先进技术有限公司 | 一种客户端屏幕适配方法、装置及电子设备 |
| CN109857508B (zh) * | 2019-02-25 | 2021-09-07 | 厦门美柚股份有限公司 | 一种界面皮肤动态更换的方法、系统、设备及其存储介质 |
| US11140257B1 (en) * | 2019-12-30 | 2021-10-05 | Snap Inc. | Setting shared ringtone for calls between users |
| CN111562955B (zh) * | 2020-02-27 | 2022-02-08 | 华为技术有限公司 | 终端设备主题色彩的配置方法、装置和终端设备 |
| CN113535165A (zh) * | 2021-06-11 | 2021-10-22 | 中电金信软件有限公司 | 界面生成方法、装置、电子设备及计算机可读存储介质 |
| CN114637448B (zh) * | 2022-03-04 | 2023-04-21 | 上海弘玑信息技术有限公司 | 数据处理方法、装置、电子设备和存储介质 |
| US12039149B2 (en) * | 2022-05-10 | 2024-07-16 | Apple Inc. | User interface suggestions for electronic devices |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104007991A (zh) * | 2014-06-06 | 2014-08-27 | 百度在线网络技术(北京)有限公司 | 应用程序界面布局调整方法和装置 |
| US20150128074A1 (en) * | 2013-11-06 | 2015-05-07 | Software Ag | System and method for browser side colorizing of icon images |
| CN104778051A (zh) * | 2014-01-13 | 2015-07-15 | 北京发现角科技有限公司 | iOS和Android操作系统通用的换肤方法和系统 |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8490010B2 (en) * | 2005-12-14 | 2013-07-16 | Sap Ag | Selective display of graphical user interface elements |
| GB2428544B (en) * | 2006-06-26 | 2007-09-26 | Surfkitchen Inc | Configuration of remote devices |
| US20080059877A1 (en) * | 2006-08-29 | 2008-03-06 | David Brookler | Method for automatically adjusting the components of a screen region to maintain layout integrity in multiple languages |
| CN101202978A (zh) * | 2006-12-13 | 2008-06-18 | 康佳集团股份有限公司 | 一种移动终端界面配置方法和移动终端 |
| CN101178650A (zh) * | 2007-06-28 | 2008-05-14 | 腾讯科技(深圳)有限公司 | 一种基于响应修改控件属性的方法及其装置 |
| CN101246477A (zh) * | 2007-12-03 | 2008-08-20 | 深圳市茁壮网络技术有限公司 | 一种界面元素的属性修改、显示方法及系统 |
| KR20100091218A (ko) * | 2007-12-17 | 2010-08-18 | 노키아 코포레이션 | 보조 설정 및 관리 |
| CN101655793A (zh) * | 2009-09-25 | 2010-02-24 | 金蝶软件(中国)有限公司 | 一种界面生成方法及装置 |
| US8918712B2 (en) * | 2011-12-13 | 2014-12-23 | Fmr Llc | Dynamically generating a mobile application |
| US8897552B2 (en) * | 2012-08-01 | 2014-11-25 | Microsoft Corporation | Setting an operating-system color using a photograph |
| CN104239076A (zh) * | 2013-06-08 | 2014-12-24 | 中兴通讯股份有限公司 | 界面色彩调整方法及装置 |
| US20160085430A1 (en) * | 2014-09-24 | 2016-03-24 | Microsoft Corporation | Adapting user interface to interaction criteria and component properties |
-
2015
- 2015-12-09 CN CN201510908199.2A patent/CN106855798A/zh active Pending
-
2016
- 2016-11-29 WO PCT/CN2016/107595 patent/WO2017097140A1/zh not_active Ceased
-
2018
- 2018-06-01 US US15/995,685 patent/US20180341380A1/en not_active Abandoned
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150128074A1 (en) * | 2013-11-06 | 2015-05-07 | Software Ag | System and method for browser side colorizing of icon images |
| CN104778051A (zh) * | 2014-01-13 | 2015-07-15 | 北京发现角科技有限公司 | iOS和Android操作系统通用的换肤方法和系统 |
| CN104007991A (zh) * | 2014-06-06 | 2014-08-27 | 百度在线网络技术(北京)有限公司 | 应用程序界面布局调整方法和装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110297718A (zh) * | 2018-03-22 | 2019-10-01 | 阿里巴巴集团控股有限公司 | 界面元素联动处理方法、装置和设备 |
| CN110297718B (zh) * | 2018-03-22 | 2023-05-26 | 阿里巴巴集团控股有限公司 | 界面元素联动处理方法、装置和设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106855798A (zh) | 2017-06-16 |
| US20180341380A1 (en) | 2018-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017097140A1 (zh) | 一种界面元素属性值的设置方法、装置及智能设备 | |
| US10885677B2 (en) | Method and system for setting interface element colors | |
| CN114397979B (zh) | 一种应用显示方法及电子设备 | |
| CN106873863B (zh) | 一种界面切换动画的设置方法及装置 | |
| US9665952B2 (en) | Information processing method and electronic device | |
| WO2020038167A1 (zh) | 视频识图方法、装置、终端及存储介质 | |
| CN112698905B (zh) | 一种屏保显示方法、显示设备、终端设备及服务器 | |
| CN101764971B (zh) | 一种在屏显示装置及其在屏显示方法 | |
| WO2017097137A1 (zh) | 一种界面元素背景图片的显示方法、装置及智能设备 | |
| WO2017100341A1 (en) | Methods and system for setting interface element colors | |
| CN109074220A (zh) | 动态改变用户界面元素的方法 | |
| WO2022179431A1 (zh) | 显示模式切换方法、装置、电子设备和介质 | |
| CN114449243A (zh) | 一种白平衡方法和终端设备 | |
| TW201828020A (zh) | 介面元素屬性值的設置方法、裝置及智慧型設備 | |
| CN115100994B (zh) | 一种医用阅片显示器的控制方法、上位机及终端 | |
| WO2025030802A1 (zh) | 显示方法、电子设备和系统 | |
| CN115729388B (zh) | 状态栏显示控制方法、装置、计算机设备和存储介质 | |
| WO2023040613A1 (zh) | 人机交互方法、计算机可读介质和电子设备 | |
| CN115761012A (zh) | 应用程序界面的显示方法、装置、电子设备和存储介质 | |
| HK1237910A (zh) | 一種界面元素屬性值的設置方法、裝置及智能設備 | |
| HK1237910A1 (zh) | 一种界面元素属性值的设置方法、装置及智能设备 | |
| CN115334239B (zh) | 前后摄像头拍照融合的方法、终端设备和存储介质 | |
| WO2015117345A1 (zh) | 背景的显示方法及装置 | |
| TW201828039A (zh) | 介面元素背景圖片的顯示方法、裝置及智慧型設備 | |
| WO2025060486A1 (zh) | 图片编辑方法和电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16872331 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16872331 Country of ref document: EP Kind code of ref document: A1 |