CN106598414A - Desktop wallpaper sliding state changing method and device - Google Patents
Desktop wallpaper sliding state changing method and device Download PDFInfo
- Publication number
- CN106598414A CN106598414A CN201510672922.1A CN201510672922A CN106598414A CN 106598414 A CN106598414 A CN 106598414A CN 201510672922 A CN201510672922 A CN 201510672922A CN 106598414 A CN106598414 A CN 106598414A
- Authority
- CN
- China
- Prior art keywords
- screen
- wallpaper
- desktop
- desktop wallpaper
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000008859 change Effects 0.000 claims abstract description 36
- 238000012544 monitoring process Methods 0.000 claims abstract description 16
- 238000013519 translation Methods 0.000 claims description 6
- 230000000007 visual effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a method and a device for changing a sliding state of desktop wallpaper, and relates to the technical field of software, wherein the method comprises the following steps: receiving a wallpaper update success message, wherein the wallpaper update success message is used for indicating that the current desktop wallpaper is successfully updated to the target desktop wallpaper; monitoring the time length T of the current desktop wallpaper which is updated to the target desktop wallpaper, and setting the state of the target desktop wallpaper to be in a non-slidable state; changing the state of the target desktop wallpaper into a slidable state under the condition that the monitored duration T reaches a preset duration threshold, wherein the preset duration threshold is as follows: and allowing the minimum value of the time length T of the desktop wallpaper area to be switched in the target desktop wallpaper to be determined according to the desktop wallpaper area switching instruction. After the scheme provided by the embodiment of the invention is applied to change the sliding state of the desktop wallpaper, the application selection operation of a user is facilitated, and the visual experience of the user is improved.
Description
Technical field
The present invention relates to software technology field, more particularly to a kind of desktop wallpaper sliding mode variation and dress
Put.
Background technology
With the fast development of hardware technology, the performance of user terminal is stronger and stronger, and user can be in its terminal
It is middle that various applications are installed.Further, increase as user installs number of applications in its terminal, user
The icon for all having installed application cannot have been shown on one screen of terminal desktop, therefore, under normal circumstances
Need to show the icon for having installed application in user terminal to user by multiple screens.
Further, since the hobby of each user is different, under normal circumstances user can be according to the interest of oneself
Hobby selects the picture oneself liked as desktop wallpaper.When the user terminal desktop multiple screens of correspondence, use
Family terminal can switch between multiple screens, while as screens switch desktop wallpaper can also switch accordingly
To the zones of different of the desktop wallpaper.
In prior art, user terminal is successfully arranged after desktop wallpaper according to the hobby of user, if user
Pressing " home " key at once causes user terminal to return the corresponding screen of desktop and quickly each from application interface
When switching between individual screen, the desktop wallpaper set by user terminal cannot generally be paved with whole screen, exist
Serious screen black surround phenomenon similar to Figure 1, so not only affects the visual experience of user, and gives
The application selection operation of user brings greatly puzzlement.
The content of the invention
The embodiment of the invention discloses a kind of desktop wallpaper sliding mode variation and device, to facilitate user
Carry out applying selection operation, and improve user's visual experience.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of desktop wallpaper sliding mode variation,
Methods described includes:
Receive wallpaper and be updated successfully message, wherein, the wallpaper is updated successfully message, for representing success
Current desktop wallpaper is updated to into target desktop wallpaper;
Monitoring current desktop wallpaper has been updated to the duration T of the target desktop wallpaper, and arranges the target table
The state of surface wallpaper is can not sliding mode;
In the case where monitoring that the duration T reaches default duration threshold value, the target desktop wallpaper is changed
State be slidably state, wherein, the default duration threshold value is:Allow according to desktop wallpaper region
Switching command determines the minimum of the duration T in the to be switched desktop wallpaper region in the target desktop wallpaper
Value.
In a specific embodiment of the present invention, before the reception wallpaper is updated successfully message, also
Including:
Obtain number of screen N of desktopOWith the original image of target desktop wallpaper;
According to number of screen NOWith the resolution of the original image, according to default image scaling method is become
Enter line translation to the original image, obtain the target desktop wallpaper, wherein, the target desktop wallpaper
Width be not more than number of screen NOIndividual screen correspondence image width sum, the target desktop wallpaper
Highly it is equal to screen correspondence image height.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode variation also includes:
Receive desktop screen adjust instruction;
According to the desktop screen adjust instruction, it is determined that adjustment after the desktop number of screen NA;
According to number of screen NAWith the resolution of the original image, the target desktop wallpaper is updated,
Wherein, the width of the target desktop wallpaper is not more than number of screen N after renewalAIndividual screen correspondence image
Width sum, the height of the target desktop wallpaper is equal to screen correspondence image height after adjustment.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode variation also includes:
Desktop screen return instruction is received, wherein, desktop screen is carried in the desktop screen return instruction and is returned
Return operation mark;
Operation mark is returned according to the desktop screen carried in the desktop screen return instruction and determines table to be returned
Face screen;
The resolution of order and the target desktop wallpaper according to the screen to be returned in desktop screen
Rate, determines first wallpaper region corresponding with the screen to be returned in the target desktop wallpaper;
With the first wallpaper region as background, show the screen to be returned.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode variation also includes:
Receive the desktop screen switching command for be switched screen;
According to the current state of the target desktop wallpaper, determine to be cut with described in the target desktop wallpaper
Change the corresponding second wallpaper region of screen;
With the second wallpaper region as background, show the to be switched screen.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of desktop wallpaper sliding mode change device,
Described device includes:
New information receiver module, for receiving wallpaper message is updated successfully, wherein, the wallpaper is updated to
Work(message, successfully current desktop wallpaper is updated to into target desktop wallpaper for representing;
Wallpaper state setting module, for monitoring current desktop wallpaper the target desktop wallpaper has been updated to
Duration T, and the state of the target desktop wallpaper is set for can not sliding mode;
Wallpaper Status Change module, for monitoring that the duration T reaches the situation of default duration threshold value
Under, the state for changing the target desktop wallpaper is slidably state, wherein, wherein, when described default
Long threshold value is:Permission determines to be switched in the target desktop wallpaper according to desktop wallpaper region switching command
The minimum value of the duration T in desktop wallpaper region.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode change device also includes:
Information acquisition module, for receiving before wallpaper is updated successfully message in the new information receiver module,
Obtain number of screen N of desktopOWith the original image of target desktop wallpaper;
Wallpaper obtains module, for according to number of screen NOWith the resolution of the original image, according to
Default image becomes scaling method and enters line translation to the original image, obtains the target desktop wallpaper, wherein,
The width of the target desktop wallpaper is not more than number of screen NOIndividual screen correspondence image width sum, institute
The height for stating target desktop wallpaper is equal to screen correspondence image height.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode change device also includes:
Screen adjust instruction receiver module, for receiving desktop screen adjust instruction;
Number of screen determining module, for according to the desktop screen adjust instruction, it is determined that the table after adjustment
Number of screen N in faceA;
Wallpaper update module, for according to number of screen NAWith the resolution of the original image, update
The target desktop wallpaper, wherein, the width of the target desktop wallpaper is not more than the screen number after renewal
Amount NAIndividual screen correspondence image width sum, the height of the target desktop wallpaper is equal to screen correspondence after adjustment
Picture altitude.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode change device also includes:
Screen return instruction receiver module, for receiving desktop screen return instruction, wherein, the desktop screen
Desktop screen is carried in curtain return instruction return operation mark;
Screen determining module is returned, for returning according to the desktop screen carried in the desktop screen return instruction
Return operation mark and determine desktop screen to be returned;
First wallpaper area determination module, for the order according to the screen to be returned in desktop screen with
And the resolution of the target desktop wallpaper, determine in the target desktop wallpaper with the screen pair to be returned
The the first wallpaper region answered;
Screen shows module is returned, for the first wallpaper region as background, showing the screen to be returned
Curtain.
In a specific embodiment of the present invention, the desktop wallpaper sliding mode change device also includes:
Screens switch command reception module, for receiving the desktop screen switching command for be switched screen;
Second wallpaper area determination module, for according to the current state of the target desktop wallpaper, determining institute
State the second wallpaper region corresponding with the to be switched screen in target desktop wallpaper;
Toggle screen display module, for the second wallpaper region as background, showing the to be switched screen
Curtain.
As seen from the above, in scheme provided in an embodiment of the present invention, user terminal according to the wallpaper for receiving more
New success message learns successfully current desktop wallpaper is updated to after target desktop wallpaper, monitors current desktop
Wallpaper has been updated to the duration T of target desktop wallpaper, and arranges the state of the target desktop wallpaper for not slidably
State, in the case where monitoring that above-mentioned duration T reaches default duration threshold value, changes target desktop wallpaper
State be slidably state.In the case of being not up to default duration threshold value in above-mentioned duration T, mesh
The state of mark desktop wallpaper for can not sliding mode, user terminal successfully arranges table according to the hobby of user
After surface wallpaper, even if user presses immediately " home " key and causes user terminal to return desktop pair from application interface
The screen answered and the quick switching between each screen, user terminal is also not in that desktop wallpaper cannot be paved with
The phenomenon of whole screen and screen black surround, therefore, change desktop using scheme provided in an embodiment of the present invention
The sliding mode of wallpaper, can facilitate user to carry out applying selection operation, improve user's visual experience.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to implementing
Example or the accompanying drawing to be used needed for description of the prior art are briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the desktop screen schematic diagram comprising black surround;
Fig. 2 is that the flow process of the first desktop wallpaper sliding mode variation provided in an embodiment of the present invention is illustrated
Figure;
Fig. 3 is that the flow process of second desktop wallpaper sliding mode variation provided in an embodiment of the present invention is illustrated
Figure;
Fig. 4 is that the flow process of the third desktop wallpaper sliding mode variation provided in an embodiment of the present invention is illustrated
Figure;
Fig. 5 a are the first desktop screen schematic diagram provided in an embodiment of the present invention;
Fig. 5 b are second desktop screen schematic diagram provided in an embodiment of the present invention;
Fig. 6 a are the third desktop screen schematic diagram provided in an embodiment of the present invention;
Fig. 6 b are the 4th kind of desktop screen schematic diagram provided in an embodiment of the present invention;
Fig. 7 is the structural representation of the first desktop wallpaper sliding mode change device provided in an embodiment of the present invention
Figure;
Fig. 8 is the structural representation of second desktop wallpaper sliding mode change device provided in an embodiment of the present invention
Figure;
Fig. 9 is the structural representation of the third desktop wallpaper sliding mode change device provided in an embodiment of the present invention
Figure.
Specific embodiment
On the basis of fully research android system source code arranges slidably wallpaper mechanism, compiling is applicant
System source code, with Android Log mechanism and mathematical statistics method, it is determined that successfully arrange after desktop wallpaper,
Pressing " home " key immediately causes user terminal to return the corresponding screen of desktop and quickly each from application interface
When switching between individual screen, the reason for there is serious screen black surround phenomenon similar to Figure 1, specifically such as
Under:
When user is switched by mode triggering terminals such as finger slip screens between multiple desktop screens,
The corresponding desktop wallpaper region of desktop screen synchronous can be changed in android system, due to changing desktop screen pair
The desktop wallpaper region answered needs to carry out the sequence of operations such as coordinate transformation, matrixing, takes longer, institute
So that android system is provided with a mark, the Zone switched determination mark of desktop wallpaper is designated as, by this
Mark controls whether to carry out the sequence of operations such as above-mentioned coordinate transformation, matrixing for desktop wallpaper, enters
And prevent because the chaos in computation that causes is changed in desktop wallpaper region, specifically, in android system on this
When the value for stating mark is arranged to default virtual value, it is allowed to determined according to desktop wallpaper region switching command
To be switched desktop wallpaper region in current desktop wallpaper, i.e.,:Switch desktop area while switching desktop screen
During domain, it is allowed to the to be switched desktop wallpaper in current desktop wallpaper is determined according to desktop wallpaper region switching command
Region, and the value of above-mentioned mark is when being arranged to default insignificant values, does not allow according to desktop wallpaper area
Domain switching command determines the to be switched desktop wallpaper region in current desktop wallpaper.
In addition, user terminal is successfully arranged after desktop wallpaper, android system can restart calculating control and draw
Hold up, in start-up course, in general two seconds, the value of above-mentioned mark is arranged to default non-to be had
Valid value, in this case, when there is desktop screen switching, corresponding desktop wallpaper also can be changed accordingly, but
It is that user terminal is not for wallpaper region more because the value of above-mentioned mark is arranged to default insignificant values
Swap-in row is calculated, so occurring in that above-mentioned screen black surround phenomenon.
When there is above-mentioned screen black surround phenomenon, if the application icon represented in black surround region be also black or
During the approximate black of person, user is difficult to the application icon for being represented in the region and carries out selection operation, in addition,
Such case also affects the visual experience of user.
Based on above-mentioned situation, a kind of desktop wallpaper sliding mode variation and dress are embodiments provided
Put, to change the sliding mode of desktop wallpaper, facilitate user to carry out applying selection operation, improve regarding for user
Feel experience.
It should be noted that desktop wallpaper sliding mode change scheme provided in an embodiment of the present invention, Ke Yiying
For running the user terminal of android system, naturally it is also possible to be applied to run the user of other operating systems
Terminal, for example, runs the user terminal of ios systems, and the application is not defined to this.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
Property work under the premise of the every other embodiment that obtained, belong to the scope of protection of the invention.
Fig. 2 is that the flow process of the first desktop wallpaper sliding mode variation provided in an embodiment of the present invention is illustrated
Figure, the method includes:
S201:Receive wallpaper and be updated successfully message.
Wherein, above-mentioned wallpaper is updated successfully message, successfully current desktop wallpaper is updated to into mesh for representing
Mark desktop wallpaper.
Specifically, it can be that user operation is triggered current desktop wallpaper to be updated to into target desktop wallpaper, example
Such as, user clicks on " being set to wallpaper " button triggering in interface, and user is selected in right click mouse menu
Menu item triggering etc.;Can also be to detect and meet default desktop wallpaper replacing condition triggering,
For example, default desktop wallpaper replacing construction interval etc. has been reached, the application is not defined to this.
Above-mentioned target desktop wallpaper is the image for being stored in specific region in the locally stored resource of user terminal, should
Image can in the following manner in any one acquisition:
Obtain in the image stored from the storage resource of user terminal, for example, obtain from mobile phone memory card
Etc.;
Obtain from cloud server;
From other users by obtaining in the image of network sharing, for example, from other users by wechat, QQ,
Obtain in the image that microblogging, FaceBook etc. share.
It should be noted that the application does not limit the acquisition pattern of above-mentioned target desktop wallpaper.
S202:Monitoring current desktop wallpaper has been updated to the duration T of target desktop wallpaper, and arranges target desktop
The state of wallpaper is can not sliding mode.
In target desktop wallpaper in can not be in the case of sliding mode, if user terminal receives desktop screen
Switching command, desktop screen still can be switched over according to above-mentioned switching command, but desktop wallpaper region is not
The switching that desktop screen can be followed changes.Just because of in this case, desktop wallpaper region will not be with
The switching of desktop screen and change, so, be not in that screen is black when there is desktop screen switching
The phenomenon on side.
S203:In the case where monitoring that duration T reaches default duration threshold value, target desktop wallpaper is changed
State is slidably state.
Wherein, above-mentioned default duration threshold value is:Permission determines target according to desktop wallpaper region switching command
The minimum value of the duration T in the to be switched desktop wallpaper region in desktop wallpaper.
In the case where target desktop wallpaper is in slidably state, if user terminal receives desktop screen and cuts
Instruction is changed, not only desktop screen can be switched over according to above-mentioned switching command, and desktop wallpaper region also can
Follow the switching of desktop screen and change.Further, since duration T is reached after default duration threshold value, use
Family terminal can determine the to be switched desktop wallpaper in target desktop wallpaper according to desktop wallpaper region switching command
Region, so, even if desktop wallpaper region follows the switching of desktop screen and changes, the table after change
Surface wallpaper region be also it is believed that therefore, be not in desktop wallpaper cannot be paved with whole screen and
Screen black surround phenomenon.
The present invention a kind of relatively good implementation in, above-mentioned default duration threshold value be equal to 2 seconds, certainly,
Can be other values, its value can determine according to practical situation.
Those skilled in the art are not it is understood that when carrying out desktop wallpaper setting, limit desktop
The resolution of wallpaper, so, it can be understood as the area of desktop wallpaper and the area of screen into multiple proportion,
The value of the multiple is more than zero.
In consideration of it, above-mentioned target desktop wallpaper can be the original image of the desktop wallpaper, or to this
The original image of desktop wallpaper carries out the image obtained after image procossing.
In the case of the original image that target desktop wallpaper is the desktop wallpaper, above-mentioned original image may
More than the correspondence image of each desktop screen, now, the corresponding desktop wallpaper of each desktop screen is amounted to can be with
Only show a part for original image.
For example, it is assumed that the resolution of original image is:352x288, and the resolution of screen is:50x50,
The quantity of desktop screen be 4, then the top left corner apex coordinate in the corresponding desktop wallpaper region of each desktop screen and
Lower right corner apex coordinate can be as shown in table 1 below respectively.
Table 1
Top left corner apex coordinate | Lower right corner apex coordinate | |
Desktop screen 1 | (0,0) | (49,49) |
Desktop screen 2 | (50,0) | (99,49) |
Desktop screen 3 | (100,0) | (149,49) |
Desktop screen 4 | (150,0) | (199,49) |
It can be seen that the corresponding desktop wallpaper region of 4 desktop screens is original graph from the data shown in table 1
The upper left of picture, it is combined to obtain whole original image, certainly, the corresponding desktop of 4 desktop screens
Wallpaper region is also can correspond to the other parts of original image, for example, the area with image center as base station
Domain, lower right-most portion etc., no longer enumerate here.
Corresponding with above-mentioned situation, above-mentioned original image may be less than the correspondence image of each desktop screen,
At this point it is possible to consider to repeat to show above-mentioned original image in the corresponding desktop wallpaper region of each desktop screen
Etc., wherein, when repeating to show above-mentioned original image in the corresponding desktop wallpaper region of each desktop screen,
Can intuitively be interpreted as:When desktop screen is slided, its sliding speed is more than the sliding speed of desktop wallpaper,
So desktop screen from current screen switch to next desktop screen when, the displacement of desktop wallpaper is less than one
The width of individual screen correspondence image, that is, the corresponding desktop wallpaper region presence coincidence of adjacent two desktop screen
Region.
It is noted that successfully arrange after desktop wallpaper, if can by desktop screen switch etc. mode to
If the complete desktop wallpaper of user's displaying, more preferably Consumer's Experience usually can be brought to user, so,
Above-mentioned target desktop wallpaper can also be that the original image to target desktop wallpaper carries out what is obtained after image procossing
Image.
In a kind of relatively good implementation of the present invention, referring to Fig. 3, there is provided second desktop wallpaper slip shape
The schematic flow sheet of state variation, compared with previous embodiment, in the present embodiment, updates wallpaper is received
Before success message, also include:
S204:Obtain number of screen N of desktopOWith the original image of target desktop wallpaper.
Specifically, the original image of above-mentioned target desktop wallpaper can be stored from the storage resource of user terminal
Image in obtain image, can be the image obtained from cloud server, can be other users lead to
The image of network sharing is crossed, for example, the image shared by wechat, QQ, microblogging, FaceBook etc..This
Application does not limit the acquisition pattern of above-mentioned original image.
User terminal is obtained after above-mentioned original image, can be by the raw image storage in locally stored resource
Specific region.
S205:According to number of screen NOWith the resolution of original image, according to default image scaling method pair is become
Original image enters line translation, obtains target desktop wallpaper.
Wherein, the width of target desktop wallpaper is not more than number of screen NOIndividual screen correspondence image width sum,
The height of target desktop wallpaper is equal to screen correspondence image height.
It can be that the image that process is amplified to original image becomes conversion that above-mentioned default image becomes scaling method
Method, or to original image carry out reduce process image become scaling method.
Because the width of target desktop wallpaper after conversion is not more than the number of screen screen corresponding diagram image width of desktop
Degree sum, and the height of target desktop wallpaper is equal to screen correspondence image height, so, user can pass through
Check that the corresponding desktop wallpaper of different desktop screens sees the overall picture of target desktop wallpaper.
Preferably, the width of target desktop wallpaper is equal to number of screen NOIndividual screen correspondence image width sum,
The height of target desktop wallpaper is equal to screen correspondence image height, the corresponding wallpaper area of so each desktop screen
It is not in overlapping region between domain.
It should be understood that as user uses its terminal, user to may proceed to install new in its terminal
Using the so new application icon for installing application can be added in desktop screen, may cause desktop screen
Curtain increases;In addition, user is also possible to that mounted some applications, such user terminal in its terminal can be unloaded
The application icon of unloaded application can be deleted, desktop screen may be caused to reduce.Based on above-mentioned situation,
In a kind of optional implementation of the present invention, above-mentioned desktop wallpaper sliding mode variation can also include:
Desktop screen adjust instruction is received, according to desktop screen adjust instruction, it is determined that the desktop after adjustment
Number of screen NA, and according to number of screen NAWith the resolution of the original image of preceding aim desktop wallpaper, more
Fresh target desktop wallpaper.
Wherein, the width of target desktop wallpaper is not more than number of screen N after renewalAIndividual screen correspondence image width
Sum, the height of target desktop wallpaper is equal to screen correspondence image height after adjustment.
Preferably, the width of target desktop wallpaper is equal to number of screen N after updatingAIndividual screen correspondence image width
Sum, the height of target desktop wallpaper is equal to screen correspondence image height after adjustment.
In addition, above-mentioned desktop screen adjust instruction can be the desktop screen for increasing desktop screen quantity
Adjust instruction, or the desktop screen adjust instruction for reducing desktop screen quantity.
Successfully current desktop wallpaper is updated to after target desktop wallpaper, no matter current goal desktop wallpaper is in
Slidably state still can not sliding mode, with may wish to per family user terminal return desktop screen.
In another kind of specific implementation of the present invention, referring to Fig. 4, there is provided the third desktop wallpaper is slided
The schematic flow sheet of Status Change method, compared with previous embodiment, in the present embodiment, above-mentioned desktop wallpaper
Sliding mode variation also includes:
S206:Receive desktop screen return instruction.
Wherein, desktop screen is carried in desktop screen return instruction and returns operation mark.
Specifically, desktop screen can be returned from current interface by following several operations, here desktop screen
Can be understood as the main screen in desktop screen, it is understood that be the desktop screen into before current interface:
Double-click the main screen that " home " key is returned in desktop screen;
Click " home " key and back into desktop screen before current interface;
Repeatedly click the Back button and back into desktop screen before current interface, etc..
It should be noted that the application is simply illustrated as a example by above-mentioned, from current interface in practical application
The operation for returning desktop screen is not limited to that.
S207:Desktop screen return operation mark according to carrying in desktop screen return instruction determines to be returned
Desktop screen.
By S206 it can be seen that can be operated from current interface return desktop screen by various, but various behaviour
Make corresponding desktop screen different, so needing to determine table to be returned according to desktop screen return operation mark
Face screen.
S208:The resolution of order and target desktop wallpaper according to screen to be returned in desktop screen,
Determine first wallpaper region corresponding with screen to be returned in target desktop wallpaper.
Specifically, the base level coordinate in above-mentioned first wallpaper region can according to following formula, be determined,
Wherein, WIRepresent the width of target desktop wallpaper, WSRepresent the number of screen screen pair of current desktop
Answer picture traverse sum, WCRepresent screen correspondence image width, IDRepresent screen to be returned in desktop screen
Serial number, its initial value be 0.
Obtained after the base level coordinate in the first wallpaper region, in conjunction with screen correspondence image according to aforesaid way
Width, you can obtain first wallpaper region corresponding with screen to be returned in target desktop wallpaper.
S209:With the first wallpaper region as background, show screen to be returned.
It should be understood that returning after desktop screen, user may be by slip screens such as fingers so that
The desktop screen of user terminal switches between each desktop screen, specifically, in a kind of optional of the present invention
In implementation, above-mentioned desktop wallpaper sliding mode variation can also include:
The desktop screen switching command for be switched screen is received, according to the current state of target desktop wallpaper,
Determine the second wallpaper region corresponding with to be switched screen in target desktop wallpaper, and with above-mentioned second wallpaper area
Domain is background, shows to be switched screen.
Specifically, when receiving above-mentioned desktop screen switching command, the current state of target desktop wallpaper may
Be in can not sliding mode, in this case, although desktop screen there occurs switching, but due to current
Target desktop wallpaper not slidably, so, above-mentioned second wallpaper region still to show to be switched screen before
Desktop screen when wallpaper region.
In addition, when receiving above-mentioned desktop screen switching command, the current state of target desktop wallpaper is probably
In slidably state, in this case, while desktop screen switches, wallpaper region also should phase
Should switch, thus need to according to be switched screen putting in order in desktop screen, combining target desktop
The resolution of wallpaper, by calculating the second wallpaper area corresponding with to be switched screen in target desktop wallpaper is determined
Domain.
In the case where the current state of target desktop wallpaper is for slidably state, can be with according to current desktop
The information such as the resolution of the corresponding wallpaper region of screen and target desktop wallpaper, determine in target desktop wallpaper with
The corresponding second wallpaper region of to be switched screen.
It should be noted that the application is simply illustrated as a example by above-mentioned, the second wall is determined in practical application
The method in paper region is not limited to that.
Specifically, referring to Fig. 5 a and Fig. 5 b, Fig. 5 a illustrate for the first desktop screen provided in an embodiment of the present invention
Figure, Fig. 5 b are second desktop screen schematic diagram provided in an embodiment of the present invention.
Wherein, Fig. 5 b are target desktop wallpaper in can not be under sliding mode, screen shown in slip Fig. 5 a to the right
Obtain, it can be seen that desktop screen there occurs change in two figures, but desktop screen is corresponding
Wallpaper region does not change.
Referring to Fig. 6 a and Fig. 6 b, Fig. 6 a are the third desktop screen schematic diagram provided in an embodiment of the present invention, Fig. 6 b
For the 4th kind of desktop screen schematic diagram provided in an embodiment of the present invention.
Wherein, Fig. 6 b are target desktop wallpaper in can not be under sliding mode, screen shown in slip Fig. 6 a to the right
Obtain, it can be seen that not only desktop screen there occurs change, and desktop screen pair in two figures
The wallpaper region answered also there occurs change.
As seen from the above, in the scheme that above-mentioned each embodiment is provided, user terminal is according to the wallpaper for receiving
It is updated successfully message and learns successfully current desktop wallpaper is updated to after target desktop wallpaper, monitors current table
Surface wallpaper has been updated to the duration T of target desktop wallpaper, and arranges the state of the target desktop wallpaper to slide
Dynamic state, in the case where monitoring that above-mentioned duration T reaches default duration threshold value, changes target desktop wall
The state of paper is slidably state.In the case of being not up to default duration threshold value in above-mentioned duration T,
The state of target desktop wallpaper for can not sliding mode, user terminal successfully arranges according to the hobby of user
After desktop wallpaper, even if user presses immediately " home " key and causes user terminal to return desktop from application interface
Corresponding screen and the quick switching between each screen, are also not in that desktop wallpaper cannot be paved with whole screen
The phenomenon of curtain and screen black surround, therefore, the scheme change desktop wallpaper provided using above-mentioned each embodiment
Sliding mode, user can be facilitated to carry out applying selection operation, improve user's visual experience.
Corresponding with above-mentioned desktop wallpaper sliding mode variation, the embodiment of the present invention additionally provides one kind
Desktop wallpaper sliding mode change device.
Fig. 7 is the structural representation of the first desktop wallpaper sliding mode change device provided in an embodiment of the present invention
Figure, the device includes:
New information receiver module 701, for receiving wallpaper message is updated successfully, wherein, the wallpaper updates
Success message, successfully current desktop wallpaper is updated to into target desktop wallpaper for representing;
Wallpaper state setting module 702, for monitoring current desktop wallpaper the target desktop wallpaper has been updated to
Duration T, and the state of the target desktop wallpaper is set for can not sliding mode;
Wallpaper Status Change module 703, for monitoring that the duration T reaches the feelings of default duration threshold value
Under condition, the state for changing the target desktop wallpaper is slidably state, wherein, the default duration threshold
It is worth and is:Permission determines the to be switched desktop in the target desktop wallpaper according to desktop wallpaper region switching command
The minimum value of the duration T in wallpaper region.
In a specific embodiment of the present invention, referring to Fig. 8, there is provided second desktop wallpaper slip shape
The structural representation of state change device, compared with previous embodiment, above-mentioned desktop wallpaper is slided in the present embodiment
Status Change device also includes:
Information acquisition module 704, disappears for receiving wallpaper and being updated successfully in the new information receiver module 701
Before breath, number of screen N of desktop is obtainedOWith the original image of target desktop wallpaper;
Wallpaper obtains module 705, for according to number of screen NOWith the resolution of the original image, press
Become scaling method according to default image and enter line translation to the original image, obtain the target desktop wallpaper, its
In, the width of the target desktop wallpaper is not more than number of screen NOIndividual screen correspondence image width sum,
The height of the target desktop wallpaper is equal to screen correspondence image height.
Specifically, above-mentioned desktop wallpaper sliding mode change device can also include:
Screen adjust instruction receiver module, for receiving desktop screen adjust instruction;
Number of screen determining module, for according to the desktop screen adjust instruction, it is determined that the table after adjustment
Number of screen N in faceA;
Wallpaper update module, for according to number of screen NAWith the resolution of the original image, update
The target desktop wallpaper, wherein, the width of the target desktop wallpaper is not more than the screen number after renewal
Amount NAIndividual screen correspondence image width sum, the height of the target desktop wallpaper is equal to screen correspondence after adjustment
Picture altitude.
In another kind of specific implementation of the present invention, referring to Fig. 9, there is provided the third desktop wallpaper is slided
The structural representation of Status Change device, compared with previous embodiment, in the present embodiment, above-mentioned desktop wallpaper
Sliding mode change device also includes:
Screen return instruction receiver module 706, for receiving desktop screen return instruction, wherein, the desktop
Desktop screen is carried in screen return instruction and returns operation mark;
Screen determining module 707 is returned, for according to the desktop screen carried in the desktop screen return instruction
Return operation mark and determine desktop screen to be returned;
First wallpaper area determination module 708, for the order according to the screen to be returned in desktop screen
And the resolution of the target desktop wallpaper, determine in the target desktop wallpaper with the screen to be returned
Corresponding first wallpaper region;
Screen shows module 709 is returned, for the first wallpaper region as background, showing described to be returned
Screen.
Specifically, above-mentioned desktop wallpaper sliding mode change device can also include:
Screens switch command reception module, for receiving the desktop screen switching command for be switched screen;
Second wallpaper area determination module, for according to the current state of target desktop wallpaper, determining the mesh
The second wallpaper region corresponding with the to be switched screen in mark desktop wallpaper;
Toggle screen display module, for the second wallpaper region as background, showing the to be switched screen
Curtain.
As seen from the above, in the scheme that above-mentioned each embodiment is provided, user terminal is according to the wallpaper for receiving
It is updated successfully message and learns successfully current desktop wallpaper is updated to after target desktop wallpaper, monitors current table
Surface wallpaper has been updated to the duration T of target desktop wallpaper, and arranges the state of the target desktop wallpaper to slide
Dynamic state, in the case where monitoring that above-mentioned duration T reaches default duration threshold value, changes target desktop wall
The state of paper is slidably state.In the case of being not up to default duration threshold value in above-mentioned duration T,
The state of target desktop wallpaper for can not sliding mode, user terminal successfully arranges according to the hobby of user
After desktop wallpaper, even if user presses immediately " home " key and causes user terminal to return desktop from application interface
Corresponding screen and the quick switching between each screen, are also not in that desktop wallpaper cannot be paved with whole screen
The phenomenon of curtain and screen black surround, therefore, the scheme change desktop wallpaper provided using above-mentioned each embodiment
Sliding mode, user can be facilitated to carry out applying selection operation, improve user's visual experience.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple
Single, related part is illustrated referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these
There is any this actual relation or order between entity or operation.And, term " including ", "comprising"
Or its any other variant is intended to including for nonexcludability, so that including a series of mistake of key elements
Journey, method, article or equipment not only include those key elements, but also including be not expressly set out other
Key element, or also include the key element intrinsic for this process, method, article or equipment.Do not having
In the case of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanting including described
Also there is other identical element in process, method, article or the equipment of element.
One of ordinary skill in the art will appreciate that realizing all or part of step in said method embodiment
Program be can be by instruct the hardware of correlation to complete, described program can be stored in computer-readable
In taking storage medium, the storage medium for obtaining designated herein, such as:ROM/RAM, magnetic disc, CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.
All any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in
In protection scope of the present invention.
Claims (10)
1. a kind of desktop wallpaper sliding mode variation, it is characterised in that methods described includes:
Receive wallpaper and be updated successfully message, wherein, the wallpaper is updated successfully message, for representing success
Current desktop wallpaper is updated to into target desktop wallpaper;
Monitoring current desktop wallpaper has been updated to the duration T of the target desktop wallpaper, and arranges the target table
The state of surface wallpaper is can not sliding mode;
In the case where monitoring that the duration T reaches default duration threshold value, the target desktop wallpaper is changed
State be slidably state, wherein, the default duration threshold value is:Allow according to desktop wallpaper region
Switching command determines the minimum of the duration T in the to be switched desktop wallpaper region in the target desktop wallpaper
Value.
2. method according to claim 1, it is characterised in that be updated successfully in the reception wallpaper and disappear
Before breath, also include:
Obtain number of screen N of desktopOWith the original image of target desktop wallpaper;
According to number of screen NOWith the resolution of the original image, according to default image scaling method is become
Enter line translation to the original image, obtain the target desktop wallpaper, wherein, the target desktop wallpaper
Width be not more than number of screen NOIndividual screen correspondence image width sum, the target desktop wallpaper
Highly it is equal to screen correspondence image height.
3. method according to claim 2, it is characterised in that methods described also includes:
Receive desktop screen adjust instruction;
According to the desktop screen adjust instruction, it is determined that adjustment after the desktop number of screen NA;
According to number of screen NAWith the resolution of the original image, the target desktop wallpaper is updated,
Wherein, the width of the target desktop wallpaper is not more than number of screen N after renewalAIndividual screen correspondence image
Width sum, the height of the target desktop wallpaper is equal to screen correspondence image height after adjustment.
4. the method according to any one of claim 1-3, it is characterised in that methods described also includes:
Desktop screen return instruction is received, wherein, desktop screen is carried in the desktop screen return instruction and is returned
Return operation mark;
Operation mark is returned according to the desktop screen carried in the desktop screen return instruction and determines table to be returned
Face screen;
The resolution of order and the target desktop wallpaper according to the screen to be returned in desktop screen
Rate, determines first wallpaper region corresponding with the screen to be returned in the target desktop wallpaper;
With the first wallpaper region as background, show the screen to be returned.
5. method according to claim 4, it is characterised in that methods described also includes:
Receive the desktop screen switching command for be switched screen;
According to the current state of the target desktop wallpaper, determine to be cut with described in the target desktop wallpaper
Change the corresponding second wallpaper region of screen;
With the second wallpaper region as background, show the to be switched screen.
6. a kind of desktop wallpaper sliding mode change device, it is characterised in that described device includes:
New information receiver module, for receiving wallpaper message is updated successfully, wherein, the wallpaper is updated to
Work(message, successfully current desktop wallpaper is updated to into target desktop wallpaper for representing;
Wallpaper state setting module, for monitoring current desktop wallpaper the target desktop wallpaper has been updated to
Duration T, and the state of the target desktop wallpaper is set for can not sliding mode;
Wallpaper Status Change module, for monitoring that the duration T reaches the situation of default duration threshold value
Under, the state for changing the target desktop wallpaper is slidably state, wherein, wherein, when described default
Long threshold value is:Permission determines to be switched in the target desktop wallpaper according to desktop wallpaper region switching command
The minimum value of the duration T in desktop wallpaper region.
7. device according to claim 6, it is characterised in that described device also includes:
Information acquisition module, for receiving before wallpaper is updated successfully message in the new information receiver module,
Obtain number of screen N of desktopOWith the original image of target desktop wallpaper;
Wallpaper obtains module, for according to number of screen NOWith the resolution of the original image, according to
Default image becomes scaling method and enters line translation to the original image, obtains the target desktop wallpaper, wherein,
The width of the target desktop wallpaper is not more than number of screen NOIndividual screen correspondence image width sum, institute
The height for stating target desktop wallpaper is equal to screen correspondence image height.
8. device according to claim 7, it is characterised in that described device also includes:
Screen adjust instruction receiver module, for receiving desktop screen adjust instruction;
Number of screen determining module, for according to the desktop screen adjust instruction, it is determined that the table after adjustment
Number of screen N in faceA;
Wallpaper update module, for according to number of screen NAWith the resolution of the original image, update
The target desktop wallpaper, wherein, the width of the target desktop wallpaper is not more than the screen number after renewal
Amount NAIndividual screen correspondence image width sum, the height of the target desktop wallpaper is equal to screen correspondence after adjustment
Picture altitude.
9. the device according to any one of claim 6-8, it is characterised in that described device also includes:
Screen return instruction receiver module, for receiving desktop screen return instruction, wherein, the desktop screen
Desktop screen is carried in curtain return instruction return operation mark;
Screen determining module is returned, for returning according to the desktop screen carried in the desktop screen return instruction
Return operation mark and determine desktop screen to be returned;
First wallpaper area determination module, for the order according to the screen to be returned in desktop screen with
And the resolution of the target desktop wallpaper, determine in the target desktop wallpaper with the screen pair to be returned
The the first wallpaper region answered;
Screen shows module is returned, for the first wallpaper region as background, showing the screen to be returned
Curtain.
10. device according to claim 9, it is characterised in that described device also includes:
Screens switch command reception module, for receiving the desktop screen switching command for be switched screen;
Second wallpaper area determination module, for according to the current state of the target desktop wallpaper, determining institute
State the second wallpaper region corresponding with the to be switched screen in target desktop wallpaper;
Toggle screen display module, for the second wallpaper region as background, showing the to be switched screen
Curtain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510672922.1A CN106598414B (en) | 2015-10-16 | 2015-10-16 | Desktop wallpaper sliding state changing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510672922.1A CN106598414B (en) | 2015-10-16 | 2015-10-16 | Desktop wallpaper sliding state changing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598414A true CN106598414A (en) | 2017-04-26 |
CN106598414B CN106598414B (en) | 2019-12-13 |
Family
ID=58553915
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510672922.1A Expired - Fee Related CN106598414B (en) | 2015-10-16 | 2015-10-16 | Desktop wallpaper sliding state changing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598414B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069310A (en) * | 2019-04-23 | 2019-07-30 | 北京小米移动软件有限公司 | Switch the method, apparatus and storage medium of desktop wallpaper |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101385318A (en) * | 2006-02-17 | 2009-03-11 | 高通股份有限公司 | Dynamic wallpaper on mobile communication device |
CN103731891A (en) * | 2013-12-27 | 2014-04-16 | 上海华为技术有限公司 | Control method and device |
US20140364104A1 (en) * | 2013-06-09 | 2014-12-11 | Apple Inc. | Push Notification Initiated Background Updates |
-
2015
- 2015-10-16 CN CN201510672922.1A patent/CN106598414B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101385318A (en) * | 2006-02-17 | 2009-03-11 | 高通股份有限公司 | Dynamic wallpaper on mobile communication device |
US20140364104A1 (en) * | 2013-06-09 | 2014-12-11 | Apple Inc. | Push Notification Initiated Background Updates |
CN103731891A (en) * | 2013-12-27 | 2014-04-16 | 上海华为技术有限公司 | Control method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069310A (en) * | 2019-04-23 | 2019-07-30 | 北京小米移动软件有限公司 | Switch the method, apparatus and storage medium of desktop wallpaper |
CN110069310B (en) * | 2019-04-23 | 2022-04-22 | 北京小米移动软件有限公司 | Method and device for switching desktop wallpaper and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106598414B (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201219B (en) | The quick call method of function of application and system | |
CN105867815A (en) | Split screen display method and device | |
CN102999358A (en) | Intelligent program starting method | |
CN102799358A (en) | Method and device for determining display position of cursor | |
CN103577079B (en) | The method interacted with the application and electronic equipment are realized in electronic equipment | |
CN104991696B (en) | A kind of information processing method and electronic equipment | |
CN104932777B (en) | A kind of sort method and device of application icon | |
CN105487747A (en) | Information display method and device and electronic equipment | |
CN105528141A (en) | Icon management method and terminal | |
CN106293473A (en) | Page display method and device | |
CN106708533A (en) | Method for switching application programs and mobile terminal | |
CN105867902A (en) | Sharing method and device of multimedia information | |
CN103809853A (en) | Information processing method and electronic device | |
CN103558979A (en) | Operation interface display method and terminal | |
CN105824693A (en) | Control method for multitask display and mobile terminal | |
CN103336657A (en) | Screen unlock method and communication terminal | |
CN107277581B (en) | Video playing method and device and mobile terminal | |
CN104375759B (en) | A kind of information processing method and electronic equipment | |
CN106020695A (en) | Display method for desktop icons and mobile terminal | |
CN108259660A (en) | A kind of information cuing method and device, terminal, readable storage medium storing program for executing | |
CN105005440A (en) | Mobile terminal display interface scroll bar switching method and apparatus and terminal | |
CN104598023B (en) | A kind of method and device by gesture identification select file | |
CN106598414A (en) | Desktop wallpaper sliding state changing method and device | |
CN105446597A (en) | Presentation method and present apparatus for function description information of application, and terminal | |
CN106802732A (en) | Object selection method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191213 |
|
CF01 | Termination of patent right due to non-payment of annual fee |