Unlock instant, AI-driven research and patent intelligence for your innovation.

Interface updating method and device

An update method and interface technology, applied in the field of data processing, can solve problems such as difficult code maintenance, inability to achieve decoupling of native component styles, low efficiency of string comparison and judgment, and achieve the effect of improving processing efficiency

Active Publication Date: 2020-01-24
ALIBABA GRP HLDG LTD
View PDF15 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] On operating systems such as MacOS and IOS, traditional software creation does not have a ready-made CSS style management mechanism similar to HTML5. UI logic and UI vision are completely coupled, and dynamic and flexible interface skinning cannot be realized.
For example, the code to set the ontint color of the UISwitch component to red in code creation is: UISwitch switch; [switchsetOnTintColor:[UIColor redColor]], the problem with this is that after the code is compiled and released, the switch will always be red , but in business scenarios, sometimes it is necessary to replace the color of the published online interface with black
[0005] The above scheme has flaws. On the one hand, because inheritance coupling is too strong, the style decoupling of some native components cannot be realized. On the other hand, because it relies on if...else statements, the code is difficult to maintain, and multiple string comparisons are required. and judgment inefficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface updating method and device
  • Interface updating method and device
  • Interface updating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0066] refer to figure 1 , which shows a flow chart of the steps of an embodiment of an interface updating method of the present application. The interface has a corresponding static style mapping table, which may specifically include the following steps:

[0067] Step 101, loading style files.

[0068]In a specific implementation, the style file is a resource file that can be used to modify the style of the interface, so as to realize the update of the interface. The interface update may refer to the update of the interface skin, that is, to update the interface vision by means. Style refers to the element code logic related to the visual elements such as the color and font of the application interfac...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides an interface updating method and device. An interface is provided with a corresponding static style mapping table, and the interface updating method comprisesthe steps: loading a style file; reading a style to be modified from the style file; searching an application hook function of the to-be-modified style from the static style mapping table; and dynamically updating the interface according to the application hook function and the to-be-modified style. By means of the style file and the static style mapping table, the method separates the style modification logic and the binding calling logic, and searches the corresponding application hook function based on the static style mapping table, and as the static style mapping table stores the style ina key value pair mode, if... Else and multiple times of character string judgment are avoided during searching, thus improving the processing efficiency.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to an interface updating method and an interface updating device. Background technique [0002] At present, the UI (User Interface, user interface) skinning solution of the application needs to split the skin package, such as providing different style skin packages for MacOS, iOS, Android and other operating systems, thus increasing the writing time. and maintenance costs. [0003] On operating systems such as MacOS and IOS, traditional software creation does not have a ready-made CSS style management mechanism similar to HTML5. UI logic and UI vision are completely coupled, and dynamic and flexible interface skinning cannot be realized. For example, the code to set the ontint color of the UISwitch component to red in code creation is: UISwitch switch; [switchsetOnTintColor:[UIColor redColor]], the problem with this is that after the code is compiled and released,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/451
CPCG06F9/451Y02D10/00
Inventor 徐健
Owner ALIBABA GRP HLDG LTD