Summary of the invention
The present invention provides a kind of acquisition methods of menu, when the operation trace symbol in the operation information for the user that judgement obtains
When closing preset requirement, the terminal device obtains the corresponding menu in abscissa region in the operation information, the present invention
When can allow user that can obtain different menu by once-through operation, and user can be allowed to obtain menu for the first time
The menu that user needs to use, and then the shortcut icon that can need to use with quick obtaining user are obtained, so that search procedure is simple
It is single, save the time of user.
The present invention provides a kind of acquisition methods of menu, which comprises
The operation information of terminal device acquisition user;
The terminal device judges whether the operation trace in the operation information meets preset requirement;
If met, the terminal device obtains the corresponding menu in abscissa region in the operation information.
Before the operation information that the terminal device obtains user, the method also includes:
The screen abscissa of the terminal device is divided into corresponding number according to default menu number by the terminal device
Section;
The default menu is stored in corresponding section by the terminal device according to preset corresponding relationship.
The terminal device obtains the corresponding menu in abscissa region in the operation information, specifically:
The terminal device obtains the abscissa in the operation information;
The terminal device determines the section where the abscissa, so that the terminal device obtains the section and corresponds to
Menu.
It is characterized in that, the number of the abscissa is one or more.
When the number of the abscissa is multiple, the terminal device determines the section where the abscissa, so that
The terminal device obtains the corresponding menu in the section, specifically:
The terminal device determines the section where the multiple abscissa;
When the section where the multiple abscissa is one, it is corresponding that the terminal device obtains one section
Menu;
When the section where the multiple abscissa is multiple, it is corresponding that the terminal device obtains the multiple section
Menu.
A kind of terminal device, the terminal device include:
First obtains module, for obtaining the operation information of user;
Whether judgment module, the operation trace for judging in the operation information meet preset requirement;
Second obtains module, if met, for obtaining the corresponding dish in abscissa region in the operation information
It is single.
The terminal device further include:
Division module, before the operation information that described first obtains that module obtains user, for according to default menu
The screen abscissa of the terminal device is divided into the section of corresponding number by number;
Memory module, for the default menu to be stored in corresponding section according to preset corresponding relationship.
Described second obtains module, is specifically used for:
Obtain the abscissa in the operation information;
The section where the abscissa is determined, to obtain the corresponding menu in the section.
The number of the abscissa is one or more.
When the number of the abscissa is multiple, the second acquisition module determines the section where the abscissa,
To obtain the corresponding menu in the section, it is specifically used for:
The second acquisition module determines the section where the multiple abscissa;
Described second obtains module, when the section where the multiple abscissa is one, obtains one section
Corresponding menu;
Described second obtains module, when the section where the multiple abscissa is multiple, obtains the multiple section
Corresponding menu.
In the present invention, when the operation trace in the operation information for the user that judgement obtains meets preset requirement, the end
End equipment obtains the corresponding menu in abscissa region in the operation information, and the present invention can allow user by once grasping
Work can obtain different menu, and can allow user that can obtain the dish that user needs to use when obtaining menu for the first time
It is single, and then the shortcut icon used can be needed to save the time of user so that search procedure is simple with quick obtaining user.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In the prior art, specific as shown in Figure 1, when user require to look up be drop-down notifications menu 4 when, marking
Number for 1 schematic diagram in, by need first to obtain drop-down notifications menu 1 after, then by slide to the right it is just available twice
Notifications menu 4 is pulled down, in the schematic diagram marked as 2, after needing first to obtain drop-down notifications menu 1, is slided to the right three times
Just available drop-down notifications menu 4, in above two method, each user begins looking for the drop-down notifications menu for needing to use
When, it is all to be searched since pulling down notifications menu 1, if drop-down notifications menu 1 is not that user needs, user is needed
Other drop-down notifications menus are searched by horizontally slipping, and then obtain the drop-down notifications menu for needing to use, the above method
Trouble is not only searched, but also the plenty of time of user can be wasted.
In order to solve the problems in the prior art, the invention proposes a kind of acquisition methods of menu, specifically such as Fig. 2 institute
Show, the described method comprises the following steps:
Step 201, terminal device obtains the operation information of user.
Specifically, user needs specifically to operate terminal device, institute when user obtains the menu for needing to use
Terminal device is stated after the operation information for obtaining user, menu is obtained according to the operation information, wherein the operation information
In abscissa when including the operation trace and user's operation of user, the operation trace can be the operating gesture of user,
It can be sliding trace of the user on the screen of the terminal device.
Before the operation information that the terminal device obtains user, the method also includes:
The screen abscissa of the terminal device is divided into corresponding number according to default menu number by the terminal device
Section;
The default menu is stored in corresponding section by the terminal device according to preset corresponding relationship.
Specifically as shown in figure 3, the default menu number is 5, then the screen of the terminal device is divided into 5 areas
Domain, each region correspond to the abscissa zone of a screen, and the abscissa for including in the section is occupied by corresponding region
Abscissa, such as: if the abscissa of screen is 1-10, the abscissa in the corresponding section in region 1 is 1,2, and region 2 is corresponding
The abscissa in section be 3,4, the abscissa in the corresponding section in region 3 is 5,6, the abscissa in the corresponding section in region 4 is 7,
8, the abscissa in the corresponding section in region 5 is 9,10, and after dividing the screen, the terminal device is according to user preset
Corresponding relationship, the default menu is stored in corresponding section, i.e., different default menus corresponds to different regions, lead to
Uniquely default menu can be found by crossing different regions, such as: 1 corresponding region 1 of menu, 2 corresponding region 2 of menu, menu 3
Corresponding region 3,4 corresponding region 4 of menu, 5 corresponding region 5 of menu are menu 1 by the menu that region 1 can only be found.
Step 202, the terminal device judges whether the operation trace in the operation information meets preset requirement, if
Meet, then follow the steps 203, if do not met, terminates.
Step 203, the terminal device obtains the corresponding menu in abscissa region in the operation information.
The terminal device obtains the corresponding menu in abscissa region in the operation information, specifically:
The terminal device obtains the abscissa in the operation information;
The terminal device determines the section where the abscissa, so that the terminal device obtains the section and corresponds to
Menu.
Wherein, the number of the abscissa is one or more.
Specifically, indicating that user wants to obtain menu, at this time terminal when the operation trace in the operation information is correct
Equipment obtains the abscissa in the operation information, is assured that the user in which of screen after determining abscissa
The operation information generated in region, i.e., the described user want to obtain the corresponding menu in which section, such as: as shown in figure 3, described
When abscissa is 3, indicate that user wants to obtain abscissa to be the corresponding menu in 3 place sections, the terminal device obtains at this time
Menu 3.
When the number of the abscissa is multiple, the terminal device determines the section where the abscissa, so that
The terminal device obtains the corresponding menu in the section, specifically:
The terminal device determines the section where the multiple abscissa;
When the section where the multiple abscissa is one, it is corresponding that the terminal device obtains one section
Menu;
When the section where the multiple abscissa is multiple, it is corresponding that the terminal device obtains the multiple section
Menu.
Specifically, the device end can also provide multiple menus simultaneously in a screen for user, when user's
When region at multiple abscissas in operation information is multiple regions, i.e., the section where the described abscissa is multiple
When, the terminal device obtains the corresponding menu in the multiple section, so that the multiple menu is presented in the terminal device
To the user, when multiple abscissas in the operation information of user are in a region, the terminal device obtains the area
The corresponding menu in domain, so that the menu is presented to the user by the terminal device, such as: as shown in figure 3, when user needs
When menu 2, the user can carry out satisfactory operation on abscissa 3 or abscissa 3,4, at this time the terminal device
It obtains more coordinate 3 or abscissa 3, the corresponding menu 2 in 4 place sections is presented to the user;When user needs menu 2 and menu 3,
The user can carry out satisfactory operation on abscissa 3 and abscissa 5, and the terminal device obtains abscissa at this time
3 menus 2 corresponding with 5 place section of abscissa and menu 3 are presented to the user.
By the above method, the present invention can provide multiple menus simultaneously for user, and the terminal device will be the multiple
It is that can be any way that menu, which present, and concrete condition can determines according to actual conditions, but more menus are presented simultaneously
Any way all belong to the scope of protection of the present invention.
In the present invention, when the operation trace in the operation information for the user that judgement obtains meets preset requirement, the end
End equipment obtains the corresponding menu in abscissa region in the operation information, and the present invention can allow user by once grasping
Work can obtain different menu, and can allow user that can obtain the dish that user needs to use when obtaining menu for the first time
It is single, and then the shortcut icon used can be needed to save the time of user so that search procedure is simple with quick obtaining user.
Based on inventive concept same as the above method, the invention proposes a kind of terminal devices, as shown in figure 4, described
Terminal device includes:
First obtains module 41, for obtaining the operation information of user;
Whether judgment module 42, the operation trace for judging in the operation information meet preset requirement;
Second obtains module 43, corresponding for obtaining the abscissa region in the operation information if met
Menu.
The terminal device further include:
Division module, before the operation information that described first obtains that module obtains user, for according to default menu
The screen abscissa of the terminal device is divided into the section of corresponding number by number;
Memory module, for the default menu to be stored in corresponding section according to preset corresponding relationship.
Described second obtains module, is specifically used for:
Obtain the abscissa in the operation information;
The section where the abscissa is determined, to obtain the corresponding menu in the section.
The number of the abscissa is one or more.
When the number of the abscissa is multiple, the second acquisition module determines the section where the abscissa,
To obtain the corresponding menu in the section, it is specifically used for:
The second acquisition module determines the section where the multiple abscissa;
Described second obtains module, when the section where the multiple abscissa is one, obtains one section
Corresponding menu;
Described second obtains module, when the section where the multiple abscissa is multiple, obtains the multiple section
Corresponding menu.
In the present invention, when the operation trace in the operation information for the user that judgement obtains meets preset requirement, the end
End equipment obtains the corresponding menu in abscissa region in the operation information, and the present invention can allow user by once grasping
Work can obtain different menu, and can allow user that can obtain the dish that user needs to use when obtaining menu for the first time
It is single, and then the shortcut icon used can be needed to save the time of user so that search procedure is simple with quick obtaining user.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
The apparatus embodiments described above are merely exemplary, wherein unit can be as illustrated by the separation member
Or may not be and be physically separated, component shown as a unit may or may not be physical unit, i.e.,
It can be located in one place, or may be distributed at least two network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.