CN105808230B - The method and apparatus of mobile suspension icon - Google Patents
The method and apparatus of mobile suspension icon Download PDFInfo
- Publication number
- CN105808230B CN105808230B CN201410856580.4A CN201410856580A CN105808230B CN 105808230 B CN105808230 B CN 105808230B CN 201410856580 A CN201410856580 A CN 201410856580A CN 105808230 B CN105808230 B CN 105808230B
- Authority
- CN
- China
- Prior art keywords
- suspension icon
- current page
- suspension
- 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of mobile suspension figure calibration methods to obtain the position of suspension icon according to the image data of previous page;According to the image data of current page, the clear position of current page is obtained;Whether the position corresponding with the suspension icon for judging the current page is clear position, if so, by keeping the position of the suspension icon constant, if it is not, the suspension icon is then moved to the clear position.The invention also discloses a kind of devices of mobile suspension icon.The present invention is by automatically moving suspension icon to clear position, to save user using time, user-friendly, enhancing user experience and promote user satisfaction.
Description
Technical field
The present invention relates to communication fields, more particularly to the method and apparatus of mobile suspension icon.
Background technique
Along with the development of pattern manipulation interface, electronic equipment greatly facilitates user using the mode of touch-control icon and grasps
Make, some operation interfaces are equipped with suspension icon for operating easily, to provide more convenient and fast shortcut, but electronics
Equipment is in page switching, since the position of suspension icon is constant, so that application icon has been blocked when suspension icon occurs,
Since suspension icon itself has blocked application icon, if user will go the function of operation application icon, need to go to drag with hand
The shortcut icon extremely clear position without application icon, but, continuous downloading and update with user to Application Software Program are answered
It is increased sharply with the quantity of icon, for example the application icon of some users reaches page ten, if when the every mobile one page page of user, all
If needing to drag suspension icon several times, it is bound to cause waste of time, and cause user inconvenient for use, causes the body of user
It tests poor.Suspension icon how to be solved in page switching, blocks application icon, thus caused by the time waste and user use
Inconvenience is a urgent problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide a kind of method and apparatus of mobile suspension icon, solve suspension icon in page
Face switch when, block application icon, thus caused by the time waste and user's problem inconvenient for use.
To achieve the above object, the present invention provides a kind of mobile suspension figure calibration method, the movement suspension icon
Method the following steps are included:
A, according to the image data of previous page, the position of suspension icon is obtained;
B, according to the image data of current page, the clear position of current page is obtained;
C, whether the position corresponding with the suspension icon for judging the current page is clear position, if so, will
Keep the position of the suspension icon constant;If it is not, the suspension icon is then moved to the clear position.
Preferably, in the step B:
The color average of the solid color of the pixel of current page is obtained as page color average value;
Current page is divided into several equivalent blocks according to the size of suspension icon;
The color average of the solid color of the pixel of each equivalent block is obtained as block color average;
Determine whether the block is idle according to the difference of the block color average of each block and page color average value
Block.
Preferably, in the step C:
According to the image data of current page, the pixel of the position corresponding with the suspension icon of current page is obtained
The solid color average value of point;
According to the list of the solid color average value of the pixel of the suspension icon and the pixel of preset suspension icon
One color threshold determines whether the position corresponding with the suspension icon of current page is clear position.
Preferably, in the step C:
If the position corresponding with the suspension icon of current page is clear position and the current page is all
The suspension icon is then moved to the central location of the screen by clear position.
Preferably, in the step C:
If clear position is not present in the current page, keep the suspension picture mark position constant.
In order to solve the above technical problems, the present invention further provides a kind of device of mobile suspension icon, the shiftings
The device of dynamic suspension icon includes:
Suspension icon obtains module, for the image data according to previous page, obtains the position of suspension icon;
Clear position obtains module and obtains the clear position of current page for the image data according to current page;
Mobile module, for judging whether the position corresponding with the suspension icon of the current page is spare bits
It sets;If so, by keeping the position of the suspension icon constant, if it is not, the suspension icon is then moved to the clear position.
Preferably, the clear position acquisition module includes:
First acquisition unit, the color average of the solid color of the pixel for obtaining current page is as page face
Color average value;
Current page is divided into several equivalent blocks for the size according to suspension icon by division unit;
Second acquisition unit obtains the color average of the solid color of the pixel of each equivalent block as block face
Color average value;
First determination unit determines the area according to the difference of the block color average of each block and page color average value
Whether block is idle block.
Preferably, the judgment module, comprising:
Third acquiring unit is obtaining current page with the suspension icon for the image data according to current page
The solid color average value of the pixel of corresponding position;
Second determination unit, according to the solid color average value of the pixel of the suspension icon and preset suspension icon
Pixel solid color threshold value, determine whether the position corresponding with the suspension icon of current page is spare bits
It sets.
Preferably, the mobile module, if being also used to the position corresponding with the suspension icon of current page as sky
The suspension icon, then is moved to the central location of the screen by not busy position and all clear positions of the current page.
Preferably, the mobile module, if being also used to the current page, there is no clear positions, keep the suspension
Picture mark position is constant.
A kind of mobile suspension figure calibration method provided by the invention obtains the figure that suspends according to the image data of previous page
Target position;According to the image data of current page, the clear position of current page is obtained;Judge the current page with institute
State whether the corresponding position of suspension icon is clear position, if so, by keeping the position of the suspension icon constant, if it is not,
The suspension icon is then moved to the clear position.The present invention by automatically moving suspension icon to clear position, thus
User is saved using time, user-friendly, enhancing user experience and promotes user satisfaction.
Detailed description of the invention
Fig. 1 is the flow diagram of the mobile suspension figure calibration method first embodiment of the present invention;
Fig. 2 is the refinement flow diagram of step B in Fig. 1;
Fig. 3 is the refinement flow diagram of step C in Fig. 1;
Fig. 4 is the functional block diagram of one embodiment of device of the mobile suspension icon of the present invention;
Fig. 5 is the functional block diagram that clear position described in Fig. 4 obtains module;
Fig. 6 is the functional block diagram of judgment module described in Fig. 4.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of mobile suspension figure calibration method, and referring to Fig.1, Fig. 1 is the side of the mobile suspension icon of the present invention
The flow diagram of method first embodiment, in the first embodiment, the movement suspension figure calibration method, comprising the following steps:
Step S100, A, the image data according to previous page obtain the position of suspension icon.
The device of mobile suspension icon, in page switching, intercepts the image of previous page according to lower one page instruction is slided
Data, and according to the image data of previous page, the position of suspension icon is obtained, the position of suspension icon refers to that suspension icon is defaulted
The region of stop, such as: the coordinate on four vertex 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 set it is constant, default rest on same coordinate.
Step S200, according to the image data of current page, the clear position of current page is obtained.
The device of mobile suspension icon passes through answering for image data acquisition current page according to the image data of current page
With the position of icon and the clear position of screen.For example it moves the device of suspension icon and is averagely calculated using the color of suspension icon
Method calculates the single pixel average characteristics of suspension icon, and obtaining current page, whether there is or not application icons and clear position.
Step S300, whether the position corresponding with the suspension icon for judging the current page is clear position,
If so, by keeping the position of the suspension icon constant;If it is not, the suspension icon is then moved to the clear position.
The device of mobile suspension icon judges institute according to the position of the suspension icon of acquisition and the clear position of current page
Whether the position corresponding with the suspension icon for stating current page is clear position, if so, illustrating that suspension icon is located at
The clear position of current screen keeps the position of the suspension icon constant;If it is not, then illustrating that application icon is suspended icon screening
Gear, by the clear position of the mobile current screen of suspension icon.Specifically, if current page it is corresponding with the suspension icon
Position is clear position and all clear positions of the current page, then the suspension icon is moved in the screen
Entreat position.For example, if suspension icon is moved to central location (i.e. X when current page does not have any application icon when detecting
Half in axis direction, the position of half in Y direction), if the window size of screen is 800x600, the center of screen
The coordinate of position should be (400,300), when application is not present by the way that current page is calculated in the device of mobile suspension icon
When icon, suspension icon is moved at coordinate (400,300), is shown centered on.Specifically, if the current page is not deposited
In clear position, then keep the suspension picture mark position constant.Such as clear position is not present by the way that current page is calculated,
Application icon then it has been covered in account for screen, suspension icon does not have clear position that can place, at this point, no matter how to move suspension
Icon, can also block application icon, then keeps suspension picture mark position constant.
Movement suspension figure calibration method provided in this embodiment, by automatically moving suspension icon to clear position, thus
User is saved using time, user-friendly, enhancing user experience and promotes user satisfaction.
As shown in Fig. 2, Fig. 2 is the refinement flow diagram of step S200 in Fig. 1, the mobile figure that suspends provided in this embodiment
Calibration method, the step S200 include:
Step S210, the color average for obtaining the solid color of the pixel of current page is average as page color
Value.
The device of mobile suspension icon obtains the single of current page pixel according to the color average algorithm P (R) of screen
The color average of color, and the color average of the solid color of the pixel for the current page that will acquire is as page color
Average value.Such as the image data according to current page, the spy of current page is obtained using the color average algorithm P (R) of screen
Sign, this feature show the color characteristics of current page.
Specifically, the size for reading the resolution ratio of current page is arranged in the horizontal direction and vertical direction of current page
Pixel, such as: using the color average algorithm P (R) of screen, the red color of the final pixel for obtaining current page is flat
Mean value.
The color average algorithm P (R) of screen:
Horizontal direction:
The starting position PDstar (x): 0, PDend (x) end position 100.
Vertical direction:
The starting position PZstar (y): 0, PZend (y) end position 100.
By the color average algorithm of screen, the mean value size of three primary colors R, G, the B pixel of the reference of current page is obtained,
Such as: the device of mobile suspension icon gets the color average of the red pixel of current page.
Wherein, R (x1)=128, R (x2)=128, R (x) indicates each row of pixel of current page in the horizontal direction
Red color data.
The red color value summation of pixel, the size of summation take in all horizontal directions
Certainly in PDend, such as:
The device of mobile suspension icon gets the red color value summation of the pixel of current page:
P (y1)=1, P (y 2)=2, P (yn) indicates that the pixel of current page on the vertical direction of current page respectively arranges
Red color value summation.
The red color value summation of all vertical direction pixels, the size of summation depend on
PZend, such as:
PDend*PZend: indicate how many pixel summation current page amounts to.Such as: KDend=in horizontal direction
100, KZend=100 on vertical direction.
The color average algorithm P (R) of screen: the color average of the final entire red pixel for obtaining current page, from
And Rule of judgment is provided to automatically move suspension icon, and such as: the device of mobile suspension icon needs to find clear position, calculates
When the color average of the pixel of current page out is similar to preset reference threshold, the device of mobile suspension icon is just
Current suspension icon is moved to clear position.
Step S220, current page is divided into several equivalent blocks according to the size of suspension icon.
Current page equivalent is divided into multiple regions according to the size of the suspension icon by the device of mobile suspension icon,
Such as: the size of suspension icon is 800x600, is divided into 10 pockets, then the size of each region is 80x60.
Step S230, the color average for obtaining the solid color of the pixel of each equivalent block is flat as block color
Mean value.
The device of mobile suspension icon traverses one by one, obtains the solid color of the pixel of each equivalent block of division
Color average, and using the color average of the solid color of the pixel of each equivalent block as block color average.
Step S240, determine that the block is according to the difference of the block color average of each block and page color average value
No is idle block.
The block color average of each block and page color average value are made difference by the device of mobile suspension icon respectively
Processing, by the difference of the page color average value of the current page calculated and the block color average of each block and pre-
If pixel threshold be compared, if the difference of the block color average of the color average of current page and each block
Less than preset pixel value, then application icon is not present in the region of current page, and explanation is clear position;If the color of screen
The difference of the color average in average value and region is greater than preset pixel value, then this region has idle block.
As shown in figure 3, Fig. 3 is the refinement flow diagram of step S300 in Fig. 1, the mobile figure that suspends provided in this embodiment
Calibration method, the step S300 include:
Step S310, according to the image data of current page, the corresponding with the suspension icon of current page is obtained
The solid color average value of the pixel of position.
The device of mobile suspension icon is calculated according to the image data of the current page using the average color of suspension icon
Method K (R) obtains the feature of the position corresponding with the suspension icon of current page, and this feature shows the color of suspension icon
Characteristic.Specifically, the size for reading the resolution ratio of the position corresponding with the suspension icon of current page, by current page
Position corresponding with the suspension icon horizontal direction and vertical direction arrange pixel, such as: use suspension icon
Color average algorithm K (R), the red of the pixel of the final position corresponding with the suspension icon for obtaining current page
The average value of the color value of color.
The color average algorithm K (R) of suspension icon:
Horizontal direction:
The starting position KDstar (x): 0, KDend (x) end position 100,
Vertical direction:
The starting position KZstar (y): 0, KZend (y) end position 100,
The color average algorithm of suspension icon is obtained, the three primary colors R, G, B of reference are obtained for the color gamut of suspension icon
The mean value size of pixel, such as: the device of mobile suspension icon gets the corresponding with the suspension icon of current page
The average value of the color value of the red color of the pixel of position.
Wherein, R (x1)=128, R (x2)=128, R (x) indicates each row of pixel of current page in the horizontal direction
The summation of red color data.
Indicate the summation of the red color value of pixel in all horizontal directions, summation
Size depends on KDend, such as:
The device of mobile suspension icon gets the pixel of the position corresponding with the suspension icon of current page
The summation of the red color value respectively arranged:
R (y 1)=1, R (y 2)=2, R (yn) indicates the opposite with the suspension icon of current page in the vertical direction
The red color value summation that the pixel for the position answered respectively arranges.
Indicate the picture of the position corresponding with the suspension icon of current page on all vertical directions
The summation of the red color value of vegetarian refreshments, the size of summation depend on KZend, such as:
KDend*KZend: the red of the pixel of the position corresponding with the suspension icon of current page is indicated
Color value summation.Such as: KDend=100 in horizontal direction, KZend=100 on vertical direction.
The color average algorithm K (R) of suspension icon: the final color average for obtaining the entire red pixel of suspension icon,
To provide decision condition to automatically move suspension icon, such as: when the device of mobile suspension icon reads shortcut icon
When pixel K (R), this pixel region blocked is read, if it is free area, current suspension icon does not need to move.
Step S320, according to the picture of the solid color average value of the pixel of the suspension icon and preset suspension icon
The solid color threshold value of vegetarian refreshments determines whether the position corresponding with the suspension icon of current page is clear position.
The device of mobile suspension icon is by the color average of the suspension icon calculated and preset suspension icon picture
Plain value is compared, for example the solid color threshold value of pixel of preset suspension icon is 10, to be oneself of suspension icon
Dynamic mobile setting decision condition.If the color average that the device of mobile suspension icon determines the suspension icon calculated is small
In or equal to preset suspension icon pixel solid color threshold value, then current page is corresponding with the suspension icon
Position be clear position;If the color average that the device of mobile suspension icon determines the suspension icon calculated is greater than
The solid color threshold value of the pixel of preset suspension icon, then the position corresponding with the suspension icon of current page is not
It is clear position.
As described in Figure 4, Fig. 4 is the functional block diagram of one embodiment of device of the mobile suspension icon of the present invention, the
In one embodiment, the device of the movement suspension icon includes:
Suspension icon obtains module 10, for the image data according to previous page, obtains the position of suspension icon;
Clear position obtains module 20 and obtains the clear position of current page for the image data according to current page;
Mobile module 30, for judging whether the position corresponding with the suspension icon of the current page is idle
Position, if so, by keeping the position of the suspension icon constant;If it is not, the suspension icon is then moved to the spare bits
It sets.
The suspension icon of the device of mobile suspension icon obtains module 10 according to lower one page instruction is slided, in page switching
When, the image data of previous page is intercepted, and according to the image data of previous page, obtain the position of suspension icon, suspend figure
Target position refers to the region that suspension icon default stops, such as: the coordinate on four vertex of previous page suspension icon ABCD is A
(0,1), B (0,2), C (1,2), D (1,1), the position of the suspension icon of current page, which is still protected, after switching sets constant, and default is stopped
It stays on same coordinate.
The clear position of the device of mobile suspension icon obtains module 20 according to the image data of current page, passes through image
The position of the application icon of data acquisition current page and the clear position of screen.For example the device of suspension icon is moved using outstanding
Relief target color average algorithm calculates the single pixel average characteristics of suspension icon, and obtaining current page, whether there is or not application drawings
Mark and clear position.
The mobile module 30 of the device of mobile suspension icon is according to the position of the suspension icon of acquisition and the sky of current page
Not busy position judges whether the position corresponding with the suspension icon of the current page is clear position, if so, explanation
Suspension icon is located at the clear position of current screen, keeps the position of the suspension icon constant;If it is not, then illustrating application icon
It is suspended icon to block, by the clear position of the mobile current screen of suspension icon.Specifically, if current page with the suspension
The corresponding position of icon is clear position and all clear positions of the current page, then is moved to the suspension icon
The central location of the screen.For example, if suspension icon is moved to when current page does not have any application icon when detecting
Central location (i.e. half in X-direction, the position of half in Y direction), if the window size of screen is 800x600, that
The coordinate of the central location of screen should be (400,300), when the device of mobile suspension icon is by being calculated current page
When application icon is not present in face, suspension icon is moved at coordinate (400,300), is shown centered on.Specifically, if it is described
Clear position is not present in current page, then keeps the suspension picture mark position constant.Such as by the way that current page is calculated not
There are clear positions, then have been covered with application icon in account for screen, and suspension icon does not have clear position that can place, at this point, nothing
By how to move suspension icon, application icon can be also blocked, then keeps suspension picture mark position constant.
The device of movement suspension icon provided in this embodiment, by automatically moving suspension icon to clear position, thus
User is saved using time, user-friendly, enhancing user experience and promotes user satisfaction.
As described in Figure 5, Fig. 5 is the functional block diagram that suspension icon described in Fig. 4 obtains module, the present embodiment provides
Mobile suspension icon device, the clear position obtains module 20 and includes:
First acquisition unit 21, the color average of the solid color of the pixel for obtaining current page is as the page
Color average;
Current page is divided into several equivalent blocks for the size according to suspension icon by division unit 22;
Second acquisition unit 23 obtains the color average of the solid color of the pixel of each equivalent block as block
Color average;
First determination unit 24, being determined according to the block color average of each block and the difference of page color average value should
Whether block is idle block.
The first acquisition unit 21 of the device of mobile suspension icon obtains current according to the color average algorithm P (R) of screen
The color average of the solid color of page pixel, and the color of the solid color of the pixel for the current page that will acquire is flat
Mean value is as page color average value.Such as the image data according to current page, using the color average algorithm P (R) of screen
The feature of current page is obtained, this feature shows the color characteristics of current page.
Specifically, the size for reading the resolution ratio of current page is arranged in the horizontal direction and vertical direction of current page
Pixel, such as: using the color average algorithm P (R) of screen, the red color of the final pixel for obtaining current page is flat
Mean value.
The color average algorithm P (R) of screen:
Horizontal direction:
The starting position PDstar (x): 0, PDend (x) end position 100.
Vertical direction:
The starting position PZstar (y): 0, PZend (y) end position 100.
By the color average algorithm of screen, the mean value size of three primary colors R, G, the B pixel of the reference of current page is obtained,
Such as: the device of mobile suspension icon gets the color average of the red pixel of current page.
Wherein, R (x1)=128, R (x2)=128, R (x) indicates each row of pixel of current page in the horizontal direction
Red color data.
The red color value summation of pixel, the size of summation depend in all horizontal directions
PDend, such as:
The device of mobile suspension icon gets the red color value summation of the pixel of current page:
P (y1)=1, P (y 2)=2, P (yn) indicates that the pixel of current page on the vertical direction of current page respectively arranges
Red color value summation.
The red color value summation of all vertical direction pixels, the size of summation depend on
PZend, such as:
PDend*PZend: indicate how many pixel summation current page amounts to.Such as: KDend=in horizontal direction
100, KZend=100 on vertical direction.
The color average algorithm P (R) of screen: the color average of the final entire red pixel for obtaining current page, from
And Rule of judgment is provided to automatically move suspension icon, and such as: the device of mobile suspension icon needs to find clear position, calculates
When the color average of the pixel of current page out is similar to preset reference threshold, the device of mobile suspension icon is just
Current suspension icon is moved to clear position.
Step S220, current page is divided into several equivalent blocks according to the size of suspension icon.
Current page equivalent is divided into multiple regions according to the size of the suspension icon by the device of mobile suspension icon,
Such as: the size of suspension icon is 800x600, is divided into 10 pockets, then the size of each region is 80x60.
The division unit 22 of the device of mobile suspension icon draws current page equivalent according to the size of the suspension icon
It is divided into multiple regions, such as: the size of suspension icon is 800x600, is divided into 10 pockets, then the size of each region is
80x60。
The second acquisition unit 23 of the device of mobile suspension icon traverses one by one, obtains the picture of each equivalent block of division
The color average of the solid color of vegetarian refreshments, and using the color average of the solid color of the pixel of each equivalent block as
Block color average.
First determination unit 24 of the device of mobile suspension icon is by the block color average of each block and page face
Color average value makees difference processing respectively, by the block color of the page color average value of the current page calculated and each block
The difference of average value is compared with preset pixel threshold, if the block of the color average of current page and each block
The difference of color average is less than preset pixel value, then application icon is not present in the region of current page, and explanation is spare bits
It sets;If the difference of the color average of the color average and region of screen is greater than preset pixel value, this region exists
Idle block.
As described in Figure 6, Fig. 6 is the functional block diagram of judgment module described in Fig. 4, and movement provided in this embodiment is outstanding
Relief target device, the judgment module 30 include:
Third acquiring unit 31 is obtaining current page with the suspension figure for the image data according to current page
Mark the solid color average value of the pixel of corresponding position;
Second determination unit 32 is schemed according to the solid color average value of the pixel of the suspension icon and preset suspension
The solid color threshold value of target pixel determines whether the position corresponding with the suspension icon of current page is spare bits
It sets.
The third acquiring unit 31 of the device of suspension icon is moved according to the image data of the current page, using suspension
The average color algorithm K (R) of icon obtains the feature of the position corresponding with the suspension icon of current page, this feature table
The now color characteristics of suspension icon.Specifically, the resolution ratio of the position corresponding with the suspension icon of current page is read
Size, the horizontal direction of the position corresponding with the suspension icon of current page and vertical direction are arranged into pixel,
Such as: it is final to obtain the corresponding with the suspension icon of current page using the color average algorithm K (R) of suspension icon
The average value of the color value of the red color of the pixel of position.
The color average algorithm K (R) of suspension icon:
Horizontal direction:
The starting position KDstar (x): 0, KDend (x) end position 100,
Vertical direction:
The starting position KZstar (y): 0, KZend (y) end position 100,
The color average algorithm of suspension icon is obtained, the three primary colors R, G, B of reference are obtained for the color gamut of suspension icon
The mean value size of pixel, such as: the device of mobile suspension icon gets the corresponding with the suspension icon of current page
The average value of the color value of the red color of the pixel of position.
Wherein, R (x1)=128, R (x2)=128, R (x) indicates each row of pixel of current page in the horizontal direction
The summation of red color data.
Indicate the summation of the red color value of pixel in all horizontal directions, summation
Size depends on KDend, such as:
The device of mobile suspension icon gets the pixel of the position corresponding with the suspension icon of current page
The summation of the red color value respectively arranged:
R (y 1)=1, R (y 2)=2, R (yn) indicates the opposite with the suspension icon of current page in the vertical direction
The red color value summation that the pixel for the position answered respectively arranges.
Indicate the picture of the position corresponding with the suspension icon of current page on all vertical directions
The summation of the red color value of vegetarian refreshments, the size of summation depend on KZend, such as:
KDend*KZend: the red of the pixel of the position corresponding with the suspension icon of current page is indicated
Color value summation.Such as: KDend=100 in horizontal direction, KZend=100 on vertical direction.
The color average algorithm K (R) of suspension icon: the final color average for obtaining the entire red pixel of suspension icon,
To provide decision condition to automatically move suspension icon, such as: when the device of mobile suspension icon reads shortcut icon
When pixel K (R), this pixel region blocked is read, if it is free area, current suspension icon does not need to move.
Second determination unit 32 of the device of mobile suspension icon by the color average of the suspension icon calculated with
Preset suspension icon pixel value is compared, for example, preset suspension icon pixel solid color threshold value be 10, from
It and is that suspension icon automatically moves setting decision condition.If the device of mobile suspension icon determines the suspension figure calculated
Target color average be less than or equal to preset suspension icon pixel solid color threshold value, then current page with institute
Stating the corresponding position of suspension icon is clear position;If the device of mobile suspension icon determines the suspension icon calculated
Color average be greater than preset suspension icon pixel solid color threshold value, then current page with suspensions figure
Marking corresponding position is not clear position.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of movement suspension figure calibration method, which comprises the following steps:
A, according to the image data of previous page, the position of suspension icon is obtained;
B, according to the image data of current page, the clear position of current page is obtained;
C, whether the position corresponding with the suspension icon for judging the current page is clear position, if so, will keep
The position of the suspension icon is constant;If it is not, the suspension icon is then moved to the clear position;
Wherein, step B includes:
The color average of the solid color of the pixel of current page is obtained as page color average value;
Current page is divided into several equivalent blocks according to the size of suspension icon;
The color average of the solid color of the pixel of each equivalent block is obtained as block color average;
Determine whether the block is idle block according to the difference of the block color average of each block and page color average value.
2. mobile suspension figure calibration method as described in claim 1, which is characterized in that in the step C:
According to the image data of current page, the pixel of the position corresponding with the suspension icon of current page is obtained
Solid color average value;
According to the single face of the solid color average value of the pixel of the suspension icon and the pixel of preset suspension icon
Chromatic threshold value determines whether the position corresponding with the suspension icon of current page is clear position.
3. mobile suspension figure calibration method as claimed in claim 1 or 2, which is characterized in that in the step C:
If the position corresponding with the suspension icon of current page is clear position and the current page all free time
The suspension icon is then moved to the central location of screen by position.
4. mobile suspension figure calibration method as claimed in claim 1 or 2, which is characterized in that in the step C:
If clear position is not present in the current page, keep the suspension picture mark position constant.
5. a kind of device of mobile suspension icon, which is characterized in that the device of the movement suspension icon includes:
Suspension icon obtains module, for the image data according to previous page, obtains the position of suspension icon;
Clear position obtains module and obtains the clear position of current page for the image data according to current page;
Mobile module, for judging whether the position corresponding with the suspension icon of the current page is clear position,
If so, by keeping the position of the suspension icon constant;If it is not, the suspension icon is then moved to the clear position;
Wherein, the clear position acquisition module includes:
The color average of first acquisition unit, the solid color of the pixel for obtaining current page is flat as page color
Mean value;
Current page is divided into several equivalent blocks for the size according to suspension icon by division unit;
Second acquisition unit, the color average for obtaining the solid color of the pixel of each equivalent block are flat as block color
Mean value;
First determination unit determines that the block is according to the difference of the block color average of each block and page color average value
No is idle block.
6. the device of mobile suspension icon as claimed in claim 5, which is characterized in that the mobile module, comprising:
Third acquiring unit obtains the opposite with the suspension icon of current page for the image data according to current page
The solid color average value of the pixel for the position answered;
Second determination unit, according to the picture of the solid color average value of the pixel of the suspension icon and preset suspension icon
The solid color threshold value of vegetarian refreshments determines whether the position corresponding with the suspension icon of current page is clear position.
7. the device of mobile suspension icon as claimed in claim 5, which is characterized in that the mobile module, if being also used to work as
The position corresponding with the suspension icon of the preceding page is clear position and all clear positions of the current page, then will
The suspension icon is moved to the central location of screen.
8. the device of mobile suspension icon as claimed in claim 5, which is characterized in that the mobile module, if being also used to institute
Stating current page, there is no clear positions, then keep the suspension picture mark position constant.
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 CN105808230A (en) | 2016-07-27 |
CN105808230B true 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) |
Families Citing this family (10)
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 |
CN107291356B (en) * | 2017-08-03 | 2020-05-01 | 北京达佳互联信息技术有限公司 | File transmission display control method and device and corresponding terminal |
CN108304135A (en) * | 2018-02-08 | 2018-07-20 | 上海爱优威软件开发有限公司 | A kind of method of adjustment and terminal of virtual modifier key |
CN108449490B (en) * | 2018-02-11 | 2020-11-17 | 维沃移动通信有限公司 | Terminal control method and terminal |
CN108600544B (en) * | 2018-04-27 | 2021-01-08 | 维沃移动通信有限公司 | Single-hand control method and terminal |
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 |
CN114041874B (en) * | 2021-11-08 | 2023-08-22 | 深圳市精锋医疗科技股份有限公司 | Interface display control method and device, computer equipment and system and medium |
CN114721761B (en) * | 2022-04-15 | 2023-09-19 | 青岛海信移动通信技术有限公司 | Terminal equipment, application icon management method and storage medium |
Citations (3)
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 |
-
2014
- 2014-12-31 CN CN201410856580.4A patent/CN105808230B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105808230A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105808230B (en) | The method and apparatus of mobile suspension icon | |
US9355608B2 (en) | Electronic device | |
CN103680471B (en) | A kind of method and electronic equipment showing image | |
CN109146760B (en) | Watermark generation method, device, terminal and storage medium | |
CN106713696B (en) | Image processing method and device | |
JP6068797B2 (en) | Apparatus and method for controlling output screen of portable terminal | |
CN105447819B (en) | Image processing method and device | |
JP2015087861A (en) | Electronic apparatus and control program, and operation method for electronic apparatus | |
JP6491957B2 (en) | Electronic apparatus and image processing method | |
JP2011504604A (en) | Ambient light dependence theme | |
US20150301633A1 (en) | Information processing device, display device with touch panel, information processing method, and program | |
EP2769293B1 (en) | Method and apparatus for control of orientation of information presented based upon device use state | |
CN105573626A (en) | Display method and device of terminal display interface | |
CN110442521A (en) | Control element detection method and device | |
CN103777863A (en) | Mobile terminal and display method of application program | |
CN105867800A (en) | Display region adjustment method and apparatus | |
CN104424029A (en) | Information processing method and wearable electronic equipment | |
CN106843713B (en) | Method and device for displaying virtual keys | |
CN106095228A (en) | A kind of information processing method and electronic equipment | |
CN105528152A (en) | Image rotation display method and system | |
TWI557631B (en) | System and method for answering and disconnecting incoming call. | |
CN106940617A (en) | A kind of display methods and electronic equipment | |
US20120322464A1 (en) | Terminal with virtual space interface and method of controlling virtual space interface | |
JP5907096B2 (en) | Information terminal device, image display method, and image display program | |
JP2010161467A5 (en) | Image processing apparatus, control method for image processing apparatus, and control program |
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 |