CN104252341B - The client device of the skin change method of application program, device and application program - Google Patents

The client device of the skin change method of application program, device and application program Download PDF

Info

Publication number
CN104252341B
CN104252341B CN201310260357.9A CN201310260357A CN104252341B CN 104252341 B CN104252341 B CN 104252341B CN 201310260357 A CN201310260357 A CN 201310260357A CN 104252341 B CN104252341 B CN 104252341B
Authority
CN
China
Prior art keywords
skin
resource file
application program
interfaces
keyword
Prior art date
Application number
CN201310260357.9A
Other languages
Chinese (zh)
Other versions
CN104252341A (en
Inventor
李�诚
郑晖
王湘勇
杨振宇
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
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

Links

Abstract

The invention discloses the client devices of a kind of skin change method of application program, device and application program, belong to field of terminal technology.It is instructed the described method includes: receiving user by the skin that changes for change skin to application program that human-machine interface module issues;According to the keyword for changing the skin instruction determination skin to be switched;The path of the corresponding resource file of the keyword is obtained from configuration file;Resource file is obtained according to the path of the resource file;The current interface that the application program is updated according to the resource file, without other interfaces except the current interface of more new application.The present invention is by using above-mentioned technical proposal, when replacing skin, all user interfaces can't be updated immediately, and according only to the current interface of resource file more new application, main thread can be efficiently reduced while reading and drawing a large amount of task, the obstruction of main thread is avoided, but also the response time at interface can be effectively reduced, improves the Experience Degree of user.

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, in particular to a kind of skin change method of application program, device and application program Client device.
Background technique
With intelligent terminal fast development and use universal, more and more people can be enjoyed each by terminal Kind amusement and recreation activity.Such as people can install various application programs at the terminal, such as browser, microblogging, comment The client of the various application programs such as net, map, multimedia player and various shopping networks can enhance people's life just Benefit.
The convenience used with application program, people are also more and more fastidious to the visual effect requirement of application program, because This, in the prior art, also there are the various skins to meet the needs of different users in the client of various application programs.With Family can like according to oneself, and the skin for selecting and arbitrarily oneself liking experiences different visual experiences.In the prior art, The client of application program, can corresponding all pictures of load purported skin and immediately in main thread at once when replacing skin More new user interface (User Interface;UI).
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: in the prior art, by In application program client when replacing skin, can corresponding all pictures of load purported skin and immediately in main thread at once Middle update UI can joined heap file to main thread and read and draw task, cause main thread to block, when interface being caused to respond Between extend.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of skin change methods of application program, device And the client device of application program.The technical solution is as follows:
On the one hand, the skin change method of application program is provided, which comprises
User is received to instruct by the skin that changes for change skin to application program that human-machine interface module issues;
According to the keyword for changing the skin instruction determination skin to be switched;
The path of the corresponding resource file of the keyword is obtained from configuration file;
Resource file is obtained according to the path of the resource file;
The current interface that the application program is updated according to the resource file, without updating described in the application program Other interfaces except current interface.
Optionally, in the skin change method of application program as described above, current interface is updated according to the resource file, and After not updating other interfaces except the current interface of the application program, further includes:
The skin that changes that other interfaces described in except to the current interface of the application program send the carrying keyword leads to Know.
Optionally, in the skin change method of application program as described above, the current interface to the application program it Outer other interfaces, which are sent, carries the changing after skin notice of the keyword, further includes;
Buffer area is loaded by the resource file is asynchronous.
Optionally, in the skin change method of application program as described above, buffer area is loaded by the resource file is asynchronous Later, further includes:
When entering other described interfaces, other described interfaces are updated according to the resource file.
Optionally, in the skin change method of application program as described above, other described boundaries are updated according to the resource file Face, comprising:
The original resource file in other described interfaces is replaced using the resource file, and is drawn using the resource file Other described interfaces.
Optionally, in the skin change method of application program as described above, keyword described in the configuration file and described The path of resource file is saved in the form of key-value pair.
On the other hand, provide a kind of application program changes skin device, and described device includes:
Receiving module is referred to for receiving user by the skin that changes for change skin to application program that human-machine interface module issues It enables;
Determining module, for changing the keyword of the skin instruction determination skin to be switched according to;
Module is obtained, for obtaining the path of the corresponding resource file of the keyword from configuration file;
The acquisition module is also used to obtain resource file according to the path of the resource file;
Update module, for updating the current interface of the application program according to the resource file, described in updating Other interfaces except the current interface of application program.
Optionally, application program as described above is changed in skin device, further includes:
Sending module sends for other interfaces described in except the current interface to the application program and carries the pass Key word changes skin notice.
Optionally, application program as described above is changed in skin device, further includes:
Loading module, for being sent in the sending module to other interfaces except the current interface of the application program Changing after skin notice for the keyword is carried, is loaded onto buffer area for the resource file is asynchronous.
Optionally, application program as described above is changed in skin device, and the update module is also used in the load mould Block by the resource file is asynchronous be loaded onto buffer area after, when entering other described interfaces, more according to the resource file Other new described interfaces.
Optionally, application program as described above is changed in skin device, the update module, is specifically used for utilizing the money Source file replaces the original resource file in other described interfaces, and draws other described interfaces using the resource file.
Optionally, application program as described above is changed in skin device, keyword described in the configuration file and described The path of resource file is saved in the form of key-value pair.
In another aspect, also providing a kind of client device of application program, set on the client device of the application program Be equipped with any application program as above changes skin device.
Technical solution provided in an embodiment of the present invention has the benefit that
It is instructed by receiving user by the skin that changes for change skin to application program that human-machine interface module issues;According to changing The keyword of the skin instruction determination skin to be switched;The path of the corresponding resource file of keyword is obtained from configuration file;Root Resource file is obtained according to the path of resource file;According to the current interface of resource file more new application, described in updating Other interfaces except the current interface of application program.Using the technical solution of the embodiment of the present invention, when replacing skin, All user interfaces can't be updated immediately, and according only to the current interface of resource file more new application, it can be effective Ground reduces main thread and reads and draw a large amount of task simultaneously, avoids the obstruction of main thread, but also can be effectively reduced boundary The response time in face improves the Experience Degree of user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the flow chart of the skin change method for the application program that one embodiment of the invention provides.
Fig. 2 show a kind of form schematic diagram of configuration file provided in an embodiment of the present invention.
Fig. 3 is the path schematic diagram of the corresponding resource folder of each topic keyword in configuration file in Fig. 2.
Fig. 4 is the resource file schematic diagram that keyword is under Basketfire theme in Fig. 2.
Fig. 5 is the schematic diagram of the color value file under the theme that keyword is Basketfire in Fig. 2.
Fig. 6 another embodiment of the present invention provides application program skin change method flow chart.
Fig. 7 is the structural schematic diagram for changing skin device for the application program that one embodiment of the invention provides.
Fig. 8 be another embodiment of the present invention provides application program change skin device.
Fig. 9 is a kind of terminal device structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the flow chart of the skin change method for the application program that one embodiment of the invention provides.As shown in Figure 1, this implementation The skin change method of the application program of example, can specifically include following steps:
100, user is received to instruct by the skin that changes for change skin to application program that human-machine interface module issues;
101, according to the keyword for changing the skin instruction determination skin to be switched;
102, the path of the corresponding resource file of keyword is obtained from configuration file;
103, resource file is obtained according to the path of resource file;
104, according to the current interface of resource file more new application, except the current interface without more new application Other interfaces.
For example, an application program can support a variety of skins in practical application, user can be by browsing this using journey A variety of skins that sequence is supported select the skin to be switched.After user selects the skin to be switched, man-machine interface will pass through Skin instruction is changed in module sending.This, which is changed in skin instruction, can carry the keyword for the skin to be switched, or can carry and to switch Skin keyword mark.It in this way can be according to the keyword for changing the skin instruction determination skin to be switched.Wherein when answering With the usage scenario of program be without touch screen terminal such as computer on use application program when, corresponding human-machine interface at this time Mouth mold block can be mouse or keyboard.When application program makes in the terminal with touch screen such as tablet computer or smart phone When with application program, corresponding human-machine interface module can be touch screen at this time.After the keyword of the determination skin to be switched, The path of the corresponding resource file of keyword is obtained from configuration file;Resource file is obtained further according to the path of resource file; And according to the current interface of resource file more new application.In the present embodiment, the only current interface of more new application, such as more Newly the navigation bar pattern of current interface, background picture resource etc.;And it wouldn't its except the current interface of more new application His interface.To avoid the obstruction of main thread.Wherein the configuration file in the present embodiment can matching for Theme.Plist format It sets file or can also be extensible markup language (Extensible Markup Language;XML) the configuration text of format Part.
The executing subject of the skin change method of the application program of the present embodiment changes skin device, such as the application for application program Program is changed skin device and can be obtained by Integrated Simulation.
The skin change method of the application program of the present embodiment, by receive user by human-machine interface module issue to application The skin that changes that program change skin instructs;According to the keyword for changing the skin instruction determination skin to be switched;It is obtained from configuration file The path of the corresponding resource file of keyword;Resource file is obtained according to the path of resource file;It is answered according to resource file update With the current interface of program.Using the technical solution of the present embodiment, when replacing skin, all users can't be updated immediately Interface, and according only to the current interface of resource file more new application, main thread can be efficiently reduced while reading and drawing A large amount of task is made, the obstruction of main thread is avoided, but also the response time at interface can be effectively reduced, improves the body of user Degree of testing.
Still optionally further, on the basis of above-mentioned embodiment illustrated in fig. 1, wherein step 104 " is updated according to resource file It can also include: changing for other interfaces transmission carrying keyword except the current interface of application program after current interface " Skin notice.That is the keyword for the skin that will switch with notify the form of (Notification) be sent to institute either with or without Other interfaces discharged, just have the keyword identification of the skin to be switched on other interfaces in this way, and expression is worked as and entered When other interfaces, need to switch the corresponding skin of the keyword.That is when other interfaces of entrance, i.e. other interface transformations are When current interface, then skin switching is carried out to other interfaces.
Further, on the basis of the technical solution of above-described embodiment, to its except the current interface of application program His interface, which is sent, carries the changing after skin notice of keyword, can also include;Buffer area is loaded by resource file is asynchronous.But At this time and drafting function is never called, i.e., wouldn't draw other interfaces according to these resource files at this time.
Further, on the basis of the technical solution of above-described embodiment, by resource file it is asynchronous be loaded onto buffer area it It afterwards, can also include: that other interfaces are updated according to resource file when entering other interfaces.
Specifically, that is, using resource file the original resource file in other interfaces is replaced, and is drawn using resource file Make other interfaces.
It should be noted that other interfaces more new resources can also allow by the method for setting readjustment.It can join in detail Related art is examined, details are not described herein.
It should be noted that it may include multiple skins that an application program is corresponding, the corresponding key of each skin Word.Each skin can have multiple with corresponding resource file.It such as may include whole of the keyword as theme Picture, sound effect resource file and alternative document etc..The corresponding multiple resource files of each skin can be placed on one In resource folder.Such as in order to which persistence stores file, corresponding resource folder can be packaged according to keyword.It needs It is bright, switch mutually between multiple skins for the ease of an application program, it is desirable that the corresponding every kind of skin of the application program The type for the resource file for including in the corresponding resource folder of the keyword of skin is identical.It such as all must include keyword conduct Whole pictures, sound effect resource file and alternative document of theme etc., as wrapped in the corresponding resource folder of current keyword a Include tetra- resource file b, resource file c, resource file d and resource file e files.So corresponding keyword of the application program It include resource file b1, tetra- resource file c1, resource file d1 and resource file e1 files in the corresponding resource folder of a1. The number of files for including in the corresponding resource folder of keyword a and the corresponding resource folder of keyword a1 must be identical, and Resource file b is identical as the type of resource file b1, and when skin switching, resource file b1 replaces resource file b.Similarly, Resource file c is identical as resource file c1 type, and when skin switching, resource file c1 replaces resource file c.Resource file D1 is identical with resource file d type, and when skin switching, resource file d1 replaces resource file d.Resource file e1 and resource File e type is identical, and when skin switching, resource file e1 replaces resource file e.
It should be noted that the path of keyword and resource file is in configuration file in above-described embodiment with key assignments (key-value) pair form saves.Theme is saved in this way, can make theme that there is scalability, needs to add new Theme when, the keyword (the usually high level overview of the characteristic of this theme) of new theme is inputted in keyword, is then existed The path of corresponding subject picture resource storage is inputted in corresponding value: being illustrated in figure 2 one kind provided in an embodiment of the present invention and is matched Set the form schematic diagram of file.Include in shown in Fig. 2 Blackjeans, Originaltaste, Lovwlyluck, Crosscountry, Basketfire and Spacedream totally six topic keywords, there are in configuration file in the form of key, The skin of corresponding 6 kinds of themes.Wherein Type is type, it is convenient to omit.The corresponding keyword of every kind of Key of corresponding storage in Value The path of corresponding resource file.When the corresponding resource file of the topic keyword has multiple, a resource file can be set Folder, the corresponding resource file of the topic keyword is all placed in the resource folder.At this point, correspondence can deposit in Value Put the path of the corresponding resource folder of the corresponding keyword of every kind of Key.Fig. 3 is each topic keyword in configuration file in Fig. 2 The path schematic diagram of corresponding resource folder.Fig. 4 is the resource file signal that keyword is under Basketfire theme in Fig. 2 Figure.Fig. 5 is the schematic diagram of the color value file under the theme that keyword is Basketfire in Fig. 2.
In the skin change method of the application program of above-described embodiment, all the above alternatives can be used and can be combined Mode any combination, form alternative embodiment of the invention, this is no longer going to repeat them.
Using the technical solution of above-described embodiment, when replacing skin, all user interfaces can't be updated immediately, and According only to the current interface of resource file more new application, and at other interfaces of subsequent asynchronous refresh, can efficiently reduce Main thread reads and draws a large amount of task simultaneously, avoids the obstruction of main thread, but also can be effectively reduced the sound at interface Between seasonable, the Experience Degree of user is improved.
Fig. 6 another embodiment of the present invention provides application program skin change method flow chart.As shown in fig. 6, this implementation The skin change method of the application program of example, on the basis of above-mentioned embodiment illustrated in fig. 1 and its alternative embodiment, further more in detail Carefully introduce technical solution of the present invention.As shown in fig. 6, the skin change method of the application program of the present embodiment, can specifically include Following steps:
200, the skin device reception user that changes of application program changes application program by what human-machine interface module issued Skin changes skin instruction;This changes the keyword that the skin to be switched is carried in skin instruction;
201, application program change skin device from change skin instruction in obtain the skin to be switched keyword;
202, the path of application program changed skin device and obtain the corresponding resource folder of keyword from configuration file;
203, the skin device that changes of application program obtains the corresponding all resources of the keyword according to the path of resource folder File;
204, application program changes skin device working as according to the corresponding all resource files more new application of the keyword Front interface, without other interfaces except the current interface of more new application;
205, application program change skin device in an informed way to except the current interface of application program without discharging The skin that changes that other interfaces fallen send carrying keyword notifies;
206, on other interface identifications the keyword label;
207, the skin device that changes of application program is loaded onto buffer area for resource file is asynchronous;
208, when entering other interfaces, the skin device that changes of application program updates other interfaces according to resource file.
The specific implementation of above steps can also refer to the record of above-mentioned related embodiment in the present embodiment, herein no longer It repeats.
The skin change method of the application program of the present embodiment, can't when replacing skin by using above-mentioned technical proposal Update all user interfaces immediately, and according only to the current interface of resource file more new application, and it is subsequent it is asynchronous more Other new interfaces, can efficiently reduce main thread while read and drawing a large amount of task, avoid the obstruction of main thread, and It can also be effectively reduced the response time at interface, improve the Experience Degree of user.
Fig. 7 is the structural schematic diagram for changing skin device for the application program that one embodiment of the invention provides.As shown in fig. 7, this The application program of embodiment changes skin device, can specifically include: receiving module 10, obtains module 12 and more at determining module 11 New module 13.
Wherein receiving module 10 is used to receive user and changes skin by carrying out to application program of issuing of human-machine interface module Change skin instruction;Determining module 11 is connect with receiving module 10, and determining module 11 according to the received skin that changes of receiving module 10 for referring to The keyword for the skin for enabling determination to be switched;It obtains module 12 to connect with determining module 11, obtains module 12 and be used for from configuration text The path for the corresponding resource file of keyword that determining module 11 determines is obtained in part;Module 12 is obtained to be also used to according to acquisition The path of resource file obtains resource file;Update module 13 is connect with module 12 is obtained, and update module 13 is used for according to acquisition The current interface for the resource file more new application that module 12 obtains, without its except the current interface of more new application His interface.
The application program of the present embodiment changes skin device, by using above-mentioned module realize application program change skin with it is above-mentioned The realization mechanism of related method embodiment is identical, can refer to the record of above-mentioned related embodiment in detail, details are not described herein.
The application program of the present embodiment changes skin device, realizes by using above-mentioned module by receiving user by man-machine The skin that changes for change skin to application program that interface module issues instructs;According to the key for changing the skin instruction determination skin to be switched Word;The path of the corresponding resource file of keyword is obtained from configuration file;Resource file is obtained according to the path of resource file; According to the current interface of resource file more new application.It can't when replacing skin using the technical solution of the present embodiment All user interfaces are updated immediately, and according only to the current interface of resource file more new application, it can efficiently reduce Main thread reads and draws a large amount of task simultaneously, avoids the obstruction of main thread, but also can be effectively reduced the sound at interface Between seasonable, the Experience Degree of user is improved.
Fig. 8 be another embodiment of the present invention provides application program change skin device.As shown in figure 8, the present embodiment is answered Skin device is changed with program, on the basis of above-mentioned embodiment illustrated in fig. 7, further comprises following technical solution.
As shown in figure 8, the application program of the present embodiment changes skin device, it further include sending module 14.The wherein transmission mould Block 14 is connect with module 12 is obtained.The sending module 14 be used for update module 13 according to resource file update current interface it Afterwards, the skin that changes that the keyword for carrying that acquisition module 12 obtains is sent to other interfaces except the current interface of application program leads to Know.
As shown in figure 8, optionally, changing for the application program of the present embodiment further includes loading module 15. in skin device.Wherein Loading module 15 also with obtain module 12 connect, loading module 15 for current interface from sending module 14 to application program it Changing after skin notice for the keyword that outer other interfaces transmission carrying acquisition module 12 obtains, will acquire the money that module 12 obtains Source file is asynchronous to be loaded onto buffer area.
As shown in figure 8, optionally, the update module 13 of the present embodiment is also used in loading module 15 that resource file is asynchronous It is loaded onto after buffer area, when entering other interfaces, updates other interfaces according to the resource file that module 12 obtains is obtained.
Such as the update module 13 is original specifically for replacing other interfaces using the resource file for obtaining the acquisition of module 12 Resource file, and draw other interfaces using resource file.
It should be noted that the path of keyword and resource file is in configuration file in the embodiment of the present invention with key-value pair Form save.
The application program of the present embodiment is changed in skin device, and all the above alternatives can use combinable Mode any combination forms alternative embodiment of the invention, and this is no longer going to repeat them.
The application program of the present embodiment changes skin device, by using above-mentioned module realize application program change skin with it is above-mentioned The realization mechanism of related method embodiment is identical, can refer to the record of above-mentioned related embodiment in detail, details are not described herein.
The application program of the present embodiment changes skin device, realizes by using above-mentioned module when replacing skin, can't Update all user interfaces immediately, and according only to the current interface of resource file more new application, and it is subsequent it is asynchronous more Other new interfaces, can efficiently reduce main thread while read and drawing a large amount of task, avoid the obstruction of main thread, and It can also be effectively reduced 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.It is set on the client device of the application program It is equipped with and changes skin device such as figure 7 above or application program shown in Fig. 8.The record of above-described embodiment can be referred in detail, herein It repeats no more.
Fig. 9 is a kind of terminal device structural schematic diagram provided in an embodiment of the present invention.Referring to Fig. 9, which can be with Skin change method for the application program for implementing to provide in above-described embodiment.Specifically:
Terminal device 800 may include communication unit 110, include one or more computer readable storage medium Memory 120, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless Fidelity, Wireless Fidelity) module 170, include one or more than one the processor 180 and power supply of processing core 190 equal components.It will be understood by those skilled in the art that terminal device structure shown in Fig. 8 is not constituted to terminal device It limits, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.Wherein:
Communication unit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, the communication unit 110 Can be RF(Radio Frequency, radio frequency) circuit, router, modem, etc. network communication equipments.Particularly, when When communication unit 110 is RF circuit, after the downlink information of base station is received, transfer at one or more than one processor 180 Reason;In addition, the data for being related to uplink are sent to base station.RF circuit usually as communication unit include but is not limited to antenna, At least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, communication unit 110 can also be by wireless Communication is communicated with network and other equipment.Any communication standard or agreement can be used in the wireless communication, including 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, code Point multiple access), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc.. Memory 120 can be used for storing software program and module, and processor 180 is stored in the software journey of memory 120 by operation Sequence and module, thereby executing various function application and data processing.Memory 120 can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to terminal device 800 Such as audio data, phone directory) etc..In addition, memory 120 may include high-speed random access memory, it can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Accordingly Ground, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 Access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal device that are supplied to user 800 various graphical user interface, these graphical user interface can by figure, text, icon, video and any combination thereof Lai It constitutes.Display unit 140 may include display panel 141, optionally, can using LCD (Liquid Crystal Display, Liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display Panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detect on it or near Touch operation after, send processor 180 to determine the type of touch event, be followed by subsequent processing device 180 according to touch event Type provides corresponding visual output on display panel 141.Although in fig. 8, touch sensitive surface 131 is with display panel 141 Realize input and input function as two independent components, but in some embodiments it is possible to by touch sensitive surface 131 with Display panel 141 is integrated and realizes and outputs and inputs function.
Terminal device 800 may also include at least one sensor 150, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when terminal device 800 is moved in one's ear, Close display panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal device 800 etc. other Sensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal device 800. Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted by loudspeaker 161 by voicefrequency circuit 160 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160 Audio data is converted to after receipts, then by after the processing of audio data output processor 180, is sent to through RF circuit 110 such as another One terminal device, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that Earphone jack, to provide the communication of peripheral hardware earphone Yu terminal device 800.
In order to realize wireless communication, wireless communication unit 170, the wireless communication unit can be configured on the terminal device 170 can be WiFi module.WiFi belongs to short range wireless transmission technology, and unit 170 can by wireless communication for terminal device 800 To help user to send and receive e-mail, browse webpage and access streaming video etc., it provides wireless broadband for user and interconnects Net access.Although Fig. 8 shows wireless communication unit 170, but it is understood that, and it is not belonging to terminal device 800 It must be configured into, can according to need within the scope of not changing the essence of the invention and omit completely.
Processor 180 is the control centre of terminal device 800, utilizes each of various interfaces and connection whole mobile phone Part by running or execute the software program and/or module that are stored in memory 120, and calls and is stored in memory Data in 120 execute the various functions and processing data of terminal device 800, to carry out integral monitoring to mobile phone.It is optional , processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulatedemodulate Adjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor Main processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal device 800 further includes the power supply 190(such as battery powered to all parts), it is preferred that power supply can lead to Cross power-supply management system and processor 180 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or AC power source, recharging system, electricity The random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal device 800 can also include camera, bluetooth module etc., and details are not described herein.Specifically exist In the present embodiment, the display unit of terminal device is touch-screen display, terminal device further include have memory and one or The more than one program of person, one of them perhaps more than one program be stored in memory and be configured to by one or It includes the instruction for performing the following operation that more than one processor, which executes the one or more programs: receiving user It is instructed by the skin that changes for change skin to application program that human-machine interface module issues;The determination skin to be switched is instructed according to skin is changed The keyword of skin;The path of the corresponding resource file of keyword is obtained from configuration file;It is obtained according to the path of resource file Resource file;According to the current interface of resource file more new application, except the current interface without more new application Other interfaces.
Optionally, which is also used to store to give an order: other interfaces except to the current interface of application program Send carrying keyword changes skin notice.
Optionally, which is also used to store to give an order: being loaded onto buffer area for resource file is asynchronous.
Optionally, which is also used to store to give an order: when entering other interfaces, updating it according to resource file His interface.
Optionally, the original resource file in other interfaces is replaced using resource file, and draws other using resource file Interface.
Optionally, the memory be also used to store to give an order: in configuration file the path of keyword and resource file with The form of key-value pair saves.It should be understood that application program provided by the above embodiment changes skin device in application program When changing skin, only the example of the division of the above functional modules, in practical application, it can according to need and by above-mentioned function It can distribute and be completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, more than completing The all or part of function of description.In addition, application program provided by the above embodiment changes changing for skin device and application program Skin embodiment of the method belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (7)

1. a kind of skin change method of application program, which is characterized in that the described method includes:
User is received to instruct by the skin that changes for change skin to application program that human-machine interface module issues;
According to the keyword for changing the skin instruction determination skin to be switched;
The path of the corresponding resource file of the keyword is obtained from configuration file;
Resource file is obtained according to the path of the resource file;
The current interface that the application program is updated according to the resource file, without updating the described current of the application program Other interfaces except interface;
Other interfaces described in not dischargeing except to the current interface of the application program, which are sent, carries the keyword Change skin notice, make the label of the keyword on other described interface identifications;
Buffer area is loaded by the resource file is asynchronous;
When entering other described interfaces, other described interfaces are updated according to the resource file.
2. the method according to claim 1, wherein updating other described interfaces, packet according to the resource file It includes:
The original resource file in other described interfaces is replaced using the resource file, and using described in resource file drafting Other interfaces.
3. method according to claim 1 or 2, which is characterized in that keyword described in the configuration file and the money The path of source file is saved in the form of key-value pair.
4. a kind of application program changes skin device, which is characterized in that described device includes:
Receiving module is instructed for receiving user by the skin that changes for change skin to application program that human-machine interface module issues;
Determining module, for changing the keyword of the skin instruction determination skin to be switched according to;
Module is obtained, for obtaining the path of the corresponding resource file of the keyword from configuration file;
The acquisition module is also used to obtain resource file according to the path of the resource file;
Update module, for updating the current interface of the application program according to the resource file, without updating the application Other interfaces except the current interface of program;
Sending module sends for other interfaces described in not dischargeing except the current interface to the application program and takes Skin notice is changed with the keyword, makes the label of the keyword on other described interface identifications;
Loading module, for being loaded onto buffer area for the resource file is asynchronous;
The update module is also used to when entering other described interfaces, updates other described interfaces according to the resource file.
5. device according to claim 4, which is characterized in that the update module is specifically used for utilizing the resource text Part replaces the original resource file in other described interfaces, and draws other described interfaces using the resource file.
6. device according to claim 4 or 5, which is characterized in that keyword described in the configuration file and the money The path of source file is saved in the form of key-value pair.
7. a kind of client device of application program, which is characterized in that on the client device of the application program setting just like Any application program of upper claim 4-6 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 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 CN104252341A (en) 2014-12-31
CN104252341B true CN104252341B (en) 2019-02-22

Family

ID=52187292

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (1)

Country Link
CN (1) CN104252341B (en)

Families Citing this family (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
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

Citations (2)

* 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
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163197B (en) * 2010-02-24 2016-09-14 腾讯科技(深圳)有限公司 A kind of skin change 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
CN102436370A (en) * 2011-08-12 2012-05-02 北京思创银联科技股份有限公司 Dynamic enumeration method

Patent Citations (2)

* 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
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program

Also Published As

Publication number Publication date
CN104252341A (en) 2014-12-31

Similar Documents

Publication Publication Date Title
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
CN104169856B (en) Side menu display method, device and terminal
CN105005457B (en) Geographical location methods of exhibiting and device
CN106778585B (en) A kind of face key point-tracking method and device
CN103500002B (en) The method of application program management, device and terminal unit
US20150082231A1 (en) Method and terminal for displaying desktop
CN103327102B (en) A kind of method and apparatus recommending application program
CN105681872B (en) Information interacting method and device during live streaming
CN103309673B (en) A kind of conversation processing method based on gesture, device
CN103414982B (en) A kind of method and apparatus that sound is provided
CN105554550B (en) Video broadcasting method and device
CN104518953B (en) Method for deleting message, instant communication terminal and system
EP3306865A1 (en) Communication message sending method and device
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN104427083B (en) The method and apparatus for adjusting volume
CN104869468A (en) Method and apparatus for displaying screen information
CN103389863B (en) A kind of display control method and device
CN103473051B (en) A kind of method and apparatus for saving power consumption of terminal
CN106775637B (en) Page display method and device for application program
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN104243671B (en) Volume adjusting method, device and electronic equipment
US10635449B2 (en) Method and apparatus for running game client
CN104965721B (en) The method and device that a kind of pair of application program is updated
CN105468258B (en) A kind of switching method of screen interface, device and terminal
CN104679969A (en) Method and device for avoiding user churn

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