CN113176923A - Application program running method, method and device for assisting application program running - Google Patents

Application program running method, method and device for assisting application program running Download PDF

Info

Publication number
CN113176923A
CN113176923A CN202110486577.8A CN202110486577A CN113176923A CN 113176923 A CN113176923 A CN 113176923A CN 202110486577 A CN202110486577 A CN 202110486577A CN 113176923 A CN113176923 A CN 113176923A
Authority
CN
China
Prior art keywords
control
style
description information
application program
state
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.)
Pending
Application number
CN202110486577.8A
Other languages
Chinese (zh)
Inventor
于志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bailong Mayun Technology Co ltd
Original Assignee
Beijing Bailong Mayun Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Bailong Mayun Technology Co ltd filed Critical Beijing Bailong Mayun Technology Co ltd
Priority to CN202110486577.8A priority Critical patent/CN113176923A/en
Publication of CN113176923A publication Critical patent/CN113176923A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An application program running method, an auxiliary application program running method and an auxiliary application program running device are disclosed. Acquiring control description information of at least one control involved in an application program, wherein the control description information is used for defining styles of the control in one or more states; analyzing the control description information; and setting the style of the control based on the state of the control and the analysis result. Therefore, the client side running different operating systems can set and adjust the style of the control in the running process of the application program based on the analysis result by analyzing the control description information, and the style display rule of the control is not required to be designed for different operating systems, so that the development cost can be reduced.

Description

Application program running method, method and device for assisting application program running
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application program running method, and an application program running assisting method and apparatus.
Background
With the popularization of intelligent terminals, more and more application programs are developed for the intelligent terminals.
When a certain application is developed, corresponding applications are generally required to be developed for terminals with different operating systems (such as Android and iOS), and the developed applications generally need to support controls to display different styles in different states.
The traditional development mode is to develop application programs corresponding to different operating systems according to the display requirements of the control in different states. The main disadvantage of this approach is that it needs to be developed individually for different operating systems, and the development cost is high.
Therefore, how to meet the style display requirements of the control in different states while reducing the development cost when developing the application programs corresponding to different operating systems is a technical problem which needs to be solved urgently at present.
Disclosure of Invention
The technical problem to be solved by the present disclosure is to provide a scheme capable of meeting style display requirements of a control in different states while reducing development cost when developing application programs corresponding to different operating systems.
According to a first aspect of the present disclosure, there is provided an application program execution method including: acquiring control description information of at least one control related to an application program, wherein the control description information is used for defining styles of the control in one or more states; analyzing the control description information; and setting the style of the control based on the state of the control and the analysis result.
Optionally, the method further comprises: and determining the state of the control according to the operation of the user on the control.
Optionally, the method further comprises: and storing the analysis result in a key value pair mode, wherein keys in the key value pair are used for representing the control and the control state, and values in the key value pair are used for representing the style.
Optionally, the step of obtaining control description information of at least one control involved in the application includes: responding to a page access request, and acquiring control description information of at least one control contained in a page expected to be accessed from a server; or searching the control description information of at least one control contained in the current access page from a pre-stored local file.
Optionally, the control description information is generated based on an extensible markup language or a predetermined data exchange format.
According to a second aspect of the present disclosure, there is provided an application program running method, including: in response to the control being switched from the first state to the second state, determining the style of the control in the second state based on a control style information table, wherein the control style information table is used for recording the style of at least one control related to the application in one or more states; the style of the control is changed to the determined style.
Optionally, the control style information table records styles of the control in one or more states in the form of key value pairs, a key in a key value pair is used for representing the control and the state of the control, and a value in the key value pair is used for representing the style.
According to a third aspect of the present disclosure, there is provided a method for assisting an application program to run, including: generating control description information aiming at least one control involved in an application program, wherein the control description information is used for defining the style of the control in one or more states; and sending the control description information or an analysis result obtained by analyzing the control description information to a first client and/or a second client installed with an application program, wherein the operating systems of the first client and the second client are different.
According to a fourth aspect of the present disclosure, there is provided an application execution apparatus including: the control description information is used for defining styles of the control in one or more states; the analysis module is used for analyzing the control description information; and the setting module is used for setting the style of the control based on the state and the analysis result of the control.
According to a fifth aspect of the present disclosure, there is provided an application program execution apparatus including: the determining module is used for determining the style of the control in the second state based on a control style information table in response to the control being switched from the first state to the second state, wherein the control style information table is used for representing the style of at least one control related to the application program in one or more states; and the changing module is used for changing the style of the control into the determined style.
According to a sixth aspect of the present disclosure, there is provided an apparatus for assisting an application program to run, including: the control generation module is used for generating control description information aiming at least one control involved in the application program, and the control description information is used for defining the style of the control in one or more states; and the sending module is used for sending the control description information to the first client and/or the second client which are provided with the application programs, wherein the operating systems of the first client and the second client are different.
According to a seventh aspect of the present disclosure, there is provided a computing device comprising: a processor; and a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of the first aspect as described above.
According to an eighth aspect of the present disclosure, there is provided a non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the method of the first aspect as described above.
Therefore, control description information used for defining the style of the control in one or more states can be designed for at least one control related to the application program, the client sides running different operating systems can set and adjust the style of the control in the running process of the application program based on the analysis result by analyzing the control description information, and the style display rule of the control is not required to be designed for different operating systems, so that the development cost can be reduced.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in greater detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts throughout.
Fig. 1 shows a schematic flow chart of an application running method according to one embodiment of the present disclosure.
Fig. 2 shows a schematic flow chart of an application running method according to another embodiment of the present disclosure.
FIG. 3 shows a schematic flow chart of a method of assisting application execution according to one embodiment of the present disclosure.
FIG. 4 is a diagram illustrating control description information.
Fig. 5 shows a diagram of a memory pattern mapping table.
Fig. 6 is a block diagram illustrating an application execution apparatus according to an embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating an application execution apparatus according to another embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating an apparatus for assisting in the operation of an application according to an embodiment of the present disclosure.
FIG. 9 shows a block diagram of a computing device, according to one embodiment of the present disclosure.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a schematic flow chart of an application running method according to one embodiment of the present disclosure. The method shown in fig. 1 may be executed by a terminal device installed with an application program, and an operating system of the terminal device may be a first operating system or a second operating system. Wherein the first operating system is different from the second operating system. For example, the first operating system may be Android and the second operating system may be iOS.
Referring to fig. 1, in step S110, control description information of at least one control involved in an application is obtained.
The at least one control related to the application program may refer to a control provided in the running process of the application program and capable of interacting with a user, and may include, but is not limited to, a text type control, a button type control, a picture type control, a time control, a progress display control, and other types of controls. Wherein a control may refer to a component having a user interface (i.e., a visualization component).
The control description information is used to define the style of the control in one or more states. The style of the control defined by the control description information in one or more states may be determined according to the control display requirement of the application program (i.e., the style that the control needs to be displayed in different states). That is, the style of the control defined by the control description information in one or more states may be the style that the control should be exposed in one or more states, which is determined according to the application design requirements.
Each control may have multiple states. For example, the state of the control may include, but is not limited to, at least one of: whether the control is touched, whether the control obtains focus, whether the control is selected, whether the control is checked, whether the control is in an available state, whether the control is activated, and the like.
The control can be switched between different states. The switching of the state of the control can be triggered along with the operation of a user and can also be triggered along with the change of the running environment of the application. That is, the state of the control is related to the user operation and/or the application execution environment. During the running process of the application program, the state of the control can be determined according to the user operation and/or the application running environment.
The style of the control refers to a style related to the appearance display of the control, and may include, but is not limited to, any one or more combinations of colors, shapes and positions of the control.
The control description information may be generated based on languages that can be processed by different operating systems. For example, the control description information may be generated based on an extended markup language (e.g., XML) or a predetermined data exchange format (e.g., JSON).
In step S120, the control description information is parsed.
By analyzing the control description information, the style of the control in one or more states can be obtained.
The parsing result obtained by parsing the control description information (i.e. the style of the control in one or more states) may be stored in the form of key-value pairs. And keys in the key value pairs are used for representing the controls and the control states, and values in the key value pairs are used for representing the styles. The key in the key value pair may be a combination of a control name and a control state, and the value in the key value pair may be a style. The control name can be the name of the control, and can also be the name of the type of the control to which the control belongs.
For example, when a certain type of control (e.g., a text type control) includes multiple controls, and style presentation rules of the multiple controls in different control states are different, the analysis result of the control description information of each control in the type of control may be recorded by using "the name of the control + the state of the control" as a key and using the style as a value.
For another example, when a certain type of control (e.g., a text type control) includes multiple controls, and style presentation rules of the multiple controls in different control states are the same, for the analysis result of the control description information of the type of control, the "name for characterizing the control type + control state" may be used as a key, and the style may be used as a value to record, so as to reduce the cost.
As an example, in a case that most of the controls in a certain type of control have the same style presentation rule in different states, but there are controls with different style presentation rules, the control description information may further define a label attribute (e.g., tag ═ demo ") for the controls with different style presentation rules, where different controls may have different label attributes. For the controls with the same style display rule in different states in a certain type of control, the styles of the labels in different states can be recorded by taking the control type name and the control state as keys and the style as a value. For the controls with different style presentation rules, the styles of the labels in different states can be recorded by taking the label attribute + the control state as a key and the style as a value.
The control description information may define the style of the control in one or more states, and may also define the control itself, for example, define information such as the name of the control, the type of the control, the layout of the control, and the like.
In step S130, based on the state of the control and the parsing result, the style of the control is set.
The analysis result obtained by analyzing the control description information can reflect the styles of the control in different states. When the style of the control is set based on the state of the control and the analysis result, the style of the control can be set to the style of the control in the state reflected by the analysis result according to the state of the control and the analysis result. The state of the control can include the state of the control under the initial condition and the state of the control after the state of the control is changed based on user operation or other factors in the running process of the application program, and therefore the setting of the style of the control includes setting of the style of the control under the initial condition and adjustment of the style of the control when the state of the control is changed.
As described above, the control description information can be used to define not only the style of the control in one or more states, but also the control itself, such as the type of the control, the specific content of the control, and other attribute information of the control. At this time, the application program running on the terminal can also generate a corresponding control according to the control description information, and set the style of the control according to the style analysis result of the control in different states.
As an example, the control description information may be pre-stored in a local file, and when step S110 is executed, the control description information of at least one control included in the currently accessed page may be searched from the pre-stored local file. The current access page refers to a currently opened page in an operation interface of the application program.
As an example, the control description information may also be obtained in real time from a server. For example, control description information of at least one control contained in a page desired to be accessed may be obtained from a server in response to a page access request.
Based on the method, when the application programs corresponding to different operating systems are developed, aiming at the requirement that one or more controls need to display different styles in different states, only the control description information of the controls needs to be generated, the control description information (or the analysis result obtained by analyzing the control description information) is delivered to terminals of different operating systems, the styles of the controls are set and adjusted in the running process of the application programs by the terminals based on the analysis result obtained by analyzing the control description information, and the style display rules of the controls do not need to be designed for different operating systems, so that the development cost can be reduced.
When application programs corresponding to different operating systems are developed, a cross-platform application framework can be adopted to meet the requirement that one or more controls need to display different styles in different states. The cross-platform application framework may include, but is not limited to Cordova, React Native/Weex, Flutter.
Cordova is a mobile end-to-platform application framework and is mainly based on Android and iOS embedded Web controls.
The fact Native/Weex is a mobile end cross-platform application framework, and is mainly based on Native controls of Android and iOS.
Flutter is a mobile end cross-platform application framework, and is mainly based on OpenGL rendering control.
Cordova is far less capable than native controls because it is an Android and iOS built-in Web component in nature. Although the performance of the real Native/Weex and the flute is better, the JavaScript engine is embedded in the real Native/Weex on Android, the flute realizes a Dart virtual machine on both ends (Android and iOS), and the two frameworks are very heavy in certain scenes such as application of heavy exhibition of light logic (such as heavy cloud light ends).
Compared with a scheme adopting a cross-platform application framework, the method can solve the problems based on the control description information generated by adopting the extensible markup language or the preset data exchange format, thereby realizing a light-weight mobile end cross-platform control style automatic switching scheme, and being particularly suitable for application programs of heavy cloud and light ends. The application programs of the heavy cloud and the light cloud are that the terminal can only be responsible for displaying and simple processing, and most of the processing can be executed in the cloud.
Fig. 2 shows a schematic flow chart of an application running method according to another embodiment of the present disclosure. The method shown in fig. 2 may be executed by a terminal device installed with an application program, and an operating system of the terminal device may be a first operating system or a second operating system. Wherein the first operating system is different from the second operating system. For example, the first operating system may be Android and the second operating system may be iOS.
Referring to fig. 2, in step S210, in response to the control being switched from the first state to the second state, the style of the control in the second state is determined based on the control style information table.
The control style information table is used for recording the styles of at least one control related to the application program in one or more states.
The control style information table can be obtained by analyzing the control description information. For the control description information, reference may be made to the above related description, which is not repeated herein.
And determining the style of the control in the second state based on the control style information table, namely searching the style of the control in the second state in the control style information table.
As an example, the control style information table may record the style of the control in one or more states in the form of key value pairs, where keys in a key value pair are used to characterize the control and the control state, and values in a key value pair are used to characterize the style. Thus, the style of the control in the second state can be determined by looking up the value corresponding to the key.
The switching of the control from the first state to the second state may be determined based on a change in the user's operation or application environment for the control. That is, it may be determined that the control is switched from the first state to the second state in response to a change in the user's operation or application environment with respect to the control.
In step S220, the style of the control is changed to the determined style.
In the embodiment, a control style information table can be maintained locally, and in the running process of the application program, the style corresponding to the current state of the control can be searched in the control style information table, and the style of the control is changed accordingly, so that the style display requirements of the control in different states can be met. And the style display rule of the control is not required to be designed for different operating systems, so that the development cost can be reduced.
Fig. 3 shows a schematic flow chart of an application running method according to another embodiment of the present disclosure. The method shown in fig. 3 may be performed by a server, which may be a server corresponding to an application.
Referring to fig. 3, in step S310, control description information is generated for at least one control involved in an application, and the control description information is used for defining styles of the control in one or more states.
The control description information can be generated according to the control display requirements (namely the styles of the controls needing to be displayed in different states) of the application program when the application program is developed. For the control description information, reference may be made to the above related description, which is not repeated herein.
In step S220, the control description information is sent to the first client and/or the second client on which the application program is installed.
The operating systems of the first client and the second client are different. For example, the operating system of the first client may be Android and the operating system of the second client may be iOS.
When the application program is downloaded by a client (a first client/a second client), the control description information or an analysis result (such as a control style information table) obtained by analyzing the control description information is sent to the client together with the installation package of the application program.
Or when the client runs the application program, sending the control description information of the control contained in the current running interface or an analysis result obtained by analyzing the control description information to the client according to the current running interface of the application program.
After receiving the control description information, the client may execute the method shown in fig. 1 or fig. 2 above, so as to set and adjust the style of the control in the running process of the application program.
The present disclosure is further described below with reference to specific application examples.
The control description information shown in fig. 4 can be generated by using XML as an example.
Root shown in fig. 4 is a root node, styles is a style root node, ui is a control root node, line is a layout, and label is a text control.
The XML file will appear on clients of different operating systems as two text controls, one "hello" in black (#000000) and one "world" in red (# ff 0000).
The XML file shown in fig. 4 may be delivered to clients (hereinafter referred to as dual-end) of two different operating systems (e.g., Android and iOS).
The two ends can respectively analyze the XML files and write the styles of the control under different states into a memory style mapping table (corresponding to the control style information table).
Fig. 5 shows a diagram of a memory pattern mapping table.
The double ends can read the ui root node and recursively generate the control. If there is a tag attribute (above tag ═ demo), a lookup is made in the memory mapping table according to the "tag attribute value _ control state" (above demo _ normal or demo _ compressed), and if there is no tag attribute, a lookup is made in the memory mapping table according to the "control name _ control state" (above label _ normal or label _ compressed).
When entering a page, the control is normally in normal state, and the font color of the text control with text "hello" in fig. 4 is "# ff 0000" (red) after being looked up according to "label _ normal", so two text controls will be displayed at both ends, one "hello" displayed as black (#000000) and one "world" displayed as red (# ff 0000).
And when the state of the control is changed, the double ends are searched according to the searching mode. For example, after the text control with the text of "hello" in fig. 4 touches the control, the font color is displayed as "# 00ff 00" (green) after being searched for by "label _ compressed", and the font color of the text control with the text of "world" is "# 0000 ff" (blue) after being searched for by "demo _ compressed".
So upon entering the page depicted in FIG. 4, two text controls will be displayed at both ends, one "hello" displayed in black (#000000) and one "world" displayed in red (# ff 0000). After "hello" is touched, "hello" is displayed green (#00ff00), and after hand lift, "hello" is displayed black (# 000000). After "world" is touched, "world" is displayed blue (#0000ff) and after "wolrd" is displayed red (# ff0000) after hand lift.
It should be noted that the controls, properties, and states shown in fig. 4 and 5 are only exemplary, and in fact, all states of all properties of the dual-ended control can be automatically switched according to the above scheme.
The application program running method of the present disclosure may also be implemented as an application program running apparatus. Fig. 6 and 7 are block diagrams illustrating structures of an application running apparatus according to an exemplary embodiment of the present disclosure. Wherein the functional elements of the application execution apparatus can be implemented by hardware, software, or a combination of hardware and software implementing the principles of the present disclosure. It will be appreciated by those skilled in the art that the functional units described in fig. 6, 7 may be combined or divided into sub-units to implement the principles of the invention described above. Thus, the description herein may support any possible combination, or division, or further definition of the functional units described herein.
In the following, functional units that the application program running device can have and operations that each functional unit can perform are briefly described, and for the details related thereto, reference may be made to the above-mentioned related description, which is not described herein again.
Referring to fig. 6, the application execution device 600 may include an acquisition module 610, a parsing module 620, and a setting module 630.
The obtaining module 610 obtains control description information of at least one control involved in an application, where the control description information is used to define a style of the control in one or more states.
The parsing module 620 parses the control description information.
The setting module 630 sets the style of the control based on the state of the control and the parsing result.
The application running device 600 may further include a state determination module, configured to determine the state of the control according to an operation of the user on the control.
The application running apparatus 600 may further include a storage module, configured to store the analysis result in the form of a key value pair, where a key in the key value pair is used to represent a control and a control state, and a value in the key value pair is used to represent a style.
As an example, the obtaining module 610 may obtain control description information of at least one control included in a page desired to be accessed from a server in response to a page access request. Or the obtaining module 610 may also search, from a pre-stored local file, control description information of at least one control included in the currently accessed page.
Referring to fig. 7, the application execution device 700 may include a determination module 710 and a modification module 720.
The determining module 710 is configured to determine, in response to a control being switched from a first state to a second state, a style of the control in the second state based on a control style information table, where the control style information table is used to characterize a style of at least one control involved in the application in one or more states.
The change module 720 is used to change the style of the control to the determined style.
The method for assisting the running of the application program can also be realized as a device for assisting the running of the application program. Fig. 8 is a block diagram illustrating an apparatus for assisting an application to run according to an exemplary embodiment of the present disclosure. Wherein the functional elements of the means for assisting the application to run may be implemented by hardware, software or a combination of hardware and software implementing the principles of the present disclosure. It will be appreciated by those skilled in the art that the functional units described in fig. 8 may be combined or divided into sub-units to implement the principles of the invention described above. Thus, the description herein may support any possible combination, or division, or further definition of the functional units described herein.
In the following, functional units that a device for assisting an application to run may have and operations that each functional unit may perform are briefly described, and for details related thereto, reference may be made to the above description, and details are not described herein again.
Referring to fig. 8, an apparatus 800 for secondary application execution may include a generation module 810 and a transmission module 820.
The generation module 810 is configured to generate control description information for at least one control involved in an application, where the control description information is used to define a style of the control in one or more states;
the sending module 820 is configured to send the control description information to the first client and/or the second client where the application program is installed, where an operating system of the first client is different from that of the second client.
Fig. 9 is a schematic structural diagram of a computing device that can be used to implement the application running method or the auxiliary application running method according to an embodiment of the present invention.
Referring to fig. 9, computing device 900 includes memory 910 and processor 920.
The processor 920 may be a multi-core processor or may include multiple processors. In some embodiments, processor 920 may include a general-purpose main processor and one or more special purpose coprocessors such as a Graphics Processor (GPU), Digital Signal Processor (DSP), or the like. In some embodiments, processor 920 may be implemented using custom circuits, such as Application Specific Integrated Circuits (ASICs) or Field Programmable Gate Arrays (FPGAs).
The memory 910 may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage. Wherein the ROM may store static data or instructions for the processor 920 or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. In addition, the memory 910 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 910 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a digital versatile disc read only (e.g., DVD-ROM, dual layer DVD-ROM), a Blu-ray disc read only, an ultra-dense disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disk, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 910 has executable code stored thereon, which when processed by the processor 920, causes the processor 920 to perform the above-mentioned application running method or method for assisting application running.
The application running method, the method for assisting in running the application, the device for assisting in running the application, and the apparatus according to the present invention have been described in detail above with reference to the accompanying drawings.
Furthermore, the method according to the invention may also be implemented as a computer program or computer program product comprising computer program code instructions for carrying out the above-mentioned steps defined in the above-mentioned method of the invention.
Alternatively, the invention may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or computing device, server, etc.), causes the processor to perform the steps of the above-described method according to the invention.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (13)

1. An application program running method includes:
acquiring control description information of at least one control involved in an application program, wherein the control description information is used for defining styles of the control in one or more states;
analyzing the control description information; and
and setting the style of the control based on the state of the control and the analysis result.
2. The method of claim 1, further comprising:
and determining the state of the control according to the operation of the user on the control.
3. The method of claim 1, further comprising:
and storing the analysis result in a key value pair mode, wherein keys in the key value pair are used for representing the control and the control state, and values in the key value pair are used for representing the style.
4. The method of claim 1, wherein obtaining control description information for at least one control involved in the application comprises:
responding to a page access request, and acquiring control description information of at least one control contained in a page expected to be accessed from a server; or
And searching control description information of at least one control contained in the current access page from a pre-stored local file.
5. The method of claim 1, wherein,
the control description information is generated based on an extensible markup language or a predetermined data exchange format.
6. An application program running method includes:
in response to a control being switched from a first state to a second state, determining a style of the control in the second state based on a control style information table, wherein the control style information table is used for recording styles of at least one control related to the application in one or more states;
changing the style of the control to the determined style.
7. The method of claim 6, wherein,
the control style information table records styles of the control in one or more states in a key value pair mode, keys in the key value pair are used for representing the control and the state of the control, and values in the key value pair are used for representing the styles.
8. A method of assisting in the running of an application, comprising:
generating control description information aiming at least one control involved in an application program, wherein the control description information is used for defining the style of the control in one or more states;
and sending the control description information or an analysis result obtained by analyzing the control description information to a first client and/or a second client installed with the application program, wherein the operating systems of the first client and the second client are different.
9. An application execution apparatus comprising:
the control description information is used for defining styles of the control in one or more states;
the analysis module is used for analyzing the control description information; and
and the setting module is used for setting the style of the control based on the state and the analysis result of the control.
10. An application execution apparatus comprising:
the determining module is used for determining the style of the control in the second state based on a control style information table in response to the control being switched from the first state to the second state, wherein the control style information table is used for representing the style of at least one control related to the application in one or more states;
and the changing module is used for changing the style of the control into the determined style.
11. An apparatus for assisting in the running of an application, comprising:
the control generation module is used for generating control description information aiming at least one control involved in an application program, and the control description information is used for defining the style of the control in one or more states;
and the sending module is used for sending the control description information to a first client and/or a second client which are provided with the application program, wherein the operating systems of the first client and the second client are different.
12. A computing device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any of claims 1 to 8.
13. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any of claims 1-8.
CN202110486577.8A 2021-04-30 2021-04-30 Application program running method, method and device for assisting application program running Pending CN113176923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110486577.8A CN113176923A (en) 2021-04-30 2021-04-30 Application program running method, method and device for assisting application program running

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110486577.8A CN113176923A (en) 2021-04-30 2021-04-30 Application program running method, method and device for assisting application program running

Publications (1)

Publication Number Publication Date
CN113176923A true CN113176923A (en) 2021-07-27

Family

ID=76928096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110486577.8A Pending CN113176923A (en) 2021-04-30 2021-04-30 Application program running method, method and device for assisting application program running

Country Status (1)

Country Link
CN (1) CN113176923A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356451A (en) * 2021-12-31 2022-04-15 北京安博通科技股份有限公司 Application execution method, application execution device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777036A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 A kind of data rendering method and data render system
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium
CN110110073A (en) * 2018-01-26 2019-08-09 北京高德云图科技有限公司 A kind of text methods of exhibiting and device
CN112667238A (en) * 2020-12-31 2021-04-16 华南理工大学 Method and system for dynamically generating control panel of automation equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777036A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 A kind of data rendering method and data render system
CN110110073A (en) * 2018-01-26 2019-08-09 北京高德云图科技有限公司 A kind of text methods of exhibiting and device
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium
CN112667238A (en) * 2020-12-31 2021-04-16 华南理工大学 Method and system for dynamically generating control panel of automation equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356451A (en) * 2021-12-31 2022-04-15 北京安博通科技股份有限公司 Application execution method, application execution device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107729094B (en) User interface rendering method and device
US20220253588A1 (en) Page processing method and related apparatus
US11344806B2 (en) Method for rendering game, and method, apparatus and device for generating game resource file
US7698628B2 (en) Method and system to persist state
KR101130525B1 (en) Method and apparatus for generating forms using form types
CN110427215A (en) A kind of program version mRNA differential display mRNA method and device applied to front end exploitation
CN112947969B (en) Page off-screen rendering method, device, equipment and readable medium
Oehlman et al. Pro Android Web Apps
WO2018130085A1 (en) Method and apparatus for page presentation
CN110286971B (en) Processing method and system, medium and computing device
CN111796821A (en) Page updating method and device
CN112306594A (en) Rendering method and device based on mobile terminal and storage medium
CN114237916B (en) Data processing method and related equipment
CN113176923A (en) Application program running method, method and device for assisting application program running
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
CN114092590B (en) Electronic device and evaluation method and medium for image rendering performance of electronic device
CN114827186A (en) Cloud application processing method and system
CN113918194A (en) Page component display method and device, electronic equipment and storage medium
CN112988810A (en) Information searching method, device and equipment
CN105183491A (en) Cross-platform desktop GIS and starting method thereof
CN113590224B (en) Method and device for detecting server, electronic equipment and storage medium
CN112764750B (en) Interface generation method, device, electronic equipment and readable storage medium
CN116595284B (en) Webpage system operation method, device, equipment, storage medium and program
CN116700842B (en) Data object reading and writing method and device, computing equipment and storage medium
WO2021174538A1 (en) Application processing method and related apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination