CN108804188A - Changing an interface skin method and device - Google Patents
Changing an interface skin method and device Download PDFInfo
- Publication number
- CN108804188A CN108804188A CN201810546413.8A CN201810546413A CN108804188A CN 108804188 A CN108804188 A CN 108804188A CN 201810546413 A CN201810546413 A CN 201810546413A CN 108804188 A CN108804188 A CN 108804188A
- Authority
- CN
- China
- Prior art keywords
- skin
- resource
- main interface
- file
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The embodiment of the present invention discloses a kind of changing an interface skin method and device, wherein changing an interface skin method includes:The skin that changes that reception to the main interface of application program change skin instructs, described to change the target identification that skin instruction includes the skin for needing to switch;Search skin compression file corresponding with the target identification;Loading processing is carried out to the skin compression file, obtains the skin resource for including in the skin compression file;According to the skin resource, the skin of the main interface of the application program is updated.Using the embodiment of the present invention, it can improve and change skin efficiency.
Description
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of changing an interface skin method and device.
Background technology
In order to meet the individual demand of user, the main interface that many application programs can provide application program to the user changes skin
Function.It is selected for user for example, providing a variety of background pictures, the background picture that application program can be selected according to user replaces
The current background picture of main interface changes skin function to realize.Currently, above-mentioned changing skin function to realize, it is common practice to, it will
A variety of background pictures are built into the operating file of application program, when each user carries out changing skin to the main interface of application program,
Being required to the operating file of change application program could realize and change skin function, therefore background picture is built into the fortune of application program
In style of writing part so that skin underaction is changed, it is less efficient.
Invention content
The embodiment of the present invention provides a kind of changing an interface skin method and device, can improve and change skin efficiency.
In a first aspect, the embodiment of the present invention provides a kind of changing an interface skin method, including:
It receives and changes skin instruction to what the main interface of application program change skin, described to change skin instruction include the skin that needs switch
The target identification of skin;
Search skin compression file corresponding with the target identification;
Loading processing is carried out to the skin compression file, obtains the skin resource for including in the skin compression file;
According to the skin resource, the skin of the main interface of the application program is updated.
In a kind of possible design, the store path where the operating file of the application program and the skin compression
Store path where file is different.
In a kind of possible design, the skin resource includes picture resource;
It is described that the skin of the main interface of the application program is updated according to the skin resource, including:
The picture resource for including using the skin resource replaces the picture of the main interface of the application program.
In a kind of possible design, the picture resource includes on the background picture and the main interface of the main interface
The corresponding button image of virtual push button.
In a kind of possible design, answered described in the picture resource replacement for including using the skin resource
With the picture of the main interface of program, including:
Obtain the resource identification of the picture setting in the operating file of the application program to the main interface;
It is searched from the skin resource and names picture resource identical with the resource identification;
It is marked using naming picture resource identical with the resource identification to replace resource identification described in the main interface
The picture of knowledge.
In a kind of possible design, the skin resource includes font configuration file, and the font configuration file is used for
The configuration information of font in the main interface is described;
It is described that the skin of the main interface of the application program is updated according to the skin resource, including:
The font configuration file for including according to the skin resource, in the main interface for updating the application program
Font.
Second aspect, the embodiment of the present invention provide a kind of changing an interface skin device, including:
Receiving module, the skin that changes for for receiving the main interface to application program change skin instruct, described to change skin instruction packet
Include the target identification for the skin for needing to switch;
Searching module, for searching skin compression file corresponding with the target identification;
Load-on module is obtained and is wrapped in the skin compression file for carrying out loading processing to the skin compression file
The skin resource contained;
Update module, for according to the skin resource, updating the skin of the main interface of the application program.
In a kind of possible design, the store path where the operating file of the application program and the skin compression
Store path where file is different.
In a kind of possible design, the skin resource includes picture resource;
The update module is specifically used for replacing the application using the picture resource that the skin resource includes
The picture of the main interface of program.
In a kind of possible design, the picture resource includes on the background picture and the main interface of the main interface
The corresponding button image of virtual push button.
In a kind of possible design, the update module includes:
Acquiring unit, to the resource of the picture of main interface setting in the operating file for obtaining the application program
Mark;
Searching unit names picture resource identical with the resource identification for being searched from the skin resource;
Replacement unit, for being replaced described in the main interface using name picture resource identical with the resource identification
The picture that resource identification is identified.
In a kind of possible design, the skin resource includes font configuration file, and the font configuration file is used for
The configuration information of font in the main interface is described;
The update module is specifically used for the font configuration file for including according to the skin resource, described in update
Font in the main interface of application program.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes:Memory, processor
And it is stored in the computer program that can be run on the memory and on the processor, the processor executes the calculating
When machine program, the changing an interface skin method for executing first aspect.
Fourth aspect, the embodiment of the present invention provides a kind of computer readable storage medium, including instruction, when described instruction exists
When being run on computer so that computer executes the changing an interface skin method of first aspect.
5th aspect, the embodiment of the present invention provide a kind of application program, and the application program includes instruction, works as described instruction
When running on computers so that computer executes the changing an interface skin method of first aspect.
The embodiment of the present invention is searched corresponding with target identification when needing the main interface to application program to carry out changing skin
Skin compression file, and loading processing is carried out to the skin compression file, you can obtain the skin for including in skin compression file
Resource, according to the skin resource, the skin of the main interface of more new application, this mode need not be built into skin resource
In the operating file of application program, the operating file of skin compression file and application program individually stores, when needing to update skin,
It loads corresponding skin resource file and can be obtained skin resource, and then carry out changing skin, application need not be changed in the process by changing skin
Skin efficiency is changed in the operating file of program, raising.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of changing an interface skin method provided in an embodiment of the present invention;
Fig. 2 is a kind of main interface schematic diagram changed before skin provided in an embodiment of the present invention;
Fig. 3 is a kind of interface schematic diagram at skin center provided in an embodiment of the present invention;
Fig. 4 is a kind of main interface schematic diagram changed after skin provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of changing an interface skin device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of update module provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Term " comprising " and " having " in description and claims of this specification and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have
It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap
It includes for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not be each meant
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
Below in conjunction with attached drawing 1- attached drawings 7, changing an interface skin method and device provided in an embodiment of the present invention is carried out detailed
It introduces.
Please refer to Fig. 1, be a kind of flow chart of changing an interface skin method provided in an embodiment of the present invention, this method may include but
It is not limited to following steps:
S101 is received and is changed skin instruction to what the main interface of application program change skin, and described to change skin instruction include that needs are cut
The target identification of the skin changed;
Can be the application program that any support main interface changes skin function in the application program of the embodiment of the present invention, including but
It is not limited to browser, instant messaging application and shopping application etc..User can pass through click in the main interface of application program
Skin instruction is changed in virtual push button triggering.The target identification that skin instruction includes the skin for needing to switch is changed, which can be
Need keyword or the system of the skin switched for the unique mark set by the skin.As shown in figure 3, implementing for the present invention
A kind of interface display schematic diagram at skin center that example provides, user can select in a variety of skins that the heart is provided in skin
The skin oneself liked, it is when user clicks the skin of selection by touch screen or mouse, i.e., raw as the skin that needs switch
At skin instruction is changed, for example, user can click the skin that " immense seabed " switches as needs, the target identification in skin instruction is changed
Can be " immense seabed " or the unique mark that system is generated for the skin.
S102 searches skin compression file corresponding with the target identification;
In embodiments of the present invention, skin corresponding with target identification is searched under the store path where skin compression file
Skin compressed file may include the corresponding multiple skin compressions texts of multiple marks under the store path where skin compression file
Part, the corresponding skin compression file of a mark, a skin compression file correspond to a kind of skin of main interface.Wherein, skin
Skin compressed file is built into the operating file of application program, the operating file point of skin compression file and application program
It does not store.Store path i.e. where skin compression file is different from the store path where the operating file of application program, this
Sample need not all change the operating file of application program when carrying out changing skin every time, and skin efficiency is changed in raising.It should be noted that
Skin compression file and the operating file of application program can be all under the installation directories of application program, and only the two is in the installation
Under different store paths under catalogue.For example the store path where skin compression file is:Application program installation directory
Data skin theme, and the store path where the operating file of application program is:Application program installation directory file
software。
Optionally, each skin compression file can be designed to an independent zip file, can reduce file in this way
Size, while also storing skin compression file and the operating file of application program respectively, it does not influence between each other.When needing to increase
When adding new skin, it is only necessary to be directed to new one independent zip file of skin design, and the newly-designed zip is literary
Part is stored under the store path where skin compression file, and load can be subsequently carried out to the newly-designed zip file and changes skin.
For example, when server issues a kind of zip file of new skin, under terminal networking state, you can by the zip of the new skin
Under store path where file push to the skin compression file of the terminal, user can complete unaware, need not be again
Upgrade applications need not also change to the operating file of application program.
S103 carries out loading processing to the skin compression file, obtains the skin for including in the skin compression file
Resource;
In embodiments of the present invention, skin compression file is the file formed after being compressed to skin resource, is being obtained
To after the corresponding skin compression file of target identification, loading processing is carried out to the skin compression file, obtains skin compression text
The skin resource for including in part, and in memory by skin resource storage, in order to subsequently directly obtain the skin from memory
Skin resource, to carry out changing skin to the main interface of application program.Wherein, loading processing includes being decompressed to skin compression file
Contracting is handled.
Skin resource may include one kind in picture resource, font configuration file and skin essential information configuration file
Or it is a variety of.Wherein, picture resource can include the background picture of main interface and virtual push button in main interface is corresponding presses
Button picture etc., virtual push button are that user can be by the button of clicking trigger application response in main interface.Font configures
File is used to describe the configuration information of font in main interface, for example describes under current skin the font size of word everywhere, word
Color, the contents such as layout.Skin essential information configuration file can include skin name, making date, the information such as author.
Preferably, skin resource can include picture resource, font configuration file and the configuration of skin essential information simultaneously
File can not only replace background picture, button image in this way when the main interface to application program carries out changing skin
It changes, additionally it is possible to the font of main interface is updated, to adapt to the color of background picture.
S104 updates the skin of the main interface of the application program according to the skin resource.
In the embodiment of the present invention, according to skin resource, when the skin of the main interface of more new application, need according to skin
The information that skin resource is included is determined.For example, skin resource includes picture resource, then figure included in skin resource is used
Piece resource replaces the picture of the main interface of application program.For another example, skin resource includes font configuration file, then is provided according to skin
Included font configuration file in source, the font in the main interface of more new application, for example, the font in adjustment main interface
Color, size etc..It should be noted that if skin resource includes picture resource and font configuration file simultaneously, then not only
Need the picture of the main interface using picture resource replacement application program included in skin resource, it is also necessary to provide according to skin
Included font configuration file in source, the font in the main interface of more new application.Last triggering interface is refreshed, completion pair
Main interface changes skin function.
As shown in figs 2-4, be it is provided in an embodiment of the present invention it is a kind of changing the schematic diagram of skin process, as shown in Fig. 2, being
The main interface schematic diagram of the application program before skin is changed, the heart selects the skin that " immense seabed " switches as needs to user in skin
Skin, and trigger and change skin instruction, i.e., the background picture of the main interface of application program is replaced, and adjust the font of main interface.
As shown in figure 4, to change the main interface schematic diagram of the application program after skin, comparison diagram 4 and Fig. 2 are it can be found that main interface is not only carried on the back
Scape picture changes, and font color is also changed, for example, " software purification " four words are black in fig. 2, and by
In the background picture of Fig. 4 be dark, if being continuing with black can so that text importing is unclear, therefore " software in Fig. 4
Four words of purification " are adjusted to white.
Optionally, picture resource included in skin resource may exist multiple picture resources, for example background picture provides
Source and multiple buttons picture resource, corresponding, the picture of the main interface of application program also includes multiple pictures, the i.e. figure of main interface
Piece is combined by multiple pictures and is formed, and is called for convenience, is each figure of main interface in the operating file of application program
Piece is provided with resource identification, which is built-in default resource ID.In order to improve calling efficiency, corresponding, skin
Each picture resource included in resource uses name identical with built-in default resource ID, such as the back of the body for main interface
Scape picture, used built-in default resource ID is 1001, corresponding, and the background picture resource in skin resource is named as
1001.png can make in skin resource built-in in the name of each picture resource and the operating file of application program in this way
Default resource ID is corresponded, without designing intermediate mapping layer, to improve calling efficiency.
Therefore, it when replacing the picture of main interface of application program in the picture resource for including using skin resource, obtains
In the operating file of the application program to the picture of the main interface setting resource identification, and from skin resource search name with
The identical picture resource of the resource identification, should in main interface to be replaced using name picture resource identical with the resource identification
The picture that resource identification is identified.
The embodiment of the present invention is searched corresponding with target identification when needing the main interface to application program to carry out changing skin
Skin compression file, and loading processing is carried out to the skin compression file, you can obtain the skin for including in skin compression file
Resource, according to the skin resource, the skin of the main interface of more new application, this mode need not be built into skin resource
In the operating file of application program, the operating file of skin compression file and application program individually stores, when needing to update skin,
It loads corresponding skin resource file and can be obtained skin resource, and then carry out changing skin, application need not be changed in the process by changing skin
Skin efficiency is changed in the operating file of program, raising.
Fig. 5 is please referred to, is a kind of structural schematic diagram of changing an interface skin device provided in an embodiment of the present invention, as shown,
The changing an interface skin device of the embodiment of the present invention includes:
Receiving module 10, the skin that changes for for receiving the main interface to application program change skin instructs, described to change skin instruction
Target identification including the skin for needing to switch;
Can be the application program that any support main interface changes skin function in the application program of the embodiment of the present invention, including but
It is not limited to browser, instant messaging application and shopping application etc..User can pass through click in the main interface of application program
Skin instruction is changed in virtual push button triggering.The target identification that skin instruction includes the skin for needing to switch is changed, which can be
Need keyword or the system of the skin switched for the unique mark set by the skin.As shown in figure 3, implementing for the present invention
A kind of interface display schematic diagram at skin center that example provides, user can select in a variety of skins that the heart is provided in skin
The skin oneself liked, it is when user clicks the skin of selection by touch screen or mouse, i.e., raw as the skin that needs switch
At skin instruction is changed, for example, user can click the skin that " immense seabed " switches as needs, the target identification in skin instruction is changed
Can be " immense seabed " or the unique mark that system is generated for the skin.
Searching module 11, for searching skin compression file corresponding with the target identification;
In embodiments of the present invention, skin corresponding with target identification is searched under the store path where skin compression file
Skin compressed file may include the corresponding multiple skin compressions texts of multiple marks under the store path where skin compression file
Part, the corresponding skin compression file of a mark, a skin compression file correspond to a kind of skin of main interface.Wherein, skin
Skin compressed file is built into the operating file of application program, the operating file point of skin compression file and application program
It does not store.Store path i.e. where skin compression file is different from the store path where the operating file of application program, this
Sample need not all change the operating file of application program when carrying out changing skin every time, and skin efficiency is changed in raising.It should be noted that
Skin compression file and the operating file of application program can be all under the installation directories of application program, and only the two is in the installation
Under different store paths under catalogue.For example the store path where skin compression file is:Application program installation directory
Data skin theme, and the store path where the operating file of application program is:Application program installation directory file
software。
Optionally, each skin compression file can be designed to an independent zip file, can reduce file in this way
Size, while also storing skin compression file and the operating file of application program respectively, it does not influence between each other.When needing to increase
When adding new skin, it is only necessary to be directed to new one independent zip file of skin design, and the newly-designed zip is literary
Part is stored under the store path where skin compression file, and load can be subsequently carried out to the newly-designed zip file and changes skin.
For example, when server issues a kind of zip file of new skin, under terminal networking state, you can by the zip of the new skin
Under store path where file push to the skin compression file of the terminal, user can complete unaware, need not be again
Upgrade applications need not also change to the operating file of application program.
Load-on module 12 is obtained for carrying out loading processing to the skin compression file in the skin compression file
Including skin resource;
In embodiments of the present invention, skin compression file is the file formed after being compressed to skin resource, is being obtained
To after the corresponding skin compression file of target identification, loading processing is carried out to the skin compression file, obtains skin compression text
The skin resource for including in part, and in memory by skin resource storage, in order to subsequently directly obtain the skin from memory
Skin resource, to carry out changing skin to the main interface of application program.Wherein, loading processing includes being decompressed to skin compression file
Contracting is handled.
Skin resource may include one kind in picture resource, font configuration file and skin essential information configuration file
Or it is a variety of.Wherein, picture resource can include the background picture of main interface and virtual push button in main interface is corresponding presses
Button picture etc., virtual push button are that user can be by the button of clicking trigger application response in main interface.Font configures
File is used to describe the configuration information of font in main interface, for example describes under current skin the font size of word everywhere, word
Color, the contents such as layout.Skin essential information configuration file can include skin name, making date, the information such as author.
Preferably, skin resource can include picture resource, font configuration file and the configuration of skin essential information simultaneously
File can not only replace background picture, button image in this way when the main interface to application program carries out changing skin
It changes, additionally it is possible to the font of main interface is updated, to adapt to the color of background picture.
Update module 13, for according to the skin resource, updating the skin of the main interface of the application program.
Optionally, the skin resource includes picture resource;
The update module 13 is specifically used for answering described in the picture resource for including using skin resource replacement
With the picture of the main interface of program.
It is specific optional, it please refers to shown in Fig. 6, is a kind of structural representation of update module provided in an embodiment of the present invention
Figure, as shown, update module 13 includes acquiring unit 130, searching unit 131 and replacement unit 132;
Acquiring unit 130, to the setting of the picture of the main interface in the operating file for obtaining the application program
Resource identification;
Searching unit 131 names picture resource identical with the resource identification for being searched from the skin resource;
Replacement unit 132, for being replaced in the main interface using name picture resource identical with the resource identification
The picture that the resource identification is identified.
Optionally, the skin resource includes font configuration file, and the font configuration file is for describing the main boundary
The configuration information of font on face;
The update module 13 is specifically used for the font configuration file for including according to the skin resource, updates institute
State the font in the main interface of application program.
In the embodiment of the present invention, according to skin resource, when the skin of the main interface of more new application, need according to skin
The information that skin resource is included is determined.For example, skin resource includes picture resource, then figure included in skin resource is used
Piece resource replaces the picture of the main interface of application program.For another example, skin resource includes font configuration file, then is provided according to skin
Included font configuration file in source, the font in the main interface of more new application, for example, the font in adjustment main interface
Color, size etc..It should be noted that if skin resource includes picture resource and font configuration file simultaneously, then not only
Need the picture of the main interface using picture resource replacement application program included in skin resource, it is also necessary to provide according to skin
Included font configuration file in source, the font in the main interface of more new application.Last triggering interface is refreshed, completion pair
Main interface changes skin function.
As shown in figs 2-4, be it is provided in an embodiment of the present invention it is a kind of changing the schematic diagram of skin process, as shown in Fig. 2, being
The main interface schematic diagram of the application program before skin is changed, the heart selects the skin that " immense seabed " switches as needs to user in skin
Skin, and trigger and change skin instruction, i.e., the background picture of the main interface of application program is replaced, and adjust the font of main interface.
As shown in figure 4, to change the main interface schematic diagram of the application program after skin, comparison diagram 4 and Fig. 2 are it can be found that main interface is not only carried on the back
Scape picture changes, and font color is also changed, for example, " software purification " four words are black in fig. 2, and by
In the background picture of Fig. 4 be dark, if being continuing with black can so that text importing is unclear, therefore " software in Fig. 4
Four words of purification " are adjusted to white.
Optionally, picture resource included in skin resource may exist multiple picture resources, for example background picture provides
Source and multiple buttons picture resource, corresponding, the picture of the main interface of application program also includes multiple pictures, the i.e. figure of main interface
Piece is combined by multiple pictures and is formed, and is called for convenience, is each figure of main interface in the operating file of application program
Piece is provided with resource identification, which is built-in default resource ID.In order to improve calling efficiency, corresponding, skin
Each picture resource included in resource uses name identical with built-in default resource ID, such as the back of the body for main interface
Scape picture, used built-in default resource ID is 1001, corresponding, and the background picture resource in skin resource is named as
1001.png can make in skin resource built-in in the name of each picture resource and the operating file of application program in this way
Default resource ID is corresponded, without designing intermediate mapping layer, to improve calling efficiency.
Therefore, it when replacing the picture of main interface of application program in the picture resource for including using skin resource, obtains
In the operating file of the application program to the picture of the main interface setting resource identification, and from skin resource search name with
The identical picture resource of the resource identification, should in main interface to be replaced using name picture resource identical with the resource identification
The picture that resource identification is identified.
The embodiment of the present invention is searched corresponding with target identification when needing the main interface to application program to carry out changing skin
Skin compression file, and loading processing is carried out to the skin compression file, you can obtain the skin for including in skin compression file
Resource, according to the skin resource, the skin of the main interface of more new application, this mode need not be built into skin resource
In the operating file of application program, the operating file of skin compression file and application program individually stores, when needing to update skin,
It loads corresponding skin resource file and can be obtained skin resource, and then carry out changing skin, application need not be changed in the process by changing skin
Skin efficiency is changed in the operating file of program, raising.
Fig. 7 is please referred to, for an embodiment of the present invention provides the structural schematic diagrams of a kind of electronic equipment.As shown in fig. 7, described
Electronic equipment 1000 may include:At least one processor 1001, such as CPU, at least one network interface 1004, user interface
1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing between these components
Connection communication.Wherein, user interface 1003 may include display screen (Display), keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally that the wired of standard connects
Mouth, wireless interface (such as Wi-Fi interface).Memory 1005 can be high-speed RAM memory, can also be nonvolatile memory
(non-volatile memory), for example, at least a magnetic disk storage.Memory 1005 optionally can also be at least one
It is located remotely from the storage device of aforementioned processor 1001.As shown in fig. 7, the memory 1005 as a kind of computer storage media
In may include operating system, network communication module, Subscriber Interface Module SIM and apply data process application.
In electronic equipment 1000 shown in Fig. 7, user interface 1003 is mainly used for providing the interface of input to the user, obtains
Take data input by user;Network interface 1004 is used for consumer electronic devices into row data communication;And processor 1001 can be with
For calling the data process application of applying stored in memory 1005, and specifically execute following operation:
It receives and changes skin instruction to what the main interface of application program change skin, described to change skin instruction include the skin that needs switch
The target identification of skin;
Search skin compression file corresponding with the target identification;
Loading processing is carried out to the skin compression file, obtains the skin resource for including in the skin compression file;
According to the skin resource, the skin of the main interface of the application program is updated.
Optionally, the store path where the operating file of the application program and depositing where the skin compression file
It is different to store up path.
Optionally, the skin resource includes picture resource;
The processor 1001 updates the skin of the main interface of the application program according to the skin resource, including:
The picture resource for including using the skin resource replaces the picture of the main interface of the application program.
Optionally, the picture resource includes the virtual push button pair on the background picture and the main interface of the main interface
The button image answered.
Optionally, the processor 1001 replaces the application using the picture resource that the skin resource includes
The picture of the main interface of program, specifically includes:
Obtain the resource identification of the picture setting in the operating file of the application program to the main interface;
It is searched from the skin resource and names picture resource identical with the resource identification;
It is marked using naming picture resource identical with the resource identification to replace resource identification described in the main interface
The picture of knowledge.
Optionally, the skin resource includes font configuration file, and the font configuration file is for describing the main boundary
The configuration information of font on face;
The processor 1001 updates the skin of the main interface of the application program according to the skin resource, including:
The font configuration file for including according to the skin resource, in the main interface for updating the application program
Font.
The embodiment of the present invention also provides a kind of computer readable storage medium, which includes referring to
It enables, when described instruction is run on computers so that computer executes the changing an interface skin method of Fig. 1, and detail please refers to
The description of Fig. 1 embodiments, details are not described herein.
The embodiment of the present invention also provides a kind of application program, and the application program includes instruction, when described instruction is calculating
When being run on machine so that computer executes the changing an interface skin method of Fig. 1, and detail please refers to the description of Fig. 1 embodiments, herein
It repeats no more.
Although combining each embodiment herein, invention has been described, however, implementing the claimed invention
In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real
Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions
Part or step, "a" or "an" are not excluded for multiple situations.Claim may be implemented in single processor or other units
In several functions enumerating.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these are arranged
It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, apparatus (equipment) or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention
The form of embodiment.Moreover, the present invention can be used in one or more wherein include computer usable program code calculating
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware
Part can also use other distribution forms, such as pass through the wired or wireless telecommunication systems of Internet or other.
The present invention be with reference to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/
Or block diagram describes.It should be understood that each flow that can be realized by computer program instructions in flowchart and/or the block diagram and/
Or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer program instructions can be provided
To all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one
A machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, do not departing from this hair
In the case of bright spirit and scope, it can be carry out various modifications and is combined.Correspondingly, the specification and drawings are only institute
The exemplary illustration for the present invention that attached claim is defined, and be considered as covered in the scope of the invention arbitrary and all and repair
Change, change, combining or equivalent.Obviously, those skilled in the art various changes and modifications can be made to the invention without
It is detached from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its
Within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of changing an interface skin method, which is characterized in that including:
It receives and changes skin instruction to what the main interface of application program change skin, described to change skin instruction include the skin that needs switch
Target identification;
Search skin compression file corresponding with the target identification, wherein the corresponding skin compression file of a mark, one
A skin compression file corresponds to a kind of skin of main interface;
Loading processing is carried out to the skin compression file, obtains the skin resource for including in the skin compression file;
According to the skin resource, the skin of the main interface of the application program is updated.
2. the method as described in claim 1, which is characterized in that store path where the operating file of the application program with
Store path where the skin compression file is different.
3. method as claimed in claim 1 or 2, which is characterized in that the skin resource includes picture resource;
It is described that the skin of the main interface of the application program is updated according to the skin resource, including:
The picture resource for including using the skin resource replaces the picture of the main interface of the application program.
4. method as claimed in claim 3, which is characterized in that the picture resource includes the background picture money of the main interface
The corresponding button image resource of virtual push button on source and the main interface.
5. method as claimed in claim 4, which is characterized in that the picture money for including using the skin resource
The picture of the main interface of the application program is replaced in source, including:
Obtain the resource identification of the picture setting in the operating file of the application program to the main interface;
It is searched from the skin resource and names picture resource identical with the resource identification;
Replace what resource identification described in the main interface was identified using picture resource identical with the resource identification is named
Picture.
6. method as claimed in claim 1 or 2, which is characterized in that the skin resource includes font configuration file, the word
Body configuration file is used to describe the configuration information of font in the main interface;
It is described that the skin of the main interface of the application program is updated according to the skin resource, including:
The font configuration file for including according to the skin resource, updates the word in the main interface of the application program
Body.
7. a kind of changing an interface skin device, which is characterized in that including:
Receiving module changes skin instruction for receive that the main interface to application program change skin, and described to change skin instruction include need
The target identification for the skin to be switched;
Searching module, for searching skin compression file corresponding with the target identification, wherein the corresponding skin of a mark
Skin compressed file, a skin compression file correspond to a kind of skin of main interface;
Load-on module obtains in the skin compression file for carrying out loading processing to the skin compression file and includes
Skin resource;
Update module, for according to the skin resource, updating the skin of the main interface of the application program.
8. device as claimed in claim 7, which is characterized in that store path where the operating file of the application program with
Store path where the skin compression file is different.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:Memory, processor and it is stored in the storage
On device and the computer program that can run on the processor, when the processor executes the computer program, for holding
Method of the row as described in claim 1 to 6 any one.
10. a kind of computer readable storage medium, including instruction, when described instruction is run on computers so that computer
Execute the method as described in claim 1 to 6 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810546413.8A CN108804188A (en) | 2018-05-30 | 2018-05-30 | Changing an interface skin method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810546413.8A CN108804188A (en) | 2018-05-30 | 2018-05-30 | Changing an interface skin method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108804188A true CN108804188A (en) | 2018-11-13 |
Family
ID=64089628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810546413.8A Pending CN108804188A (en) | 2018-05-30 | 2018-05-30 | Changing an interface skin method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804188A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109725964A (en) * | 2018-12-07 | 2019-05-07 | 恒生电子股份有限公司 | Skin change method, device, the electronic equipment of mixed type frame |
CN109766153A (en) * | 2018-12-11 | 2019-05-17 | 新视家科技(北京)有限公司 | Background dynamics switching method and its device, the electronic equipment of application program |
CN110134487A (en) * | 2019-05-23 | 2019-08-16 | 上海哔哩哔哩科技有限公司 | Dynamic skin change method, readable storage medium storing program for executing and the computer equipment at interface is broadcast live |
CN110399130A (en) * | 2019-07-16 | 2019-11-01 | 国金证券股份有限公司 | A kind of APP skin change method based on android system |
CN110489121A (en) * | 2019-07-04 | 2019-11-22 | 北京雷石天地电子技术有限公司 | A kind of generation method and system of skin APMB package |
CN111061536A (en) * | 2019-12-20 | 2020-04-24 | 网易(杭州)网络有限公司 | Method and device for changing skin of application program |
CN111158834A (en) * | 2019-12-31 | 2020-05-15 | 福建星网视易信息系统有限公司 | Interface self-defining method and computer readable storage medium |
CN111435313A (en) * | 2019-12-09 | 2020-07-21 | 杭州海康威视数字技术股份有限公司 | Method and device for changing skin of software |
CN112015419A (en) * | 2020-09-07 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Interface element color setting method and device, electronic equipment and storage medium |
CN112527423A (en) * | 2019-09-18 | 2021-03-19 | 北京奇艺世纪科技有限公司 | Interface skin display method and device |
CN113268232A (en) * | 2020-02-17 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Page skin generation method and device and computer readable storage medium |
CN110489121B (en) * | 2019-07-04 | 2024-04-19 | 北京雷石天地电子技术有限公司 | Skin package file generation method and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987854A (en) * | 2005-12-20 | 2007-06-27 | 北京亿中邮信息技术有限公司 | Method for personalized replacing webpage subject |
CN101106578A (en) * | 2007-08-31 | 2008-01-16 | 金蝶软件(中国)有限公司 | A method and system for changing interface subject |
CN102968244A (en) * | 2012-10-29 | 2013-03-13 | 北京小米科技有限责任公司 | Method, and device and equipment for acquiring resource preview, and equipment |
CN103164231A (en) * | 2011-12-08 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Input method virtual keyboard skin management method and device |
CN104915188A (en) * | 2014-03-13 | 2015-09-16 | 北京壹人壹本信息科技有限公司 | Method and system for theme change and mobile terminal |
CN105159673A (en) * | 2015-08-31 | 2015-12-16 | 百度在线网络技术(北京)有限公司 | Method and device for setting control style |
CN106469071A (en) * | 2015-08-18 | 2017-03-01 | 腾讯科技(深圳)有限公司 | Application program subject replacement method and device |
CN106775758A (en) * | 2016-12-30 | 2017-05-31 | 深圳天珑无线科技有限公司 | Method for managing resource and device |
CN107608674A (en) * | 2017-09-22 | 2018-01-19 | 深圳市创维软件有限公司 | One kind applies skin change method, device, computer and storage medium |
-
2018
- 2018-05-30 CN CN201810546413.8A patent/CN108804188A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987854A (en) * | 2005-12-20 | 2007-06-27 | 北京亿中邮信息技术有限公司 | Method for personalized replacing webpage subject |
CN101106578A (en) * | 2007-08-31 | 2008-01-16 | 金蝶软件(中国)有限公司 | A method and system for changing interface subject |
CN103164231A (en) * | 2011-12-08 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Input method virtual keyboard skin management method and device |
CN102968244A (en) * | 2012-10-29 | 2013-03-13 | 北京小米科技有限责任公司 | Method, and device and equipment for acquiring resource preview, and equipment |
CN104915188A (en) * | 2014-03-13 | 2015-09-16 | 北京壹人壹本信息科技有限公司 | Method and system for theme change and mobile terminal |
CN106469071A (en) * | 2015-08-18 | 2017-03-01 | 腾讯科技(深圳)有限公司 | Application program subject replacement method and device |
CN105159673A (en) * | 2015-08-31 | 2015-12-16 | 百度在线网络技术(北京)有限公司 | Method and device for setting control style |
CN106775758A (en) * | 2016-12-30 | 2017-05-31 | 深圳天珑无线科技有限公司 | Method for managing resource and device |
CN107608674A (en) * | 2017-09-22 | 2018-01-19 | 深圳市创维软件有限公司 | One kind applies skin change method, device, computer and storage medium |
Non-Patent Citations (2)
Title |
---|
侯琳琦著: "《网络音乐的多视角研究》", 31 July 2013, 北京邮电大学出版社 * |
霍亚飞 编著: "《Qt Creator快速入门 第2版》", 31 January 2014, 北京航空航天大学出版社 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109725964A (en) * | 2018-12-07 | 2019-05-07 | 恒生电子股份有限公司 | Skin change method, device, the electronic equipment of mixed type frame |
CN109725964B (en) * | 2018-12-07 | 2021-11-26 | 恒生电子股份有限公司 | Skin changing method and device for hybrid frame and electronic equipment |
CN109766153A (en) * | 2018-12-11 | 2019-05-17 | 新视家科技(北京)有限公司 | Background dynamics switching method and its device, the electronic equipment of application program |
CN110134487A (en) * | 2019-05-23 | 2019-08-16 | 上海哔哩哔哩科技有限公司 | Dynamic skin change method, readable storage medium storing program for executing and the computer equipment at interface is broadcast live |
CN110134487B (en) * | 2019-05-23 | 2022-11-11 | 上海哔哩哔哩科技有限公司 | Dynamic skin changing method of live interface, readable storage medium and computer equipment |
CN110489121A (en) * | 2019-07-04 | 2019-11-22 | 北京雷石天地电子技术有限公司 | A kind of generation method and system of skin APMB package |
CN110489121B (en) * | 2019-07-04 | 2024-04-19 | 北京雷石天地电子技术有限公司 | Skin package file generation method and system |
CN110399130A (en) * | 2019-07-16 | 2019-11-01 | 国金证券股份有限公司 | A kind of APP skin change method based on android system |
CN110399130B (en) * | 2019-07-16 | 2023-10-20 | 国金证券股份有限公司 | APP skin changing method based on android system |
CN112527423A (en) * | 2019-09-18 | 2021-03-19 | 北京奇艺世纪科技有限公司 | Interface skin display method and device |
CN111435313A (en) * | 2019-12-09 | 2020-07-21 | 杭州海康威视数字技术股份有限公司 | Method and device for changing skin of software |
CN111061536A (en) * | 2019-12-20 | 2020-04-24 | 网易(杭州)网络有限公司 | Method and device for changing skin of application program |
CN111158834B (en) * | 2019-12-31 | 2022-10-04 | 福建星网视易信息系统有限公司 | Interface self-defining method and computer readable storage medium |
CN111158834A (en) * | 2019-12-31 | 2020-05-15 | 福建星网视易信息系统有限公司 | Interface self-defining method and computer readable storage medium |
CN113268232A (en) * | 2020-02-17 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Page skin generation method and device and computer readable storage medium |
CN113268232B (en) * | 2020-02-17 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Page skin generation method and device and computer readable storage medium |
CN112015419A (en) * | 2020-09-07 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Interface element color setting method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108804188A (en) | Changing an interface skin method and device | |
CN110795195B (en) | Webpage rendering method and device, electronic equipment and storage medium | |
CN106502736B (en) | Applied program processing method and device | |
CN109478180B (en) | Cloud content state determination logic | |
CN104881318B (en) | A kind of interface call method, device and terminal | |
CN107438814A (en) | Entity action suggestion on mobile device | |
KR101198437B1 (en) | Method, apparatus and computer program product for providing context triggered distribution of context models | |
CN107679113A (en) | Acquisition methods, equipment and the electronic equipment gently applied | |
CN112395253B (en) | Index file generation method, terminal device, electronic device and medium | |
CN108776587B (en) | Data acquisition method and device, computer equipment and storage medium | |
CN108399072A (en) | Five application page update method and device | |
CN104679900A (en) | Application program searching method and device | |
CN108228293A (en) | Interface skin switching method and device | |
US10795633B2 (en) | Desktop sharing method and mobile terminal | |
US20120191756A1 (en) | Terminal having searching function and method for searching using data saved in clipboard | |
CN111399833A (en) | Service data processing method and device, computer equipment and storage medium | |
CN110244985A (en) | A kind of view rendering method, computer storage medium and terminal device | |
CN107852422A (en) | Connected from the server interface with different API to obtain ad data | |
CN105426192A (en) | Information modification method and terminal | |
CN110119386A (en) | Data processing method, data processing equipment, medium and calculating equipment | |
CN112764633B (en) | Information processing method and device and electronic equipment | |
CN106527979B (en) | Data migration method and device | |
CN110347454A (en) | Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium | |
CN105159673A (en) | Method and device for setting control style | |
CN104572303A (en) | Application resource management and transferring device and method and application resource management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20191122 Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Applicant after: Zhuhai Leopard Technology Co.,Ltd. Address before: 519070, No. 10, main building, No. six, science Road, Harbour Road, Tang Wan Town, Guangdong, Zhuhai, 601F Applicant before: Zhuhai Juntian Electronic Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |