CN104252341A - Method and device for resurfacing application program and client side device of application program - Google Patents

Method and device for resurfacing application program and client side device of application program Download PDF

Info

Publication number
CN104252341A
CN104252341A CN201310260357.9A CN201310260357A CN104252341A CN 104252341 A CN104252341 A CN 104252341A CN 201310260357 A CN201310260357 A CN 201310260357A CN 104252341 A CN104252341 A CN 104252341A
Authority
CN
China
Prior art keywords
resource file
application program
skin
interfaces
key word
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.)
Granted
Application number
CN201310260357.9A
Other languages
Chinese (zh)
Other versions
CN104252341B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310260357.9A priority Critical patent/CN104252341B/en
Publication of CN104252341A publication Critical patent/CN104252341A/en
Application granted granted Critical
Publication of CN104252341B publication Critical patent/CN104252341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for resurfacing an application program and a client side device of the application program, and belongs to the technical field of terminals. The method comprises the steps of receiving a resurfacing command which is emitted by a user through an HMI (Human Machine Interface) and is used for resurfacing the application program; determining keywords of a to-be-switched skin according to the resurfacing command; obtaining a route of a resource file corresponding to the keywords from a configuration file; obtaining the resource file according to the route of the resource file; updating a current interface of the application program according to the resource file in a way that other interfaces except the current interface of the application program cannot be updated. By adopting the technical scheme, all user interfaces cannot be updated immediately when the skin is replaced, only the current interface of the application program can be updated according to the resource file, the task of reading and drawing abundant files by a main thread can be effectively reduced, the main thread can be prevented from being blocked, the response time of an interface can be effectively reduced, and the user experience degree can be increased.

Description

The client device of the skin change method of application program, device and application program
Technical field
The present invention relates to field of terminal technology, particularly the client device of a kind of skin change method of application program, device and application program.
Background technology
Along with the fast development of intelligent terminal and the universal of use, increasing people can enjoy various amusement and recreation activity by terminal.Such as people can install various application program in terminal, as the client of the various application programs such as browser, microblogging, comment net, map, multimedia player and various shopping networks, can strengthen the convenience of people's life.
Along with the convenience that application program uses, the visual effect of people's application programs requires also more and more fastidious, and therefore, in prior art, the various skin met the needs of different users also has appearred in the client of various application program.User can liking according to oneself, selects and the skin arbitrarily oneself liked, experience different visual experiences.In prior art, the client of application program, can loaded targets skin is corresponding at once all pictures more new user interface (User Interface in main thread immediately when changing skin; UI).
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: in prior art, because the client of application program is when changing skin, meeting all pictures that loaded targets skin is corresponding at once also upgrade UI immediately in main thread, heap file can be added to main thread to read and drafting task, cause main thread to block, cause the interface response time to extend.
Summary of the invention
In order to solve the problem of prior art, embodiments provide the client device of a kind of skin change method of application program, device and application program.Described technical scheme is as follows:
On the one hand, provide the skin change method of application program, described method comprises:
What receive that user carries out changing skin by the application programs that human-machine interface module sends changes skin instruction;
The key word that the skin that will switch is determined in skin instruction is changed according to described;
The path of resource file corresponding to described key word is obtained from configuration file;
According to the path Gains resources file of described resource file;
The current interface of described application program is upgraded according to described resource file, and other interfaces outside the described current interface not upgrading described application program.
Alternatively, in the skin change method of application program as above, upgrade current interface according to described resource file, and after other interfaces outside the described current interface not upgrading described application program, also comprise:
Other interfaces described in outside the current interface of described application program send the skin that changes carrying described key word and notify.
Alternatively, in the skin change method of application program as above, described other interfaces outside the current interface of described application program send carry described key word change skin notice after, also comprise;
By described resource file Asynchronous loading to buffer zone.
Alternatively, in the skin change method of application program as above, after described resource file Asynchronous loading to buffer zone, also comprise:
When entering other interfaces described, upgrade other interfaces described according to described resource file.
Alternatively, in the skin change method of application program as above, upgrade other interfaces described according to described resource file, comprising:
Utilize described resource file to replace the original resource file in other interfaces described, and utilize described resource file to draw other interfaces described.
Alternatively, in the skin change method of application program as above, the path of key word and described resource file described in described configuration file is preserved with the form of key-value pair.
On the other hand, what provide a kind of application program changes skin device, and described device comprises:
Receiver module, changes skin instruction for what receive that user carries out changing skin by the application programs that human-machine interface module sends;
Determination module, determines the key word of the skin that will switch for changing skin instruction described in basis;
Acquisition module, for obtaining the path of resource file corresponding to described key word from configuration file;
Described acquisition module, also for the path Gains resources file according to described resource file;
Update module, for upgrading the current interface of described application program according to described resource file, and other interfaces outside the described current interface not upgrading described application program.
Alternatively, changing in skin device of application program as above, also comprises:
Sending module, for other interfaces described in outside the current interface to described application program send carry described key word change skin notice.
Alternatively, changing in skin device of application program as above, also comprises:
Load-on module, for outside the current interface of other interfaces from described sending module to described application program send carry described key word change skin notice after, by described resource file Asynchronous loading to buffer zone.
Alternatively, application program as above change in skin device, described update module, also for after described load-on module is by described resource file Asynchronous loading to buffer zone, when entering other interfaces described, upgrade other interfaces described according to described resource file.
Alternatively, application program as above change in skin device, described update module, specifically for utilizing described resource file to replace the original resource file in other interfaces described, and utilizes described resource file to draw other interfaces described.
Alternatively, application program as above change in skin device, the path of key word and described resource file described in described configuration file is preserved with the form of key-value pair.
Again on the one hand, also provide a kind of client device of application program, what the client device of described application program is provided with as above arbitrary described application program changes skin device.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Skin instruction is changed by what receive that user carries out changing skin by the application programs that human-machine interface module sends; According to the key word changing skin instruction and determine the skin that will switch; The path of resource file corresponding to key word is obtained from configuration file; According to the path Gains resources file of resource file; The current interface of application program is upgraded according to resource file, and other interfaces outside the described current interface not upgrading described application program.Adopt the technical scheme of the embodiment of the present invention, when changing skin, all user interfaces can't be upgraded immediately, and the current interface of application program is only upgraded according to resource file, effectively can reduce main thread read simultaneously and draw a large amount of tasks, avoid the obstruction of main thread, but also effectively can reduce the response time at interface, improve the Experience Degree of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of the skin change method of the application program that Fig. 1 provides for one embodiment of the invention.
Figure 2 shows that the form schematic diagram of a kind of configuration file that the embodiment of the present invention provides.
Fig. 3 is the path schematic diagram of the resource file folder that in Fig. 2, in configuration file, each topic keyword is corresponding.
Fig. 4 is that in Fig. 2, key word is the resource file schematic diagram under Basketfire theme.
Fig. 5 is that in Fig. 2, key word is the schematic diagram of the color value file under the theme of Basketfire.
The process flow diagram of the skin change method of the application program that Fig. 6 another embodiment of the present invention provides.
The structural representation changing skin device of the application program that Fig. 7 provides for one embodiment of the invention.
The application program that Fig. 8 provides for another embodiment of the present invention change skin device.
Fig. 9 is a kind of terminal device structural representation that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The process flow diagram of the skin change method of the application program that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the skin change method of the application program of the present embodiment, specifically can comprise the steps:
What 100, receive that user carries out changing skin by the application programs that human-machine interface module sends changes skin instruction;
101, according to changing the key word that the skin that will switch is determined in skin instruction;
102, from configuration file, obtain the path of resource file corresponding to key word;
103, according to the path Gains resources file of resource file;
104, the current interface of application program is upgraded according to resource file, and other interfaces outside the current interface not upgrading application program.
Such as, in practical application, an application program can support various skin, and user by browsing the various skin that this application program is supported, can select the skin that will switch.After user selects the skin that will switch, just sent by human-machine interface module and change skin instruction.This changes the key word that can carry the skin that will switch in skin instruction, or can carry the mark of key word of the skin that will switch.So just, can according to the key word changing skin instruction and determine the skin that will switch.Wherein when the use scenes of application program is that now corresponding human-machine interface module can be mouse or keyboard when the terminal not with touch-screen is as computing machine used application program.When application program is when being with the terminal of touch-screen as panel computer or smart mobile phone used application program, now corresponding human-machine interface module can be touch-screen.After determining the key word of the skin that will switch, from configuration file, obtain the path of resource file corresponding to key word; Again according to the path Gains resources file of resource file; And the current interface of application program is upgraded according to resource file.In the present embodiment, only upgrade the current interface of application program, as upgraded the navigation bar pattern, background picture resource etc. of current interface; And other interfaces outside the current interface that wouldn't upgrade application program.Thus avoid the obstruction of main thread.Configuration file wherein in the present embodiment can be the configuration file of Theme.Plist form or can also be extend markup language (Extensible Markup Language; XML) configuration file of form.
The executive agent of the skin change method of the application program of the present embodiment be application program change skin device, the changing skin device and can be obtained by Integrated Simulation of such as this application program.
The skin change method of the application program of the present embodiment, changes skin instruction by what receive that user carries out changing skin by the application programs that human-machine interface module sends; According to the key word changing skin instruction and determine the skin that will switch; The path of resource file corresponding to key word is obtained from configuration file; According to the path Gains resources file of resource file; The current interface of application program is upgraded according to resource file.Adopt the technical scheme of the present embodiment, when changing skin, all user interfaces can't be upgraded immediately, and the current interface of application program is only upgraded according to resource file, effectively can reduce main thread read simultaneously and draw a large amount of tasks, avoid the obstruction of main thread, but also effectively can reduce the response time at interface, improve the Experience Degree of user.
Further alternatively, on above-mentioned basis embodiment illustrated in fig. 1, after wherein step 104 " upgrades current interface according to resource file ", can also comprise: send the skin that changes carrying key word to other interfaces outside the current interface of application program and notify.The key word of the skin that is will switch is to notify that the form of (Notification) is sent to all other interfaces do not discharged, the keyword identification of the skin that this will switch just is had like this on other interface, representing when entering other interfaces, needing to switch skin corresponding to this key word.That is when entering other interfaces, when namely other critical transition are current interface, then skin switching is carried out to other interfaces.
Further, on the basis of the technical scheme of above-described embodiment, to outside the current interface of application program other interfaces send carry key word change skin notice after, can also comprise; By resource file Asynchronous loading to buffer zone.But now and never call drafting function, namely now wouldn't draw other interfaces according to these resource files.
Further, on the basis of the technical scheme of above-described embodiment, after resource file Asynchronous loading to buffer zone, can also comprising: when entering other interfaces, upgrading other interfaces according to resource file.
Particularly, namely utilize resource file to replace the original resource file in other interfaces, and utilize resource file to draw other interfaces.
It should be noted that, can also be allowed other interface more new resources by the method arranging readjustment.With reference to related art, can not repeat them here in detail.
It should be noted that, what application program was corresponding can comprise multiple skin, the corresponding key word of each skin.Each skin can have multiple by corresponding resource file.Such as can comprise this key word as whole pictures of theme, sound effect resource file and alternative document etc.Multiple resource files that each skin is corresponding can be placed in a resource file folder.Such as in order to persistence storing documents, can press from both sides according to the resource file that key word packing is corresponding.It should be noted that, switch mutually between the multiple skins for the ease of an application program, require that resource file corresponding to the key word of often kind of skin that this application program is corresponding presss from both sides the type of the resource file comprised identical.Such as all must comprise key word as whole pictures of theme, sound effect resource file and alternative document etc., resource file folder as corresponding in current keyword a comprises resource file b, resource file c, resource file d and resource file e tetra-files.The resource file folder that the key word a1 that so this application program is corresponding is corresponding comprises resource file b1, resource file c1, resource file d1 and resource file e1 tetra-files.The resource file folder resource file corresponding with key word a1 that key word a is corresponding presss from both sides the number of files comprised must be identical, and resource file b is identical with the type of resource file b1, and when skin switches, resource file b1 replaces resource file b.In like manner, resource file c is identical with resource file c1 type, and when skin switches, resource file c1 replaces resource file c.Resource file d1 is identical with resource file d type, and when skin switches, resource file d1 replaces resource file d.Resource file e1 is identical with resource file e type, and when skin switches, resource file e1 replaces resource file e.
It should be noted that, in the configuration file in above-described embodiment, the path of key word and resource file is preserved with the form that key assignments (key-value) is right.Preserve theme by this way, theme can be made to have extensibility, when needing to add new theme, in key word, input the key word (normally the high level overview of the characteristic of this theme) of new theme, in the value of correspondence, then input the path that corresponding subject picture resource is deposited: the form schematic diagram being illustrated in figure 2 a kind of configuration file that the embodiment of the present invention provides.Comprise Blackjeans, Originaltaste, Lovwlyluck, Crosscountry, Basketfire and Spacedream totally six topic keywords shown in Fig. 2, exist in configuration file with key form, the skin of corresponding 6 kinds of themes.Wherein Type is type, can omit.Corresponding path of depositing resource file corresponding to key word corresponding to often kind of Key in Value.When the resource file that this topic keyword is corresponding has multiple, a resource file folder can be set, resource file corresponding for this topic keyword be all placed in this resource file folder.Now, the corresponding path can depositing resource file folder corresponding to key word corresponding to often kind of Key in Value.Fig. 3 is the path schematic diagram of the resource file folder that in Fig. 2, in configuration file, each topic keyword is corresponding.Fig. 4 is that in Fig. 2, key word is the resource file schematic diagram under Basketfire theme.Fig. 5 is that in Fig. 2, key word is the schematic diagram of the color value file under the theme of Basketfire.
In the skin change method of the application program of above-described embodiment, above-mentioned all alternatives can adopt combinable mode combination in any, and form optional embodiment of the present invention, this is no longer going to repeat them.
Adopt the technical scheme of above-described embodiment, when changing skin, all user interfaces can't be upgraded immediately, and the current interface of application program is only upgraded according to resource file, and at other interfaces of follow-up asynchronous refresh, effectively can reduce main thread and read simultaneously and draw a large amount of tasks, avoid the obstruction of main thread, but also effectively can reduce the response time at interface, improve the Experience Degree of user.
The process flow diagram of the skin change method of the application program that Fig. 6 another embodiment of the present invention provides.As shown in Figure 6, the skin change method of the application program of the present embodiment, on the basis of above-mentioned embodiment illustrated in fig. 1 and embodiment, introduces technical scheme of the present invention further in further detail.As shown in Figure 6, the skin change method of the application program of the present embodiment, specifically can comprise the steps:
200, application program change that skin device receives that user carries out changing skin by the application programs that human-machine interface module sends change skin instruction; This changes the key word carrying the skin that will switch in skin instruction;
201, application program change skin device from the key word changing the skin that acquisition will switch skin instruction;
202, application program change skin device obtain from configuration file key word corresponding resource file folder path;
203, the skin device that changes of application program obtains all resource files corresponding to this key word according to the path that resource file presss from both sides;
204, application program change the current interface that the skin device all resource files corresponding according to this key word upgrade application programs, and other interfaces outside the current interface not upgrading application program;
205, application program change skin device in an informed way to outside the current interface of application program other interfaces do not discharged send carry key word change skin notice;
206, the mark of this key word on other interface identifications;
207, application program change skin device by resource file Asynchronous loading to buffer zone;
208, when entering other interfaces, the skin device that changes of application program upgrades other interfaces according to resource file.
In the present embodiment, the specific implementation of above steps with reference to the record of above-mentioned related embodiment, can not repeat them here yet.
The skin change method of the application program of the present embodiment, by adopting technique scheme, when changing skin, all user interfaces can't be upgraded immediately, and only upgrade the current interface of application program according to resource file, and at other interfaces of follow-up asynchronous refresh, effectively can reduce main thread and read simultaneously and draw a large amount of tasks, avoid the obstruction of main thread, but also effectively can reduce the response time at interface, improve the Experience Degree of user.
The structural representation changing skin device of the application program that Fig. 7 provides for one embodiment of the invention.As shown in Figure 7, the application program of the present embodiment change skin device, specifically can comprise: receiver module 10, determination module 11, acquisition module 12 and update module 13.
Wherein receiver module 10 changes skin instruction for what receive that user carries out changing skin by the application programs that human-machine interface module sends; Determination module 11 is connected with receiver module 10, and determination module 11 changes for what receive according to receiver module 10 the key word that the skin that will switch is determined in skin instruction; Acquisition module 12 is connected with determination module 11, and acquisition module 12 is for the path of resource file corresponding to the key word that obtains determination module 11 determine from configuration file; Acquisition module 12 is also for the path Gains resources file according to the resource file obtained; Update module 13 is connected with acquisition module 12, and update module 13 upgrades the current interface of application program for the resource file that obtains according to acquisition module 12, and other interfaces outside the current interface not upgrading application program.
The application program of the present embodiment change skin device, by adopt above-mentioned module realize application program to change skin identical with the realization mechanism of above-mentioned related method embodiment, with reference to the record of above-mentioned related embodiment, can not repeat them here in detail.
The application program of the present embodiment change skin device, realize by adopting above-mentioned module changing skin instruction by what receive that user carries out changing skin by the application programs that human-machine interface module sends; According to the key word changing skin instruction and determine the skin that will switch; The path of resource file corresponding to key word is obtained from configuration file; According to the path Gains resources file of resource file; The current interface of application program is upgraded according to resource file.Adopt the technical scheme of the present embodiment, when changing skin, all user interfaces can't be upgraded immediately, and the current interface of application program is only upgraded according to resource file, effectively can reduce main thread read simultaneously and draw a large amount of tasks, avoid the obstruction of main thread, but also effectively can reduce the response time at interface, improve the Experience Degree of user.
The application program that Fig. 8 provides for another embodiment of the present invention change skin device.As shown in Figure 8, the application program of the present embodiment change skin device, on above-mentioned basis embodiment illustrated in fig. 7, further comprise following technical scheme.
As shown in Figure 8, the application program of the present embodiment change skin device, also comprise sending module 14.Wherein this sending module 14 is connected with acquisition module 12.This sending module 14, for after update module 13 is according to resource file renewal current interface, sends the skin that changes carrying the key word that acquisition module 12 obtains and notifies to other interfaces outside the current interface of application program.
As shown in Figure 8, alternatively, the changing in skin device of application program of the present embodiment also comprises load-on module 15..Wherein load-on module 15 is also connected with acquisition module 12, load-on module 15 for sending module 14 to outside the current interface of application program other interfaces send carry acquisition module 12 obtain key word change skin notice after, the resource file Asynchronous loading obtained by acquisition module 12 is to buffer zone.
As shown in Figure 8, alternatively, the update module 13 of the present embodiment, also for after load-on module 15 is by resource file Asynchronous loading to buffer zone, when entering other interfaces, upgrades other interfaces according to the resource file that acquisition module 12 obtains.
Such as this update module 13 replaces the original resource file in other interfaces specifically for the resource file utilizing acquisition module 12 and obtain, and utilizes resource file to draw other interfaces.
It should be noted that, in the configuration file in the embodiment of the present invention, the path of key word and resource file is preserved with the form of key-value pair.
The application program of the present embodiment change in skin device, above-mentioned all alternatives can adopt combinable mode combination in any, and form optional embodiment of the present invention, this is no longer going to repeat them.
The application program of the present embodiment change skin device, by adopt above-mentioned module realize application program to change skin identical with the realization mechanism of above-mentioned related method embodiment, with reference to the record of above-mentioned related embodiment, can not repeat them here in detail.
The application program of the present embodiment change skin device, realize when changing skin by adopting above-mentioned module, all user interfaces can't be upgraded immediately, and the current interface of application program is only upgraded according to resource file, and at other interfaces of follow-up asynchronous refresh, effectively can reduce main thread read simultaneously and draw a large amount of tasks, avoid the obstruction of main thread, but also effectively can reduce the response time at interface, improve the Experience Degree of user.
The embodiment of the present invention also provides a kind of client device of application program.What the client device of this application program is provided with the application program as above shown in Fig. 7 or Fig. 8 changes skin device.With reference to the record of above-described embodiment, can not repeat them here in detail.
Fig. 9 is a kind of terminal device structural representation that the embodiment of the present invention provides.See Fig. 9, this terminal device may be used for the skin change method implementing the application program provided in above-described embodiment.Specifically:
Terminal device 800 can comprise communication unit 110, includes the storer 120 of one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 8 does not form the restriction to terminal device, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Communication unit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, and this communication unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, when communication unit 110 is RF circuit, after being received by the downlink information of base station, more than one or one processor 180 is transferred to process; In addition, base station is sent to by relating to up data.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, communication unit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal device 800.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal device 800 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in fig. 8, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal device 800 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal device 800 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor; Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal device 800 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal device 800.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal device, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal device 800.
In order to realize radio communication, this terminal device can be configured with wireless communication unit 170, this wireless communication unit 170 can be WiFi module.WiFi belongs to short range wireless transmission technology, and terminal device 800 can help user to send and receive e-mail by wireless communication unit 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 8 shows wireless communication unit 170, be understandable that, it does not belong to must forming of terminal device 800, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal device 800, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal device 800, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal device 800 also comprises the power supply 190(such as battery of powering to all parts), preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal device 800 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal device is touch-screen display, terminal device also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to perform described more than one or one routine package containing the instruction for carrying out following operation by more than one or one processor: what receive that user carries out changing skin by the application programs that human-machine interface module sends changes skin instruction; According to the key word changing skin instruction and determine the skin that will switch; The path of resource file corresponding to key word is obtained from configuration file; According to the path Gains resources file of resource file; The current interface of application program is upgraded according to resource file, and other interfaces outside the current interface not upgrading application program.
Alternatively, this storer is also for storing to give an order: send the skin that changes carrying key word to other interfaces outside the current interface of application program and notify.
Alternatively, this storer is also for storing to give an order: by resource file Asynchronous loading to buffer zone.
Alternatively, this storer is also for storing to give an order: when entering other interfaces, upgrade other interfaces according to resource file.
Alternatively, utilize resource file to replace the original resource file in other interfaces, and utilize resource file to draw other interfaces.
Alternatively, this storer is also for storing to give an order: in configuration file, the path of key word and resource file is preserved with the form of key-value pair.It should be noted that: the application program that above-described embodiment provides change skin device application program change skin time, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the skin change method embodiment of changing skin device and application program of the application program that above-described embodiment provides belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a skin change method for application program, is characterized in that, described method comprises:
What receive that user carries out changing skin by the application programs that human-machine interface module sends changes skin instruction;
The key word that the skin that will switch is determined in skin instruction is changed according to described;
The path of resource file corresponding to described key word is obtained from configuration file;
According to the path Gains resources file of described resource file;
The current interface of described application program is upgraded according to described resource file, and other interfaces outside the described current interface not upgrading described application program.
2. method according to claim 1, is characterized in that, upgrades current interface according to described resource file, and after other interfaces outside the described current interface not upgrading described application program, described method also comprises:
Other interfaces described in outside the current interface of described application program send the skin that changes carrying described key word and notify.
3. method according to claim 1, is characterized in that, described other interfaces outside the current interface of described application program send carry described key word change skin notice after, described method also comprises;
By described resource file Asynchronous loading to buffer zone.
4. method according to claim 3, is characterized in that, after described resource file Asynchronous loading to buffer zone, described method also comprises:
When entering other interfaces described, upgrade other interfaces described according to described resource file.
5. method according to claim 4, is characterized in that, upgrades other interfaces described, comprising according to described resource file:
Utilize described resource file to replace the original resource file in other interfaces described, and utilize described resource file to draw other interfaces described.
6., according to the arbitrary described method of claim 1-5, it is characterized in that, the path of key word and described resource file described in described configuration file is preserved with the form of key-value pair.
7. application program change a skin device, it is characterized in that, described device comprises:
Receiver module, changes skin instruction for what receive that user carries out changing skin by the application programs that human-machine interface module sends;
Determination module, determines the key word of the skin that will switch for changing skin instruction described in basis;
Acquisition module, for obtaining the path of resource file corresponding to described key word from configuration file;
Described acquisition module, also for the path Gains resources file according to described resource file;
Update module, for upgrading the current interface of described application program according to described resource file, and other interfaces outside the described current interface not upgrading described application program.
8. device according to claim 7, is characterized in that, described device also comprises:
Sending module, for other interfaces described in outside the current interface to described application program send carry described key word change skin notice.
9. device according to claim 7, is characterized in that, described device also comprises:
Load-on module, for outside the current interface of other interfaces from described sending module to described application program send carry described key word change skin notice after, by described resource file Asynchronous loading to buffer zone.
10. device according to claim 9, is characterized in that:
Described update module, also for after described load-on module is by described resource file Asynchronous loading to buffer zone, when entering other interfaces described, upgrades other interfaces described according to described resource file.
11. devices according to claim 10, is characterized in that, described update module, specifically for utilizing described resource file to replace the original resource file in other interfaces described, and utilize described resource file to draw other interfaces described.
12. according to the arbitrary described device of claim 7-11, and it is characterized in that, the path of key word and described resource file described in described configuration file is preserved with the form of key-value pair.
The client device of 13. 1 kinds of application programs, is characterized in that, what the client device of described application program is provided with the arbitrary described application program of as above claim 7-12 changes skin device.
CN201310260357.9A 2013-06-26 2013-06-26 The client device of the skin change method of application program, device and application program Active CN104252341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310260357.9A CN104252341B (en) 2013-06-26 2013-06-26 The client device of the skin change method of application program, device and application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310260357.9A CN104252341B (en) 2013-06-26 2013-06-26 The client device of the skin change method of application program, device and application program

Publications (2)

Publication Number Publication Date
CN104252341A true CN104252341A (en) 2014-12-31
CN104252341B CN104252341B (en) 2019-02-22

Family

ID=52187292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310260357.9A Active CN104252341B (en) 2013-06-26 2013-06-26 The client device of the skin change method of application program, device and application program

Country Status (1)

Country Link
CN (1) CN104252341B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786498A (en) * 2016-02-25 2016-07-20 广州阿里巴巴文学信息技术有限公司 Method and device for modifying application and electronic device
CN106155750A (en) * 2016-07-29 2016-11-23 腾讯科技(深圳)有限公司 The loading method of a kind of resource file and device
CN106657611A (en) * 2016-11-15 2017-05-10 努比亚技术有限公司 Device and method for changing application theme
CN107551550A (en) * 2017-09-06 2018-01-09 湖北卡游科技有限公司 Change system and method in network Random Factor Mahjong interface
CN108228178A (en) * 2017-12-15 2018-06-29 阿里巴巴集团控股有限公司 A kind of page to APP carries out the method and apparatus for changing skin
CN108563478A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 Skin strategy is changed in a kind of App startup
CN108628518A (en) * 2017-07-26 2018-10-09 北京视联动力国际信息技术有限公司 A kind of Application Program Interface replacing skins method and device
CN109062643A (en) * 2018-07-06 2018-12-21 佛山市灏金赢科技有限公司 A kind of display interface method of adjustment, device and terminal
CN109101309A (en) * 2018-08-06 2018-12-28 北京百度网讯科技有限公司 For updating user interface method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996073A (en) * 2009-08-31 2011-03-30 阿里巴巴集团控股有限公司 Component rendering method and device
CN102163197A (en) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 Skin changing method, system and device
CN102231160A (en) * 2011-06-24 2011-11-02 中兴通讯股份有限公司 Webpage appearance update method and system
CN102436370A (en) * 2011-08-12 2012-05-02 北京思创银联科技股份有限公司 Dynamic enumeration method
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program
CN102779130A (en) * 2011-05-11 2012-11-14 腾讯科技(深圳)有限公司 Method and device for automatically updating microblog page skin

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996073A (en) * 2009-08-31 2011-03-30 阿里巴巴集团控股有限公司 Component rendering method and device
CN102163197A (en) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 Skin changing method, system and device
CN102779130A (en) * 2011-05-11 2012-11-14 腾讯科技(深圳)有限公司 Method and device for automatically updating microblog page skin
CN102231160A (en) * 2011-06-24 2011-11-02 中兴通讯股份有限公司 Webpage appearance update method and system
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program
CN102436370A (en) * 2011-08-12 2012-05-02 北京思创银联科技股份有限公司 Dynamic enumeration method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786498A (en) * 2016-02-25 2016-07-20 广州阿里巴巴文学信息技术有限公司 Method and device for modifying application and electronic device
CN106155750A (en) * 2016-07-29 2016-11-23 腾讯科技(深圳)有限公司 The loading method of a kind of resource file and device
CN106155750B (en) * 2016-07-29 2018-09-07 腾讯科技(深圳)有限公司 A kind of loading method and device of resource file
CN106657611A (en) * 2016-11-15 2017-05-10 努比亚技术有限公司 Device and method for changing application theme
CN108628518A (en) * 2017-07-26 2018-10-09 北京视联动力国际信息技术有限公司 A kind of Application Program Interface replacing skins method and device
CN107551550A (en) * 2017-09-06 2018-01-09 湖北卡游科技有限公司 Change system and method in network Random Factor Mahjong interface
CN108228178A (en) * 2017-12-15 2018-06-29 阿里巴巴集团控股有限公司 A kind of page to APP carries out the method and apparatus for changing skin
CN108563478A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 Skin strategy is changed in a kind of App startup
CN109062643A (en) * 2018-07-06 2018-12-21 佛山市灏金赢科技有限公司 A kind of display interface method of adjustment, device and terminal
CN109101309A (en) * 2018-08-06 2018-12-28 北京百度网讯科技有限公司 For updating user interface method and device
CN109101309B (en) * 2018-08-06 2021-10-01 北京百度网讯科技有限公司 Method and apparatus for updating user interface

Also Published As

Publication number Publication date
CN104252341B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN105005909A (en) Method and device for predicting lost users
CN103500002A (en) Method, device and terminal equipment for managing application program
CN103530115B (en) Application program display method and device and terminal equipment
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN104717341A (en) Message prompting method and terminal
CN104142779B (en) user interface control method, device and terminal
CN105094809A (en) Method and device for modifying layout of combined image and terminal device
CN104571787A (en) Message display method and communication terminal
CN103646656A (en) Sound effect processing method, sound effect processing device, plug-in manager and sound effect plug-in
CN104142868A (en) Connection establishment method and device
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN104954159A (en) Network information statistics method and device
CN104238893A (en) Video preview image displaying method and device
CN104602135A (en) Method and device for controlling full screen play
CN103310009A (en) Method, device and terminal for updating webpage data
CN105022616A (en) Method and device for generating web page
CN104142994A (en) Data list acquisition method, terminal and system
CN103945241A (en) Streaming data statistical method, system and related device
CN103677944A (en) Method and device for manufacturing screen locking interface and terminal device
CN103631592A (en) Configuration method, calling method, device and equipment for displaying resources
CN104133757A (en) Method for obtaining memory information and terminal
CN104239332A (en) Webpage content processing method, webpage content processing device and browser client side
CN103399911A (en) Access processing method, device and terminal device on basis of browser client
CN105530239A (en) Multimedia data obtaining method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant