Summary of the invention
In view of this, the present invention provides a kind of generation method of locking screen interface and device, to solve existing screen locking
Interface is unable to satisfy user for the demand of locking screen interface beauty, personalization etc., the bad problem of user experience, technical solution
It is as follows:
A kind of generation method of locking screen interface is applied to a terminal, which comprises
From pre-set template library obtain for generate target locking screen interface target template and with the target
The corresponding configuration information file of template, include in the configuration information file in the target template screen locking main interface and screen locking it is close
The configuration information of picture in code interface;
When detecting the triggering command for making the target locking screen interface, receive based on the target template in picture library
The selection of Target Photo instructs;
The Target Photo of selection and the target template are based on the configuration information file and generate the target lock
Shield interface, and when receiving screen locking instruction, loads the target locking screen interface.
Wherein, the configuration information include: the configuration parameter of background map, the configuration parameter of foreground picture, mask picture road
The picture path of diameter and password figure;
It is then described that the Target Photo of selection and the target template are based on described in configuration information file generation
Target locking screen interface, comprising:
Using the background map configuration parameter the target template screen locking main interface and screen-lock password interface configurations
The Target Photo generates the background map of the screen locking main interface of the target locking screen interface and the background at screen-lock password interface
Figure;
Using the foreground picture configuration parameter and the mask picture path the target template screen locking master
Target Photo described in interface configurations generates the foreground picture of the screen locking main interface of the target locking screen interface;
The password figure picture is loaded at the screen-lock password interface based on the picture path of the password figure, is generated
The foreground picture at the screen-lock password interface of the target locking screen interface.
Wherein, the configuration parameter of the background map includes first size parameter and first position parameter, and, the second size
Parameter and second position parameter, wherein the first size parameter and first position parameter are background in the screen locking main interface
The configuration parameter of figure, second dimensional parameters and second position parameter are the configuration ginseng of background map in the screen-lock password interface
Number;
Then screen locking main interface and screen-lock password circle of the configuration parameter using the background map in the target template
Face configures the Target Photo, generates background map and the screen-lock password interface of the screen locking main interface of the target locking screen interface
Background map, comprising:
The Target Photo is processed into the picture having a size of first size based on the first size parameter, and will be described
The picture of first size is laid out in the screen locking main interface of the target template by the first position parameter, described in generation
The background map of the screen locking main interface of target locking screen interface;
The Target Photo is processed into the picture having a size of the second size based on second dimensional parameters, and will be described
The picture of second size carries out Fuzzy Processing, by the picture of the second size after Fuzzy Processing by the second position parameter in institute
It states and is laid out in the screen-lock password interface of target template, behind the screen-lock password interface for generating the target locking screen interface
Jing Tu.
Wherein, the configuration information includes the configuration information of picture in the screen locking main interface of the target template, the mesh
Mark the configuration information of background map and the picture path of password figure in the screen-lock password interface of template;
It is then described that the Target Photo of selection and the target template are based on configuration information file generation screen locking
Interface, comprising:
Configuration information based on picture in the screen locking main interface configures institute in the screen locking main interface of the target template
Target Photo is stated, the screen locking main interface of the target locking screen interface is generated;
The Target Photo is configured in the screen-lock password interface of the target template based on the configuration information of Background, it is raw
At the background map at the screen-lock password interface of the target locking screen interface;
The password figure picture is loaded at the screen-lock password interface based on the picture path of the password figure, is generated
The foreground picture at the screen-lock password interface of the target locking screen interface obtains the screen-lock password interface of the target locking screen interface.
It wherein, include the configuration information of multiple pictures in the screen locking main interface of the target template, correspondingly, the target
Picture be it is multiple, the configuration information of the multiple picture includes size of each picture in the screen locking main interface of the target template
Parameter and location parameter;
Screen locking master of the configuration information of picture in the target template in screen locking main interface based on target template described in then
The Target Photo is configured in interface, generates the screen locking main interface of the target locking screen interface, comprising:
Each Target Photo is processed into the picture of correspondingly-sized by the dimensional parameters based on each picture, and processing is obtained
Each picture be laid out in the target template by corresponding location parameter, form the screen locking of the target locking screen interface
Main interface.
Wherein, corresponding two pictures of each password figure in the screen-lock password interface, respectively first state picture
The second state picture different with from the first state picture;
The password figure picture, tool are then loaded at the screen-lock password interface based on the picture path of the password figure
Body are as follows:
It is corresponding with each password figure in screen-lock password interface load based on the picture path of the password figure
First state picture;
The method also includes:
When detecting user to the operational order of target password number in target screen-lock password interface, based on described
The picture path of target password number loads the second state corresponding with the target password number at the screen-lock password interface
Picture.
Preferably, the method also includes:
When receiving first operation of the user in the target locking screen interface, presupposed information is shown;
When receiving second operation of the user in the target locking screen interface, the icon of preset target application is shown,
First operation is different from the second operation.
A kind of generating means of locking screen interface, are applied to a terminal, and described device includes: to obtain module, receiving module, match
Set module and loading module;
The acquisition module, for obtaining the target mould for generating target locking screen interface from pre-set template library
Plate and configuration information file corresponding with the target template include locking in the configuration information file in the target template
Shield the configuration information of picture in main interface and screen-lock password interface;
The receiving module, for connecing when the terminal detects the triggering command for making the target locking screen interface
It receives and the selection of Target Photo in picture library is instructed based on the target template;
The configuration module, the Target Photo and the target template for that will choose are based on the configuration information text
Part generates the target locking screen interface;
The loading module, for loading the target locking screen interface when receiving screen locking instruction.
Wherein, the configuration information include: the configuration parameter of background map, the configuration parameter of foreground picture, mask picture road
The picture path of diameter and password figure;
Then the configuration module includes: background map configuration module, foreground picture configuration module and password figure picture configuration mould
Block;
The background map configuration module, for utilizing the configuration parameter of the background map in the screen locking master of the target template
Target Photo described in interface and screen-lock password interface configurations, generate the background map of the screen locking main interface of the target locking screen interface with
And the background map at screen-lock password interface;
The foreground picture configuration module, the path for configuration parameter and the mask picture using the foreground picture
The Target Photo is configured in the screen locking main interface of the target template, generates the screen locking main interface of the target locking screen interface
Foreground picture;
The password figure picture configuration module, for the picture path based on the password figure in the screen-lock password
Interface loads the password figure picture, generates the foreground picture at the screen-lock password interface of the target locking screen interface.
Wherein, the configuration parameter of the background map includes first size parameter and first position parameter, and, the second size
Parameter and second position parameter, wherein the first size parameter and first position parameter are background in the screen locking main interface
The configuration parameter of figure, second dimensional parameters and second position parameter are the configuration ginseng of background map in the screen-lock password interface
Number;
The then background map configuration module, comprising: the first configuration submodule and the second configuration submodule;
It is described first configuration submodule, for based on the first size parameter by the Target Photo be processed into having a size of
The picture of first size, and the picture of the first size is pressed into the first position parameter in the screen locking master of the target template
It is laid out in interface, generates the background map of the screen locking main interface of the target locking screen interface;
It is described second configuration submodule, for based on second dimensional parameters by the Target Photo be processed into having a size of
The picture of second size, and the picture of second size is subjected to Fuzzy Processing, by the figure of the second size after Fuzzy Processing
Piece is laid out in the screen-lock password interface of the target template by the second position parameter, generates target screen locking circle
The background map at the screen-lock password interface in face.
Wherein, the configuration information includes the configuration information of picture in the screen locking main interface of the target template, the mesh
Mark the configuration information of background map and the picture path of password figure in the screen-lock password interface of template;
Then the configuration module includes: that screen locking main interface configuration module, background map configuration module and password figure picture are matched
Set module;
The screen locking main interface configuration module, for the configuration information based on picture in the screen locking main interface in the mesh
It marks in the screen locking main interface of template and configures the Target Photo, generate the screen locking main interface of the target locking screen interface;
The background map configuration module, for the configuration information based on Background the target template screen-lock password circle
The Target Photo is configured in face, generates the background map at the screen-lock password interface of the target locking screen interface;
The password figure picture configuration module, for the picture path based on the password figure in the screen-lock password
Interface loads the password figure picture, generates the foreground picture at the screen-lock password interface of the target locking screen interface, described in acquisition
The screen-lock password interface of target locking screen interface.
It wherein, include the configuration information of multiple pictures in the screen locking main interface of the target template, correspondingly, the target
Picture be it is multiple, the configuration information of the multiple picture includes size of each picture in the screen locking main interface of the target template
Parameter and location parameter;
The then screen locking main interface configuration module, specifically for the dimensional parameters based on each picture by each Target Photo
The each picture for being processed into the picture of correspondingly-sized, and processing being obtained by corresponding location parameter in the target template into
Row layout, forms the screen locking main interface of the target locking screen interface.
Wherein, corresponding two pictures of each password figure in the screen-lock password interface, respectively first state picture
The second state picture different with from the first state picture;
The then password figure picture configuration module, specifically for the picture path based on the password figure in the lock
Shield cryptographic interface and loads first state picture corresponding with each password figure;
The password figure picture configuration module is also used to detect user to the target screen-lock password when the terminal
In interface when the operational order of target password number, the picture path based on the target password number is in screen-lock password circle
Face load the second state picture corresponding with the target password number.
Preferably, described device further include: display module;
The display module, for when the terminal receive user the target locking screen interface first operation when,
It shows presupposed information, is also used to when the terminal receives second operation of the user in the target locking screen interface, display is pre-
If target application icon, it is described first operation it is different from the second operation.
Above-mentioned technical proposal has the following beneficial effects:
The generation method and device of locking screen interface provided by the invention can obtain the mesh that user chooses according to the hobby of oneself
Template and Target Photo are marked, then configures target figure using configuration information file corresponding with target template in target template
Piece, to generate target locking screen interface and in the terminal loads target locking screen interface.It can be seen that screen locking circle provided by the invention
The generation method and device in face can be based on screen lockings circle of the template generation personalization for the picture and locking screen interface that user chooses
Face (such as locking screen interface of the locking screen interface of picture-in-picture effect, magazine effect), i.e., user can choose oneself from template library and like
Template, then choose the locking screen interface that the picture making oneself liked is personalized, beautiful from picture library, user experience compared with
It is good.
Specific embodiment
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 description, 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, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of generation method of locking screen interface, be applied to a terminal, the terminal can with but not
It is limited to mobile phone, PAD etc., referring to Fig. 1, showing the flow diagram of this method, this method may include:
Step S101: from pre-set template library obtain for generate target locking screen interface target template and with
The corresponding configuration information file of target template.
Wherein, target template includes screen locking main interface and screen-lock password interface, includes target template in configuration information file
Screen locking main interface in the configuration information of picture and the configuration information of picture in screen-lock password interface.
Step S102: it when detecting the triggering command of production locking screen interface, receives based on target template to mesh in picture library
Mark on a map piece selection instruction.
Specifically, the quantity for the picture chosen from picture library is related with template, if target template needs a picture,
A picture is chosen in picture library, if target template needs plurality of pictures, plurality of pictures is chosen in picture library.
Step S103: the Target Photo of selection and target template are based on configuration information file and generate target locking screen interface.
That is, the Target Photo of selection is configured in target template using configuration information file, to generate personalization
Locking screen interface.
Step S104: when receiving screen locking instruction, in the target locking screen interface that terminal loads generate.
For the terminal of android system, when the screen locking for receiving android system instructs, generation is loaded
Target locking screen interface, i.e. load screen locking main interface and cryptographic interface.
The generation method of locking screen interface provided in an embodiment of the present invention can obtain the mesh that user chooses according to the hobby of oneself
Template and Target Photo are marked, then configures target figure using configuration information file corresponding with target template in target template
Piece, to generate and load target locking screen interface.It can be seen that the generation method energy of locking screen interface provided in an embodiment of the present invention
The locking screen interface of the template generation personalization of enough pictures and locking screen interface chosen based on user, i.e. user can be from template library
The template oneself liked is chosen, the locking screen interface that the picture making oneself liked is personalized, beautiful is then chosen from picture library,
Better user experience.
Referring to Fig. 2, showing a specific implementation process of the generation method the embodiment of the invention provides locking screen interface
Flow diagram, be applied to a terminal, the terminal can with but be not limited to mobile phone, PAD etc., this method may include:
Step S201: from pre-set template library obtain for generate target locking screen interface target template and with
The corresponding configuration information file of target template.
Wherein, target template can be the locking screen interface template with picture-in-picture effect.It include mesh in configuration information file
Mark the configuration information of picture in screen locking main interface and the screen-lock password interface in template.Specifically, configuration information includes: background map
Configuration parameter, the configuration parameter of foreground picture, the path of mask picture and password figure picture path.
Step S202: it when detecting the triggering command of production locking screen interface, receives based on target template to mesh in picture library
Mark on a map piece selection instruction.
Step S203: using background map configuration parameter target template screen locking main interface and screen-lock password interface configurations
Target Photo generates the background map of the screen locking main interface of target locking screen interface and the background map at screen-lock password interface.
Specifically, the configuration parameter of background map includes first size parameter and first position parameter, and, the second size ginseng
Several and second position parameter.Wherein, first size parameter and first position parameter are the configuration ginseng of background map in screen locking main interface
Number, the second dimensional parameters and second position parameter are the configuration parameter of background map in screen-lock password interface.
Then, using the configuration parameter of background map target template screen locking main interface and screen-lock password interface configurations target figure
Piece generates the background map of the screen locking main interface of target locking screen interface and the background map at screen-lock password interface, including are as follows: based on the
Target Photo is processed into the picture having a size of first size (such as wide 720 pixel, high 1080 pixel) by one dimensional parameters, and will
The picture of first size is laid out in the screen locking main interface of target template by first position parameter, generates target locking screen interface
Screen locking main interface background map;Target Photo is processed into based on the second dimensional parameters (such as wide by 320 having a size of the second size
Pixel, high 540 pixel) picture, and by the picture of the second size carry out Fuzzy Processing, by the second size after Fuzzy Processing
Picture is laid out in the screen-lock password interface of target template by second position parameter, and the screen locking for generating target locking screen interface is close
The background map at code interface.
Wherein, when the picture of the second size is carried out Fuzzy Processing, Gaussian Blur processing method can be used to the second ruler
Very little picture carries out Fuzzy Processing.
Step S204: screen locking main interface of the path of the configuration parameter of Utilization prospects figure and mask picture in target template
Target Photo is configured, the foreground picture of the screen locking main interface of target locking screen interface is generated.
In one possible implementation, mask picture is Mask mask picture.Then, before configuring screen locking main interface
When scape figure, the path for being primarily based on Mask mask picture obtains Mask mask picture, then handles mesh using Mask mask picture
Mark on a map piece, i.e., using Mask mask by Target Photo be processed into the matched picture of foreground area in target template, be finally based on
The picture that processing obtains is loaded into the screen locking main interface of target template by the configuration parameter of foreground picture, forms screen locking main interface
Foreground picture.
Step S205: the picture path based on password figure generates mesh in screen-lock password interface loading pin digital picture
Mark the foreground picture at the screen-lock password interface of locking screen interface.
In a kind of preferred implementation, each password figure in screen-lock password interface corresponds to two pictures, respectively
First state picture and the second state picture different from first state picture.
Then the picture path based on password figure is in screen-lock password interface loading pin digital picture, specifically: based on close
The picture path of yardage word loads first state picture corresponding with each password figure at screen-lock password interface.And works as and detect
User is in the screen-lock password interface of generation when the operational order of target password number, the picture path based on target password number
Load the second state picture corresponding with target password number at screen-lock password interface.Illustratively, under normal condition, screen locking is close
Code interface in password figure picture show first state picture, when user screen-lock password interface input password unlock when,
When clicking a certain password figure, which just switches to the second state picture.
In addition, the present embodiment do not limit step S203-S205 execute sequence, these three steps can be held in any order
Row, can also be performed simultaneously, as long as belonging to the protection scope of the embodiment of the present invention comprising these three steps.
Step S206: when receiving screen locking instruction, in the target locking screen interface that terminal loads generate.
For the terminal of android system, when the screen locking for receiving android system instructs, generation is loaded
Target locking screen interface, i.e. load screen locking main interface and cryptographic interface.
The generation method of locking screen interface provided in an embodiment of the present invention can obtain the tool that user chooses according to the hobby of oneself
There are the target template and Target Photo of picture-in-picture effect, then matches confidence using corresponding with target template in target template
File configuration Target Photo is ceased, to generate the target locking screen interface with picture-in-picture effect.It can be seen that the embodiment of the present invention
The generation method of the locking screen interface of offer can be based on the template generation personalization for the picture and locking screen interface that user chooses
Locking screen interface with picture-in-picture effect, i.e. user can choose the template oneself liked from template library, then select from picture library
It is derived from the picture making personalization that oneself likes, beautiful locking screen interface, better user experience.
Referring to Fig. 3, showing another specific implementation stream of the generation method the embodiment of the invention provides locking screen interface
Journey schematic diagram, is applied to a terminal, and this method may include:
Step S301: from pre-set template library obtain for generate target locking screen interface target template and with
The corresponding configuration information file of target template.
Wherein, target template can be the locking screen interface template with magazine effect.It include target in configuration information file
The configuration information of picture in screen locking main interface and screen-lock password interface in template.Specifically, configuration information includes: target template
Screen locking main interface in the configuration information of picture, in the screen-lock password interface of target template background map configuration information and password number
The picture path of word.
Step S302: it when detecting the triggering command of production locking screen interface, receives based on target template to mesh in picture library
Mark on a map piece selection instruction.
Step S303: the configuration information based on picture in screen locking main interface configures mesh in the screen locking main interface of target template
It marks on a map piece, generates the screen locking main interface of target locking screen interface.
Step S304: configuring Target Photo in the screen-lock password interface of target template based on the configuration information of Background,
Generate the background map at the screen-lock password interface of target locking screen interface.
Specifically, the configuration information of picture includes: first size parameter and first in the screen locking main interface of target template
Parameter is set, the configuration information of background map includes that the second dimensional parameters and the second position are joined in the screen-lock password interface of target template
Number.
So, the configuration information based on picture in screen locking main interface configures target figure in the screen locking main interface of target template
The detailed process of piece are as follows: be primarily based on first size parameter for Target Photo and be processed into the picture having a size of first size, then
The picture of first size is laid out in target template by first position parameter, the screen locking main interface of target locking screen interface.
The detailed process of Target Photo is configured in the screen-lock password interface of target template based on the configuration information of Background
Are as follows: Target Photo is processed into the picture having a size of the second size based on the second dimensional parameters, and by the picture of the second size into
The picture of the second size after Fuzzy Processing is laid out in target template by row Fuzzy Processing by second position parameter, raw
At the background map at the screen-lock password interface of target locking screen interface.
In one possible implementation, the screen locking main interface of target template is spliced by multiple pictures, correspondingly,
It include the configuration information of multiple pictures in configuration information file, the configuration information of multiple pictures includes each picture in target template
Screen locking main interface dimensional parameters and location parameter.Since the screen locking main interface of target template is spliced by multiple pictures,
Therefore, when choosing Target Photo from picture library, the picture for choosing corresponding number is also needed.
Then the configuration information of picture is matched in the screen locking main interface of target template in the screen locking main interface based on target template
Target Photo is set, generates the screen locking main interface of target locking screen interface, comprising: the size based on picture each in configuration information file
Each Target Photo of selection is processed into the picture of correspondingly-sized by parameter, and each picture that processing is obtained is by corresponding position
It sets parameter to be laid out in target template, to form the screen locking main interface of target locking screen interface.
It is understood that Target Photo is being handled and is being laid out based on configuration parameter if Target Photo is one
Formed screen-lock password interface background map when, directly by this Target Photo based on size parameter processing at the figure of correspondingly-sized
Picture after Fuzzy Processing, is then laid out in target template by piece and Fuzzy Processing by corresponding location parameter, thus
Generate the background map at the screen-lock password interface of target locking screen interface.If target patch is multiple, Target Photo is being based on matching
It sets parameter processing and is laid out when forming the background map at screen-lock password interface, multiple Target Photos can be subjected to spliced spliced map
It is configured to the background map at screen-lock password interface, specifically, can first join multiple Target Photos by its size in screen locking main interface
Several and location parameter is spliced, and obtains splicing picture, then the size by spliced map piece based on picture in screen-lock password interface
Parameter and location parameter, first processing at correspondingly-sized picture and Fuzzy Processing, then by the picture after Fuzzy Processing by pair
The location parameter answered is laid out in target template, so that the background map at the screen-lock password interface of target locking screen interface is generated,
Certainly, when Target Photo is multiple, can also a therefrom optional picture, be configured to the screen-lock password of target locking screen interface
The background map at interface.
Step S305: the picture path based on password figure generates mesh in screen-lock password interface loading pin digital picture
The foreground picture at the screen-lock password interface of locking screen interface is marked, the screen-lock password interface of target locking screen interface is obtained.
In a kind of preferred implementation, each password figure in screen-lock password interface corresponds to two pictures, respectively
First state picture and the second state picture different from first state picture.
Then the picture path based on password figure is in screen-lock password interface loading pin digital picture, specifically: based on close
The picture path of yardage word loads first state picture corresponding with each password figure at screen-lock password interface.And works as and detect
User is in the screen-lock password interface of generation when the operational order of target password number, the picture path based on target password number
Load the second state picture corresponding with target password number at screen-lock password interface.
In addition, the present embodiment do not limit step S303-S305 execute sequence, these three steps can be held in any order
Row, can also be performed simultaneously, as long as belonging to the protection scope of the embodiment of the present invention comprising these three steps.
Step S306: when receiving screen locking instruction, in the target locking screen interface that terminal loads generate.
For the terminal of android system, when the screen locking for receiving android system instructs, generation is loaded
Target locking screen interface, i.e. load screen locking main interface and cryptographic interface.
The generation method of locking screen interface provided in an embodiment of the present invention can obtain the tool that user chooses according to the hobby of oneself
There are the target template and Target Photo of magazine effect, configuration information corresponding with target template is then utilized in target template
File configuration Target Photo, to generate the target locking screen interface with magazine effect.It can be seen that the embodiment of the present invention provides
Locking screen interface generation method can based on user choose picture and locking screen interface template generation personalization screen locking
Interface, i.e. user can choose the template oneself liked from template library, and the picture making oneself liked then is chosen from picture library
Personalized, beautiful locking screen interface, better user experience.
It should be noted that when the above-mentioned target locking screen interface of application, the screen locking main interface of target locking screen interface and screen locking
Cryptographic interface can be switched over based on the operation of user, and illustratively, screen locking main interface is currently shown in mobile phone, when user uses
When finger slides to the left, target locking screen interface can be switched to screen-lock password interface by screen locking main interface, likewise, if user uses
Finger slides to the right, then target locking screen interface can return screen locking main interface by screen-lock password changing interface.
In one possible implementation, the broadcast of screen locking key on and off can be monitored by the service of LockService
The screen locking page is added by forms manager (WindowManager) when listening to the broadcast event that screen locking key is opened in event,
Realize screen locking.
Preferably, the generation method for the locking screen interface that any of the above-described embodiment provides can also include: to work as to receive user
In the first operation of target locking screen interface, presupposed information is shown;It is operated when receiving user the second of target locking screen interface
When, show the icon of preset target application, wherein the first operation is different from the second operation.
Wherein, first operation can with but be not limited to slidably input behaviour along the first preset direction in target locking screen interface
Make (such as right cunning), presupposed information can with but be not limited to weather forecast information, wherein weather forecast information can be for from terminal
Weather forecast application in the information that obtains, can also be the information that is obtained by network from webpage.It can be seen that when user wants
When checking weather forecast information, weather forecast application is opened without specially going, also difference goes site search to inquire, but in target
It can be obtained in locking screen interface by a shirtsleeve operation, the mode of acquisition of information is fast, better user experience.
Wherein, the second operation can with but be not limited in target locking screen interface along the cunning of the second preset direction (as above sliding)
Dynamic input operation, target application can be common tool, such as calculator, flashlight, alarm clock, camera.It can be seen that user exists
It can be obtained the icon of common application in target locking screen interface by a shirtsleeve operation, and then quickly trigger corresponding application
Starting.
It corresponds to the above method, the embodiment of the invention also provides a kind of generating means of locking screen interface, are applied to one
Terminal may include: to obtain module 401, receiving module 402, configuration referring to Fig. 4, showing the structural schematic diagram of the device
Module 403 and record module 404.
Module 401 is obtained, for obtaining the target mould for generating target locking screen interface from pre-set template library
Plate and configuration information file corresponding with target template.
Wherein, the configuration including picture in screen locking main interface in target template and screen-lock password interface in configuration information file
Information
Receiving module 402 receives when for detecting the triggering command of production target locking screen interface when terminal and is based on target
Template instructs the selection of Target Photo in picture library.
Configuration module 403, Target Photo and target template for that will choose are based on configuration information file and generate target lock
Shield interface.
Loading module 404, for the target locking screen interface that when receiving screen locking instruction, load configuration module 403 is generated.
The generating means of locking screen interface provided in an embodiment of the present invention can obtain the mesh that user chooses according to the hobby of oneself
Template and Target Photo are marked, then configures target figure using configuration information file corresponding with target template in target template
Piece, to generate and load target locking screen interface.It can be seen that the generating means energy of locking screen interface provided in an embodiment of the present invention
The locking screen interface of the template generation personalization of enough pictures and locking screen interface chosen based on user, i.e. user can be from template library
The template oneself liked is chosen, the locking screen interface that the picture making oneself liked is personalized, beautiful is then chosen from picture library,
Better user experience.
In the generating means of locking screen interface provided by the above embodiment, configuration information include: background map configuration parameter,
The picture path of the configuration parameter of foreground picture, the path of mask picture and password figure.
Then configuration module includes: background map configuration module, foreground picture configuration module and password figure picture configuration module.Its
In:
Background map configuration module, for close in the screen locking main interface of target template and screen locking using the configuration parameter of background map
Code interface configurations Target Photo generates the background map of the screen locking main interface of target locking screen interface and the background at screen-lock password interface
Figure.
Foreground picture configuration module, for the configuration parameter of Utilization prospects figure and the path of mask picture in target template
Screen locking main interface configures Target Photo, generates the foreground picture of the screen locking main interface of target locking screen interface.
Password figure picture configuration module, for the picture path based on password figure in screen-lock password interface loading pin
Digital picture generates the foreground picture at the screen-lock password interface of target locking screen interface.
In the above-described embodiments, the configuration parameter of background map includes first size parameter and first position parameter, and,
Two dimensional parameters and second position parameter, wherein first size parameter and first position parameter are background map in screen locking main interface
Configuration parameter, the second dimensional parameters and second position parameter are the configuration parameter of background map in screen-lock password interface.
Then background map configuration module, comprising: the first configuration submodule and the second configuration submodule.
First configuration submodule, for Target Photo to be processed into the figure having a size of first size based on first size parameter
Piece, and the picture of first size is laid out in the screen locking main interface of target template by first position parameter, generate target
The background map of the screen locking main interface of locking screen interface.
Second configuration submodule, for the Target Photo to be processed into having a size of the second size based on the second dimensional parameters
Picture, and the picture of second size is subjected to Fuzzy Processing, by the picture of the second size after Fuzzy Processing by described
Second position parameter is laid out in the screen-lock password interface of the target template, generates the described of the target locking screen interface
The background map at screen-lock password interface.
In the above-described embodiments, configuration information include the configuration information of picture in the screen locking main interface of the target template,
The picture path of the configuration information and password figure of background map in the screen-lock password interface of the target template.
Configuration module includes: screen locking main interface configuration module, background map configuration module and password figure picture configuration module.
Screen locking main interface configuration module, for the configuration information based on picture in the screen locking main interface in the target mould
The Target Photo is configured in the screen locking main interface of plate, generates the screen locking main interface of the target locking screen interface.
Background map configuration module, for the configuration information based on Background in the screen-lock password interface of the target template
The Target Photo is configured, the background map at the screen-lock password interface of the target locking screen interface is generated.
Password figure picture configuration module, for the picture path based on password figure in screen-lock password interface loading pin
Digital picture generates the foreground picture at the screen-lock password interface of target locking screen interface, obtains screen-lock password circle of target locking screen interface
Face.
It in one possible implementation, include the configuration information of multiple pictures in the screen locking main interface of target template,
Correspondingly, Target Photo be it is multiple, the configuration information of multiple pictures includes each picture on the main boundary of screen locking of the target template
The dimensional parameters and location parameter in face.
Then screen locking main interface configuration module is handled each Target Photo specifically for the dimensional parameters based on each picture
Cloth is carried out in the target template by corresponding location parameter at the picture of correspondingly-sized, and by each picture that processing obtains
Office, forms the screen locking main interface of the target locking screen interface.
In a kind of preferred implementation, each password figure in screen-lock password interface corresponds to two pictures, respectively
For first state picture and the second state picture different from the first state picture;
Then password figure picture configuration module, specifically for the picture path based on password figure in screen-lock password circle
Face loads first state picture corresponding with each password figure.
Password figure picture configuration module is also used to detect that user is close to target in target screen-lock password interface when terminal
When the operational order of yardage word, the picture path based on target password number is in the load of screen-lock password interface and the target password
The corresponding second state picture of number.
In the generating means of locking screen interface provided by the above embodiment further include: display module.
Display module, for showing presupposed information when terminal receives the first operation of the user in target locking screen interface,
It is also used to show the icon of preset target application when terminal receives second operation of the user in target locking screen interface, the
One operation is different from the second operation.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
In several embodiments provided herein, it should be understood that disclosed method, apparatus and equipment, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be by some communication interfaces, between device or unit
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it is also possible to each
Unit physically exists alone, and can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.