Nothing Special   »   [go: up one dir, main page]

CN103984476B - menu display method and device - Google Patents

menu display method and device Download PDF

Info

Publication number
CN103984476B
CN103984476B CN201410189146.5A CN201410189146A CN103984476B CN 103984476 B CN103984476 B CN 103984476B CN 201410189146 A CN201410189146 A CN 201410189146A CN 103984476 B CN103984476 B CN 103984476B
Authority
CN
China
Prior art keywords
menu
viewing area
margin
away
touch
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
Application number
CN201410189146.5A
Other languages
Chinese (zh)
Other versions
CN103984476A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410189146.5A priority Critical patent/CN103984476B/en
Publication of CN103984476A publication Critical patent/CN103984476A/en
Application granted granted Critical
Publication of CN103984476B publication Critical patent/CN103984476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to a kind of menu display method and device.Methods described includes:Obtain recall position of touch corresponding to the touch control operation of menu apart from each border of current display page margin away from;Obtain the size of the menu;Compare the menu size and the margin away from;According to the comparative result, it is determined that the position of the menu can completely be shown, and the menu is shown.By the automatic calculating of terminal on the page complete display menu, without manual operation, saved human cost, and no matter optional position of user's touch control operation on the page, can completely show menu, menu is shown flexibly.When screen rotates, the display location of menu is recalculated so that can show complete menu on the page all the time.The Experience Degree that user shows to the page is higher.

Description

Menu display method and device
Technical field
This disclosure relates to terminal display technology field, more particularly to a kind of menu display method and device.
Background technology
When the position of touch of terminal screen ejects menu with the arrow, in fact it could happen that in position of touch four up and down Direction is not to have enough spaces to show menu, it is therefore desirable to the size according to position of touch to screen frame distance, is specified The display location of menu.In correlation technique, when being ejected for each menu, it is required for developer to calculate menu display location. So, substantial amounts of human resources are not only wasted, also, due to needing the artificial display location for calculating menu, menu display effect Fruit is relatively simple, and menu shows underaction.Moreover, when screen rotates, the actual display location of menu is relative to original Changed to calculate menu display location, menu may be caused to show incomplete.
The content of the invention
To overcome problem present in correlation technique, the embodiment of the present disclosure provides a kind of menu display method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of menu display method, methods described include:
Obtain recall position of touch corresponding to the touch control operation of menu apart from each border of current display page margin away from;
Obtain the size of the menu;
Compare the menu size and the margin away from;
According to the comparative result, it is determined that the position of the menu can completely be shown, and the menu is shown.
The technical scheme provided by this disclosed embodiment can include the following benefits:Existed by the automatic calculating of terminal Menu is completely shown on the page, without manual operation, has saved human cost, and no matter user's touch control operation is on the page Optional position, can completely show menu, and menu is shown flexibly.When screen rotates, menu is recalculated Display location so that complete menu can be shown on the page all the time.The Experience Degree that user shows to the page is higher.
Optionally, the acquisition recalls position of touch corresponding to the touch control operation of menu apart from each border of current display page Margin away from, including:
When the position of touch for point when, obtain it is described point apart from each border of the current display page margin away from;
When the position of touch is rectangular area, the crucial point coordinates of the rectangular area and the rectangle region are obtained The size in domain, the rectangular area is obtained apart from the current display page according to the crucial point coordinates and size of the rectangular area The margin on each border in face away from;Wherein, the key point is the set point of the rectangular area.
Optionally, methods described also includes:
Using the position of touch as split position, the current display page is arranged to the first viewing area, second shown Show region, the 3rd viewing area and the 4th viewing area;
Wherein, first viewing area is rectangular area and its height is that the position of touch is currently shown to described The first page back gauge of page coboundary;
Second viewing area is rectangular area and its height is the position of touch under the current display page The second page back gauge on border;
3rd viewing area is rectangular area and its width is that the position of touch is left to the current display page 3rd margin on border away from;
4th viewing area is rectangular area and its width is that the position of touch is right to the current display page 4th margin on border away from.
Optionally, it is described according to the comparative result, it is determined that the position of the menu can be completely shown, including:
When the comparative result indicates that the height of the menu is less than or equal to the first page back gauge and more than described second Margin away from when, show the menu in first viewing area;
When the comparative result indicates that the height of the menu is more than the first page back gauge and less than or equal to described second Margin away from when, show the menu in second viewing area.
Optionally, methods described also includes:When the comparative result indicates that the height of the menu is more than the first page Back gauge and when being more than the second page back gauge, the menu is shown in the 3rd viewing area or the 4th viewing area.
Optionally, when the position of touch is point, methods described also includes:
When the comparative result indicate the half of the width of the menu be more than the 3rd margin away from when, further by institute The part for stating menu is shown in the 3rd viewing area, and another part of the menu is included showing the described 4th Show in region;
When the comparative result indicate the half of the width of the menu be more than the 4th margin away from when, further by institute The part for stating menu is shown in the 4th viewing area, and another part of the menu is included showing the described 3rd Show in region;
When the comparative result indicates that the half of the width of the menu had not only been more than the 3rd margin away from again more than described in 4th margin away from when, the part of the menu is shown in the width of the current display page, by the another of the menu Part hides.
Optionally, when the position of touch is rectangular area, methods described also includes:
First viewing area or the second viewing area are divided into by left son according to the median vertical line of the position of touch Region, right subregion, obtain the 5th margin on the median vertical line and the left and right border of the current display page away from page six Back gauge;
When the comparative result indicate the half of the width of the menu be more than the 5th margin away from when, further by institute The part for stating menu is shown in the left subregion, and another part of the menu is included in the right subregion In;
When the comparative result indicate the half of the width of the menu be more than the 6th margin away from when, further by institute The part for stating menu is shown in the right subregion, and another part of the menu is included in the left subregion In;
When the comparative result indicates that the half of the width of the menu had not only been more than the 5th margin away from again more than described in 6th margin away from when, the part of the menu is shown in the width of the current display page, by the another of the menu Part hides.
Optionally, when the part that the menu is shown in the width in the current display page, by the menu When another part is hidden, methods described also includes:
Receive the slide of user in the horizontal direction;
According to the slide of user in the horizontal direction, the menu is controlled to move in the horizontal direction, display is hidden Part menu.
In alternative, by first determining whether menu can completely be shown in the first or second viewing area, if When menu can not completely be shown in the first or second viewing area, then judge whether menu can completely be shown in the 3rd or the 4th and show Show region.When menu can completely be shown in first or the second viewing area, it may further determine that menu in the first viewing area Position is particularly shown in domain or the second viewing area.So so that the display of menu is more accurate, and display effect is more preferable.
Optionally, it is described according to the comparative result, it is determined that the position of the menu can be completely shown, including:
When the comparative result indicates that the width of the menu is less than or equal to the 3rd margin away from and more than the described 4th Margin away from when, show the menu in the 3rd viewing area;
When the comparative result indicates that the height of the menu is more than the 3rd margin away from and less than or equal to the described 4th Margin away from when, show the menu in the 4th viewing area.
Optionally, methods described also includes:
When the comparative result indicate the height of the menu be more than the 3rd margin away from and be more than the 4th margin Away from when, show the menu in first viewing area or the second viewing area.
Optionally, when the position of touch is point, methods described also includes:
When the comparative result indicates that the half of the height of the menu is more than the first page back gauge, further by institute The part for stating menu is shown in first viewing area, and another part of the menu is included showing described second Show in region;
When the comparative result indicates that the half of the height of the menu is more than the second page back gauge, further by institute The part for stating menu is shown in second viewing area, and another part of the menu is included showing described first Show in region;
When the comparative result indicates that the half of the height of the menu had not only been more than the first page back gauge but also more than described During second page back gauge, a part for the menu is shown in the height of the current display page, by the another of the menu Part hides.
Optionally, when the position of touch is rectangular area, methods described also includes:
3rd viewing area or the 4th viewing area are divided into by upper son according to the horizontal central line of the position of touch Region, lower subregion, obtain the 7th margin on the horizontal central line and the upper and lower border of the current display page away from page eight Back gauge;
When the comparative result indicate the half of the height of the menu be more than the 7th margin away from when, further by institute The part for stating menu is shown in the sub-zones, and another part of the menu is included in the lower subregion In;
When the comparative result indicate the half of the height of the menu be more than the 8th margin away from when, further by institute The part for stating menu is shown in the lower subregion, and another part of the menu is included in the sub-zones In;
When the comparative result indicates that the half of the height of the menu had not only been more than the 7th margin away from again more than described in 8th margin away from when, the part of the menu is shown in the height of the current display page, by the another of the menu Part hides.
Optionally, when the part that the menu is shown in the height in the current display page, by the menu When another part is hidden, methods described also includes:
Receive the slide of user in vertical direction;
According to the slide of user in vertical direction, the menu is controlled to move in vertical direction, display is hidden Part menu.
In alternative, by first determining whether menu can completely be shown in the 3rd or the 4th viewing area, if When menu can not completely be shown in the 3rd or the 4th viewing area, then judge whether menu can completely be shown in first or second and show Show region.When menu completely can be shown in the 3rd or four viewing areas, it may further determine that menu the 3rd or the 4th Position is particularly shown in viewing area.So so that the display of menu is more accurate, and display effect is more preferable.
In alternative, when the size of menu exceeds the size of current display page, it can be shown using Stealth Modus Menu, while the integrality that guarantee menu is shown, display effect is more preferable, and user checks the simple to operate of menu, carries High user experience.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of manu displaying device, including:
First acquisition module, position of touch corresponding to the touch control operation of menu is recalled apart from current display page for obtaining The margin on each border away from;
Second acquisition module, for obtaining the size of the menu;
Comparison module, for the menu size and the margin away from;
Menu determines display module, for according to the comparative result, it is determined that the position of the menu can be completely shown, and Show the menu.
Optionally, when the position of touch is point, first acquisition module ought described in the point distance for obtaining The margin on the preceding display page each border away from;
When the position of touch is rectangular area, first acquisition module, for obtaining the pass of the rectangular area Key point coordinates and the size of the rectangular area, the rectangle is obtained according to the crucial point coordinates and size of the rectangular area The margin on each border of current display page described in region distance away from;Wherein, the key point is the set point of the rectangular area.
Optionally, described device also includes:
Region segmentation module, for using the position of touch as split position, the current display page to be arranged into One viewing area, the second viewing area, the 3rd viewing area and the 4th viewing area;
Wherein, first viewing area is rectangular area and its height is that the position of touch is currently shown to described The first page back gauge of page coboundary;
Second viewing area is rectangular area and its height is the position of touch under the current display page The second page back gauge on border;
3rd viewing area is rectangular area and its width is that the position of touch is left to the current display page 3rd margin on border away from;
4th viewing area is rectangular area and its width is that the position of touch is right to the current display page 4th margin on border away from.
Optionally, the menu determines that display module includes:
First position determining unit, for indicating that the height of the menu is less than or equal to described first when the comparative result Margin away from and when being more than the second page back gauge, show the menu in first viewing area;When the comparative result refers to When showing that the height of the menu is more than the first page back gauge and is less than or equal to the second page back gauge, in second viewing area Domain shows the menu.
Optionally, the first position determining unit, it is additionally operable to when the comparative result indicates that the height of the menu is big In the first page back gauge and when being more than the second page back gauge, institute is shown in the 3rd viewing area or the 4th viewing area State menu.
Optionally, when the position of touch is point, the first position determining unit, it is additionally operable to work as the comparative result Indicate the width of the menu half be more than the 3rd margin away from when, further by a part for the menu include in institute State in the 3rd viewing area, and another part of the menu is included in the 4th viewing area;Relatively tied when described Fruit indicate the half of the width of the menu be more than the 4th margin away from when, further a part for the menu is included In 4th viewing area, and another part of the menu is included in the 3rd viewing area;When the comparison As a result indicate the half of the width of the menu be not only more than the 3rd margin away from be more than again the 4th margin away from when, described A part for the display menu, another part of the menu is hidden in the width of current display page.
Optionally, when the position of touch is rectangular area, the menu determines that display module also includes:
First area division unit, for the median vertical line according to the position of touch by first viewing area or Two viewing areas are divided into left subregion, right subregion, obtain the median vertical line and the left and right border of the current display page The 5th margin away from the 6th margin away from;
The first position determining unit, it is additionally operable to when the comparative result indicates that the half of the width of the menu is more than 5th margin away from when, further a part for the menu is included in the left subregion, and by the menu Another part is shown in the right subregion;When the comparative result indicates that the half of the width of the menu is more than described the Six margins away from when, further a part for the menu is included in the right subregion, and by another portion of the menu Divide and be shown in the left subregion;When the comparative result indicates that the half of the width of the menu is both more than described page five Back gauge be more than again the 6th margin away from when, the part of the menu is shown in the width of the current display page, will Another part of the menu is hidden.
Optionally, described device also includes:
First receiving module, for receiving the slide of user in the horizontal direction;
First menu control module, for the slide according to user in the horizontal direction, the menu is controlled in water Square move up, show hiding part menu.
Optionally, the menu determines that display module includes:
Second place determining unit, for indicating that the width of the menu is less than or equal to the described 3rd when the comparative result Margin away from and more than the 4th margin away from when, show the menu in the 3rd viewing area;When the comparative result refers to Show the menu height be more than the 3rd margin away from and less than or equal to the 4th margin away from when, in the 4th viewing area Domain shows the menu.
Optionally, the second place determining unit, it is additionally operable to when the comparative result indicates that the height of the menu is big In the 3rd margin away from and more than the 4th margin away from when, show institute in first viewing area or the second viewing area State menu.
Optionally, the second place determining unit, it is additionally operable to when the comparative result indicates the height of the menu When half is more than the first page back gauge, further a part for the menu is included in first viewing area, and Another part of the menu is included in second viewing area;When the comparative result indicates the height of the menu Half when being more than the second page back gauge, further a part for the menu is included in second viewing area, And another part of the menu is included in first viewing area;When the comparative result indicates the height of the menu When the half of degree had not only been more than the first page back gauge but also had been more than the second page back gauge, in the height of the current display page A part for the menu is shown, another part of the menu is hidden.
Optionally, the menu determines that display module also includes:
Second area division unit, for the horizontal central line according to the position of touch by the 3rd viewing area or Four viewing areas are divided into sub-zones, lower subregion, obtain the horizontal central line and the upper and lower border of the current display page The 7th margin away from the 8th margin away from;
The second place determining unit, it is additionally operable to when the comparative result indicates that the half of the height of the menu is more than 7th margin away from when, further a part for the menu is included in the sub-zones, and by the menu Another part is shown in the lower subregion;When the comparative result indicates that the half of the height of the menu is more than described the Eight margins away from when, further a part for the menu is included in the lower subregion, and by another portion of the menu Divide and be shown in the sub-zones;When the comparative result indicates that the half of the height of the menu is both more than described page seven Back gauge be more than again the 8th margin away from when, the part of the menu is shown in the height of the current display page, will Another part of the menu is hidden.
Optionally, described device also includes:
Second receiving module, for receiving the slide of user in vertical direction;
Second menu control module, for the slide according to user in vertical direction, the menu is controlled to hang down Nogata moves up, and shows hiding part menu.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of manu displaying device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain recall position of touch corresponding to the touch control operation of menu apart from each border of current display page margin away from;
Obtain the size of the menu;
Compare the menu size and the margin away from;
According to the comparative result, it is determined that the position of the menu can completely be shown, and the menu is shown.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of menu display method according to an exemplary embodiment.
Fig. 2 a are the schematic diagrames of the user's finger touch display screen according to an exemplary embodiment.
Fig. 2 b are the signals after touch display screen dextrorotation is turn 90 degrees in Fig. 2 a according to an exemplary embodiment Figure.
Fig. 3 be position of touch according to an exemplary embodiment with the margin on each border of current display page away from show It is intended to.
Fig. 4 a be position of touch according to an exemplary embodiment with the margin on each border of current display page away from Schematic diagram.
Fig. 4 b be position of touch according to another exemplary embodiment with the margin on each border of current display page away from Schematic diagram.
Fig. 5 a and Fig. 5 b are the schematic diagrames of the viewing area according to an exemplary embodiment;
Fig. 6 a and Fig. 6 b are the schematic diagrames of the subregion of the viewing area according to an exemplary embodiment;
Fig. 7 a~Fig. 7 l are the signals of the menu shown in current display page according to an exemplary embodiment Figure;
Fig. 8 is the flow chart of the menu display method according to an exemplary embodiment;
Fig. 9 is the schematic diagram of the menu shown in current display page according to an exemplary embodiment;
Figure 10 is the flow chart of the menu display method according to an exemplary embodiment;
Figure 11 is the schematic diagram of the menu shown in current display page according to an exemplary embodiment;
Figure 12 is a kind of manu displaying device block diagram according to an exemplary embodiment;
Figure 13 is a kind of manu displaying device block diagram according to another exemplary embodiment;
Figure 14 is that the menu according to an exemplary embodiment determines display module block diagram;
Figure 15 is a kind of manu displaying device block diagram according to another exemplary embodiment;
Figure 16 is that the menu according to another exemplary embodiment determines display module block diagram;
Figure 17 is a kind of manu displaying device block diagram according to an exemplary embodiment;
Figure 18 is a kind of block diagram of device 1300 shown for menu according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of menu display method according to an exemplary embodiment, as shown in figure 1, menu Display methods is used in terminal, comprises the following steps.
In step s 11, obtain and recall position of touch corresponding to the touch control operation of menu apart from each side of current display page The margin on boundary away from.
In step s 12, the size of menu is obtained.
In step s 13, compare menu size and margin away from.
In step S14, according to comparative result, it is determined that the position of menu can completely be shown, and menu is shown.
Fig. 2 a are the schematic diagrames of the user's finger touch display screen according to an exemplary embodiment.As shown in Figure 2 a, When user's finger touches current display page 21, the touch control operation of user recalls menu at position of touch 22.At this time, it may be necessary to Obtain position of touch 22 to 21 each border of current display page margin away from, and obtain the size of menu, as menu width and Highly.By the margin of menu size and position of touch 22 to 21 each border of current display page away from being compared, it is determined that current The position of menu can be completely shown on the display page 21, and menu is shown on the position.
Fig. 2 b are the signals after touch display screen dextrorotation is turn 90 degrees in Fig. 2 a according to an exemplary embodiment Figure.As shown in Figure 2 b, when display screen occurs after dextrorotation is turn 90 degrees, it is necessary to redefine each of current display page 21 ' Border, original show that the left margin of the page 21 is changed into the coboundary of current display page 21 ', and original shows that the coboundary of the page 21 is changed into Right margin of current display page 21 ' etc..Therefore, position of the position of touch 22 ' of user in current display page 21 ' is also sent out Changing, it is necessary to recalculate position of touch 22 ' to each border of current display page 21 ' margin away from.By menu size and touch Position 22 ' is controlled to the margin on each border of current display page 21 ' away from being compared, is redefined in current display page 21 ' The position of menu can be completely shown, and menu is shown on the position.
In the present embodiment, position of touch is each apart from current display page according to corresponding to user recalls the touch control operation of menu The margin on border away from and menu size, judge completely show the position of menu in current display page.So, end is passed through The automatic calculating at end complete display menu on the page, without manual operation, saved human cost, and no matter user's touch-control The optional position on the page is operated, can completely show menu, menu is shown flexibly.When screen rotates, Recalculate the display location of menu so that complete menu can be shown on the page all the time.The body that user shows to the page Degree of testing is higher.
Optionally, the size of menu can precalculate out and at this according to the content of menu, such as picture, word Ground is stored, and can also be calculated in real time when recalling menu every time.
Optionally, in step s 11, position of touch can be regarded as to a point, position of touch can also be regarded as to one Rectangular area.
In alternative, the position of touch of user may be shown as a circle in the page, such as Fig. 2 a and Fig. 2 b institutes Show, position of touch can also be shown as other shapes.But during reality calculating menu display location, can be with a point or one Rectangular area as the position of touch come calculate position of touch apart from each border of current display page margin away from.So so that Margin away from calculating it is more convenient, accurate.
When the position of touch for point when, obtain it is described point apart from each border of the current display page margin away from;When When the position of touch is rectangular area, the crucial point coordinates of the rectangular area and the size of the rectangular area are obtained, The rectangular area is obtained apart from each border of the current display page according to the crucial point coordinates and size of the rectangular area Margin away from;Wherein, the key point is the set point of the rectangular area.
Fig. 3 be position of touch according to an exemplary embodiment with the margin on each border of current display page away from show It is intended to.As shown in figure 3, coordinate system can be built by origin of the left upper apex of current display page, along current display page Width is X-axis, and the short transverse along current display page is Y-axis.Step S11 includes:When position of touch is point 32, obtain Take a little 32 apart from 31 each border of current display page margin away from.
The coordinate of point 32 is (500,400), and the width of current display page 41 is 1700, is highly 1300.Point 32, which arrives, works as The margin of the preceding display page 31 coboundary away from for 400, to the lower boundary of current display page 31 margin away from for 900, to current aobvious Show the margin of the left margin of the page 31 away from for 500, to the right margin of current display page 31 margin away from for 1200.
Fig. 4 a be position of touch according to an exemplary embodiment with the margin on each border of current display page away from Schematic diagram.As shown in fig. 4 a, step S11 includes:When position of touch is rectangular area 42, the key point of rectangular area 42 is obtained Coordinate and the size of rectangular area, rectangular area 42 is obtained apart from current according to the crucial point coordinates and size of rectangular area 42 Show the margin on the page 41 each side away from;Wherein, key point is rectangular area set point, as the central point of rectangular area or one push up Point.
When being put centered on key point, the coordinate of the central point of rectangular area 42 is (500,400);The height of rectangular area 42 Spend for 10, width 30;The width of current display page 41 is 1700, is highly 1300.Rectangular area 42 shows page to current The margin of the coboundary of face 41 away from for 400-10/2=395, to the lower boundary of current display page 41 margin away from for 900-10/2= 895, to the left margin of current display page 41 margin away from for 500-30/2=485, to the page of the right margin of current display page 41 Back gauge is 1200-30/2=1185.
When key point is a summit, such as left upper apex, the coordinate of the left upper apex of rectangular area 42 for (500, 400);The height of rectangular area 42 is 10, width 30;The width of current display page 41 is 1700, is highly 1300.Rectangle Region 42 to the coboundary of current display page 41 margin away from for 400, to the lower boundary of current display page 41 margin away from for 900-10=890, to the left margin of current display page 41 margin away from for 500, to the margin of the right margin of current display page 41 Away from for 1200-30=1170.
When position of touch is rectangular area, calculate rectangular area apart from each side of current display page margin away from need by The size of rectangular area is taken into account.
As shown in fig. 4 a, position of touch apart from each side of current display page margin away from including:
Position of touch is obtained to the first page back gauge 431 of current display page coboundary;
Position of touch is obtained to the second page back gauge 432 of current display page lower boundary;
Position of touch is obtained to the 3rd margin of current display page left margin away from 433;
Position of touch is obtained to the 4th margin of current display page right margin away from 434.
Fig. 5 a and Fig. 5 b are the schematic diagrames of the viewing area according to an exemplary embodiment.
Optionally, as shown in figure 5a and 5b, the method for the present embodiment also includes:
Using the position of touch as split position, the current display page is arranged to the first viewing area 51, second Viewing area 52, the 3rd viewing area 53 and the 4th viewing area 54;
Wherein, first viewing area 51 is rectangular area and its height is that the position of touch currently shows to described Show the first page back gauge 431 of page coboundary;
Second viewing area 52 is rectangular area and its height is the position of touch to the current display page The second page back gauge 432 of lower boundary;
3rd viewing area 53 is rectangular area and its width is the position of touch to the current display page 3rd margin of left margin is away from 433;
4th viewing area 54 is rectangular area and its width is the position of touch to the current display page 4th margin of right margin is away from 434.
In alternative, according to position of touch apart from each border of current display page margin away from by current display page Viewing area is divided, is easy to follow-up judgement completely to show menu in which region actually.
Optionally, in step S14, it is determined that the mode of the position of display menu can include:
When the comparative result indicates that the height of the menu is less than or equal to the first page back gauge and more than described second Margin away from when, show the menu in first viewing area;
When the comparative result indicates that the height of the menu is more than the first page back gauge and less than or equal to described second Margin away from when, show the menu in second viewing area.
With reference to Fig. 4 a and Fig. 5 a, by menu height compared with first page back gauge 431 or second page back gauge 432, work as dish When single height is less than or equal to first page back gauge 431, as shown in Figure 7a, then menu 71 can be complete in the first viewing area 51 Whole display, meanwhile, it can show that menu 71 points to the arrow 72 of position of touch 42.Or when menu is highly more than the first margin Away from 431, but when being less than or equal to second page back gauge 432, as shown in Figure 7b, then menu 71 can be complete in the second viewing area 52 Whole display.
Optionally, when the comparative result indicates that the height of the menu is more than the first page back gauge and more than described the Two margins away from when, show the menu in the 3rd viewing area or the 4th viewing area.
Optionally, it is determined that menu behind the first viewing area or the second viewing area completely display, can also be further Determine that menu is particularly shown position in the first viewing area or the second viewing area.In step S14, when the touch-control position When being set to, it is determined that the mode of the position of display menu can also include:When the comparative result indicates the width of the menu Half be more than the 3rd margin away from when, further by a part for the menu include in the 3rd viewing area, And another part of the menu is included in the 4th viewing area;When the comparative result indicates the width of the menu The half of degree be more than the 4th margin away from when, further by a part for the menu include in the 4th viewing area In, and another part of the menu is included in the 3rd viewing area;When the comparative result indicates the menu Width half not only be more than the 3rd margin away from again be more than the 4th margin away from when, in the width of the current display page A part for the display menu, another part of the menu is hidden in degree.
Optionally, in step S14, when the position of touch is rectangular area, it is determined that the side of the position of display menu Formula can also include:First viewing area or the second viewing area are divided into according to the median vertical line of the position of touch Left subregion, right subregion, the 5th margin on the median vertical line and the left and right border of the current display page is obtained away from the Six margins away from;
When the comparative result indicate the half of the width of the menu be more than the 5th margin away from when, further by institute The part for stating menu is shown in the left subregion, and another part of the menu is included in the right subregion In;
When the comparative result indicate the half of the width of the menu be more than the 6th margin away from when, further by institute The part for stating menu is shown in the right subregion, and another part of the menu is included in the left subregion In;
When the comparative result indicates that the half of the width of the menu had not only been more than the 5th margin away from again more than described in 6th margin away from when, the part of the menu is shown in the width of the current display page, by the another of the menu Part hides.
Fig. 4 b be position of touch according to another exemplary embodiment with the margin on each border of current display page away from Schematic diagram.As shown in Figure 4 b, the distance of the median vertical line 44 of position of touch and left margin in current display page is page five Back gauge 435;
The median vertical line 44 of position of touch and the distance of current display page right margin are the 6th margin away from 436;
The horizontal central line 45 of position of touch and the distance of current display page coboundary are the 7th margin away from 437;
The horizontal central line 45 of position of touch and the distance of current display page lower boundary are the 8th margin away from 438.
Fig. 6 a and Fig. 6 b are the schematic diagrames of the subregion of the viewing area according to an exemplary embodiment.
With reference to Fig. 4 b, Fig. 5 a and Fig. 6 a, the first viewing area 51 is divided into by left side according to the median vertical line of position of touch The first subregion 511 and right side the second subregion 512, the second viewing area 52 is divided into the 3rd subregion 521 and Four subregions 522.The 5th margin for obtaining median vertical line and current display page left margin shows away from 435, median vertical line with current Show the 6th margin of page right margin away from 436.
So that menu can completely be shown in the first viewing area 51 as an example, when the half of menu width is less than or equal to the Five margins away from 435 and the 6th margin away from 436 when, as shown in Figure 7 c, can be in the He of two sub-regions 511 of the first viewing area 51 The half of menu 71 is shown in 512 respectively.When menu width half be more than the 5th margin away from 435, as shown in figure 7d, then can make Obtain menu and take the first subregion 511, the remaining part of menu is shown in the second subregion 512.When the half of menu width More than the 6th margin away from 436, as shown in figure 7e, then it may be such that menu takes the second subregion 512, the remaining part of menu is Shown in one subregion 511.
With reference to Fig. 4 a, Fig. 5 a and Fig. 5 b, when first page back gauge 431 and second page back gauge 432 are respectively less than menu height, i.e., When menu can not completely be shown in the first viewing area 51 and the second viewing area 52, then menu can only be in the 3rd viewing area 53 or the 4th show in viewing area 54.At this moment, it is necessary to according to the 3rd margin away from 433 and the 4th margin away from 434 determine the 3rd The viewing area 54 of viewing area 53 or the 4th completely shows menu.
When the width of menu is less than or equal to the 3rd margin away from 433, as depicted in fig. 7f, then menu can be in the 3rd display Completely shown in region 53;Or when menu width be more than the 3rd margin away from 433, but less than or equal to the 4th margin away from 434 When, as shown in figure 7g, then menu can completely be shown in the 4th viewing area 54.
In alternative, by first determining whether menu can completely be shown in the first or second viewing area, if When menu can not completely be shown in the first or second viewing area, then judge whether menu can completely be shown in the 3rd or the 4th and show Show region.When menu can completely be shown in first or the second viewing area, it may further determine that menu in the first viewing area Position is particularly shown in domain or the second viewing area.So so that the display of menu is more accurate, and display effect is more preferable.
Optionally, in step S14, it is determined that the another way of the position of display menu can include:
When the comparative result indicates that the width of the menu is less than or equal to the 3rd margin away from and more than the described 4th Margin away from when, show the menu in the 3rd viewing area;
When the comparative result indicates that the height of the menu is more than the 3rd margin away from and less than or equal to the described 4th Margin away from when, show the menu in the 4th viewing area.
With reference to Fig. 4 a and Fig. 5 b, it is determined that showing in the mode of the position of menu, first by menu width and the 3rd margin Away from 433 or the 4th margin compare away from 434, judgement is completely shown in the 3rd viewing area 53 or in the 4th viewing area 54 Menu.
By menu width and the 3rd margin away from 433 or the 4th margin away from 434 compared with, when the width of menu is less than or waits When the 3rd margin is away from 433, as depicted in fig. 7f, then menu can completely be shown in the 3rd viewing area 53;Or work as menu Width be more than the 3rd margin away from 433, but less than or equal to the 4th margin away from 434 when, as shown in figure 7g, then menu can be the 4th Completely shown in viewing area 54.
Optionally, when the comparative result indicates that the height of the menu is more than the 3rd margin away from and more than described the Four margins away from when, show the menu in first viewing area or the second viewing area.
Optionally, it is determined that menu behind the 3rd viewing area or the 4th viewing area completely display, can also be further Determine that menu is particularly shown position in the 3rd viewing area or the 4th viewing area.In step S14, when the touch-control position When being set to, it is determined that the mode of the position of display menu can also include:When the comparative result indicates the height of the menu Half when being more than the first page back gauge, further a part for the menu is included in first viewing area, And another part of the menu is included in second viewing area;
When the comparative result indicates that the half of the height of the menu is more than the second page back gauge, further by institute The part for stating menu is shown in second viewing area, and another part of the menu is included showing described first Show in region;
When the comparative result indicates that the half of the height of the menu had not only been more than the first page back gauge but also more than described During second page back gauge, a part for the menu is shown in the height of the current display page, by the another of the menu Part hides.
Optionally, in step S14, when the position of touch is rectangular area, it is determined that the side of the position of display menu Formula can also include:
3rd viewing area or the 4th viewing area are divided into by upper son according to the horizontal central line of the position of touch Region, lower subregion, obtain the 7th margin on the horizontal central line and the upper and lower border of the current display page away from page eight Back gauge;
When the comparative result indicate the half of the height of the menu be more than the 7th margin away from when, further by institute The part for stating menu is shown in the sub-zones, and another part of the menu is included in the lower subregion In;
When the comparative result indicate the half of the height of the menu be more than the 8th margin away from when, further by institute The part for stating menu is shown in the lower subregion, and another part of the menu is included in the sub-zones In;
When the comparative result indicates that the half of the height of the menu had not only been more than the 7th margin away from again more than described in 8th margin away from when, the part of the menu is shown in the height of the current display page, by the another of the menu Part hides.
With reference to Fig. 4 b, Fig. 5 b and Fig. 6 b, the 3rd viewing area 53 is divided into by upside according to the horizontal central line of position of touch The 5th subregion 531 and downside the 6th subregion 532, the 4th viewing area 54 is divided into the 7th subregion 541 and Eight subregions 542.Obtain horizontal central line and the 7th margin of current display page coboundary shows away from 437, horizontal central line with current Show the 8th margin of page lower boundary away from 438.
So that menu can completely be shown in the 3rd viewing area 53 as an example, when the half of menu height is less than or equal to the Seven margins away from 437 and the 8th margin away from 438 when, can be in the He of two sub-regions 531 of the 3rd viewing area 53 as shown in Fig. 7 h The half of menu is shown in 532 respectively.When menu height half be more than the 6th margin away from 436, as shown in figure 7i, then may be such that Menu takes the 5th subregion 531, and the remaining part of menu is shown in the 6th subregion 532.One when menu height is medium-sized In the 8th margin away from 438, as shown in Fig. 7 j, then it may be such that menu takes the 6th subregion 532, the remaining part of menu is the 5th Shown in subregion 531.
Optionally, when the 3rd margin is away from the 4th margin away from the respectively less than menu width, according to described first Comparative result of the margin away from the comparative result with the menu height or the second page back gauge and the menu height, sentences Break and completely show the menu in first viewing area or second viewing area.
With reference to Fig. 4 a, Fig. 5 a and Fig. 5 b, when the 3rd margin away from 433 and the 4th margin be respectively less than menu width away from 434 when, i.e., When menu can not completely be shown in the 3rd viewing area 53 and the 4th viewing area 54, then menu can only be in the first viewing area 51 or second show in viewing area 52.At this moment, it is necessary to be determined according to first page back gauge 431 and second page back gauge 432 first The viewing area 52 of viewing area 51 or second completely shows menu.
In alternative, by first determining whether menu can completely be shown in the 3rd or the 4th viewing area, if When menu can not completely be shown in the 3rd or the 4th viewing area, then judge whether menu can completely be shown in first or second and show Show region.When menu completely can be shown in the 3rd or four viewing areas, it may further determine that menu the 3rd or the 4th Position is particularly shown in viewing area.So so that the display of menu is more accurate, and display effect is more preferable.
Above two determines the mode of the position of display menu, and general principle is identical, and simply judgement order has difference, in reality When border is applied, any one mode can be selected to determine the display location of menu.
Optionally, when the part that the menu is shown in the height in the current display page, by the menu When another part is hidden, methods described also includes:
Receive the slide of user in vertical direction;
According to the slide of user in vertical direction, the menu is controlled to move in vertical direction, display is hidden Part menu.
When the height of menu exceedes the height of current display page, menu can only be shown in the 3rd viewing area or the 4th Region is shown, but can not completely be shown, a part for the menu can be shown in the height of current display page, by institute The another part for stating menu is hidden.For example, as shown in Fig. 7 k, from the coboundary of current display page until current display page Lower boundary show menu, the menu not shown hidden, and user can be operated by upward sliding and check hiding menu.
Optionally, when the part that the menu is shown in the width in the current display page, by the menu When another part is hidden, methods described also includes:
Receive the slide of user in the horizontal direction;
According to the slide of user in the horizontal direction, the menu is controlled to move in the horizontal direction, display is hidden Part menu.
When the width of menu exceedes the width of current display page, menu can only be shown in the first viewing area or second Region is shown, but can not completely be shown, a part for the menu can be shown in the width of the current display page, Another part of the menu is hidden.For example, as shown in Fig. 7 l, from the left margin of current display page until current display The right margin of the page shows menu, and the menu not shown is hidden, and user can check hiding dish by slide to the left It is single.
In alternative, when the size of menu exceeds the size of current display page, it can be shown using Stealth Modus Menu, while the integrality that guarantee menu is shown, display effect is more preferable, and user checks the simple to operate of menu, carries High user experience.
Determine that the mode that can completely show the position of the menu is specifically described to above two individually below.
By taking the position of touch in Fig. 4 a and current display page as an example, position of touch is rectangular area 42, during key point is During heart point, the coordinate of the central point of rectangular area 42 is (500,400);The height of rectangular area 42 is 10, width 30;Currently The width for showing the page 41 is 1700, is highly 1300.Rectangular area 42 to the coboundary of current display page 41 margin away from for 400-10/2=395, to the lower boundary of current display page 41 margin away from for 900-10/2=895, to current display page 41 The margin of left margin away from for 500-30/2=485, to the right margin of current display page 41 margin away from for 1200-30/2= 1185。
Example one
Fig. 8 is the flow chart of the menu display method according to an exemplary embodiment.As shown in figure 8, menu is shown Method comprises the following steps.
In step 801, the distance between position of touch and the border of current display page upper and lower, left and right four are obtained:The One page back gauge D1=395, second page back gauge D2=895, the 3rd margin is away from D3=485, and the 4th margin is away from D4=1185;
In step 802, menu size, menu height H are obtainedmenu=500, menu width Lmenu=1100, Lmenu/ 2= 550。
In step 803, compare D1 and Hmenu, D1<Hmenu, menu can not completely show in the first viewing area.
In step 804, D2 and H are comparedmenu, D2>Hmenu, menu can completely show in the second viewing area.
In step 805, the second viewing area 52 is divided into the 3rd son in left side according to the median vertical line of position of touch Region 521 and the 4th subregion 522 on right side, median vertical line is obtained with the 5th margin of current display page left margin away from D5= 500th, the 6th margin of median vertical line and current display page right margin is away from D6=1200.
In step 806, D5 and L are comparedmenu/ 2, D5<Lmenu/2;Compare D4 and Lmenu/ 2, D4>Lmenu/ 2, such as Fig. 9 institutes Show so that menu takes the 3rd subregion 521, and the remaining part of menu is shown in the 4th subregion 522.
Pass through the step of example one so that second viewing area of the menu intactly below position of touch is shown.
Example two
Figure 10 is the flow chart of the menu display method according to an exemplary embodiment.As shown in Figure 10, menu shows Show that method comprises the following steps.
In step 901, the distance between position of touch and the border of current display page upper and lower, left and right four are obtained:The One page back gauge D1=395, second page back gauge D2=895, the 3rd margin is away from D3=485, and the 4th margin is away from D4=1185;
In step 902, menu size, menu height H are obtainedmenu=500, Hmenu/ 2=250, menu width Lmenu= 1100。
In step 903, D3 and L are comparedmenu, D3<Lmenu, menu can not completely show in the 3rd viewing area.
In step 904, D4 and L are comparedmenu, D4>Lmenu, menu can completely show in the 4th viewing area.
In step 905, the 4th viewing area 54 is divided into the 7th son of upside according to the horizontal central line of position of touch Region 541 and the 8th subregion 542 of downside, water center line is obtained with the 7th margin of current display page coboundary away from D7= 400th, the 8th margin of water center line and current display page right margin is away from D8=900.
In step 905, Hmenu/2<D7, and Hmenu/2<D8, as shown in figure 11, can be in the 7th subregion 541 and the 8th The half of menu is shown in subregion 542 respectively.
Pass through the step of example two so that fourth viewing area of the menu intactly on the right side of position of touch is shown.
The identical position of touch on the same display page can be seen that by above-mentioned two instantiation, using difference The menu display location that determines of mode may different (menu display location is below position of touch or on the right side of position of touch), But no matter using which kind of mode, it can ensure that menu is completely shown on the page.
Figure 12 is a kind of manu displaying device block diagram according to an exemplary embodiment.Reference picture 12, the device 120 Display module 124 is determined including the first acquisition module 121, the second acquisition module 122, comparison module 123 and menu.
First acquisition module 121, which is configured as obtaining, recalls position of touch corresponding to the touch control operation of menu apart from current aobvious Show the margin on each border of the page away from;
Second acquisition module 122 is configured as obtaining the size of the menu;
Comparison module 123 be configured as menu described in comparison size and the margin away from;
Menu determines that display module 124 is configured as according to the comparative result, it is determined that the menu can completely be shown Position, and show the menu.
Optionally, when the position of touch is point, first acquisition module 121, for obtaining the point apart from institute State the margin on each border of current display page away from;
When the position of touch is rectangular area, first acquisition module 121, for obtaining the rectangular area Crucial point coordinates and the size of the rectangular area, the square is obtained according to the crucial point coordinates and size of the rectangular area The margin on each border of current display page described in shape region distance away from;Wherein, the key point is the setting of the rectangular area Point.
Figure 13 is a kind of manu displaying device block diagram according to another exemplary embodiment.Optionally, such as Figure 13 institutes Show, the device 120 also includes:
Region segmentation module 125, for using the position of touch as split position, the current display page to be arranged to First viewing area, the second viewing area, the 3rd viewing area and the 4th viewing area;
Wherein, first viewing area is rectangular area and its height is that the position of touch is currently shown to described The first page back gauge of page coboundary;
Second viewing area is rectangular area and its height is the position of touch under the current display page The second page back gauge on border;
3rd viewing area is rectangular area and its width is that the position of touch is left to the current display page 3rd margin on border away from;
4th viewing area is rectangular area and its width is that the position of touch is right to the current display page 4th margin on border away from.
Figure 14 is that the menu according to an exemplary embodiment determines display module block diagram.Optionally, as shown in figure 14, The menu determines that display module 124 includes:
First position determining unit 1241, the height for indicating the menu when the comparative result are less than or equal to described First page back gauge and when being more than the second page back gauge, the menu is shown in first viewing area;Relatively tied when described It is aobvious described second when fruit indicates that the height of the menu is more than the first page back gauge and is less than or equal to the second page back gauge Show that region shows the menu.
Optionally, the first position determining unit 1241, it is additionally operable to when the comparative result indicates the height of the menu When degree is more than the first page back gauge and is more than the second page back gauge, show in the 3rd viewing area or the 4th viewing area Show the menu.
Optionally, when the position of touch is point, the first position determining unit 1241, it is additionally operable to work as the comparison As a result indicate the width of the menu half be more than the 3rd margin away from when, further by the menu a part show Include in the 3rd viewing area, and by another part of the menu in the 4th viewing area;When the ratio Relatively result indicate the half of the width of the menu be more than the 4th margin away from when, further a part for the menu is shown Show in the 4th viewing area, and another part of the menu is included in the 3rd viewing area;When described Comparative result indicate the half of the width of the menu be not only more than the 3rd margin away from be more than again the 4th margin away from when, A part for the display menu, another part of the menu is hidden in the width of the current display page.
Optionally, as shown in figure 14, when the position of touch is rectangular area, the menu determines display module 124 Also include:
First area division unit 1242, for the median vertical line according to the position of touch by first viewing area Or second viewing area be divided into left subregion, right subregion, obtain the median vertical line and the current display page be left and right 5th margin on border away from the 6th margin away from;
The first position determining unit 1241, it is additionally operable to when the comparative result indicates the half of the width of the menu More than the 5th margin away from when, further a part for the menu is included in the left subregion, and by the dish Single another part is shown in the right subregion;When the comparative result indicates that the half of the width of the menu is more than institute State the 6th margin away from when, further a part for the menu is included in the right subregion, and by the another of the menu A part is shown in the left subregion;When the comparative result indicates that the half of the width of the menu had both been more than described the Five margins away from again more than the 6th margin away from when, one of the menu is shown in the width of the current display page Point, another part of the menu is hidden.
Figure 15 is a kind of manu displaying device block diagram according to another exemplary embodiment.Optionally, such as Figure 15 institutes Show, described device 120 also includes:
First receiving module 126, for receiving the slide of user in the horizontal direction;
First menu control module 127, for the slide according to user in the horizontal direction, the menu is controlled to exist Moved in horizontal direction, show hiding part menu.
Figure 16 is that the menu according to another exemplary embodiment determines display module block diagram.Optionally, such as Figure 16 institutes Show, the menu determines that display module 124 includes:
Second place determining unit 1243, the width for indicating the menu when the comparative result are less than or equal to described 3rd margin away from and more than the 4th margin away from when, show the menu in the 3rd viewing area;Relatively tied when described Fruit indicate the height of the menu be more than the 3rd margin away from and less than or equal to the 4th margin away from when, it is aobvious the described 4th Show that region shows the menu.
Optionally, the second place determining unit 1243, it is additionally operable to when the comparative result indicates the height of the menu Degree be more than the 3rd margin away from and more than the 4th margin away from when, show in first viewing area or the second viewing area Show the menu.
Optionally, the second place determining unit 1243, it is additionally operable to when the comparative result indicates the height of the menu When the half of degree is more than the first page back gauge, further a part for the menu is included in first viewing area In, and another part of the menu is included in second viewing area;When the comparative result indicates the menu The half of height when being more than the second page back gauge, further a part for the menu is included in second viewing area In domain, and another part of the menu is included in first viewing area;When the comparative result indicates the dish When the half of single height had not only been more than the first page back gauge but also had been more than the second page back gauge, in the current display page A part for the display menu, another part of the menu is hidden in height.
Optionally, as shown in figure 16, the menu determines that display module 124 also includes:
Second area division unit 1244, for the horizontal central line according to the position of touch by the 3rd viewing area Or the 4th viewing area be divided into sub-zones, lower subregion, obtain the horizontal central line and the current display page be upper and lower 7th margin on border away from the 8th margin away from;
The second place determining unit 1243, it is additionally operable to when the comparative result indicates the half of the height of the menu More than the 7th margin away from when, further a part for the menu is included in the sub-zones, and by the dish Single another part is shown in the lower subregion;When the comparative result indicates that the half of the height of the menu is more than institute State the 8th margin away from when, further a part for the menu is included in the lower subregion, and by the another of the menu A part is shown in the sub-zones;When the comparative result indicates that the half of the height of the menu had both been more than described the Seven margins away from again more than the 8th margin away from when, one of the menu is shown in the height of the current display page Point, another part of the menu is hidden.
Figure 17 is a kind of manu displaying device block diagram according to an exemplary embodiment.Optionally, as shown in figure 17, Described device 120 also includes:
Second receiving module 128, for receiving the slide of user in vertical direction;
Second menu control module 129, for the slide according to user in vertical direction, the menu is controlled to exist Vertical Square moves up, and shows hiding part menu.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 18 is a kind of block diagram of device 1300 shown for menu according to an exemplary embodiment.For example, Device 1300 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 13, device 1300 can include following one or more assemblies:Processing component 1302, memory 1304, Power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, the interface 1312 of input/output (I/O), sensor cluster 1314, and communication component 1316.
The integrated operation of the usual control device 1300 of processing component 1302, such as communicated with display, call, data, The operation that camera operation and record operation are associated.Processing component 1302 can include one or more processors 1320 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 1302 can include one or more moulds Block, the interaction being easy between processing component 1302 and other assemblies.For example, processing component 1302 can include multi-media module, To facilitate the interaction between multimedia groupware 1308 and processing component 1302.
Memory 1304 is configured as storing various types of data to support the operation in equipment 1300.These data Example includes being used for the instruction of any application program or method operated on device 1300, contact data, telephone book data, Message, picture, video etc..Memory 1304 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1306 provides electric power for the various assemblies of device 1300.Electric power assembly 1306 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1300.
Multimedia groupware 1308 is included in the screen of one output interface of offer between described device 1300 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more Media component 1308 includes a front camera and/or rear camera.When equipment 1300 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 1310 is configured as output and/or input audio signal.For example, audio-frequency assembly 1310 includes a wheat Gram wind (MIC), when device 1300 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 1304 or via communication Component 1316 is sent.In certain embodiments, audio-frequency assembly 1310 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1312 provide interface, above-mentioned peripheral interface module between processing component 1302 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1314 includes one or more sensors, and the state for providing various aspects for device 1300 is commented Estimate.For example, sensor cluster 1314 can detect opening/closed mode of equipment 1300, the relative positioning of component, such as institute The display and keypad that component is device 1300 are stated, sensor cluster 1314 can be with detection means 1300 or device 1,300 1 The position of individual component changes, the existence or non-existence that user contacts with device 1300, the orientation of device 1300 or acceleration/deceleration and dress Put 1300 temperature change.Sensor cluster 1314 can include proximity transducer, be configured in no any physics The presence of object nearby is detected during contact.Sensor cluster 1314 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1314 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1316 is configured to facilitate the communication of wired or wireless way between device 1300 and other equipment.Dress The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1300.It is exemplary at one In embodiment, communication component 1316 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1316 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1300 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1304 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1320 of device 1300.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (22)

  1. A kind of 1. menu display method, it is characterised in that including:
    Obtain recall position of touch corresponding to the touch control operation of menu apart from each border of current display page margin away from;
    Obtain the size of the menu;
    Compare the menu size and the margin away from;
    According to the comparative result, it is determined that the position of the menu can completely be shown, and the menu is shown;
    Methods described also includes:
    Using the position of touch as split position, the current display page is arranged to the first viewing area, the second viewing area Domain, the 3rd viewing area and the 4th viewing area;
    Wherein, first viewing area is rectangular area and its height is the position of touch to the current display page The first page back gauge of coboundary;
    Second viewing area is rectangular area and its height is the position of touch to the current display page lower boundary Second page back gauge;
    3rd viewing area is rectangular area and its width is the position of touch to the current display page left margin The 3rd margin away from;
    4th viewing area is rectangular area and its width is the position of touch to the current display page right margin The 4th margin away from;
    The acquisition recalls margin of the position of touch corresponding to the touch control operation of menu apart from each border of current display page away from bag Include:
    When the position of touch for point when, obtain it is described point apart from each border of the current display page margin away from;
    When the position of touch is rectangular area, the crucial point coordinates of the rectangular area and the rectangular area are obtained Size, it is each apart from the current display page that the rectangular area is obtained according to the crucial point coordinates and size of the rectangular area The margin on border away from;Wherein, the key point is the set point of the rectangular area;
    It is described according to the comparative result, it is determined that the position of the menu can completely be shown, including:
    When the comparative result indicates the height of the menu less than or equal to the first page back gauge and is more than second margin Away from when, show the menu in first viewing area;
    When the comparative result indicates the height of the menu more than the first page back gauge and is less than or equal to second margin Away from when, show the menu in second viewing area.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:When the comparative result indicates institute When stating the height of menu more than the first page back gauge and being more than the second page back gauge, in the 3rd viewing area or the 4th Viewing area shows the menu.
  3. 3. according to the method for claim 1, it is characterised in that when the position of touch is point, methods described also includes:
    When the comparative result indicate the half of the width of the menu be more than the 3rd margin away from when, further by the dish A single part is shown in the 3rd viewing area, and another part of the menu is included in the 4th viewing area In domain;
    When the comparative result indicate the half of the width of the menu be more than the 4th margin away from when, further by the dish A single part is shown in the 4th viewing area, and another part of the menu is included in the 3rd viewing area In domain;
    When the comparative result indicates that the half of the width of the menu had not only been more than the 3rd margin away from being more than the described 4th again Margin away from when, the part of the menu is shown in the width of the current display page, by another part of the menu Hide.
  4. 4. according to the method for claim 1, it is characterised in that when the position of touch is rectangular area, methods described Also include:
    According to the median vertical line of the position of touch by first viewing area or the second viewing area be divided into left subregion, Right subregion, obtain the 5th margin on the median vertical line and the left and right border of the current display page away from the 6th margin away from;
    When the comparative result indicate the half of the width of the menu be more than the 5th margin away from when, further by the dish A single part is shown in the left subregion, and another part of the menu is included in the right subregion;
    When the comparative result indicate the half of the width of the menu be more than the 6th margin away from when, further by the dish A single part is shown in the right subregion, and another part of the menu is included in the left subregion;
    When the comparative result indicates that the half of the width of the menu had not only been more than the 5th margin away from being more than the described 6th again Margin away from when, the part of the menu is shown in the width of the current display page, by another part of the menu Hide.
  5. 5. the method according to claim 3 or 4, it is characterised in that shown when in the width in the current display page A part for the menu, when another part of the menu is hidden, methods described also includes:
    Receive the slide of user in the horizontal direction;
    According to the slide of user in the horizontal direction, control the menu to move in the horizontal direction, show hiding portion Divide menu.
  6. 6. according to the method for claim 1, it is characterised in that it is described according to the comparative result, it is determined that can completely show The position of the menu, including:
    When the comparative result indicate the width of the menu be less than or equal to the 3rd margin away from and be more than the 4th margin Away from when, show the menu in the 3rd viewing area;
    When the comparative result indicate the height of the menu be more than the 3rd margin away from and be less than or equal to the 4th margin Away from when, show the menu in the 4th viewing area.
  7. 7. according to the method for claim 6, it is characterised in that methods described also includes:
    When the comparative result indicate the height of the menu be more than the 3rd margin away from and more than the 4th margin away from when, The menu is shown in first viewing area or the second viewing area.
  8. 8. according to the method for claim 6, it is characterised in that when the position of touch is point, methods described also includes:
    When the comparative result indicates that the half of the height of the menu is more than the first page back gauge, further by the dish A single part is shown in first viewing area, and another part of the menu is included in second viewing area In domain;
    When the comparative result indicates that the half of the height of the menu is more than the second page back gauge, further by the dish A single part is shown in second viewing area, and another part of the menu is included in first viewing area In domain;
    When the comparative result indicates that the half of the height of the menu had not only been more than the first page back gauge but also more than described second Margin away from when, the part of the menu is shown in the height of the current display page, by another part of the menu Hide.
  9. 9. according to the method for claim 6, it is characterised in that when the position of touch is rectangular area, methods described Also include:
    According to the horizontal central line of the position of touch by the 3rd viewing area or the 4th viewing area be divided into sub-zones, Lower subregion, obtain the 7th margin on the horizontal central line and the upper and lower border of the current display page away from the 8th margin away from;
    When the comparative result indicate the half of the height of the menu be more than the 7th margin away from when, further by the dish A single part is shown in the sub-zones, and another part of the menu is included in the lower subregion;
    When the comparative result indicate the half of the height of the menu be more than the 8th margin away from when, further by the dish A single part is shown in the lower subregion, and another part of the menu is included in the sub-zones;
    When the comparative result indicates that the half of the height of the menu had not only been more than the 7th margin away from being more than the described 8th again Margin away from when, the part of the menu is shown in the height of the current display page, by another part of the menu Hide.
  10. 10. method according to claim 8 or claim 9, it is characterised in that shown when in the height in the current display page A part for the menu, when another part of the menu is hidden, methods described also includes:
    Receive the slide of user in vertical direction;
    According to the slide of user in vertical direction, control the menu to move in vertical direction, show hiding portion Divide menu.
  11. A kind of 11. manu displaying device, it is characterised in that including:
    First acquisition module, position of touch corresponding to the touch control operation of menu is recalled apart from each side of current display page for obtaining The margin on boundary away from;
    Second acquisition module, for obtaining the size of the menu;
    Comparison module, for the menu size and the margin away from;
    Menu determines display module, for according to the comparative result, it is determined that the position of the menu can completely be shown, and showing The menu;
    Described device also includes:
    Region segmentation module, for using the position of touch as split position, the current display page being arranged into first and shown Show region, the second viewing area, the 3rd viewing area and the 4th viewing area;
    Wherein, first viewing area is rectangular area and its height is the position of touch to the current display page The first page back gauge of coboundary;
    Second viewing area is rectangular area and its height is the position of touch to the current display page lower boundary Second page back gauge;
    3rd viewing area is rectangular area and its width is the position of touch to the current display page left margin The 3rd margin away from;
    4th viewing area is rectangular area and its width is the position of touch to the current display page right margin The 4th margin away from;
    When the position of touch is point, first acquisition module, for obtaining the point apart from the current display page The margin on each border away from;
    When the position of touch is rectangular area, first acquisition module, for obtaining the key point of the rectangular area Coordinate and the size of the rectangular area, the rectangular area is obtained according to the crucial point coordinates and size of the rectangular area Apart from each border of the current display page margin away from;Wherein, the key point is the set point of the rectangular area;
    The menu determines that display module includes:
    First position determining unit, for indicating that the height of the menu is less than or equal to first margin when the comparative result Away from and when being more than the second page back gauge, show the menu in first viewing area;When the comparative result indicates institute When stating the height of menu more than the first page back gauge and being less than or equal to the second page back gauge, show in second viewing area Show the menu.
  12. 12. device according to claim 11, it is characterised in that the first position determining unit, be additionally operable to when described When comparative result indicates that the height of the menu is more than the first page back gauge and is more than the second page back gauge, the described 3rd Viewing area or the 4th viewing area show the menu.
  13. 13. device according to claim 11, it is characterised in that when the position of touch is point, the first position Determining unit, be additionally operable to when the comparative result indicate the half of the width of the menu be more than the 3rd margin away from when, enter One step includes a part for the menu in the 3rd viewing area, and another part of the menu is included in institute State in the 4th viewing area;When the comparative result indicate the half of the width of the menu be more than the 4th margin away from when, Further a part for the menu is included in the 4th viewing area, and another part of the menu is included In 3rd viewing area;When the comparative result indicate the half of the width of the menu be both more than the 3rd margin away from Be more than again the 4th margin away from when, the part of the menu is shown in the width of the current display page, will described in Another part of menu is hidden.
  14. 14. device according to claim 11, it is characterised in that when the position of touch is rectangular area, the dish It is single to determine that display module also includes:
    First area division unit, first viewing area or second are shown for the median vertical line according to the position of touch Show region division for left subregion, right subregion, obtain the of the median vertical line and the left and right border of the current display page Five margins away from the 6th margin away from;
    The first position determining unit, it is additionally operable to when the comparative result indicates the half of the width of the menu more than described 5th margin away from when, further a part for the menu is included in the left subregion, and by the another of the menu It is partially shown in the right subregion;When the comparative result indicates that the half of the width of the menu is more than described page six During back gauge, further a part for the menu is included showing in the right subregion, and by another part of the menu Show in the left subregion;When the comparative result indicate the half of the width of the menu be both more than the 5th margin away from Be more than again the 6th margin away from when, the part of the menu is shown in the width of the current display page, will described in Another part of menu is hidden.
  15. 15. the device according to claim 13 or 14, it is characterised in that described device also includes:
    First receiving module, for receiving the slide of user in the horizontal direction;
    First menu control module, for the slide according to user in the horizontal direction, the menu is controlled in level side Move up, show hiding part menu.
  16. 16. device according to claim 11, it is characterised in that the menu determines that display module includes:
    Second place determining unit, for indicating that the width of the menu is less than or equal to the 3rd margin when the comparative result Away from and more than the 4th margin away from when, show the menu in the 3rd viewing area;When the comparative result indicates institute State menu height be more than the 3rd margin away from and less than or equal to the 4th margin away from when, show in the 4th viewing area Show the menu.
  17. 17. device according to claim 16, it is characterised in that the second place determining unit, be additionally operable to when described Comparative result indicate the height of the menu be more than the 3rd margin away from and more than the 4th margin away from when, described first Viewing area or the second viewing area show the menu.
  18. 18. device according to claim 16, it is characterised in that the second place determining unit, be additionally operable to when described When comparative result indicates that the half of the height of the menu is more than the first page back gauge, further by a part for the menu It is shown in first viewing area, and another part of the menu is included in second viewing area;Work as institute When stating comparative result and indicating that the half of the height of the menu is more than the second page back gauge, further by one of the menu Divide and be shown in second viewing area, and another part of the menu is included in first viewing area;When The comparative result indicates that the half of the height of the menu had not only been more than the first page back gauge but also was more than the second page back gauge When, a part for the menu is shown in the height of the current display page, another part of the menu is hidden.
  19. 19. device according to claim 16, it is characterised in that the menu determines that display module also includes:
    Second area division unit, the 3rd viewing area or the 4th are shown for the horizontal central line according to the position of touch Show region division for sub-zones, lower subregion, obtain the of the horizontal central line and the upper and lower border of the current display page Seven margins away from the 8th margin away from;
    The second place determining unit, it is additionally operable to when the comparative result indicates the half of the height of the menu more than described 7th margin away from when, further a part for the menu is included in the sub-zones, and by the another of the menu It is partially shown in the lower subregion;When the comparative result indicates that the half of the height of the menu is more than described page eight During back gauge, further a part for the menu is included showing in the lower subregion, and by another part of the menu Show in the sub-zones;When the comparative result indicate the half of the height of the menu be both more than the 7th margin away from Be more than again the 8th margin away from when, the part of the menu is shown in the height of the current display page, will described in Another part of menu is hidden.
  20. 20. the device according to claim 18 or 19, it is characterised in that described device also includes:
    Second receiving module, for receiving the slide of user in vertical direction;
    Second menu control module, for the slide according to user in vertical direction, the menu is controlled in Vertical Square Move up, show hiding part menu.
  21. A kind of 21. manu displaying device, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Obtain recall position of touch corresponding to the touch control operation of menu apart from each border of current display page margin away from;
    Obtain the size of the menu;
    Compare the menu size and the margin away from;
    According to the comparative result, it is determined that the position of the menu can completely be shown, and the menu is shown;
    Using the position of touch as split position, the current display page is arranged to the first viewing area, the second viewing area Domain, the 3rd viewing area and the 4th viewing area;
    Wherein, first viewing area is rectangular area and its height is the position of touch to the current display page The first page back gauge of coboundary;
    Second viewing area is rectangular area and its height is the position of touch to the current display page lower boundary Second page back gauge;
    3rd viewing area is rectangular area and its width is the position of touch to the current display page left margin The 3rd margin away from;
    4th viewing area is rectangular area and its width is the position of touch to the current display page right margin The 4th margin away from;
    The acquisition recalls margin of the position of touch corresponding to the touch control operation of menu apart from each border of current display page away from bag Include:
    When the position of touch for point when, obtain it is described point apart from each border of the current display page margin away from;
    When the position of touch is rectangular area, the crucial point coordinates of the rectangular area and the rectangular area are obtained Size, it is each apart from the current display page that the rectangular area is obtained according to the crucial point coordinates and size of the rectangular area The margin on border away from;Wherein, the key point is the set point of the rectangular area;
    It is described according to the comparative result, it is determined that the position of the menu can completely be shown, including:
    When the comparative result indicates the height of the menu less than or equal to the first page back gauge and is more than second margin Away from when, show the menu in first viewing area;
    When the comparative result indicates the height of the menu more than the first page back gauge and is less than or equal to second margin Away from when, show the menu in second viewing area.
  22. 22. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is processed The step of device realizes method any one of claim 1 to 10 when performing.
CN201410189146.5A 2014-05-06 2014-05-06 menu display method and device Active CN103984476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410189146.5A CN103984476B (en) 2014-05-06 2014-05-06 menu display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410189146.5A CN103984476B (en) 2014-05-06 2014-05-06 menu display method and device

Publications (2)

Publication Number Publication Date
CN103984476A CN103984476A (en) 2014-08-13
CN103984476B true CN103984476B (en) 2018-03-09

Family

ID=51276474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410189146.5A Active CN103984476B (en) 2014-05-06 2014-05-06 menu display method and device

Country Status (1)

Country Link
CN (1) CN103984476B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383680A (en) * 2016-09-08 2017-02-08 广州视睿电子科技有限公司 Display method and display device based on screen expansion
CN109032455B (en) * 2017-06-08 2021-10-22 深圳市道通智能航空技术股份有限公司 Menu display method and device
CN107688428B (en) * 2017-08-31 2020-05-01 平安科技(深圳)有限公司 Display interface control method and server
CN108519844B (en) * 2018-04-18 2020-06-16 网易(杭州)网络有限公司 Menu display method and device, storage medium, processor and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207868A (en) * 2011-06-01 2011-10-05 奇智软件(北京)有限公司 Menu display method
CN103558929A (en) * 2013-11-25 2014-02-05 陈标 Method for realizing left and right mouse button events and multi-objective operations on touch screen
CN103729109A (en) * 2013-12-17 2014-04-16 宇龙计算机通信科技(深圳)有限公司 Interface display method and interface display terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207868A (en) * 2011-06-01 2011-10-05 奇智软件(北京)有限公司 Menu display method
CN103558929A (en) * 2013-11-25 2014-02-05 陈标 Method for realizing left and right mouse button events and multi-objective operations on touch screen
CN103729109A (en) * 2013-12-17 2014-04-16 宇龙计算机通信科技(深圳)有限公司 Interface display method and interface display terminal

Also Published As

Publication number Publication date
CN103984476A (en) 2014-08-13

Similar Documents

Publication Publication Date Title
US20170091551A1 (en) Method and apparatus for controlling electronic device
CN104243819B (en) Photo acquisition methods and device
CN105069786B (en) Line detection method and device
US10025393B2 (en) Button operation processing method in single-hand mode
CN105117033B (en) The connection method of external equipment and device
CN104238912B (en) application control method and device
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN105138962A (en) Image display method and image display device
CN107515715A (en) Screenshot method, device and storage medium
CN107155060A (en) Image processing method and device
CN104077585B (en) Method for correcting image, device and terminal
CN104484858B (en) Character image processing method and processing device
CN104503888A (en) Warning method and device
CN106056117A (en) Image processing method and device for rectangular object
EP3975046A1 (en) Method and apparatus for detecting occluded image and medium
CN104867112B (en) Photo processing method and device
CN106598429A (en) Method and device for adjusting window of mobile terminal
CN103984476B (en) menu display method and device
CN107967459A (en) convolution processing method, device and storage medium
CN105138956A (en) Face detection method and device
CN104461283A (en) Network view screen shooting method and device and electronic device
CN107704190A (en) Gesture identification method, device, terminal and storage medium
CN104503657B (en) Image processing method and device
CN106550226A (en) Projected picture correcting method and device
CN106228193A (en) Image classification method and device

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