CN108804177A - Update method, apparatus, computer equipment and the storage medium of interface view - Google Patents

Update method, apparatus, computer equipment and the storage medium of interface view Download PDF

Info

Publication number
CN108804177A
CN108804177A CN201810503870.9A CN201810503870A CN108804177A CN 108804177 A CN108804177 A CN 108804177A CN 201810503870 A CN201810503870 A CN 201810503870A CN 108804177 A CN108804177 A CN 108804177A
Authority
CN
China
Prior art keywords
resource file
interface view
update
resource
setting
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
CN201810503870.9A
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 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810503870.9A priority Critical patent/CN108804177A/en
Publication of CN108804177A publication Critical patent/CN108804177A/en
Pending legal-status Critical Current

Links

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/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The present invention proposes a kind of method of update interface view, including:Obtain the first resource file for updating the setting interface view based on native system exploitation in the application program;Wherein, the first resource file is the resource file based on setting script development language configuration;Based on preset resource file analysis protocol, the first resource file is parsed, obtains the identifiable Secondary resource file of native system;The setting interface view is updated by the Secondary resource file.The invention also discloses a kind of device, computer equipment and the computer readable storage mediums of update interface view, by implementing said program, it realizes in the application program developed based on mixed developing pattern, the dynamic update of setting interface view based on native system exploitation, effectively improves the user-interaction experience of application program.

Description

Update method, apparatus, computer equipment and the storage medium of interface view
Technical field
The present invention relates to field of computer technology more particularly to a kind of method, apparatus of update interface view, computer to set Standby and computer readable storage medium.
Background technology
With the fast development of terminal technology, various APP (Application, application program) have obtained quickly universal.It is existing One or more interface views interacted with user are provided in some APP, each interface view is not only patrolled including function Volume code and static elements (such as:The elements such as picture and button), therefore work as and modify to the static elements in interface view When (such as when modifying to the color, size and/or size of button), need to issue again and update file comprising static elements APP installation files, and the APP installation files issued again need terminal system developer to audit;It issues again simultaneously APP installation files, user can not execute installation operation, therefore the boundary in APP to the APP installation files issued again in time Static elements in the view of face can not real-time update.
Invention content
The present invention proposes a kind of method, apparatus, computer equipment and the computer-readable storage medium of update interface view Matter, to solve the problems, such as in the prior art cannot be newer into Mobile state to APP interface views.
The technical solution adopted by the present invention is to provide a kind of method of update interface view, is applied to be based on mixed developing mould In the application program that formula is developed, the method includes:
Obtain the first resource file for updating the setting interface view based on native system exploitation in the application program;Its In, the first resource file is the resource file based on setting script development language configuration;
Based on preset resource file analysis protocol, the first resource file is parsed, it is identifiable to obtain native system Secondary resource file;
The setting interface view is updated by the Secondary resource file.
Optionally, the Secondary resource file includes the static resource of the static elements in the update setting interface view Information;
It is described that the setting interface view is updated by the Secondary resource file, including:
The mapping relations of mark and interface control based on preset static resource information include according to Secondary resource file Static resource information mark, determine the corresponding static resource information of each interface control in the setting interface view;
According to the corresponding static resource information of each interface control, each interface control is rendered, to update State setting interface view.
Optionally, the Secondary resource file further includes the dynamic of the layout of the update setting interface view median surface control State resource information;
Each interface control is rendered according to the corresponding static resource information of each interface control described, with Before updating the setting interface view, the method includes:
According to the dynamic resource information that the Secondary resource file includes, setting interface view median surface control is updated Layout.
Optionally, described obtain updates first of the setting interface view based on native system exploitation in the application program Resource file, including:
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
Optionally, the script development language that sets is script Javascript.
The present invention also provides a kind of devices of update interface view, are developed based on mixed developing pattern applied to being provided with Application program terminal in, the method includes:
Acquisition module, for obtaining the setting interface view developed based on native system in the update application program One resource file;Wherein, the first resource file is the resource file based on setting script development language configuration;
Parsing module, for based on preset resource file analysis protocol, parsing the first resource file, obtaining primary The identifiable Secondary resource file of system;
Update module, for being updated to the setting interface view by the Secondary resource file.
Optionally, the Secondary resource file includes the static resource of the static elements in the update setting interface view Information;
The update module, including:
Determining module is used for the mapping relations of mark and interface control based on preset static resource information, according to the The mark for the static resource information that two resource files include determines that each interface control is corresponding quiet in the setting interface view State resource information;
Rendering module, for according to the corresponding static resource information of each interface control, rendering each interface Control, to update the setting interface view.
Optionally, the Secondary resource file further includes the dynamic of the layout of the update setting interface view median surface control State resource information;
The update module further includes:
Layout modules, for, according to the corresponding static resource information of each interface control, being rendered described every described One interface control, with before updating the setting interface view, according to the dynamic resource information that the Secondary resource file includes, Update the layout of setting interface view median surface control.
Optionally, the acquisition module, is specifically used for
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
Optionally, the script development language that sets is script Javascript.
The present invention also provides a kind of computer equipment, the computer equipment includes processor and memory;
The processor is used to execute the program of the update interface view stored in memory, to realize above-mentioned more New Territory The step of method of face view.
The present invention also provides computer readable storage medium, there are one the computer-readable recording medium storages or more A program, one or more of programs can be executed by one or more processor, be regarded with the update interface for realizing above-mentioned The step of method of figure.
Using above-mentioned technical proposal, the present invention at least has following advantages:
Method, apparatus, computer equipment and the computer readable storage medium of a kind of update interface view of the present invention, It realizes in the application program developed based on mixed developing pattern, the dynamic of the setting interface view based on native system exploitation Update, effectively improves the user-interaction experience of application program.
Description of the drawings
Fig. 1 is the method flow diagram of the update interface view of first embodiment of the invention;
Fig. 2 is the method flow diagram of the update interface view of second embodiment of the invention;
Fig. 3 is the method flow diagram of the update interface view of third embodiment of the invention;
Fig. 4 is the method flow diagram of the update interface view of fourth embodiment of the invention;
Fig. 5 is the method flow diagram of the update interface view of fifth embodiment of the invention;
Fig. 6 is the device composed structure schematic diagram of the update interface view of sixth embodiment of the invention;
Fig. 7 is the device composed structure schematic diagram of the update interface view of seventh embodiment of the invention;
Fig. 8 is the device composed structure schematic diagram of the update interface view of eighth embodiment of the invention;
Fig. 9 is the computer equipment composed structure schematic diagram of ninth embodiment of the invention.
Specific implementation mode
Further to illustrate the present invention to reach the technological means and effect that predetermined purpose is taken, below in conjunction with attached drawing And preferred embodiment, the present invention is described in detail as after.
The method of update interface view provided in an embodiment of the present invention, is answered applied to what is developed based on mixed developing pattern With in program, the dynamic for realizing the setting interface view based on native system exploitation in above application program updates, with Solve what the setting interface view in the prior art based on native system exploitation cannot be updated by the resource file issued Defect.
First embodiment of the invention, a method of update interface view, as shown in Figure 1, including step in detail below:
Step S101 obtains the first resource text of the setting interface view based on native system exploitation in more new application Part.
Wherein, first resource file is the resource file based on setting script development language configuration.
In the present embodiment, application program is the application developed based on two or more script development language Program is not specifically limited the type and quantity of script development language, can be opened based on primary Android (Android) system Send out the application program of language and script Javascript mixed developings;It can also be and be based on primary Apple Macintosh operating system iOS The application program of development language and script Javascript mixed developings.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view packet It includes but is not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
In the present embodiment, the mode for obtaining first resource file is not specifically limited, can is server by first Resource file pushes to the application program;Can also be when application program detects in server there are when first resource file, Download the first resource file;Can also be when application program receives the first resource documentary information of server push, under Carry first resource file;Can also be application program in the detection cycle detection service device that sets with the presence or absence of first resource text If part downloads the first resource file there are first resource file in server.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Step S102 parses first resource file, obtaining native system can know based on preset resource file analysis protocol Other Secondary resource file.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Step S103 is updated setting interface view by Secondary resource file.
Optionally, step S103, including:
By the update resource information for including in Secondary resource file, setting interface view is updated.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The method of the update interface view of first embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Second embodiment of the invention, a method of update interface view, as shown in Fig. 2, including step in detail below:
Step S201 obtains the first resource text of the setting interface view based on native system exploitation in more new application Part.
Wherein, first resource file is the resource file based on setting script development language configuration.
In the present embodiment, application program is the application developed based on two or more script development language Program is not specifically limited the type and quantity of script development language, can be opened based on primary Android (Android) system Send out the application program of language and script Javascript mixed developings;It can also be and be based on primary Apple Macintosh operating system iOS The application program of development language and script Javascript mixed developings.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view packet It includes but is not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
In the present embodiment, the mode for obtaining first resource file is not specifically limited, can is server by first Resource file pushes to the application program;Can also be when application program detects in server there are when first resource file, Download the first resource file;Can also be when application program receives the first resource documentary information of server push, under Carry first resource file;Can also be application program in the detection cycle detection service device that sets with the presence or absence of first resource text If part downloads the first resource file there are first resource file in server.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Step S202 parses first resource file, obtaining native system can know based on preset resource file analysis protocol Other Secondary resource file.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Step S203 is updated setting interface view by Secondary resource file.
Optionally, step S203, including:
In the case where Secondary resource file includes the static resource information of the static elements in more new settings interface view, The mapping relations of mark and interface control based on preset static resource information, the static money for including according to Secondary resource file The mark of source information determines the corresponding static resource information of each interface control in setting interface view;
According to the corresponding static resource information of each interface control, each interface control is rendered, is regarded with more new settings interface Figure.
Wherein, static resource information includes the resource informations such as the corresponding picture of interface control and/or music.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The method of the update interface view of second embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Third embodiment of the invention, a method of update interface view, as shown in figure 3, including step in detail below:
Step S301 obtains the first resource text of the setting interface view based on native system exploitation in more new application Part.
Wherein, first resource file is the resource file based on setting script development language configuration.
In the present embodiment, application program is the application developed based on two or more script development language Program is not specifically limited the type and quantity of script development language, can be opened based on primary Android (Android) system Send out the application program of language and script Javascript mixed developings;It can also be and be based on primary Apple Macintosh operating system iOS The application program of development language and script Javascript mixed developings.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view packet It includes but is not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
In the present embodiment, the mode for obtaining first resource file is not specifically limited, can is server by first Resource file pushes to the application program;Can also be when application program detects in server there are when first resource file, Download the first resource file;Can also be when application program receives the first resource documentary information of server push, under Carry first resource file;Can also be application program in the detection cycle detection service device that sets with the presence or absence of first resource text If part downloads the first resource file there are first resource file in server.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Step S302 parses first resource file, obtaining native system can know based on preset resource file analysis protocol Other Secondary resource file.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Step S303 is updated setting interface view by Secondary resource file.
Optionally, step S303, including:
The static resource information of static elements in Secondary resource file includes more new settings interface view, and update are set In the case of the dynamic resource information for determining the layout of interface view median surface control, the mark based on preset static resource information Determine that setting interface regards according to the mark for the static resource information that Secondary resource file includes with the mapping relations of interface control The corresponding static resource information of each interface control in figure;
According to the dynamic resource information that Secondary resource file includes, the more layout of new settings interface view median surface control;
According to the corresponding static resource information of each interface control, each interface control is rendered, is regarded with more new settings interface Figure.
Wherein, static resource information includes the resource informations such as the corresponding picture of interface control and/or music;Dynamic resource is believed Breath includes the resource informations such as position, size and/or the color of interface control.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The method of the update interface view of third embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Fourth embodiment of the invention, a method of update interface view, as shown in figure 4, including step in detail below:
Step S401 obtains the first resource text of the setting interface view based on native system exploitation in more new application Part.
Wherein, first resource file is the resource file based on setting script development language configuration.
Optionally, the first resource file of the setting interface view based on native system exploitation in more new application is obtained Mode, including but not limited to:
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
In the present embodiment, memory is not specifically limited, can is the volatile memory (Volatile in terminal ), such as random access memory (Random Access Memory, RAM) Memory;Memory can also include non-volatile Memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid state disk (Solid-State Drive, SSD);It deposits Reservoir can also include the combination of the memory of mentioned kind.
In the present embodiment, application program is the application developed based on two or more script development language Program is not specifically limited the type and quantity of script development language, can be opened based on primary Android (Android) system Send out the application program of language and script Javascript mixed developings;It can also be and be based on primary Apple Macintosh operating system iOS The application program of development language and script Javascript mixed developings.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view Including but not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Step S402 parses first resource file, obtaining native system can know based on preset resource file analysis protocol Other Secondary resource file.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Step S403 is updated setting interface view by Secondary resource file.
Optionally, step S403, including:
The static resource information of static elements in Secondary resource file includes more new settings interface view, and update are set In the case of the dynamic resource information for determining the layout of interface view median surface control, the mark based on preset static resource information Determine that setting interface regards according to the mark for the static resource information that Secondary resource file includes with the mapping relations of interface control The corresponding static resource information of each interface control in figure;
According to the dynamic resource information that Secondary resource file includes, the more layout of new settings interface view median surface control;
According to the corresponding static resource information of each interface control, each interface control is rendered, is regarded with more new settings interface Figure.
Wherein, static resource information includes the resource informations such as the corresponding picture of interface control and/or music;Dynamic resource is believed Breath includes the resource informations such as position, size and/or the color of interface control.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The method of the update interface view of fourth embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Fifth embodiment of the invention, a method of update interface view, as shown in figure 5, including step in detail below:
Step S501 obtains the first resource text of the setting interface view based on native system exploitation in more new application Part.
Wherein, first resource file is the resource file based on setting script development language configuration.
Optionally, the first resource file of the setting interface view based on native system exploitation in more new application is obtained Mode, including but not limited to:
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
Optionally, script development language is set as script Javascript.
Optionally, first resource file is the resource file based on script Javascript configurations.
In the present embodiment, native system is not specifically limited, can is primary Android (Android) system, also may be used To be primary Apple Macintosh operating system iOS.
In the present embodiment, memory is not specifically limited, can is the volatile memory (Volatile in terminal ), such as random access memory (Random Access Memory, RAM) Memory;Memory can also include non-volatile Memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid state disk (Solid-State Drive, SSD);It deposits Reservoir can also include the combination of the memory of mentioned kind.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view Including but not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Step S502 parses first resource file, obtaining native system can know based on preset resource file analysis protocol Other Secondary resource file.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Step S503 is updated setting interface view by Secondary resource file.
Optionally, step S503, including:
The static resource information of static elements in Secondary resource file includes more new settings interface view, and update are set In the case of the dynamic resource information for determining the layout of interface view median surface control, the mark based on preset static resource information Determine that setting interface regards according to the mark for the static resource information that Secondary resource file includes with the mapping relations of interface control The corresponding static resource information of each interface control in figure;
According to the dynamic resource information that Secondary resource file includes, the more layout of new settings interface view median surface control;
According to the corresponding static resource information of each interface control, each interface control is rendered, is regarded with more new settings interface Figure.
Wherein, static resource information includes the resource informations such as the corresponding picture of interface control and/or music;Dynamic resource is believed Breath includes the resource informations such as position, size and/or the color of interface control.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The method of the update interface view of fifth embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Sixth embodiment of the invention, a kind of device of update interface view, as shown in fig. 6, including consisting of part:
Acquisition module 100, for obtaining the setting interface view developed based on native system in more new application One resource file.
Wherein, first resource file is the resource file based on setting script development language configuration.
In the present embodiment, application program is the application developed based on two or more script development language Program is not specifically limited the type and quantity of script development language, can be opened based on primary Android (Android) system Send out the application program of language and script Javascript mixed developings;It can also be and be based on primary Apple Macintosh operating system iOS The application program of development language and script Javascript mixed developings.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view packet It includes but is not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
In the present embodiment, the mode for obtaining first resource file is not specifically limited, can is server by first Resource file pushes to the application program;Can also be when application program detects in server there are when first resource file, Download the first resource file;Can also be when application program receives the first resource documentary information of server push, under Carry first resource file;Can also be application program in the detection cycle detection service device that sets with the presence or absence of first resource text If part downloads the first resource file there are first resource file in server.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Parsing module 200, for based on preset resource file analysis protocol, parsing first resource file, obtaining primary The identifiable Secondary resource file of system.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Update module 300 is updated setting interface view for passing through Secondary resource file.
Optionally, update module 300 are used for:
By the update resource information for including in Secondary resource file, setting interface view is updated.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The device of the update interface view of sixth embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Seventh embodiment of the invention, a kind of device of update interface view, as shown in fig. 7, comprises consisting of part:
Acquisition module 100, for obtaining the setting interface view developed based on native system in more new application One resource file.
Wherein, first resource file is the resource file based on setting script development language configuration.
Optionally, acquisition module 100 is obtained, is specifically used for:
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
Optionally, script development language is set as script Javascript.
Optionally, first resource file is the resource file based on script Javascript configurations.
In the present embodiment, native system is not specifically limited, can is primary Android (Android) system, also may be used To be primary Apple Macintosh operating system iOS.
In the present embodiment, memory is not specifically limited, can is the volatile memory (Volatile in terminal ), such as random access memory (Random Access Memory, RAM) Memory;Memory can also include non-volatile Memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid state disk (Solid-State Drive, SSD);It deposits Reservoir can also include the combination of the memory of mentioned kind.
In the present embodiment, interface view is the displaying interface that application program is interacted with user, wherein interface view Including but not limited to:Interface control (such as:Button etc.) and static elements (such as:Picture etc.) etc. elements.
It is regarded for the setting interface based on native system exploitation in more new application by above-mentioned dynamic obtain in real time The mode of the first resource file of figure realizes that the dynamic with the resource file of new settings interface view issues.
Parsing module 200, for based on preset resource file analysis protocol, parsing first resource file, obtaining primary The identifiable Secondary resource file of system.
Optionally, parse first resource file concrete mode, further include:
First resource file is parsed, the version identifier of update resource information and the update resource information is obtained;
By comparing the version identifier of the update resource information, the version mark with the existing resource information of setting interface view Knowledge is compared;
If the version identifier of the update resource information can be used in more new settings interface view, by first resource file solution Analysis is the identifiable Secondary resource file of native system.
By preset resource file analysis protocol, the first resource text based on setting script development language configuration is realized Part is efficiently automatically converted to the identifiable Secondary resource file of native system.
Update module 300 is updated setting interface view for passing through Secondary resource file.
Optionally, update module 300, including:
Determining module 301, the static state for the static elements in including more new settings interface view in Secondary resource file In the case of resource information, and the more dynamic resource information of the layout of new settings interface view median surface control, based on preset The mark of static resource information and the mapping relations of interface control, according to the mark for the static resource information that Secondary resource file includes Know, determines the corresponding static resource information of each interface control in setting interface view;
Layout modules 302, the dynamic resource information for including according to Secondary resource file, in more new settings interface view The layout of interface control;
Rendering module 303, for according to the corresponding static resource information of each interface control, rendering each interface control, With more new settings interface view.
Wherein, static resource information includes the resource informations such as the corresponding picture of interface control and/or music;Dynamic resource is believed Breath includes the resource informations such as position, size and/or the color of interface control.
Since in the prior art, the interface view of native system does not support dynamic realtime to update, the boundary of native system is updated Face view is only capable of by issuing new application program installation file, and primary system is carried out by user installation application program installation file The update of the interface view of system.The present embodiment is dynamically pushed in real time by the resource file based on setting script development language configuration To application program, and it is the identifiable resource file of native system to carry out automatic real time parsing to resource file, with to primary system The interface view of system realizes that dynamic updates.
The device of the update interface view of seventh embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Eighth embodiment of the invention, the present embodiment are on the basis of the above embodiments, to update the device of interface view For, introduce an application example of the invention in conjunction with attached drawing 8.
The method of update interface view described in the present embodiment is developed applied to being provided with based on mixed developing pattern Application program terminal in.
The device of the update interface view includes:It is laid out resolution component (LayoutParser) 803, resource management component (ResourcesManager) 801 and resource resolution component (ResourcesParser) 802.
Resource management component 801, for the first resource that reading service device issues from the memory (SDcard) of terminal File;Wherein, first resource file is to be based on primary system in the more new application based on script Javascript configurations The resource file for the setting interface view developed of uniting.
Resource resolution component 802, for based on preset resource file analysis protocol, parsing first resource file, obtaining The identifiable Secondary resource file of native system.
Wherein, Secondary resource file, including but not limited to:The static resource of static elements in more new settings interface view Information, and the more layout of new settings interface view median surface control dynamic resource information.
It is laid out resolution component 803, is used for the mapping relations of mark and interface control based on preset static resource information, According to the mark for the static resource information that Secondary resource file includes, determine that each interface control is corresponding in setting interface view Static resource information;According to the dynamic resource information that Secondary resource file includes, more new settings interface view median surface control Layout;According to the corresponding static resource information of each interface control, each interface control is rendered, with more new settings interface view.
The device of the update interface view of eighth embodiment of the invention, is realized and is answered based on what mixed developing pattern was developed With in program, the dynamic update of the setting interface view based on native system exploitation, the user for effectively improving application program hands over Mutually experience.
Ninth embodiment of the invention, a kind of computer equipment, as shown in figure 9, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other manner connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used to store the executable instruction of processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 can also include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, to execute the present invention the In one embodiment to fifth embodiment of the invention in any embodiment part or Overall Steps.
The computer equipment of ninth embodiment of the invention realizes the application program developed based on mixed developing pattern In, the dynamic update of the setting interface view based on native system exploitation effectively improves the user-interaction experience of application program.
Tenth embodiment of the invention, a kind of computer readable storage medium.
Computer storage media can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storages The storage medium of device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art.
Computer-readable recording medium storage there are one or multiple programs, one or more program can by one or The multiple processors of person execute, with realize in first embodiment of the invention to fifth embodiment of the invention in any embodiment part or Overall Steps.
Computer readable storage medium described in tenth embodiment of the invention is stored with one or more program, should One or more program can execute by one or more processor, can realize and be developed based on mixed developing pattern In application program, the dynamic update of the setting interface view based on native system exploitation effectively improves the user of application program Interactive experience.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (12)

1. a kind of method of update interface view, which is characterized in that applied to the application journey developed based on mixed developing pattern In sequence, the method includes:
Obtain the first resource file for updating the setting interface view based on native system exploitation in the application program;Wherein, The first resource file is the resource file based on setting script development language configuration;
Based on preset resource file analysis protocol, the first resource file is parsed, obtains native system identifiable second Resource file;
The setting interface view is updated by the Secondary resource file.
2. according to the method described in claim 1, it is characterized in that, the Secondary resource file includes updating the setting interface The static resource information of static elements in view;
It is described that the setting interface view is updated by the Secondary resource file, including:
The mapping relations of mark and interface control based on preset static resource information, according to Secondary resource file include it is quiet The mark of state resource information determines the corresponding static resource information of each interface control in the setting interface view;
According to the corresponding static resource information of each interface control, each interface control is rendered, to be set described in update Determine interface view.
3. according to the method described in claim 2, it is characterized in that, the Secondary resource file further includes update setting circle The dynamic resource information of the layout of face view median surface control;
Each interface control is rendered according to the corresponding static resource information of each interface control described, with update Before the setting interface view, the method includes:
According to the dynamic resource information that the Secondary resource file includes, the cloth of setting interface view median surface control is updated Office.
4. according to the method described in claim 1, it is characterized in that, the acquisition, which updates, is based on primary system in the application program The first resource file for the setting interface view developed of uniting, including:
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
5. method according to claim 1 to 4, which is characterized in that the script development language that sets is foot This language Javascript.
6. a kind of device of update interface view, which is characterized in that developed based on mixed developing pattern applied to being provided with In the terminal of application program, the method includes:
Acquisition module, for obtaining the first money for updating the setting interface view developed based on native system in the application program Source file;Wherein, the first resource file is the resource file based on setting script development language configuration;
Parsing module, for based on preset resource file analysis protocol, parsing the first resource file, obtaining native system Identifiable Secondary resource file;
Update module, for being updated to the setting interface view by the Secondary resource file.
7. device according to claim 6, which is characterized in that the Secondary resource file includes updating the setting interface The static resource information of static elements in view;
The update module, including:
Determining module is used for the mapping relations of mark and interface control based on preset static resource information, according to the second money The mark for the static resource information that source file includes determines the corresponding static money of each interface control in the setting interface view Source information;
Rendering module, for according to the corresponding static resource information of each interface control, rendering each interface control, To update the setting interface view.
8. device according to claim 7, which is characterized in that the Secondary resource file further includes update setting circle The dynamic resource information of the layout of face view median surface control;
The update module further includes:
Layout modules, for, according to the corresponding static resource information of each interface control, rendering each boundary described Face control, before updating the setting interface view, according to the dynamic resource information that the Secondary resource file includes, to update The layout of setting interface view median surface control.
9. device according to claim 6, which is characterized in that the acquisition module is specifically used for
Obtain the first resource file that server issues in preset memory;
Alternatively, when detecting in server there are when the first resource file, the first resource file is downloaded.
10. the device according to any one of claim 6 to 9, which is characterized in that the script development language that sets is foot This language Javascript.
11. a kind of computer equipment, which is characterized in that the computer equipment includes processor and memory;
The processor is used to execute the program of the update interface view stored in memory, to realize according to Claims 1 to 5 Any one of described in update interface view method the step of.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~ The step of method of update interface view described in any one of 5.
CN201810503870.9A 2018-05-23 2018-05-23 Update method, apparatus, computer equipment and the storage medium of interface view Pending CN108804177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810503870.9A CN108804177A (en) 2018-05-23 2018-05-23 Update method, apparatus, computer equipment and the storage medium of interface view

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810503870.9A CN108804177A (en) 2018-05-23 2018-05-23 Update method, apparatus, computer equipment and the storage medium of interface view

Publications (1)

Publication Number Publication Date
CN108804177A true CN108804177A (en) 2018-11-13

Family

ID=64091521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810503870.9A Pending CN108804177A (en) 2018-05-23 2018-05-23 Update method, apparatus, computer equipment and the storage medium of interface view

Country Status (1)

Country Link
CN (1) CN108804177A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377361A (en) * 2019-07-15 2019-10-25 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium
CN111857782A (en) * 2020-07-27 2020-10-30 苏州朗动网络科技有限公司 Interface updating method and device, computer equipment and storage medium
CN112882772A (en) * 2021-03-24 2021-06-01 腾讯科技(深圳)有限公司 Configuration method of application interface of mobile terminal, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354014A (en) * 2014-08-18 2016-02-24 阿里巴巴集团控股有限公司 Application interface rendering display method and apparatus
CN106815055A (en) * 2017-02-15 2017-06-09 深圳创维-Rgb电子有限公司 The method and system of Mobile solution Dynamic Distribution
CN106936871A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 The method and device of showing interface data
CN107153536A (en) * 2017-03-31 2017-09-12 北京三快在线科技有限公司 A kind of application processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354014A (en) * 2014-08-18 2016-02-24 阿里巴巴集团控股有限公司 Application interface rendering display method and apparatus
CN106936871A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 The method and device of showing interface data
CN106815055A (en) * 2017-02-15 2017-06-09 深圳创维-Rgb电子有限公司 The method and system of Mobile solution Dynamic Distribution
CN107153536A (en) * 2017-03-31 2017-09-12 北京三快在线科技有限公司 A kind of application processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377361A (en) * 2019-07-15 2019-10-25 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium
CN111857782A (en) * 2020-07-27 2020-10-30 苏州朗动网络科技有限公司 Interface updating method and device, computer equipment and storage medium
CN111857782B (en) * 2020-07-27 2021-11-16 企查查科技有限公司 Interface updating method and device, computer equipment and storage medium
CN112882772A (en) * 2021-03-24 2021-06-01 腾讯科技(深圳)有限公司 Configuration method of application interface of mobile terminal, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
US9792623B2 (en) Advertisement processing method and apparatus
US9087156B2 (en) Application version release management
CN108804177A (en) Update method, apparatus, computer equipment and the storage medium of interface view
CN110688232B (en) Application program calling method, terminal equipment and computer readable storage medium
WO2016177061A1 (en) Upgrade method and apparatus using over-the-air download technology
CN102081535A (en) Android-based application program upgrading method and system and application development platform
US10014030B2 (en) Method, device and system for playing video
CN104020991A (en) Method and device for multi-language switching of application program
CN103314384A (en) Methods and systems for managing device specific content
US20140289719A1 (en) Automatic version management
CN109408086A (en) Interface updating method, device, computer equipment and the storage medium of APP
CN108228361A (en) A kind of information push method, terminal and computer readable storage medium
CN109413186A (en) Application program update method, terminal, server and system
US9753784B2 (en) Cloud delivery platform
CN103793256A (en) Method for management of memory cards, and electronic device
CN107844352A (en) A kind of application interface collocation method and device
CN110727469B (en) Terminal device control method and device, application program configuration file packaging method, terminal device and computer readable storage medium
CN108984339B (en) Data recovery method and related product
CN105786636B (en) A kind of system repair and device
CN104809011A (en) Application program management method
CN107239303B (en) Application program update package generation method and device and application program update method and device
CN109343880B (en) RN packet updating method and device and readable storage medium
CN108804258B (en) Data recovery method and device, mobile terminal and storage medium
CN108733548A (en) One kind burying a setting method, device, equipment and computer readable storage medium
CN108874418B (en) UI component updating method and device, terminal and computer-readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113