CN105808230A - Method and device for moving suspension icon - Google Patents

Method and device for moving suspension icon Download PDF

Info

Publication number
CN105808230A
CN105808230A CN201410856580.4A CN201410856580A CN105808230A CN 105808230 A CN105808230 A CN 105808230A CN 201410856580 A CN201410856580 A CN 201410856580A CN 105808230 A CN105808230 A CN 105808230A
Authority
CN
China
Prior art keywords
suspension icon
current page
color
icon
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410856580.4A
Other languages
Chinese (zh)
Other versions
CN105808230B (en
Inventor
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201410856580.4A priority Critical patent/CN105808230B/en
Publication of CN105808230A publication Critical patent/CN105808230A/en
Application granted granted Critical
Publication of CN105808230B publication Critical patent/CN105808230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for moving a suspension icon. The method comprises the following steps of obtaining the position of the suspension icon according to image data of a former page; obtaining an idle position of the current page according to the image data of the current page; and judging whether the position, corresponding to the suspension icon, of the current page is the idle position or not, if so, keeping the position of the suspension icon unchanged, and if not, moving the suspension icon to the idle position. The invention also discloses a device for moving the suspension icon. The method and the device have the advantages that the suspension icon can be automatically moved to the idle position, so that the use time of a user is saved; the operation by the user is convenient; the user experience is enhanced; and the satisfaction degree of the user is improved.

Description

The method and apparatus of mobile suspension icon
Technical field
The present invention relates to communication field, the method and apparatus particularly relating to mobile suspension icon.
Background technology
nullDevelopment along with pattern manipulation interface,Electronic equipment uses the mode of touch-control icon to greatly facilitate user operation,For convenient operation,Certain operations interface is provided with suspension icon,To provide shortcut more easily,But electronic equipment is when page layout switch,Invariant position due to suspension icon,To such an extent as to suspension icon is when occurring,Block application icon,Owing to suspension icon itself has blocked application icon,If user to go the function of operation application icon,Need to go to drag shortcut icon extremely without the clear position of application icon with hands,?,Along with user's constantly downloading and updating Application Software Program,The quantity of application icon is increased sharply,The application icon of such as some users reaches ten pages,If user often moves one page page,It is required for dragging the words of suspension icon several times,Waste of time certainly will be caused,And cause user to use inconvenience,The experience causing user is poor.How to solve suspension icon when page layout switch, block application icon, thus the time waste caused and user use inconvenience, be a problem demanding prompt solution.
Summary of the invention
A kind of method and apparatus moving suspension icon of offer is provided, solves suspension icon when page layout switch, block application icon, thus the time waste caused and the awkward problem of user.
For achieving the above object, the invention provides a kind of mobile suspension figure calibration method, described mobile suspension figure calibration method comprises the following steps:
A, view data according to the previous page, obtain the position of suspension icon;
B, view data according to current page, obtain the clear position of current page;
Whether C, the position corresponding with described suspension icon judging described current page are clear positions, if so, will keep the invariant position of described suspension icon;If it is not, then described suspension icon is moved to described clear position.
Preferably, in described step B:
Obtain the color average of solid color of the pixel of current page as page color meansigma methods;
According to the size of suspension icon, current page is divided into several equivalent blocks;
Obtain the color average of solid color of the pixel of each equivalent block as block color average;
Block color average according to each block and the difference of page color meansigma methods determine whether this block is idle block.
Preferably, in described step C:
View data according to current page, obtains the solid color meansigma methods of the pixel of the position corresponding with described suspension icon of current page;
The solid color threshold value of the pixel of the solid color meansigma methods of the pixel according to described suspension icon and default suspension icon, it is determined that whether the position corresponding with described suspension icon of current page is clear position.
Preferably, in described step C:
If the position corresponding with described suspension icon of current page is clear position and described current page is all clear position, then described suspension icon is moved to the middle position of described screen.
Preferably, in described step C:
If described current page is absent from clear position, then keep described suspension picture mark position constant.
In order to solve above-mentioned technical problem, the present invention further provides a kind of device moving suspension icon, the device of described mobile suspension icon includes:
Suspension icon acquisition module, for the view data according to the previous page, obtains the position of suspension icon;
Clear position acquisition module, for the view data according to current page, obtains the clear position of current page;
Whether mobile module, be clear position for judging the position corresponding with described suspension icon of described current page;If so, by keeping the invariant position of described suspension icon, if it is not, then described suspension icon is moved to described clear position.
Preferably, described clear position acquisition module includes:
First acquiring unit, is used for the color average obtaining the solid color of the pixel of current page as page color meansigma methods;
Division unit, is used for the size according to suspension icon and current page is divided into several equivalent blocks;
Second acquisition unit, obtains the color average of solid color of the pixel of each equivalent block as block color average;
First determines unit, determines whether this block is idle block according to the difference of the block color average of each block Yu page color meansigma methods.
Preferably, described judge module, including:
3rd acquiring unit, for the view data according to current page, obtains the solid color meansigma methods of the pixel of the position corresponding with described suspension icon of current page;
Second determines unit, the solid color threshold value according to the solid color meansigma methods of the pixel of described suspension icon and the pixel of default suspension icon, it is determined that whether the position corresponding with described suspension icon of current page is clear position.
Preferably, described mobile module, if the position corresponding with described suspension icon being additionally operable to current page is clear position and described current page is all clear position, then described suspension icon is moved to the middle position of described screen.
Preferably, described mobile module, if being additionally operable to described current page to be absent from clear position, then keep described suspension picture mark position constant.
A kind of mobile suspension figure calibration method provided by the invention, the view data according to the previous page, obtain the position of suspension icon;View data according to current page, obtains the clear position of current page;Whether the position corresponding with described suspension icon judging described current page is clear position, if so, by keeping the invariant position of described suspension icon, if it is not, then move described suspension icon to described clear position.The present invention, by automatically moving suspension icon to clear position, uses time, user-friendly, enhancing Consumer's Experience thus saving user and promotes user satisfaction.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention moves suspension figure calibration method first embodiment;
Fig. 2 is the refinement schematic flow sheet of step B in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of step C in Fig. 1;
Fig. 4 is the high-level schematic functional block diagram that the present invention moves device one embodiment of suspension icon;
Fig. 5 is the high-level schematic functional block diagram of clear position acquisition module described in Fig. 4;
Fig. 6 is the high-level schematic functional block diagram of judge module described in Fig. 4.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of mobile suspension figure calibration method, is the schematic flow sheet that the present invention moves suspension figure calibration method first embodiment with reference to Fig. 1, Fig. 1, in the first embodiment, described mobile suspension figure calibration method, comprise the following steps:
Step S100, A, view data according to the previous page, obtain the position of suspension icon.
The device of mobile suspension icon is according to lower one page instruction of sliding, when page layout switch, intercept the view data of the previous page, and the view data according to the previous page, obtain the position of suspension icon, the position of suspension icon refers to the region that suspension icon acquiescence stops, such as: the coordinate on four summits of previous page suspension icon ABCD is A (0,1), B (0,2), C (1,2), D (1,1), after switching the position of the suspension icon of current page still protect put constant, acquiescence rest on same coordinate.
Step S200, view data according to current page, obtain the clear position of current page.
The device of the mobile suspension icon view data according to current page, by the clear position of the position of the application icon of image data acquisition current page and screen.The device such as moving suspension icon adopts the color average algorithm of suspension icon, calculates the single pixel average characteristics of suspension icon, obtains current page with or without application icon and clear position.
Whether step S300, the position corresponding with described suspension icon judging described current page are clear positions, if so, will keep the invariant position of described suspension icon;If it is not, then described suspension icon is moved to described clear position.
The clear position of the device of the mobile suspension icon position according to the suspension icon obtained and current page, whether the position corresponding with described suspension icon judging described current page is clear position, if, then illustrate that suspension icon is positioned at the clear position of current screen, keeps the invariant position of described suspension icon;If it is not, then illustrate that application icon is suspended icon and blocks, suspension icon is moved the clear position of current screen.Specifically, if the position corresponding with described suspension icon of current page is clear position and described current page is all clear position, then described suspension icon is moved to the middle position of described screen.Such as, if current page does not have any application icon when detecting, suspension icon is moved to middle position (i.e. half in X-direction, the position of half in Y direction), if the window size of screen is 800x600, so the coordinate of the middle position of screen should be (400,300), when the device of mobile suspension icon is absent from application icon by calculating current page, suspension icon is moved to coordinate (400,300) place, is shown centered on.Specifically, if described current page is absent from clear position, then keep described suspension picture mark position constant.Such as passing through to calculate current page and be absent from clear position, be then covered with application icon in account for screen, suspension icon does not have clear position to place, now, no matter how to move suspension icon, also can block application icon, then keep suspension picture mark position constant.
The mobile suspension figure calibration method that the present embodiment provides, by automatically moving suspension icon to clear position, uses time, user-friendly, enhancing Consumer's Experience thus saving user and promotes user satisfaction.
As in figure 2 it is shown, the refinement schematic flow sheet that Fig. 2 is step S200 in Fig. 1, the mobile suspension figure calibration method that the present embodiment provides, described step S200 includes:
Step S210, obtain the color average of solid color of pixel of current page as page color meansigma methods.
The device of mobile suspension icon color average algorithm P (R) according to screen, obtain the color average of solid color of current page pixel, and using the color average of the solid color of the pixel of current page that obtains as page color meansigma methods.The such as view data according to current page, adopts color average algorithm P (R) of screen to obtain the feature of current page, the color characteristics of this feature performance current page.
Specifically, read the size of the resolution of current page, at horizontal direction and the vertical direction arrangement pixel of current page, such as: adopt color average algorithm P (R) of screen, the red color average of the final pixel obtaining current page.
Color average algorithm P (R) of screen:
Horizontal direction:
PDstar (x) starting position: 0, PDend (x) end position 100.
Vertical direction:
PZstar (y) starting position: 0, PZend (y) end position 100.
By the color average algorithm of screen, obtain the average size of three primary colors R, G, the B pixel of the reference of current page, such as: the device of mobile suspension icon gets the color average of the red pixel of current page.
{ P ( R ) = ( &Sigma; x = PDstar x = PDend R ( x ) * &Sigma; y = PZstar y = PZend R ( y ) ) / ( PDend * PZend ) , 0 < x < PDend , 0 < y < PZend }
Wherein, R (x1)=128, R (x2)=128, R (x) represents the red color data of each row of pixel of current page in the horizontal direction.
The red color value summation of pixel in all horizontal directions, the size of summation takes
Certainly in PDend, for instance:
PDend = 100 , &Sigma; x = PDstar x = PDend R ( x ) = R ( x 1 ) + R ( x 2 ) + . . . + R ( x 100 ) = 12800 .
The device of mobile suspension icon gets the red color value summation of the pixel of current page:
P (y1)=1, P (y2)=2, P (yn) represents the red color value summation that on the vertical direction of current page, the pixel of current page respectively arranges.
The red colour summation of all vertical direction pixels, the size of summation depends on
PZend, for instance:
PZend = 100 , &Sigma; y = PZstar y = PZend R ( y ) = R ( y 1 ) + R ( y 2 ) + . . . + R ( y 100 ) = 100 .
PDend*PZend: represent that current page has how many pixel summations altogether.Such as: KDend=100 in horizontal direction, KZend=100 on vertical direction.
Color average algorithm P (R) of screen: the color average of the final whole red pixel obtaining current page, thus providing Rule of judgment for automatically moving suspension icon, such as: the device of mobile suspension icon needs to find clear position, when the color average of the pixel of the current page calculated is similar to the reference threshold preset, current suspension icon is just moved to clear position by the device of mobile suspension icon.
Step S220, according to the size of suspension icon current page is divided into several equivalent blocks.
Current page equivalent is divided into multiple region according to the size of described suspension icon by the device of mobile suspension icon, such as: suspension icon be sized to 800x600, be divided into 10 pockets, then regional be sized to 80x60.
Step S230, obtain the color average of solid color of the pixel of each equivalent block as block color average.
The device of mobile suspension icon travels through one by one, obtains the color average of the solid color of the pixel of each equivalent block divided, and using the color average of the solid color of the pixel of each equivalent block as block color average.
Step S240, determine according to the block color average of each block and the difference of page color meansigma methods whether this block is idle block.
The block color average of each block is done difference process respectively by the device of mobile suspension icon with page color meansigma methods, the difference of the page color meansigma methods of the current page calculated with the block color average of each block is compared with the pixel threshold preset, if the difference of the block color average of the color average of current page and each block is less than default pixel value, then the region of current page is absent from application icon, and explanation is clear position;If the difference of the color average in the color average of screen and region is more than default pixel value, then there is idle block in this region.
As it is shown on figure 3, the refinement schematic flow sheet that Fig. 3 is step S300 in Fig. 1, the mobile suspension figure calibration method that the present embodiment provides, described step S300 includes:
Step S310, view data according to current page, obtain the solid color meansigma methods of the pixel of the position corresponding with described suspension icon of current page.
The device of the mobile suspension icon view data according to described current page, average color algorithm K (R) of employing suspension icon obtains the feature of the position corresponding with described suspension icon of current page, the color characteristics of this feature performance suspension icon.Specifically, read the size of the resolution of the position corresponding with described suspension icon of current page, the horizontal direction of the position corresponding with described suspension icon of current page and vertical direction are arranged pixel, such as: adopt color average algorithm K (R) of suspension icon, the meansigma methods of the color value of the red color of the pixel of the final position corresponding with described suspension icon obtaining current page.
Color average algorithm K (R) of suspension icon:
Horizontal direction:
KDstar (x) starting position: 0, KDend (x) end position 100,
Vertical direction:
KZstar (y) starting position: 0, KZend (y) end position 100,
Obtain the color average algorithm of suspension icon, three primary colors R for the color gamut acquisition reference of suspension icon, G, the average size of B pixel, such as: the device of mobile suspension icon gets the meansigma methods of the color value of the red color of the pixel of the position corresponding with described suspension icon of current page.
{ K ( R ) = ( &Sigma; x = KDstar x = KDend R ( x ) * &Sigma; y = KZstar y = KZend R ( y ) ) / ( KDend * KZend ) , 0 < x < KDend , 0 < y < KZend }
Wherein, R (x1)=128, R (x2)=128, R (x) represents the summation of the red color data of each row of pixel of current page in the horizontal direction.
Represent the summation of the red color value of pixel in all horizontal directions, summation
Size depends on KDend, for instance:
KDend = 100 , &Sigma; x = KDstar x = KDend R ( x ) = R ( x 1 ) + R ( x 2 ) + . . . + R ( x 100 ) = 12800 .
The device of mobile suspension icon gets the summation of the red color value that the pixel of the position corresponding with described suspension icon of current page respectively arranges:
R (y1)=1, R (y2)=2, R (yn) represents the red color value summation that the pixel of the position corresponding with described suspension icon of in the vertical direction current page respectively arranges.
Representing the summation of the red color value of the pixel of the position corresponding with described suspension icon of current page on all vertical directions, the size of summation depends on KZend, for instance:
KZend = 100 , &Sigma; y = KZstar y = KZend R ( y ) = R ( y 1 ) + R ( y 2 ) + . . . + R ( y 100 ) = 100 .
KDend*KZend: represent the red color value summation of the pixel of the position corresponding with described suspension icon of current page.Such as: KDend=100 in horizontal direction, KZend=100 on vertical direction.
Color average algorithm K (R) of suspension icon: the final color average obtaining the whole red pixel of suspension icon, thus providing decision condition for automatically moving suspension icon, such as: when the device of mobile suspension icon reads pixel K (R) of shortcut icon, read this pixel region blocked, if clear area, current suspension icon need not move.
Step S320, solid color threshold value according to the solid color meansigma methods of the pixel of described suspension icon and the pixel of default suspension icon, it is determined that whether the position corresponding with described suspension icon of current page is clear position.
The color average of the suspension icon calculated is compared by the device of mobile suspension icon with the suspension icon pixel value preset, the solid color threshold value of the pixel of the suspension icon such as preset is 10, thus arranging decision condition for automatically moving of suspension icon.If the device of mobile suspension icon determines the color average solid color threshold value less than or equal to the pixel of default suspension icon of the suspension icon calculated, then the position corresponding with described suspension icon of current page is clear position;If the device of mobile suspension icon determines the color average solid color threshold value more than the pixel of default suspension icon of the suspension icon calculated, then the position corresponding with described suspension icon of current page is not clear position.
As described in Figure 4, Fig. 4 is the high-level schematic functional block diagram that the present invention moves device one embodiment of suspension icon, and in the first embodiment, the device of described mobile suspension icon includes:
Suspension icon acquisition module 10, for the view data according to the previous page, obtains the position of suspension icon;
Clear position acquisition module 20, for the view data according to current page, obtains the clear position of current page;
Whether mobile module 30, be clear position for judging the position corresponding with described suspension icon of described current page, if so, will keep the invariant position of described suspension icon;If it is not, then described suspension icon is moved to described clear position.
The suspension icon acquisition module 10 of the device of mobile suspension icon is according to lower one page instruction of sliding, when page layout switch, intercept the view data of the previous page, and the view data according to the previous page, obtain the position of suspension icon, the position of suspension icon refers to the region that suspension icon acquiescence stops, such as: the coordinate on four summits of previous page suspension icon ABCD is A (0,1), B (0,2), C (1,2), D (1,1), after switching the position of the suspension icon of current page still protect put constant, acquiescence rest on same coordinate.
The clear position acquisition module 20 of the device of the mobile suspension icon view data according to current page, by the clear position of the position of the application icon of image data acquisition current page and screen.The device such as moving suspension icon adopts the color average algorithm of suspension icon, calculates the single pixel average characteristics of suspension icon, obtains current page with or without application icon and clear position.
The clear position of the mobile module 30 of the device of the mobile suspension icon position according to the suspension icon obtained and current page, whether the position corresponding with described suspension icon judging described current page is clear position, if, then illustrate that suspension icon is positioned at the clear position of current screen, keeps the invariant position of described suspension icon;If it is not, then illustrate that application icon is suspended icon and blocks, suspension icon is moved the clear position of current screen.Specifically, if the position corresponding with described suspension icon of current page is clear position and described current page is all clear position, then described suspension icon is moved to the middle position of described screen.Such as, if current page does not have any application icon when detecting, suspension icon is moved to middle position (i.e. half in X-direction, the position of half in Y direction), if the window size of screen is 800x600, so the coordinate of the middle position of screen should be (400,300), when the device of mobile suspension icon is absent from application icon by calculating current page, suspension icon is moved to coordinate (400,300) place, is shown centered on.Specifically, if described current page is absent from clear position, then keep described suspension picture mark position constant.Such as passing through to calculate current page and be absent from clear position, be then covered with application icon in account for screen, suspension icon does not have clear position to place, now, no matter how to move suspension icon, also can block application icon, then keep suspension picture mark position constant.
The device of the mobile suspension icon that the present embodiment provides, by automatically moving suspension icon to clear position, uses time, user-friendly, enhancing Consumer's Experience thus saving user and promotes user satisfaction.
As described in Figure 5, Fig. 5 is the high-level schematic functional block diagram of suspension icon acquisition module described in Fig. 4, the device of the mobile suspension icon that the present embodiment provides, and described clear position acquisition module 20 includes:
First acquiring unit 21, is used for the color average obtaining the solid color of the pixel of current page as page color meansigma methods;
Division unit 22, is used for the size according to suspension icon and current page is divided into several equivalent blocks;
Second acquisition unit 23, obtains the color average of solid color of the pixel of each equivalent block as block color average;
First determines unit 24, determines whether this block is idle block according to the difference of the block color average of each block Yu page color meansigma methods.
First acquiring unit 21 of the device of mobile suspension icon color average algorithm P (R) according to screen, obtain the color average of solid color of current page pixel, and using the color average of the solid color of the pixel of current page that obtains as page color meansigma methods.The such as view data according to current page, adopts color average algorithm P (R) of screen to obtain the feature of current page, the color characteristics of this feature performance current page.
Specifically, read the size of the resolution of current page, at horizontal direction and the vertical direction arrangement pixel of current page, such as: adopt color average algorithm P (R) of screen, the red color average of the final pixel obtaining current page.
Color average algorithm P (R) of screen:
Horizontal direction:
PDstar (x) starting position: 0, PDend (x) end position 100.
Vertical direction:
PZstar (y) starting position: 0, PZend (y) end position 100.
By the color average algorithm of screen, obtain the average size of three primary colors R, G, the B pixel of the reference of current page, such as: the device of mobile suspension icon gets the color average of the red pixel of current page.
{ P ( R ) = ( &Sigma; x = PDstar x = PDend R ( x ) * &Sigma; y = PZstar y = PZend R ( y ) ) / ( PDend * PZend ) , 0 < x < PDend , 0 < y < PZend }
Wherein, R (x1)=128, R (x2)=128, R (x) represents the red color data of each row of pixel of current page in the horizontal direction.
The red color value summation of pixel in all horizontal directions, the size of summation depends on PDend, for instance:
PDend = 100 , &Sigma; x = PDstar x = PDend R ( x ) = R ( x 1 ) + R ( x 2 ) + . . . + R ( x 100 ) = 12800 .
The device of mobile suspension icon gets the red color value summation of the pixel of current page:
P (y1)=1, P (y2)=2, P (yn) represents the red color value summation that on the vertical direction of current page, the pixel of current page respectively arranges.
The red colour summation of all vertical direction pixels, the size of summation depends on
PZend, for instance:
PZend = 100 , &Sigma; y = PZstar y = PZend R ( y ) = R ( y 1 ) + R ( y 2 ) + . . . + R ( y 100 ) = 100 .
PDend*PZend: represent that current page has how many pixel summations altogether.Such as: KDend=100 in horizontal direction, KZend=100 on vertical direction.
Color average algorithm P (R) of screen: the color average of the final whole red pixel obtaining current page, thus providing Rule of judgment for automatically moving suspension icon, such as: the device of mobile suspension icon needs to find clear position, when the color average of the pixel of the current page calculated is similar to the reference threshold preset, current suspension icon is just moved to clear position by the device of mobile suspension icon.
Step S220, according to the size of suspension icon current page is divided into several equivalent blocks.
Current page equivalent is divided into multiple region according to the size of described suspension icon by the device of mobile suspension icon, such as: suspension icon be sized to 800x600, be divided into 10 pockets, then regional be sized to 80x60.
Current page equivalent is divided into multiple region according to the size of described suspension icon by the division unit 22 of the device of mobile suspension icon, such as: suspension icon be sized to 800x600, be divided into 10 pockets, then regional be sized to 80x60.
The second acquisition unit 23 of the device of mobile suspension icon travels through one by one, obtain the color average of solid color of the pixel of each equivalent block divided, and using the color average of the solid color of the pixel of each equivalent block as block color average.
The first of the device of mobile suspension icon determines that the block color average of each block is done difference process respectively by unit 24 with page color meansigma methods, the difference of the page color meansigma methods of the current page calculated with the block color average of each block is compared with the pixel threshold preset, if the difference of the block color average of the color average of current page and each block is less than default pixel value, then the region of current page is absent from application icon, and explanation is clear position;If the difference of the color average in the color average of screen and region is more than default pixel value, then there is idle block in this region.
As described in Figure 6, Fig. 6 is the high-level schematic functional block diagram of judge module described in Fig. 4, the device of the mobile suspension icon that the present embodiment provides, and described judge module 30 includes:
3rd acquiring unit 31, for the view data according to current page, obtains the solid color meansigma methods of the pixel of the position corresponding with described suspension icon of current page;
Second determines unit 32, the solid color threshold value according to the solid color meansigma methods of the pixel of described suspension icon and the pixel of default suspension icon, it is determined that whether the position corresponding with described suspension icon of current page is clear position.
3rd acquiring unit 31 of the device of the mobile suspension icon view data according to described current page, average color algorithm K (R) adopting suspension icon obtains the feature of the position corresponding with described suspension icon of current page, the color characteristics of this feature performance suspension icon.Specifically, read the size of the resolution of the position corresponding with described suspension icon of current page, the horizontal direction of the position corresponding with described suspension icon of current page and vertical direction are arranged pixel, such as: adopt color average algorithm K (R) of suspension icon, the meansigma methods of the color value of the red color of the pixel of the final position corresponding with described suspension icon obtaining current page.
Color average algorithm K (R) of suspension icon:
Horizontal direction:
KDstar (x) starting position: 0, KDend (x) end position 100,
Vertical direction:
KZstar (y) starting position: 0, KZend (y) end position 100,
Obtain the color average algorithm of suspension icon, three primary colors R for the color gamut acquisition reference of suspension icon, G, the average size of B pixel, such as: the device of mobile suspension icon gets the meansigma methods of the color value of the red color of the pixel of the position corresponding with described suspension icon of current page.
{ K ( R ) = ( &Sigma; x = KDstar x = KDend R ( x ) * &Sigma; y = KZstar y = KZend R ( y ) ) / ( KDend * KZend ) , 0 < x < KDend , 0 < y < KZend }
Wherein, R (x1)=128, R (x2)=128, R (x) represents the summation of the red color data of each row of pixel of current page in the horizontal direction.
Represent the summation of the red color value of pixel in all horizontal directions, summation
Size depends on KDend, for instance:
KDend = 100 , &Sigma; x = KDstar x = KDend R ( x ) = R ( x 1 ) + R ( x 2 ) + . . . + R ( x 100 ) = 12800 .
The device of mobile suspension icon gets the summation of the red color value that the pixel of the position corresponding with described suspension icon of current page respectively arranges:
R (y1)=1, R (y2)=2, R (yn) represents the red color value summation that the pixel of the position corresponding with described suspension icon of in the vertical direction current page respectively arranges.
Representing the summation of the red color value of the pixel of the position corresponding with described suspension icon of current page on all vertical directions, the size of summation depends on KZend, for instance:
KZend = 100 , &Sigma; y = KZstar y = KZend R ( y ) = R ( y 1 ) + R ( y 2 ) + . . . + R ( y 100 ) = 100 .
KDend*KZend: represent the red color value summation of the pixel of the position corresponding with described suspension icon of current page.Such as: KDend=100 in horizontal direction, KZend=100 on vertical direction.
Color average algorithm K (R) of suspension icon: the final color average obtaining the whole red pixel of suspension icon, thus providing decision condition for automatically moving suspension icon, such as: when the device of mobile suspension icon reads pixel K (R) of shortcut icon, read this pixel region blocked, if clear area, current suspension icon need not move.
The second of the device of mobile suspension icon determines that the color average of the suspension icon calculated is compared by unit 32 with the suspension icon pixel value preset, the solid color threshold value of the pixel of the suspension icon such as preset is 10, thus arranging decision condition for automatically moving of suspension icon.If the device of mobile suspension icon determines the color average solid color threshold value less than or equal to the pixel of default suspension icon of the suspension icon calculated, then the position corresponding with described suspension icon of current page is clear position;If the device of mobile suspension icon determines the color average solid color threshold value more than the pixel of default suspension icon of the suspension icon calculated, then the position corresponding with described suspension icon of current page is not clear position.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (10)

1. a mobile suspension figure calibration method, it is characterised in that comprise the following steps:
A, view data according to the previous page, obtain the position of suspension icon;
B, view data according to current page, obtain the clear position of current page;
Whether C, the position corresponding with described suspension icon judging described current page are clear positions, if so, will keep the invariant position of described suspension icon;If it is not, then described suspension icon is moved to described clear position.
2. mobile suspension figure calibration method as claimed in claim 1, it is characterised in that in described step B:
Obtain the color average of solid color of the pixel of current page as page color meansigma methods;
According to the size of suspension icon, current page is divided into several equivalent blocks;
Obtain the color average of solid color of the pixel of each equivalent block as block color average;
Block color average according to each block and the difference of page color meansigma methods determine whether this block is idle block.
3. mobile suspension figure calibration method as claimed in claim 1 or 2, it is characterised in that in described step C:
View data according to current page, obtains the solid color meansigma methods of the pixel of the position corresponding with described suspension icon of current page;
The solid color threshold value of the pixel of the solid color meansigma methods of the pixel according to described suspension icon and default suspension icon, it is determined that whether the position corresponding with described suspension icon of current page is clear position.
4. mobile suspension figure calibration method as claimed in claim 1 or 2, it is characterised in that in described step C:
If the position corresponding with described suspension icon of current page is clear position and described current page is all clear position, then described suspension icon is moved to the middle position of described screen.
5. mobile suspension figure calibration method as claimed in claim 1 or 2, it is characterised in that in described step C:
If described current page is absent from clear position, then keep described suspension picture mark position constant.
6. the device moving suspension icon, it is characterised in that the device of described mobile suspension icon includes:
Suspension icon acquisition module, for the view data according to the previous page, obtains the position of suspension icon;
Clear position acquisition module, for the view data according to current page, obtains the clear position of current page;
Whether mobile module, be clear position for judging the position corresponding with described suspension icon of described current page, if so, will keep the invariant position of described suspension icon;If it is not, then described suspension icon is moved to described clear position.
7. the device of mobile suspension icon as claimed in claim 6, it is characterised in that described clear position acquisition module includes:
First acquiring unit, is used for the color average obtaining the solid color of the pixel of current page as page color meansigma methods;
Division unit, is used for the size according to suspension icon and current page is divided into several equivalent blocks;
Second acquisition unit, obtains the color average of solid color of the pixel of each equivalent block as block color average;
First determines unit, determines whether this block is idle block according to the difference of the block color average of each block Yu page color meansigma methods.
8. the device of mobile suspension icon as claimed in claims 6 or 7, it is characterised in that described judge module, including:
3rd acquiring unit, for the view data according to current page, obtains the solid color meansigma methods of the pixel of the position corresponding with described suspension icon of current page;
Second determines unit, the solid color threshold value according to the solid color meansigma methods of the pixel of described suspension icon and the pixel of default suspension icon, it is determined that whether the position corresponding with described suspension icon of current page is clear position.
9. the device of mobile suspension icon as claimed in claims 6 or 7, it is characterized in that, described mobile module, if the position corresponding with described suspension icon being additionally operable to current page is clear position and described current page is all clear position, then described suspension icon is moved to the middle position of described screen.
10. the device of mobile suspension icon as claimed in claims 6 or 7, it is characterised in that described mobile module, if being additionally operable to described current page to be absent from clear position, then keeps described suspension picture mark position constant.
CN201410856580.4A 2014-12-31 2014-12-31 The method and apparatus of mobile suspension icon Active CN105808230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410856580.4A CN105808230B (en) 2014-12-31 2014-12-31 The method and apparatus of mobile suspension icon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410856580.4A CN105808230B (en) 2014-12-31 2014-12-31 The method and apparatus of mobile suspension icon

Publications (2)

Publication Number Publication Date
CN105808230A true CN105808230A (en) 2016-07-27
CN105808230B CN105808230B (en) 2019-09-06

Family

ID=56465392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410856580.4A Active CN105808230B (en) 2014-12-31 2014-12-31 The method and apparatus of mobile suspension icon

Country Status (1)

Country Link
CN (1) CN105808230B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873855A (en) * 2017-02-15 2017-06-20 努比亚技术有限公司 A kind of suspension icon control method, device and terminal
CN107291356A (en) * 2017-08-03 2017-10-24 北京达佳互联信息技术有限公司 file transmission display control method, device and corresponding terminal
CN108304135A (en) * 2018-02-08 2018-07-20 上海爱优威软件开发有限公司 A kind of method of adjustment and terminal of virtual modifier key
CN108449490A (en) * 2018-02-11 2018-08-24 维沃移动通信有限公司 A kind of terminal control method and terminal
CN108600544A (en) * 2018-04-27 2018-09-28 维沃移动通信有限公司 A kind of Single-hand control method and terminal
CN111163205A (en) * 2019-12-25 2020-05-15 上海传英信息技术有限公司 Display method, display device and computer storage medium
CN111625306A (en) * 2019-02-28 2020-09-04 上海博泰悦臻电子设备制造有限公司 Display control method and device for suspension icon in vehicle machine
CN113656128A (en) * 2021-08-13 2021-11-16 北京字跳网络技术有限公司 Page generation method and device and electronic equipment
CN114041874A (en) * 2021-11-08 2022-02-15 深圳市精锋医疗科技股份有限公司 Interface display control method and device, computer equipment and system, and medium
CN114721761A (en) * 2022-04-15 2022-07-08 青岛海信移动通信技术股份有限公司 Terminal device, application icon management method and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929535A (en) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 Method for controlling position of floating window, and terminal
CN103914216A (en) * 2013-01-09 2014-07-09 三竹资讯股份有限公司 Financial tape reading device with floating menu shortcut key and method
CN104238869A (en) * 2013-06-19 2014-12-24 富泰华工业(深圳)有限公司 Floating icon display system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929535A (en) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 Method for controlling position of floating window, and terminal
CN103914216A (en) * 2013-01-09 2014-07-09 三竹资讯股份有限公司 Financial tape reading device with floating menu shortcut key and method
CN104238869A (en) * 2013-06-19 2014-12-24 富泰华工业(深圳)有限公司 Floating icon display system and method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873855A (en) * 2017-02-15 2017-06-20 努比亚技术有限公司 A kind of suspension icon control method, device and terminal
CN107291356A (en) * 2017-08-03 2017-10-24 北京达佳互联信息技术有限公司 file transmission display control method, device and corresponding terminal
US10917455B2 (en) 2017-08-03 2021-02-09 Beijing Dajia Internet Information Technology Co., Ltd. File transfer display control method and apparatus, and corresponding terminal
CN108304135A (en) * 2018-02-08 2018-07-20 上海爱优威软件开发有限公司 A kind of method of adjustment and terminal of virtual modifier key
CN108449490A (en) * 2018-02-11 2018-08-24 维沃移动通信有限公司 A kind of terminal control method and terminal
CN108600544A (en) * 2018-04-27 2018-09-28 维沃移动通信有限公司 A kind of Single-hand control method and terminal
CN111625306A (en) * 2019-02-28 2020-09-04 上海博泰悦臻电子设备制造有限公司 Display control method and device for suspension icon in vehicle machine
CN111625306B (en) * 2019-02-28 2024-06-11 博泰车联网科技(上海)股份有限公司 Display control method and device for suspended icons in vehicle
CN111163205A (en) * 2019-12-25 2020-05-15 上海传英信息技术有限公司 Display method, display device and computer storage medium
CN113656128A (en) * 2021-08-13 2021-11-16 北京字跳网络技术有限公司 Page generation method and device and electronic equipment
CN114041874A (en) * 2021-11-08 2022-02-15 深圳市精锋医疗科技股份有限公司 Interface display control method and device, computer equipment and system, and medium
CN114041874B (en) * 2021-11-08 2023-08-22 深圳市精锋医疗科技股份有限公司 Interface display control method and device, computer equipment and system and medium
CN114721761A (en) * 2022-04-15 2022-07-08 青岛海信移动通信技术股份有限公司 Terminal device, application icon management method and storage medium
CN114721761B (en) * 2022-04-15 2023-09-19 青岛海信移动通信技术有限公司 Terminal equipment, application icon management method and storage medium

Also Published As

Publication number Publication date
CN105808230B (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN105808230A (en) Method and device for moving suspension icon
CN102508666B (en) Method and device for adjusting application prompt message in application program
CN104020955B (en) Based on touch equipment desktop customizing method and the system of WinCE system
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
CN103294362A (en) Screen display control method and device for mobile equipment and mobile equipment
CN110502293B (en) Screen capturing method and terminal equipment
CN106339224B (en) Readability enhancing method and device
CN101694770B (en) Method for controlling screen display, device and hand-held equipment
CN102439559B (en) Character display method and device
KR101450782B1 (en) Image processing device and program
US10168984B2 (en) Image receiving apparatus and method thereof for determining an orientation of a screen of an electronic apparatus
CN105740275A (en) Map display method and device
WO2015027740A1 (en) A method and apparatus for processing image cross-reference to related applications
CN104766354B (en) The method and mobile terminal that a kind of augmented reality is drawn
CN103616954A (en) Virtual keyboard system, implementation method and mobile terminal
CN106204552A (en) The detection method of a kind of video source and device
CN110069311A (en) Application window display methods, device, mobile terminal and readable storage medium storing program for executing
CN103914305B (en) The method and system of application are freely controlled on a kind of mobile terminal
CN104657056A (en) Theme color adjustment method
US10438377B2 (en) Method and device for processing a page
CN106168890A (en) A kind of display packing, device and terminal of based on screen resolution regulation
CN105094614B (en) Method for displaying image and device
CN103777743A (en) Information processing method and electronic device
CN106909272A (en) A kind of display control method and mobile terminal
CN106843713B (en) Method and device for displaying virtual keys

Legal Events

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