WO2021068804A1 - Menu display method and electronic device - Google Patents

Menu display method and electronic device Download PDF

Info

Publication number
WO2021068804A1
WO2021068804A1 PCT/CN2020/118814 CN2020118814W WO2021068804A1 WO 2021068804 A1 WO2021068804 A1 WO 2021068804A1 CN 2020118814 W CN2020118814 W CN 2020118814W WO 2021068804 A1 WO2021068804 A1 WO 2021068804A1
Authority
WO
WIPO (PCT)
Prior art keywords
menu
input
level
level menu
electronic device
Prior art date
Application number
PCT/CN2020/118814
Other languages
French (fr)
Chinese (zh)
Inventor
黄炼
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021068804A1 publication Critical patent/WO2021068804A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular, to a method for displaying a menu and an electronic device.
  • the user may need to trigger the electronic device to return to the upper-level menu multiple times, which results in a cumbersome search step in the multi-level menu.
  • the embodiment of the present application provides a menu display method and electronic device to solve the problem of complicated search steps in a multi-level menu.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor, the following On the one hand, the steps of the menu display method.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the steps of the menu display method as described in the first aspect are implemented. .
  • the electronic device when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+1 areas
  • the 1 j-th level menu displayed in the area is updated and displayed as the j+p-th level menu
  • the user needs to find a menu option in the multilevel menu, it can be conveniently based on the first input Switching the levels of multiple hierarchical menus displayed in the interface, compared to the current way of searching in deep-level menus, simplifies the operation steps, and does not require the user to trigger the electronic device to return to the previous menu, which can make it more convenient for the user to navigate in the menu Find options.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the application
  • FIG. 2 is a schematic flowchart of a menu display method provided by an embodiment of the application.
  • FIG. 3 is one of the schematic diagrams of the display interface provided by an embodiment of the application.
  • FIG. 4 is the second schematic diagram of the display interface provided by the embodiment of the application.
  • FIG. 5 is the third schematic diagram of a display interface provided by an embodiment of this application.
  • FIG. 6 is the fourth schematic diagram of a display interface provided by an embodiment of this application.
  • FIG. 7 is the fifth schematic diagram of the display interface provided by the embodiment of this application.
  • FIG. 8 is a sixth schematic diagram of a display interface provided by an embodiment of this application.
  • FIG. 9 is a seventh schematic diagram of a display interface provided by an embodiment of the application.
  • FIG. 10 is the eighth schematic diagram of a display interface provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram of a possible structure of an electronic device provided by an embodiment of this application.
  • FIG. 12 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
  • A/B can mean A or B
  • the "and/or” in this article is only an association relationship describing associated objects, indicating that there may be three A relationship, for example, A and/or B, can mean: A alone exists, A and B exist at the same time, and B exists alone.
  • Multiple means two or more than two.
  • first and second in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • the electronic device in the embodiment of the present application may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the following takes the Android operating system as an example to introduce the software environment to which the menu display method provided by the embodiment of the present application is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • the developer can develop a software program that implements the menu display method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG. 1, so that the menu The display method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the menu display method provided in the embodiment of the present application by running the software program in the Android operating system.
  • the electronic device when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+ The display content of the first area in 1 area is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; At least two integers from i to i+m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update the j-th level menu in the first area corresponding to the at least two j It is displayed as the corresponding j+p level menu.
  • the electronic device can display A j-th level menu displayed in the first area is updated and displayed as a j+p-th level menu corresponding to the first input.
  • the j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area.
  • the j+p level menus are different submenus of the same level menu, that is, the electronic device can update only one level of the menu, or update multiple levels at the same time.
  • the user needs to find menu options in the multilevel menu, it can be conveniently based on
  • the levels of multiple hierarchical menus displayed in the first input switch interface are more convenient than the current way of searching in deep-level menus, which simplifies the operation steps and does not require the user to trigger the electronic device to return to the previous menu. The user looks for options in the menu.
  • FIG. 2 is a schematic flowchart of a menu display method provided by an embodiment of the application. As shown in FIG. 2, the menu display method includes S201 and S202:
  • the electronic device receives the first input of the user when the i-th level menu to the i+m-th level menu are respectively displayed in the m+1 areas.
  • the display content of the first area of the m+1 areas is the j-th level menu.
  • the first-level menu represents the first-level menu
  • the second-level menu represents the second-level menu
  • the third-level menu represents the third-level menu
  • the options in each level of the menu can be It is called this level option.
  • the first two options in the first level menu can be called first level option 1 and first level option 2 in turn.
  • the options in other level menus are similar and will not be repeated.
  • the m+1 level menu is a continuous level menu.
  • the electronic device can display the first level menu in area 1 and the second level menu corresponding to the first level option 2 in area 2 according to the user's operation.
  • the third-level menu corresponding to the second-level option 4 is displayed in the area 3.
  • the first input can be the user's sliding input on the screen, or the user's tap input on the screen, or the user's input on the screen by first selecting an object in the interface and then sliding.
  • the application embodiment does not specifically limit this.
  • the aforementioned objects may be options in a menu, controls in a menu interface, and so on.
  • the electronic device In response to the first input, displays the j+p level menu in the first area.
  • the electronic device may update and display the j-th level menu displayed in the first area as a j+p-th level menu.
  • p is an integer.
  • j takes multiple values, it means that multiple areas in the m+1 areas have updated the displayed content. If j takes from i to i+m, then each of the m+1 areas The displayed content has been updated in all areas.
  • the electronic device can display the same menu as the jth level in the first area.
  • One input corresponds to the j+1 level menu, that is to say, the electronic device can display different levels of submenus of the same level of menu.
  • the i+m+p-th level menu is the menu that is triggered by the first input.
  • P the i+m-th level menu
  • the i+m-th level menu may be the menu that the user has triggered the display last time
  • the first-level menu to the i+m-th level menu are the menus that the user has triggered to display before the electronic device receives the user's first input.
  • m+1 areas on the screen sequentially display the i-th level menu to the i+m-th level menu from left to right.
  • the electronic device displays the first-level menu in area 1, and The second-level menu corresponding to the first-level option 3 in area 2 is displayed in the third-level menu corresponding to the second-level option 2 in area 3.
  • the user can select the three-level option 3 in the three-level menu in the area 3 shown in Figure 3 (a) (that is, the first input is the user's selection and input of any option in the i+m-th level menu), then As shown in Figure 3(b), the electronic device can display the second-level menu corresponding to the first-level option 3 in area 1, the third-level menu corresponding to the second-level option 2 in area 2, and the third-level menu in area 3.
  • the four-level menu is the menu that is triggered by the first input.
  • FIG. 3 only exemplarily shows that the electronic device displays a level of menu in each of the multiple areas on one screen. If the electronic device includes multiple screens, the present application implements the menu display method provided , The electronic device can also display a level menu on each of the m+1 screens.
  • the i+m+p-th level menu is in the m+1 areas before the first input In the displayed menu, p is a positive or negative integer.
  • the first level menu to the i+m+p level menu are the menus that the user has triggered to display on the electronic device before the electronic device receives the first input of the user.
  • the target control may be any one of the left control and the right control displayed on the menu interface of the electronic device, where the left control is displayed on the left side of the screen, the right control is displayed on the right side of the screen, and the left control is displayed on the screen. Used to instruct the user to view the hidden menu to the left, and the right control is used to instruct the user to view the hidden menu to the right.
  • the number of levels of the first-level menu is higher than that of the second-level menu
  • the number of levels of the second-level menu is higher than that of the third-level menu
  • the electronic device displays the second-level menu in area 1, the third-level menu in area 2, and the A four-level menu is displayed in area 3.
  • the second-level menu displayed in area 1 includes second-level option 1, second-level option 2, second-level option 3, and second-level option 4
  • the third-level menu displayed in area 2 includes third-level option 1, third-level option 2, Three-level option 3, three-level option 4, and three-level option 5
  • the four-level menu displayed in area 3 includes four-level option 1, four-level option 2, and four-level option 3.
  • the left area of the screen displays the left control 31a, and the right area of the screen displays the right control 31b.
  • the first input is the user's sliding input
  • the electronic device can determine the positive and negative of p and the value of p according to the first inputted input parameter, which can be specifically described in (1) and (2) as follows:
  • the electronic device can determine the sign of p according to the sliding direction of the first input, and determine the specific value of p according to the sliding distance of the first input, where the sliding distance is greater The greater the absolute value of the length p, the shorter the sliding distance, and the smaller the absolute value of p. For example, when the first input is that the user is sliding from right to left on the screen, the electronic device may determine that p is a negative value; when the first input is that the user is sliding from left to right on the screen, the electronic device may Make sure that p is a positive value. When the first input is that the user selects any first-level menu and slides to the left, the electronic device can determine that p is a positive value. When the first input is that the user selects any first-level menu and slides to the right, the electronic device can determine that p is Negative value.
  • the electronic device can determine the positive or negative of p according to the target control selected by the first input, and determine the specific value of p according to the input duration of the first input, where: The longer the input duration of the first input, the greater the absolute value of p, and the shorter the input duration of the first input, the smaller the absolute value of p.
  • the electronic device can determine that p is a negative value; when the first input is that the user selects the right control, the electronic device can determine that p is a positive value.
  • the user slides to the left at any position on the screen.
  • the electronic device can display a three-level menu in area 1, a four-level menu corresponding to three-level option 1 in area 2, and a five-level menu corresponding to four-level option 3 in area 3.
  • the five-level menu includes five levels Option 1, Level 5 Option 2, Level 5 Option 3, Level 5 Option 4, Level 5 Option 5, and Level 5 Option 6.
  • the user slides to the right at any position on the screen.
  • the electronic device can A first-level menu is displayed in area 1, a second-level menu corresponding to first-level option 3 is displayed in area 2, and a third-level menu corresponding to second-level option 2 is displayed in area 3.
  • the electronic device may display a dividing line (or called a middle sidebar) between every two levels of menus (or every two areas) displayed on the interface.
  • a dividing line or called a middle sidebar
  • the electronic device displays three-level menus in three areas. For example, as shown in (a) in Figure 5, the electronic device displays between the first two-level menus (that is, between area 1 and area 2). The dividing line 32a, the electronic device displays the dividing line 32b between the next two levels of menus (that is, between the area 2 and the area 3). The user can also select the dividing line and slide to the left or right.
  • the electronic device displays a left arrow 31a and a right arrow 31b on both sides of the screen.
  • the electronic device can display the four-level menu corresponding to three-level option 3 in area 1, the five-level menu corresponding to four-level option 3 in area 2, and the six-level menu corresponding to five-level option 6 in area 3.
  • j may take one value or multiple values.
  • the electronic device may determine the number of values of j according to the first input specific input parameter. For example, the electronic device may determine the number of values of j according to at least one of the input position, the input distance, the input direction, the input duration, and the object selected by the input.
  • the electronic device may only update a j-th level menu displayed in a first area to a j+1-th level menu, and other areas displayed The menu does not need to be updated.
  • the electronic device displays a first-level menu in area 1, a second-level menu corresponding to first-level option 3 in area 2, and a third-level menu corresponding to second-level option 2 in area 3.
  • the first input is the user's input to the second-level option 3.
  • the electronic device can update the second-level menu corresponding to the first-level option 3 in area 2 to the third-level menu corresponding to the second-level option 3, and keep the first-level menu displayed in area 1.
  • the electronic device may update the j-th level menu for each value of j to the j+p-th level menu respectively.
  • the electronic device displays the first-level menu in area 1, the second-level menu in area 2, and the third-level menu in area 3.
  • each level of the menu displays the name of the level of the menu, and the options in each level of the menu are displayed Is the actual name of the option in the menu at that level.
  • the number of options in each level of the menu can be the same or different.
  • the number of options in each level of menu can be less than the maximum 6 items shown in the figure, or more than 6, and the number of options in the target level menu exceeds After 6 directions, the user can also adjust the menu options displayed on the screen by sliding up and down, which is not specifically limited in the embodiment of the present application.
  • the electronic device when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+ The display content of the first area in 1 area is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; At least two integers from i to i+m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update the j-th level menu in the first area corresponding to the at least two j It is displayed as the corresponding j+p level menu.
  • the electronic device can display A j-th level menu displayed in the first area is updated and displayed as a j+p-th level menu corresponding to the first input.
  • the j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area.
  • the j+p level menus are different submenus of the same level menu, that is, the electronic device can update only one level of the menu, or update multiple levels at the same time.
  • the user needs to find menu options in the multilevel menu, it can be conveniently based on
  • the levels of multiple hierarchical menus displayed in the first input switch interface are more convenient than the current way of searching in deep-level menus, which simplifies the operation steps and does not require the user to trigger the electronic device to return to the previous menu. The user looks for options in the menu.
  • m+1 is the maximum number of levels of menus displayed by the electronic device at one time.
  • the electronic device can display each level of menus on separate screens, and the maximum number of split screens can be set in the electronic device. For example, if the electronic device has a maximum of 3 screens, the screen of the electronic device can display a maximum of 3 levels of menus at a time, and the screen of the electronic device can display a maximum of 4 levels of menus at a time.
  • the user can also set the maximum number of screen splits when displaying the menu as required, which is not specifically limited in the embodiment of the present application.
  • the electronic device may also display multi-level menus on different screens.
  • the electronic device includes three screens, and the three screens of the electronic device can display at least three-level menus, the electronic device includes four screens, and the four screens of the electronic device can also display at least four-level menus.
  • the user can also set the number of screens and screens used when displaying the menu as needed.
  • the electronic device includes 4 screens, and only 3 screens may be used when displaying a menu, which is not specifically limited in the embodiment of the present application.
  • the left and right controls can be displayed.
  • the electronic device can The left side control is displayed on the left side of the screen.
  • the electronic device can display the right side control on the right side of the screen.
  • the electronic device may start to display the left-pointing arrow.
  • the maximum number of levels that is, the maximum number of menu levels displayed on the screen
  • the maximum number of levels Level 3 display up to 3 levels
  • the screen includes two areas, one area displays the first-level menu, and the other area displays the second-level menu
  • the screen includes three areas, one area displays the first-level menu, one area displays the second-level menu, and one area displays the third-level menu
  • the electronic device does not display the target control, when the user triggers the electronic device to display the fourth-level menu and move to the left
  • the electronic device may start to display the left-pointing arrow.
  • the user has triggered the electronic device to display the five-level menu corresponding to the four-level option 3 in any one of Area 1 to Area 3.
  • the electronic device can also display a left-pointing arrow 31a on the left side of the screen (ie Left control), the right arrow 31b (that is, the right control) is displayed on the right side of the screen. If the five-level menu corresponding to the fourth-level option 3 is the last time the user has triggered the display of the electronic device, and the five-level menu is displayed on the far right side of the electronic device (ie, area 3), the electronic device cancels the right display on the right.
  • the electronic device receives a second input from the user.
  • n is an integer.
  • the electronic device displays the first level menu.
  • the size of the n+1 regions may be the same or different, which is not specifically limited in the embodiment of the present application.
  • the second input may be an input in which the user selects an option in the n+1th level menu, or may be an input in which the user selects and slides an option in the n+1th level menu.
  • the electronic device In response to the second input, the electronic device respectively displays the first level menu to the n+2 level menu in n+2 areas.
  • the electronic device may update the level 1 menu to the n+1 level menu to the level 1 menu to the n+2 level menu.
  • the size of the n+2 regions may be the same or different, which is not specifically limited in the embodiment of the present application.
  • the second input may also be used to trigger the electronic device to split the screen.
  • n+1 areas are areas that divide the screen equally
  • n+2 areas can also be areas that divide the screen equally, and the area of each of the n+2 areas is less than n+1 The area of each of the regions.
  • the user can select the second-level option 2 in the second-level menu, which can trigger the electronic device to continue splitting the screen, as shown in (c) in Figure 6, the screen area on the left side of the split line 32a displays the first-level menu, the split line 32a and the split line
  • the screen area in the middle of 32b displays the second-level menu corresponding to the first-level option 3
  • the screen area on the right side of the dividing line 32b displays the third-level menu corresponding to the second-level option 2.
  • the screen of the electronic device is a foldable screen.
  • a folding screen electronic device with multiple screens For example, a folding screen electronic device with multiple screens, a flexible screen electronic device, etc.
  • the electronic device is a folding screen electronic device, assuming that the folding screen electronic device includes 3 screens, the user can trigger the display of the first-level menu on one screen of the electronic device, and the user can select a menu option in the first-level menu to trigger The electronic device displays the secondary menu of the menu option on the second screen.
  • the electronic device can display a level 1 menu on one screen, as shown in FIG. 7, the electronic device displays the first level option 1 of the first level menu on the first screen. Level 1 option 2, Level 1 option 3, Level 1 option 4, Level 1 option 5, Level 1 option 6. If the user selects the first-level option 3 on the first screen in Figure 7 and slides to the second screen, as shown in Figure 8, the electronic device can display the second-level option 3 corresponding to the first-level option on the second screen. Menu, and keep displaying the first-level menu on the first screen.
  • the second-level menu includes the second-level option 1, the second-level option 2, the second-level option 3, and the second-level option 4.
  • the electronic device can display the third-level corresponding to the second-level option 2 on the third screen Menu, and keep displaying the first-level menu displayed on the first screen and the second-level menu displayed on the second display.
  • the three-level menu includes three-level options 1, three-level options 2, three-level options 3, and three Level 4 option and Level 3 option 5.
  • the electronic device can display at most m+1 level menus at a time, and the electronic device displays the n+1 level menu in the first level menu respectively in n+1 areas.
  • n is less than m
  • the electronic device The device currently does not reach the maximum number of levels of the maximum displayed menu. If the electronic device receives the second input from the user, for example, the user selects an option in the n+1th level menu, the electronic device can select n+2
  • the n+2 level menus in the first level menu displayed in the areas respectively, up to the m+1 level menu displayed at most can facilitate the user to view the m+1 level menu in the display interface at the same time.
  • menu display method provided in the embodiment of the present application may further include the following S205 and S206a, or S205 and S206b:
  • the electronic device receives a third input from the user.
  • the third input is an input to the first target level menu displayed in the third area.
  • the first target level menu is any one level menu except the last level menu among the above at least two level menus.
  • Level option 3 corresponds to the four-level menu, and the menu is hidden on the left side (i.e. the first-level menu), and the menu is also hidden on the right side (that is, the user has triggered the display of the fifth-level menu corresponding to the fourth-level option 3 and the lower-level menus thereafter. menu).
  • the first target-level menu can be any one of the second-level menu and the third-level menu in FIG. 10(a).
  • the electronic device In response to the third input, displays the second target level menu in the third area, and keeps displaying the menus displayed in other areas.
  • the second target-level menu is a menu corresponding to the third input among the lower-level menus of the first target-level menu.
  • the electronic device may update the first target level menu to the second target level menu, and keep displaying other levels of the at least two levels of menus except the first target level menu.
  • the second target-level menu is the fourth-level menu corresponding to the third-level option 1.
  • the second The target-level menu is the third-level menu corresponding to the second-level option.
  • the m+1 menus displayed on the electronic device are discrete menus, that is, the m+1 level menus displayed by the electronic device include menus of the same level.
  • the m+1 level menu displayed on the electronic device includes non-continuous level menus.
  • the electronic device may display the first level menu in area 1 and the second level menu corresponding to the first level option 1 in area 2.
  • the second-level menu corresponding to the first-level option 2 is displayed in area 3.
  • the electronic device can be in area 2
  • the four-level menu corresponding to the third-level option 5 is displayed, and the four-level menu includes the fourth-level option 4, the fourth-level option 5, the fourth-level option 6, the fourth-level option 7 and the fourth-level option 8.
  • the electronic device may also update the content displayed on the electronic device according to the user's input. Specifically, if the electronic device displays the k-th level menu in area 1, respectively, displays the k+1 level menu corresponding to k-level option 1 in area 2 (that is, the lower-level menu corresponding to option 1 of the k-th level menu). Area 3 displays the k level option 2 k+1 level menu (ie the next level menu corresponding to option 2 of the k level menu). If the user swipes to the left on the electronic device, the electronic device can display k in area 1. The k+1 level menu corresponding to level option 1 is displayed in area 2, the k+1 level menu corresponding to level k option 2 is displayed in area 2, and the k+2 level menu is displayed in area 3.
  • the electronic device updates all subordinate menus of the first target level menu to the second target level menu.
  • the electronic device may re-divide the area to display the menu after receiving the third input.
  • the electronic device may display the second target-level menu in the area of the first-level menu, and cancel the right control.
  • the electronic device can also display three-level options in area 3 of the fourth-level menu corresponding to the third-level option 3.
  • the level selection line 5 corresponds to the four-level menu, and the display of the right arrow is canceled.
  • the electronic device when the electronic device displays at least two levels of menus, the electronic device can receive the user's first target level menu in the at least two levels of menus, and the electronic device can update the first target level menu to the first target level menu.
  • the second target level menu and keep displaying other menus. It is convenient for the user to not exit the lower-level menu when searching for a higher-level menu in the deep-level menu when displaying multi-level menus, so that the user can return to the original displayed menu after selecting the higher-level menu to continue to view .
  • the menu display method of the embodiment of the present application may further include the following S207 and S208.
  • S207 In a case where at least two levels of menus are displayed on the screen, the electronic device receives a fourth input from the user.
  • the fourth input is an input that triggers the folding of the fourth area on the screen.
  • the fourth area is the display area on the third screen. If the user triggers the second screen and the third screen to fold toward the first screen, then the fourth area includes a display area on the second screen and a display area on the third screen.
  • the electronic device can cancel the three-level menu displayed on the third screen.
  • the electronic device can also cancel the display of this level menu.
  • the user can cancel the display of the menu on the screen by controlling the folding of the screen, the operation mode is more convenient, and the user experience of the user is improved.
  • FIG. 11 is a schematic diagram of a possible structure of an electronic device provided by an embodiment of the application.
  • the j+p level menu displayed is
  • the i+m+p level menu is the menu displayed in the m+1 areas before the first input, and p is a positive integer Or a negative integer.
  • m+1 is the most majority of the menus displayed by the electronic device at one time; the receiving module 701 is also used to display the first level to the first level of the menu in the n+1 areas before receiving the first input, and the display module 702 In the case of n+1 level menu, the second input of the user is received, 0 ⁇ n ⁇ m, where n is an integer; the display module 702 is also used to display the first level in n+2 areas in response to the second input Menu to n+2 level menu.
  • the receiving module 701 is further configured to receive a third input from the user when the display module 702 displays at least two levels of menus, the third input being the input of the first target level menu displayed in the third area, and the first The target-level menu is any one of the at least two-level menus except the last-level menu; the display module 702 is also used to display the second target-level menu in the third area in response to the third input received by the receiving module 701 , And keep displaying the menus displayed in other areas.
  • the second target level menu is the menu corresponding to the third input in the lower level menu of the first target level menu.
  • the screen of the electronic device is a foldable screen; the receiving module 701 is further configured to receive a fourth input from the user when at least two levels of menus are displayed on the screen, and the fourth input is to trigger the folding of the fourth area on the screen
  • the display module 702 is also used to cancel the display of the menu in the fourth area in response to the fourth input received by the receiving module 701.
  • the electronic device 700 provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment, and to avoid repetition, details are not described herein again.
  • the electronic device when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+1
  • the j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area.
  • +p-level menus are different sub-menus of the same-level menu, that is, the electronic device can update only one of the first-level menus, or update multiple-level menus at the same time. If users need to find menu options in the multi-level menus, they can conveniently One input switches the levels of multiple hierarchical menus displayed in the interface. Compared with the current way of searching in deep-level menus, the operation steps are simplified, and there is no need for the user to trigger the electronic device to return to the previous menu, which can be more convenient for users Find options in the menu.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components.
  • a radio frequency unit 101 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and ped
  • the j+p level menu and the j+p level menu displayed in the second area are different submenus of the same level menu.
  • the electronic device when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+1
  • the j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area.
  • +p-level menus are different sub-menus of the same-level menu, that is, the electronic device can update only one of the first-level menus, or update multiple-level menus at the same time. If the user needs to find menu options in the multi-level menus, they can conveniently One input switches the levels of multiple hierarchical menus displayed in the interface. Compared with the current way of searching in deep-level menus, the operation steps are simplified, and there is no need for the user to trigger the electronic device to return to the previous menu, which can be more convenient for users Find options in the menu.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device and the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device.
  • the electronic device includes a processor 110, a memory 109, a computer program stored in the memory 109 and running on the processor 110, and the computer program is When 110 is executed, each process of the above embodiment of the menu display method is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the above-mentioned menu display method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.

Abstract

The embodiment of the present application provides a menu display method and electronic device, relating to the technical field of communication, the method includes: receiving a first input of the user when the i level menu to the i+m level menu are respectively displayed in m+1 areas, wherein, the display content of the first area of the m+1 areas is the j level menu; in response to the first input, displaying the j+p level menu in the first area; wherein, j is at least two integers taken from i to i+m, i, m, and j are all positive integers, and p is an integer; or, j is taken from any integer from i to i+m-1, i, m, and j are all positive integers, p = 1, the j+p level menu displayed in the first area and the j+p level menu displayed in the second area are different sub-menus of the same level menu.

Description

菜单显示方法及电子设备Menu display method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年10月08日在中国提交的中国专利申请号201910951023.3的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910951023.3 filed in China on October 8, 2019, and the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种菜单显示方法及电子设备。The embodiments of the present application relate to the field of communication technology, and in particular, to a method for displaying a menu and an electronic device.
背景技术Background technique
目前,电子设备通常以列表的形式显示功能菜单。随着电子设备的功能不断增多,菜单层级也越来越深。Currently, electronic devices usually display function menus in the form of lists. As the functions of electronic devices continue to increase, the menu level is getting deeper and deeper.
通常,一个界面中仅显示某一级菜单。若用户触发电子设备在该级菜单中选中一个菜单项,则电子设备将显示的该级菜单更新显示为该菜单项对应的下一级菜单;若用户触发电子设备返回,则电子设备返回并显示上一级菜单。Usually, only a certain level of menu is displayed in an interface. If the user triggers the electronic device to select a menu item in the menu at this level, the electronic device will update the displayed menu at that level as the next-level menu corresponding to the menu item; if the user triggers the electronic device to return, the electronic device returns and displays Up-level menu.
然而,上述的显示方式,若用户在深层级的某一级菜单中查找,用户可能需要触发电子设备多次返回上一级菜单,如此导致在多级菜单中查找的步骤比较繁琐。However, in the above-mentioned display method, if the user searches in a certain level of the deep-level menu, the user may need to trigger the electronic device to return to the upper-level menu multiple times, which results in a cumbersome search step in the multi-level menu.
发明内容Summary of the invention
本申请实施例提供一种菜单显示方法及电子设备,以解决多级菜单中查找的步骤比较繁琐的问题。The embodiment of the present application provides a menu display method and electronic device to solve the problem of complicated search steps in a multi-level menu.
为了解决上述技术问题,本申请实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present application are implemented as follows:
第一方面,本申请实施例提供一种多级菜单显示方法,该方法包括:在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;响应于第一输入,在第一区域显示第j+p级菜单;其中,j为从i取到i+m中的至少两个整数,i、m和j均为正整数,p为整数;或者,j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1,第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。In a first aspect, an embodiment of the present application provides a multi-level menu display method, the method includes: receiving a user's first input when the i-th menu to the i+m-th menu are respectively displayed in m+1 areas , Wherein, the display content of the first area of the m+1 areas is the j-th level menu; in response to the first input, the j+p-th level menu is displayed in the first area; where j is taken from i to i At least two integers in +m, i, m, and j are all positive integers, and p is an integer; or, j is any integer from i to i+m-1, i, m, and j are all positive integers, p=1, the j+p level menu displayed in the first area and the j+p level menu displayed in the second area are different sub-menus of the same level menu.
第二方面,本申请实施例还提供了一种电子设备,该电子设备包括:接收模块和显示模块;接收模块,用于在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;显示模块,用于响应于接收模块接收的第一输入,在第一区域显示第j+p级菜单, j为从i取到i+m中的至少两个整数,i、m和j均为正整数,p为整数;或者,j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1,第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。In the second aspect, an embodiment of the present application also provides an electronic device, the electronic device includes: a receiving module and a display module; the receiving module is used to display the i-th level menu to the i+m-th level in m+1 areas respectively In the case of a menu, the user’s first input is received, where the display content of the first area of the m+1 areas is the j-th level menu; the display module is used to respond to the first input received by the receiving module, The first area displays the j+p level menu, j is at least two integers taken from i to i+m, i, m, and j are all positive integers, and p is an integer; or, j takes from i to i+m Any integer in -1, i, m and j are all positive integers, p=1, the j+p level menu displayed in the first area is the same level as the j+p level menu displayed in the second area Different submenus of the menu.
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的菜单显示方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the following On the one hand, the steps of the menu display method.
第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的菜单显示方法的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the menu display method as described in the first aspect are implemented. .
在本申请实施例中,电子设备在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,用户可以在根据需要输入第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;电子设备在接收到第一输入之后,可以响应于第一输入,在第一区域显示第j+p级菜单;在j取从i到i+m中的至少两个整数,i、m和j均为正整数,p为整数的情况下,电子设备可以为将至少两个j对应的第一区域中的第j级菜单更新显示为对应的第j+p级菜单,在j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1的情况下,电子设备可以将屏幕上一个第一区域显示的1个j第j级菜单更新显示为与第一输入对应的第j+p级菜单,该第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单,即电子设备可以只更新其中一级菜单,也可以同时更新多级菜单,若用户需要在多级菜单中查找菜单选项时,可以方便的根据第一输入切换界面中显示的多个层级菜单的级别,相比于目前在深层级菜单中查找的方式,简化了操作步骤,无需用户多出触发电子设备返回上一级菜单,从而可以更加方便用户在菜单查找选项。In the embodiment of the present application, when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+1 areas The display content of the first area in is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; in j, take from i to i At least two integers in +m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update and display the j-th level menu in the first area corresponding to at least two j to correspond In the j+p level menu, when j takes any integer from i to i+m-1, i, m, and j are all positive integers, and p=1, the electronic device can set the first one on the screen The 1 j-th level menu displayed in the area is updated and displayed as the j+p-th level menu corresponding to the first input, the j+p-th level menu displayed in the first area and the j+p-th level menu displayed in the second area Level menus are different sub-menus of the same level menu, that is, the electronic device can update only one level of the menu or multiple levels of menus at the same time. If the user needs to find a menu option in the multilevel menu, it can be conveniently based on the first input Switching the levels of multiple hierarchical menus displayed in the interface, compared to the current way of searching in deep-level menus, simplifies the operation steps, and does not require the user to trigger the electronic device to return to the previous menu, which can make it more convenient for the user to navigate in the menu Find options.
附图说明Description of the drawings
图1为本申请实施例提供的一种可能的安卓操作系统的架构示意图;FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the application;
图2为本申请实施例提供的一种菜单显示方法流程示意图;2 is a schematic flowchart of a menu display method provided by an embodiment of the application;
图3为本申请实施例提供的显示界面示意图之一;FIG. 3 is one of the schematic diagrams of the display interface provided by an embodiment of the application;
图4为本申请实施例提供的显示界面示意图之二;FIG. 4 is the second schematic diagram of the display interface provided by the embodiment of the application;
图5为本申请实施例提供的显示界面示意图之三;FIG. 5 is the third schematic diagram of a display interface provided by an embodiment of this application;
图6为本申请实施例提供的显示界面示意图之四;FIG. 6 is the fourth schematic diagram of a display interface provided by an embodiment of this application;
图7为本申请实施例提供的显示界面示意图之五;FIG. 7 is the fifth schematic diagram of the display interface provided by the embodiment of this application;
图8为本申请实施例提供的显示界面示意图之六;FIG. 8 is a sixth schematic diagram of a display interface provided by an embodiment of this application;
图9为本申请实施例提供的显示界面示意图之七;FIG. 9 is a seventh schematic diagram of a display interface provided by an embodiment of the application;
图10为本申请实施例提供的显示界面示意图之八;FIG. 10 is the eighth schematic diagram of a display interface provided by an embodiment of this application;
图11为本申请实施例提供的一种电子设备可能的结构示意图;FIG. 11 is a schematic diagram of a possible structure of an electronic device provided by an embodiment of this application;
图12为本申请实施例提供的一种电子设备的硬件示意图。FIG. 12 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。It should be noted that the "/" in this article means or, for example, A/B can mean A or B; the "and/or" in this article is only an association relationship describing associated objects, indicating that there may be three A relationship, for example, A and/or B, can mean: A alone exists, A and B exist at the same time, and B exists alone. "Multiple" means two or more than two.
本申请的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更可选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more optional or more advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
本申请实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
下面以安卓操作系统为例,介绍一下本申请实施例提供的菜单显示方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the menu display method provided by the embodiment of the present application is applied.
如图1所示,为本申请实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application. In Figure 1, the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作 系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本申请实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本申请实施例提供的菜单显示方法的软件程序,从而使得该菜单显示方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本申请实施例提供的菜单显示方法。Taking the Android operating system as an example, in this embodiment of the application, the developer can develop a software program that implements the menu display method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG. 1, so that the menu The display method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the menu display method provided in the embodiment of the present application by running the software program in the Android operating system.
本申请实施例提供的菜单显示方法,电子设备在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,用户可以在根据需要输入第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;电子设备在接收到第一输入之后,可以响应于第一输入,在第一区域显示第j+p级菜单;在j取从i到i+m中的至少两个整数,i、m和j均为正整数,p为整数的情况下,电子设备可以为将至少两个j对应的第一区域中的第j级菜单更新显示为对应的第j+p级菜单,在j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1的情况下,电子设备可以将屏幕上一个第一区域显示的1个j第j级菜单更新显示为与第一输入对应的第j+p级菜单,该第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单,即电子设备可以只更新其中一级菜单,也可以同时更新多级菜单,若用户需要在多级菜单中查找菜单选项时,可以方便的根据第一输入切换界面中显示的多个层级菜单的级别,相比于目前在深层级菜单中查找的方式,简化了操作步骤,无需用户多出触发电子设备返回上一级菜单,从而可以更加方便用户在菜单查找选项。In the menu display method provided by the embodiment of the present application, when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+ The display content of the first area in 1 area is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; At least two integers from i to i+m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update the j-th level menu in the first area corresponding to the at least two j It is displayed as the corresponding j+p level menu. When j takes any integer from i to i+m-1, i, m, and j are all positive integers, and p=1, the electronic device can display A j-th level menu displayed in the first area is updated and displayed as a j+p-th level menu corresponding to the first input. The j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area. The j+p level menus are different submenus of the same level menu, that is, the electronic device can update only one level of the menu, or update multiple levels at the same time. If the user needs to find menu options in the multilevel menu, it can be conveniently based on The levels of multiple hierarchical menus displayed in the first input switch interface are more convenient than the current way of searching in deep-level menus, which simplifies the operation steps and does not require the user to trigger the electronic device to return to the previous menu. The user looks for options in the menu.
下面结合图2中对本申请实施例的菜单显示方法进行说明。图2为本申请实施例提供的一种菜单显示方法的流程示意图,如图2所示,该菜单显示方法包括S201和S202:The menu display method of the embodiment of the present application will be described below with reference to FIG. 2. FIG. 2 is a schematic flowchart of a menu display method provided by an embodiment of the application. As shown in FIG. 2, the menu display method includes S201 and S202:
S201、电子设备在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入。S201. The electronic device receives the first input of the user when the i-th level menu to the i+m-th level menu are respectively displayed in the m+1 areas.
其中,m+1个区域中的第一区域的显示内容为第j级菜单。Among them, the display content of the first area of the m+1 areas is the j-th level menu.
为了便于示例说明,本申请实施例中,以一级菜单表示第1级菜单、二级菜单表示第2级菜单,三级菜单表示第3级菜单,依次类推;每一级菜单中的选项可以称为该级选项,例如:一级菜单中的前2个选项可以依次称为一级选项1、一级选项2,其他级菜单中的选项类似,不再赘述。For the sake of illustration, in the embodiments of the present application, the first-level menu represents the first-level menu, the second-level menu represents the second-level menu, the third-level menu represents the third-level menu, and so on; the options in each level of the menu can be It is called this level option. For example, the first two options in the first level menu can be called first level option 1 and first level option 2 in turn. The options in other level menus are similar and will not be repeated.
可以理解,在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,电子设备中显示了m+1级菜单,该m+1级菜单为m+1个连续等级的菜单。It can be understood that in the case where the i-th level menu to the i+m-th level menu are respectively displayed in m+1 areas, an m+1 level menu is displayed in the electronic device, and the m+1 level menu is m+1 consecutive levels Menu.
例如,m+1级菜单为连续等级的菜单,则示例性的,电子设备可以根据用户的操作在 区域1中显示一级菜单、在区域2中显示一级选项2对应的二级菜单、在区域3中显示二级选项4对应的三级菜单。For example, the m+1 level menu is a continuous level menu. Illustratively, the electronic device can display the first level menu in area 1 and the second level menu corresponding to the first level option 2 in area 2 according to the user's operation. The third-level menu corresponding to the second-level option 4 is displayed in the area 3.
在本申请实施例中,第一输入可以为用户在屏幕上的滑动输入,也可以为用户在屏幕上的点击输入,也可以为用户在屏幕上先选中界面中一个对象再滑动的输入,本申请实施例对此不作具体限定。In the embodiment of the present application, the first input can be the user's sliding input on the screen, or the user's tap input on the screen, or the user's input on the screen by first selecting an object in the interface and then sliding. The application embodiment does not specifically limit this.
可选地,上述的对象可以为菜单中的选项、菜单界面中的控件等。Optionally, the aforementioned objects may be options in a menu, controls in a menu interface, and so on.
S202、响应于第一输入,电子设备在第一区域显示第j+p级菜单。S202. In response to the first input, the electronic device displays the j+p level menu in the first area.
具体的,电子设备可以将第一区域显示第j级菜单更新显示为第j+p级菜单。Specifically, the electronic device may update and display the j-th level menu displayed in the first area as a j+p-th level menu.
可选地,本申请实施例中,在j取i到i+m中的至少两个整数,i、m和j均为正整数的情况下,p为整数。Optionally, in the embodiment of the present application, when j takes at least two integers from i to i+m, and i, m, and j are all positive integers, p is an integer.
需要说明的是,若j取多个值,则表示m+1个区域中的多个区域更新了显示的内容,若j从i取到i+m,则m+1个区域中的每个区域均更新了显示的内容。It should be noted that if j takes multiple values, it means that multiple areas in the m+1 areas have updated the displayed content. If j takes from i to i+m, then each of the m+1 areas The displayed content has been updated in all areas.
可选地,本申请实施例中,在j取i到i+m-1中的任意一个整数,i、m和j均为正整数的情况下,p=1,第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。Optionally, in the embodiment of the present application, when j takes any integer from i to i+m-1, and when i, m, and j are all positive integers, p=1, and the number displayed in the first area The j+p level menu and the j+p level menu displayed in the second area are different sub-menus of the same level menu.
即,在接收第一输入之前,第一区域中显示第j级菜单,第二区域中显示第j+1级菜单,在接收第一输入之后,电子设备可以将在第一区域中显示与第一输入对应的第j+1级菜单,也就是说电子设备可以显示同一级菜单的不同级子菜单。That is, before receiving the first input, the j-th level menu is displayed in the first area, and the j+1-th level menu is displayed in the second area. After receiving the first input, the electronic device can display the same menu as the jth level in the first area. One input corresponds to the j+1 level menu, that is to say, the electronic device can display different levels of submenus of the same level of menu.
可选地,本申请实施例中,在第一输入为用户对第i+m级菜单中的任意一个选项选中输入的情况下,第i+m+p级菜单为第一输入触发显示的菜单,p=1。其中,第i+m级菜单可以为用户最近一次触发显示的菜单,第1级菜单到第i+m级菜单为电子设备在接收用户的第一输入之前,用户已经触发显示的菜单。Optionally, in the embodiment of the present application, in the case where the first input is that the user selects an input for any option in the i+m-th level menu, the i+m+p-th level menu is the menu that is triggered by the first input. , P=1. Among them, the i+m-th level menu may be the menu that the user has triggered the display last time, and the first-level menu to the i+m-th level menu are the menus that the user has triggered to display before the electronic device receives the user's first input.
示例性的,为了便于说明,假设屏幕上的m+1个区域从左向右依次显示第i级菜单至第i+m级菜单。如图3中的(a)所示,m+1=3,则m+1个区域从左向右依次为区域1、区域2和区域3,电子设备在区域1中显示一级菜单、在区域2中一级选项3对应的二级菜单,在区域3中显示二级选项2对应的三级菜单。用户可以在图3中的(a)所示的区域3中选中三级菜单中的三级选项3(即第一输入为用户对第i+m级菜单中的任意一个选项选中输入),则如图3中的(b)所示,电子设备可以在区域1中显示一级选项3对应的二级菜单、在区域2中二级选项2对应的三级菜单、在区域3中显示三级选项3对应的四级菜单。该四级菜单为第一输入触发显示的菜单。Exemplarily, for ease of description, it is assumed that m+1 areas on the screen sequentially display the i-th level menu to the i+m-th level menu from left to right. As shown in Figure 3(a), m+1=3, then the m+1 areas are area 1, area 2, and area 3 from left to right. The electronic device displays the first-level menu in area 1, and The second-level menu corresponding to the first-level option 3 in area 2 is displayed in the third-level menu corresponding to the second-level option 2 in area 3. The user can select the three-level option 3 in the three-level menu in the area 3 shown in Figure 3 (a) (that is, the first input is the user's selection and input of any option in the i+m-th level menu), then As shown in Figure 3(b), the electronic device can display the second-level menu corresponding to the first-level option 3 in area 1, the third-level menu corresponding to the second-level option 2 in area 2, and the third-level menu in area 3. The four-level menu corresponding to option 3. The four-level menu is the menu that is triggered by the first input.
需要说明的是,图3中仅示例性的表示电子设备在一个屏幕上的多个区域的每个区域中显示一个等级的菜单,若电子设备包括多个屏幕,本申请实施提供的菜单显示方法,电 子设备还可以在m+1个屏幕的每个屏幕上显示一个等级的菜单。It should be noted that FIG. 3 only exemplarily shows that the electronic device displays a level of menu in each of the multiple areas on one screen. If the electronic device includes multiple screens, the present application implements the menu display method provided , The electronic device can also display a level menu on each of the m+1 screens.
可选地,本申请实施例中,在第一输入为用户的滑动输入或对目标控件的输入的情况下,第i+m+p级菜单为第一输入之前在上述m+1个区域中显示过的菜单,p为正整数或负整数。Optionally, in this embodiment of the present application, when the first input is a sliding input of the user or an input to a target control, the i+m+p-th level menu is in the m+1 areas before the first input In the displayed menu, p is a positive or negative integer.
可以理解,第1级菜单到第i+m+p级菜单为电子设备在接收用户的第一输入之前,用户已经触发电子设备显示的菜单。It can be understood that the first level menu to the i+m+p level menu are the menus that the user has triggered to display on the electronic device before the electronic device receives the first input of the user.
示例性的,目标控件可以为电子设备在菜单界面显示的左侧控件和右侧控件中的任意一个,其中,左侧控件显示在屏幕左侧,右侧控件显示在屏幕右侧,左侧控件用于指示用户向左查看隐藏的菜单,右侧控件用于指示用户向右查看隐藏的菜单。Exemplarily, the target control may be any one of the left control and the right control displayed on the menu interface of the electronic device, where the left control is displayed on the left side of the screen, the right control is displayed on the right side of the screen, and the left control is displayed on the screen. Used to instruct the user to view the hidden menu to the left, and the right control is used to instruct the user to view the hidden menu to the right.
需要说明的是,本申请实施例中,为了便于说明,一级菜单的级数高于二级菜单,二级菜单的级数高于三级菜单,依次类推。It should be noted that, in the embodiments of the present application, for ease of description, the number of levels of the first-level menu is higher than that of the second-level menu, the number of levels of the second-level menu is higher than that of the third-level menu, and so on.
假设电子设备在3个区域中分别显示了3个等级的菜单,则如图4中的(a)所示,电子设备在区域1中显示二级菜单、在区域2中显示三级菜单、在区域3中显示四级菜单。其中,区域1中显示的二级菜单包括二级选项1、二级选项2、二级选项3和二级选项4;区域2中显示的三级菜单包括三级选项1、三级选项2、三级选项3、三级选项4和三级选项5;区域3中显示的四级菜单包括四级选项1、四级选项2和四级选项3。屏幕的左侧区域显示有左侧控件31a,屏幕的右侧区域显示有右侧控件31b。Assuming that the electronic device displays three levels of menus in the three areas, as shown in Figure 4 (a), the electronic device displays the second-level menu in area 1, the third-level menu in area 2, and the A four-level menu is displayed in area 3. Among them, the second-level menu displayed in area 1 includes second-level option 1, second-level option 2, second-level option 3, and second-level option 4; the third-level menu displayed in area 2 includes third-level option 1, third-level option 2, Three-level option 3, three-level option 4, and three-level option 5; the four-level menu displayed in area 3 includes four-level option 1, four-level option 2, and four-level option 3. The left area of the screen displays the left control 31a, and the right area of the screen displays the right control 31b.
可选地,“第一输入为用户的滑动输入”可以为用户在菜单界面中直接滑动的输入,可以为用户选中某一级菜单然后滑动的输入(例如选中某一级菜单的边框然后向一个方向滑动)。Optionally, "the first input is the user's sliding input" can be an input that the user directly slides in the menu interface, and can be an input that the user selects a certain level of menu and then slides (for example, select the border of a certain level of menu and then Slide direction).
具体的,电子设备可以根据第一输入的输入参数确定p的正负和p的取值,具体可以如下的(1)和(2)所述:Specifically, the electronic device can determine the positive and negative of p and the value of p according to the first inputted input parameter, which can be specifically described in (1) and (2) as follows:
(1)在第一输入为滑动输入的情况下,电子设备可以根据第一输入的滑动方向确定p的正负,根据第一输入滑动的距离确定p的具体取值,其中,滑动的距离越长p的绝对值越大,滑动的距离越短,p的绝对值越小。例如,在第一输入为用户在屏幕上自右向左滑动的情况下,电子设备可以确定p为负值;在第一输入为用户在屏幕上自左向右滑动的情况下,电子设备可以确定p为正值。在第一输入为用户选中任意一级菜单向左滑的情况下,电子设备可以确定p为正值,第一输入为用户选中任意一级菜单向右滑的情况下,电子设备可以确定p为负值。(1) When the first input is a sliding input, the electronic device can determine the sign of p according to the sliding direction of the first input, and determine the specific value of p according to the sliding distance of the first input, where the sliding distance is greater The greater the absolute value of the length p, the shorter the sliding distance, and the smaller the absolute value of p. For example, when the first input is that the user is sliding from right to left on the screen, the electronic device may determine that p is a negative value; when the first input is that the user is sliding from left to right on the screen, the electronic device may Make sure that p is a positive value. When the first input is that the user selects any first-level menu and slides to the left, the electronic device can determine that p is a positive value. When the first input is that the user selects any first-level menu and slides to the right, the electronic device can determine that p is Negative value.
(2)在第一输入为对目标控件的输入的情况下,电子设备可以根据第一输入选中的目标控件确定p的正负,根据第一输入的输入时长确定p的具体取值,其中,第一输入的输入时长越长,p的绝对值越大,第一输入的输入时长越短,p的绝对值越小。在第一输 入为用户选中左侧控件的情况下,电子设备可以确定p为负值;在第一输入为用户选中右侧控件的情况下,电子设备可以确定p为正值。(2) When the first input is an input to a target control, the electronic device can determine the positive or negative of p according to the target control selected by the first input, and determine the specific value of p according to the input duration of the first input, where: The longer the input duration of the first input, the greater the absolute value of p, and the shorter the input duration of the first input, the smaller the absolute value of p. When the first input is that the user selects the left control, the electronic device can determine that p is a negative value; when the first input is that the user selects the right control, the electronic device can determine that p is a positive value.
示例性的,结合图4中的(a),用户在屏幕上的任意一个位置向左滑动,假设电子设备根据用户滑动的距离确定p=1,则如图4中的(b)所示,电子设备可以在区域1中显示三级菜单、在区域2中显示三级选项1对应的四级菜单,在区域3中显示四级选项3对应的五级菜单,该五级菜单中包括五级选项1、五级选项2、五级选项3、五级选项4、五级选项5和五级选项6。结合图4中的(a),用户在屏幕上的任意一个位置向右滑动,假设电子设备根据用户滑动的距离确定p=-1,则如图4中的(c)所示,电子设备可以在区域1中显示一级菜单、在区域2中显示一级选项3对应的二级菜单、在区域3中显示二级选项2对应的三级菜单。Exemplarily, in conjunction with (a) in FIG. 4, the user slides to the left at any position on the screen. Assuming that the electronic device determines p=1 according to the sliding distance of the user, as shown in (b) in FIG. 4, The electronic device can display a three-level menu in area 1, a four-level menu corresponding to three-level option 1 in area 2, and a five-level menu corresponding to four-level option 3 in area 3. The five-level menu includes five levels Option 1, Level 5 Option 2, Level 5 Option 3, Level 5 Option 4, Level 5 Option 5, and Level 5 Option 6. With reference to Figure 4(a), the user slides to the right at any position on the screen. Assuming that the electronic device determines p=-1 according to the distance the user slides, then as shown in Figure 4(c), the electronic device can A first-level menu is displayed in area 1, a second-level menu corresponding to first-level option 3 is displayed in area 2, and a third-level menu corresponding to second-level option 2 is displayed in area 3.
可选地,电子设备可以在界面上显示的每两级菜单(或每两个区域)之间显示分割线(或称为中间侧栏)。Optionally, the electronic device may display a dividing line (or called a middle sidebar) between every two levels of menus (or every two areas) displayed on the interface.
示例性的,假设电子设备在3个区域中分别显示了3级菜单,例如图5中的(a)所示,电子设备在前两级菜单之间(即区域1和区域2之间)显示分割线32a,电子设备在后两级菜单之间(即区域2和区域3之间)显示分割线32b。用户也可以选中分割线向左或者向右滑动,若用户选中分割线32b并向右滑动至屏幕边缘,且p=-1,则滑动之后可以显示图4中的(c)中所示的界面;若用户选中分割线32b并向右滑动至分割线32a的位置,且p=1,则滑动之后可以显示图4中的(b)中所示的界面。Exemplarily, suppose that the electronic device displays three-level menus in three areas. For example, as shown in (a) in Figure 5, the electronic device displays between the first two-level menus (that is, between area 1 and area 2). The dividing line 32a, the electronic device displays the dividing line 32b between the next two levels of menus (that is, between the area 2 and the area 3). The user can also select the dividing line and slide to the left or right. If the user selects the dividing line 32b and slides to the right to the edge of the screen, and p=-1, the interface shown in Figure 4 (c) will be displayed after sliding ; If the user selects the dividing line 32b and slides to the right to the position of the dividing line 32a, and p=1, the interface shown in (b) of FIG. 4 can be displayed after sliding.
如图5中的(b)所示,电子设备在屏幕两侧显示有左向箭头31a和右向箭头31b,用户也可以在图5中的(b)中操作,假设用户长按目标控件1秒,p的绝对值为1。若用户长按右向箭头31b的时间为1秒,即p=1,则电子设备可以显示图4中的(b)所示的界面;若用户长按左向箭头31a的时间为1秒,即p=-1,则电子设备可以显示图4中的(c)所示的界面。As shown in Figure 5 (b), the electronic device displays a left arrow 31a and a right arrow 31b on both sides of the screen. The user can also operate in Figure 5 (b), assuming that the user long presses the target control 1 Second, the absolute value of p is 1. If the user long presses the right arrow 31b for 1 second, that is, p=1, the electronic device can display the interface shown in Figure 4 (b); if the user long presses the left arrow 31a for 1 second, That is, p=-1, the electronic device can display the interface shown in (c) in FIG. 4.
可以理解,若用户选中分割线32b并向右滑动至屏幕边缘,且用户在滑动之前已经触发电子设备在区域1至区域3中的任意一个区域显示过五级选项6对应的六级菜单,即p=2,则电子设备可以在区域1中显示三级选项3对应的四级菜单,在区域2中显示四级选项3对应的五级菜单,在区域3中显示五级选项6对应的六级菜单,若用户在滑动之前触发显示的最低级的菜单为四级选项3对应的五级菜单,则p=1。It is understandable that if the user selects the dividing line 32b and swipes to the right to the edge of the screen, and the user has triggered the electronic device to display the sixth-level menu corresponding to the five-level option 6 in any one of area 1 to area 3 before the sliding, that is, p=2, the electronic device can display the four-level menu corresponding to three-level option 3 in area 1, the five-level menu corresponding to four-level option 3 in area 2, and the six-level menu corresponding to five-level option 6 in area 3. Level menu, if the lowest level menu triggered by the user before sliding is the five level menu corresponding to the fourth level option 3, then p=1.
可选地,本申请实施例中,j可以取一个值,也可以取多个值。Optionally, in the embodiment of the present application, j may take one value or multiple values.
具体的,电子设备可以根据第一输入的具体输入参数确定j的取值数量。例如,电子设备可以根据输入位置,输入的距离,输入的方向,输入的时长、输入选中的对象中的至少一个确定j的取值数量。Specifically, the electronic device may determine the number of values of j according to the first input specific input parameter. For example, the electronic device may determine the number of values of j according to at least one of the input position, the input distance, the input direction, the input duration, and the object selected by the input.
示例性的,在j仅取一个值的情况下,p的取值为1,电子设备可以仅将一个第一区域显示的第j级菜单更新为一个第j+1级菜单,其他区域显示的菜单可以无需更新。例如,电子设备在区域1显示的是一级菜单、在区域2显示的是一级选项3对应的二级菜单、在区域3显示的是二级选项2对应的三级菜单。第一输入是用户对二级选项3的输入,则电子设备可以将区域2中一级选项3对应的二级菜单更新为二级选项3对应的三级菜单,并保持区域1显示的一级菜单和区域3显示的二级选项2对应的三级菜单。Exemplarily, when j takes only one value, and the value of p is 1, the electronic device may only update a j-th level menu displayed in a first area to a j+1-th level menu, and other areas displayed The menu does not need to be updated. For example, the electronic device displays a first-level menu in area 1, a second-level menu corresponding to first-level option 3 in area 2, and a third-level menu corresponding to second-level option 2 in area 3. The first input is the user's input to the second-level option 3. The electronic device can update the second-level menu corresponding to the first-level option 3 in area 2 to the third-level menu corresponding to the second-level option 3, and keep the first-level menu displayed in area 1. The third-level menu corresponding to the second-level option 2 displayed in the menu and area 3.
示例性的,在j取多个值的情况下,p为非0的整数,电子设备可以将每个j取值的第j级菜单分别更新为第j+p级菜单。例如,电子设备在区域1显示一级菜单、在区域2显示二级菜单、在区域3显示三级菜单,第一输入是用户在显示屏上的滑动输入,电子设备跟该滑动输入的输入参数,确定j分别取1、2、3,p=2,则响应于第一输入,电子设备在区域2显示三级菜单,将区域2显示四级菜单,在区域3显示五级菜单。Exemplarily, when j takes multiple values, p is an integer other than 0, and the electronic device may update the j-th level menu for each value of j to the j+p-th level menu respectively. For example, the electronic device displays the first-level menu in area 1, the second-level menu in area 2, and the third-level menu in area 3. The first input is the user's sliding input on the display screen, and the electronic device follows the input parameters of the sliding input If it is determined that j is 1, 2, 3, and p=2, in response to the first input, the electronic device displays a three-level menu in area 2, a four-level menu in area 2 and a five-level menu in area 3.
需要说明的是,本申请实施例中,为了便于说明,以选项的级别和编号进行说明,实际应用过程中,每一级菜单显示的是该级菜单的名称,每一级菜单中的选项显示的是该级菜单中选项的实际名称。每一级菜单中的选项的数量可以相同,可以不同,每一级菜单中的选项的数量可以小于图中所示的最大显示的6项,也可以大于6项,在目标级菜单的选项超过6向之后,用户也可以通过上下滑动调整在屏幕中显示的菜单选项,本申请实施例对此不作具体限定。It should be noted that, in the embodiments of this application, for the convenience of explanation, the description is based on the level and number of the options. In the actual application process, each level of the menu displays the name of the level of the menu, and the options in each level of the menu are displayed Is the actual name of the option in the menu at that level. The number of options in each level of the menu can be the same or different. The number of options in each level of menu can be less than the maximum 6 items shown in the figure, or more than 6, and the number of options in the target level menu exceeds After 6 directions, the user can also adjust the menu options displayed on the screen by sliding up and down, which is not specifically limited in the embodiment of the present application.
本申请实施例提供的菜单显示方法,电子设备在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,用户可以在根据需要输入第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;电子设备在接收到第一输入之后,可以响应于第一输入,在第一区域显示第j+p级菜单;在j取从i到i+m中的至少两个整数,i、m和j均为正整数,p为整数的情况下,电子设备可以为将至少两个j对应的第一区域中的第j级菜单更新显示为对应的第j+p级菜单,在j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1的情况下,电子设备可以将屏幕上一个第一区域显示的1个j第j级菜单更新显示为与第一输入对应的第j+p级菜单,该第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单,即电子设备可以只更新其中一级菜单,也可以同时更新多级菜单,若用户需要在多级菜单中查找菜单选项时,可以方便的根据第一输入切换界面中显示的多个层级菜单的级别,相比于目前在深层级菜单中查找的方式,简化了操作步骤,无需用户多出触发电子设备返回上一级菜单,从而可以更加方便用户在菜单查找选项。In the menu display method provided by the embodiment of the present application, when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+ The display content of the first area in 1 area is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; At least two integers from i to i+m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update the j-th level menu in the first area corresponding to the at least two j It is displayed as the corresponding j+p level menu. When j takes any integer from i to i+m-1, i, m, and j are all positive integers, and p=1, the electronic device can display A j-th level menu displayed in the first area is updated and displayed as a j+p-th level menu corresponding to the first input. The j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area. The j+p level menus are different submenus of the same level menu, that is, the electronic device can update only one level of the menu, or update multiple levels at the same time. If the user needs to find menu options in the multilevel menu, it can be conveniently based on The levels of multiple hierarchical menus displayed in the first input switch interface are more convenient than the current way of searching in deep-level menus, which simplifies the operation steps and does not require the user to trigger the electronic device to return to the previous menu. The user looks for options in the menu.
可选地,本申请实施例中,m+1为电子设备一次显示的菜单的最多级数。Optionally, in this embodiment of the present application, m+1 is the maximum number of levels of menus displayed by the electronic device at one time.
具体的,在本申请实施例中,电子设备可以分屏显示每一级菜单,电子设备中可以设 置分屏的最大屏数。例如,电子设备最大分3个屏,则电子设备的屏幕上一次最多可以显示3个等级菜单,最大分为4个屏,则电子设备的屏幕上一次最多可以显示4个等级菜单。当然,用户也可以根据需要设置显示菜单时的最大分屏次数,本申请实施例对此不作具体限定。Specifically, in the embodiment of the present application, the electronic device can display each level of menus on separate screens, and the maximum number of split screens can be set in the electronic device. For example, if the electronic device has a maximum of 3 screens, the screen of the electronic device can display a maximum of 3 levels of menus at a time, and the screen of the electronic device can display a maximum of 4 levels of menus at a time. Of course, the user can also set the maximum number of screen splits when displaying the menu as required, which is not specifically limited in the embodiment of the present application.
具体的,在本申请实施例中,若电子设备有多个屏幕,电子设备也可以在不同的屏幕上显示多级菜单。例如电子设备包括3个屏幕,电子设备的3个屏幕上至少可以显示三级菜单,电子设备包括4个屏幕,电子设备的4个屏幕上至少可也显示四级菜单。当然,用户也可以根据需要设置在显示菜单时使用的屏幕数量以及屏幕。例如,电子设备包括4个屏幕,可以在显示菜单时仅采用3个屏幕,本申请实施例对此不作具体限定。Specifically, in the embodiment of the present application, if the electronic device has multiple screens, the electronic device may also display multi-level menus on different screens. For example, the electronic device includes three screens, and the three screens of the electronic device can display at least three-level menus, the electronic device includes four screens, and the four screens of the electronic device can also display at least four-level menus. Of course, the user can also set the number of screens and screens used when displaying the menu as needed. For example, the electronic device includes 4 screens, and only 3 screens may be used when displaying a menu, which is not specifically limited in the embodiment of the present application.
需要说明的是,在电子设备当前界面显示的菜单的级数大于最大级数的情况下可以显示左侧控件和右侧控件,如当左侧的菜单的级数大于1时,电子设备可以在屏幕的左侧显示左侧控件,当显示的最右侧的菜单级数大于最大级数,且高于最近一次触发的级数的菜单时,电子设备可以在屏幕的右侧显示右侧控件。It should be noted that when the level of the menu displayed on the current interface of the electronic device is greater than the maximum level, the left and right controls can be displayed. For example, when the level of the left menu is greater than 1, the electronic device can The left side control is displayed on the left side of the screen. When the displayed rightmost menu level is greater than the maximum level and higher than the most recently triggered menu level, the electronic device can display the right side control on the right side of the screen.
需要说明的是,在一次触发电子设备显示菜单的过程中,若电子设备的界面中显示的菜单的级数未超过最多级数(即屏幕上最多显示的菜单级数),例如以最多级数为3级(最多显示3级),当屏幕中包括一个区域,并在该区域中显示一级菜单;或者,屏幕包括两个区域,一个区域显示一级菜单,另一个区域显示二级菜单;或者屏幕包括三个区域,一个区域显示一级菜单、一个区域显示二级菜单、一个区域显示三级菜单的情况下,电子设备不显示目标控件,当用户触发电子设备显示四级菜单并向左隐藏一级菜单(例如,三个区域分别显示的是二级菜单、三级菜单和四级菜单)的情况下,电子设备可以开始显示左向箭头。例如如图3中的(a)和图3中(b)中所示。It should be noted that in the process of triggering an electronic device to display a menu, if the number of levels of the menu displayed in the interface of the electronic device does not exceed the maximum number of levels (that is, the maximum number of menu levels displayed on the screen), for example, the maximum number of levels Level 3 (display up to 3 levels), when the screen includes an area, and the first-level menu is displayed in that area; or, the screen includes two areas, one area displays the first-level menu, and the other area displays the second-level menu; Or the screen includes three areas, one area displays the first-level menu, one area displays the second-level menu, and one area displays the third-level menu, the electronic device does not display the target control, when the user triggers the electronic device to display the fourth-level menu and move to the left When the first-level menu is hidden (for example, the three areas display the second-level menu, the third-level menu, and the fourth-level menu respectively), the electronic device may start to display the left-pointing arrow. For example, as shown in Figure 3 (a) and Figure 3 (b).
结合图4,用户已经触发过电子设备在区域1至区域3中的任意一个区域中显示过四级选项3对应的五级菜单,则电子设还可以在屏幕左侧显示左向箭头31a(即左侧控件),在屏幕右侧显示右向箭头31b(即右侧控件)。若四级选项3对应的五级菜单为用户最近一次触发电子设备显示过的,在电子设备的最右侧(即,区域3)显示五级菜单的情况下,电子设备取消右侧显示的右向箭头,若用户触发电子设备最左侧(即,区域1)显示一级菜单,且界面中总共显示了3级菜单,则如图4中的(c)所示,取消显示左侧显示的左向箭头31a。With reference to Figure 4, the user has triggered the electronic device to display the five-level menu corresponding to the four-level option 3 in any one of Area 1 to Area 3. The electronic device can also display a left-pointing arrow 31a on the left side of the screen (ie Left control), the right arrow 31b (that is, the right control) is displayed on the right side of the screen. If the five-level menu corresponding to the fourth-level option 3 is the last time the user has triggered the display of the electronic device, and the five-level menu is displayed on the far right side of the electronic device (ie, area 3), the electronic device cancels the right display on the right. Arrow, if the user triggers the electronic device to display the first-level menu on the leftmost side (ie, area 1), and a total of three-level menus are displayed in the interface, as shown in Figure 4 (c), cancel the display on the left Left arrow 31a.
进而,在本申请实施例提供的菜单显示方法中,在上述的S201之前,还可以包括下述的S203和S204:Furthermore, in the menu display method provided in the embodiment of the present application, before the foregoing S201, the following S203 and S204 may also be included:
S203、在n+1个区域分别显示第1级菜单至第n+1级菜单的情况下,电子设备接收用户的第二输入。S203. In a case where the first level menu to the n+1 level menu are respectively displayed in n+1 areas, the electronic device receives a second input from the user.
其中,0≤n<m,n为整数。Among them, 0≤n<m, and n is an integer.
可以理解的是,在n=0的情况下,电子设备显示的是第1级菜单。It can be understood that in the case of n=0, the electronic device displays the first level menu.
在本申请实施例中,该n+1个区域的尺寸可以相同,也可以不同,本申请实施例对此不作具体限定。In the embodiment of the present application, the size of the n+1 regions may be the same or different, which is not specifically limited in the embodiment of the present application.
可选地,第二输入可以为用户选中第n+1级菜单中的一个选项的输入,也可以为用户选中第n+1级菜单的一个选项并滑动的输入。Optionally, the second input may be an input in which the user selects an option in the n+1th level menu, or may be an input in which the user selects and slides an option in the n+1th level menu.
S204、响应于第二输入,电子设备在n+2个区域分别显示第1级菜单至第n+2级菜单。S204. In response to the second input, the electronic device respectively displays the first level menu to the n+2 level menu in n+2 areas.
具体的,电子设备可以将第1级菜单至第n+1级菜单更新为第1级菜单至第n+2级菜单。Specifically, the electronic device may update the level 1 menu to the n+1 level menu to the level 1 menu to the n+2 level menu.
可选地,该n+2个区域的尺寸可以相同,也可以不同,本申请实施例对此不作具体限定。Optionally, the size of the n+2 regions may be the same or different, which is not specifically limited in the embodiment of the present application.
需要说明的是,在电子设备分屏显示菜单的情况下,第二输入还可以用于触发电子设备分屏。It should be noted that, in the case where the electronic device displays the menu in a split screen, the second input may also be used to trigger the electronic device to split the screen.
需要说明的是,若n+1个区域为均分屏幕的区域,则n+2个区域也可以为均分屏幕的区域,且n+2个区域中的每个区域的面积小于n+1个区域中每个区域的面积。It should be noted that if n+1 areas are areas that divide the screen equally, then n+2 areas can also be areas that divide the screen equally, and the area of each of the n+2 areas is less than n+1 The area of each of the regions.
示例性的,如图6中的(a)所示,以电子设备横屏显示菜单为例,假设电子设备全屏显示一级菜单,用户可以在一级菜单中选中一级选项3,例如用户点击一级选项3,或者用户点击一级选项3并向右滑动,则可以触发电子设备分屏,如图6中的(b)所示,电子设备在分割线32c左侧屏幕区域显示一级菜单,在分割线32c右侧屏幕区域显示一级选项3对应的二级菜单。用户可以在二级菜单中选中二级选项2,可以触发电子设备继续分屏,如图6中的(c)所示,分割线32a左侧屏幕区域显示一级菜单,分割线32a和分割线32b中间的屏幕区域显示一级选项3对应的二级菜单,分割线32b右侧屏幕区域显示二级选项2对应的三级菜单。Exemplarily, as shown in Figure 6(a), taking the horizontal screen display menu of the electronic device as an example, assuming that the electronic device displays the first-level menu in full screen, the user can select the first-level option 3 in the first-level menu, for example, the user clicks Level 1 option 3, or the user clicks Level 1 option 3 and swipes to the right, then the electronic device can be triggered to split the screen, as shown in Figure 6 (b), the electronic device displays the first-level menu on the left screen area of the dividing line 32c , The second-level menu corresponding to the first-level option 3 is displayed in the screen area on the right side of the dividing line 32c. The user can select the second-level option 2 in the second-level menu, which can trigger the electronic device to continue splitting the screen, as shown in (c) in Figure 6, the screen area on the left side of the split line 32a displays the first-level menu, the split line 32a and the split line The screen area in the middle of 32b displays the second-level menu corresponding to the first-level option 3, and the screen area on the right side of the dividing line 32b displays the third-level menu corresponding to the second-level option 2.
可选地,在本申请实施例中,电子设备的屏幕为可以折叠的屏幕。Optionally, in this embodiment of the present application, the screen of the electronic device is a foldable screen.
例如,具有多个屏的折叠屏电子设备、柔性屏电子设备等。在电子设备为折叠屏电子设备的情况下,假设折叠屏电子设备包括3个屏幕,用户可以在电子设备的一个屏幕上触发显示一级菜单,用户可以选中一级菜单中的一个菜单选项,触发电子设备在第二屏幕上显示该菜单选项的二级菜单。For example, a folding screen electronic device with multiple screens, a flexible screen electronic device, etc. When the electronic device is a folding screen electronic device, assuming that the folding screen electronic device includes 3 screens, the user can trigger the display of the first-level menu on one screen of the electronic device, and the user can select a menu option in the first-level menu to trigger The electronic device displays the secondary menu of the menu option on the second screen.
示例性的,假设电子设备包括3个屏幕,电子设备可以在一个屏幕上显示1级菜单,如图7所示,电子设备在第一个屏幕上显示了一级菜单的一级选项1、一级选项2、一级选项3、一级选项4、一级选项5、一级选项6。若用户在图7中的第一个屏幕上选中一级选项3并向第二个屏幕滑动,则如图8所示,电子设备可以在第二个屏幕上显示一级选项 3对应的二级菜单,并保持显示第一个屏上的一级菜单,该二级菜单包括二级选项1、二级选项2、二级选项3和二级选项4。若用户在图8中的第二个屏幕上选中二级选项2并向第三个屏幕滑动,则如图9所示,电子设备可以在第三个屏幕上显示二级选项2对应的三级菜单,并保持显示第一个屏幕上显示的一级菜单和第二个显示屏上显示的二级菜单,该三级菜单中包括三级选项1、三级选项2、三级选项3、三级选项4和三级选项5。Exemplarily, assuming that the electronic device includes three screens, the electronic device can display a level 1 menu on one screen, as shown in FIG. 7, the electronic device displays the first level option 1 of the first level menu on the first screen. Level 1 option 2, Level 1 option 3, Level 1 option 4, Level 1 option 5, Level 1 option 6. If the user selects the first-level option 3 on the first screen in Figure 7 and slides to the second screen, as shown in Figure 8, the electronic device can display the second-level option 3 corresponding to the first-level option on the second screen. Menu, and keep displaying the first-level menu on the first screen. The second-level menu includes the second-level option 1, the second-level option 2, the second-level option 3, and the second-level option 4. If the user selects the second-level option 2 on the second screen in Figure 8 and slides to the third screen, as shown in Figure 9, the electronic device can display the third-level corresponding to the second-level option 2 on the third screen Menu, and keep displaying the first-level menu displayed on the first screen and the second-level menu displayed on the second display. The three-level menu includes three-level options 1, three-level options 2, three-level options 3, and three Level 4 option and Level 3 option 5.
基于该方案,在电子设备一次最多显示m+1级菜单,且电子设备在n+1个区域分别显示的第1级菜单中第n+1级菜单,在n小于m的情况下,即电子设备当前并未达到最大显示的菜单的最大级数,若电子设备接收到用户的第二输入,例如用户在第n+1级菜单中选择一个选项的输入,则电子设备可以在n+2个区域分别显示的第1级菜单中第n+2级菜单,直至最多显示的m+1级菜单,可以便于用户在显示界面中同时查看m+1级菜单。Based on this solution, the electronic device can display at most m+1 level menus at a time, and the electronic device displays the n+1 level menu in the first level menu respectively in n+1 areas. When n is less than m, the electronic device The device currently does not reach the maximum number of levels of the maximum displayed menu. If the electronic device receives the second input from the user, for example, the user selects an option in the n+1th level menu, the electronic device can select n+2 The n+2 level menus in the first level menu displayed in the areas respectively, up to the m+1 level menu displayed at most, can facilitate the user to view the m+1 level menu in the display interface at the same time.
可选地,本申请实施例提供的菜单显示方法,还可以包括下述的S205和S206a,或者S205和S206b:Optionally, the menu display method provided in the embodiment of the present application may further include the following S205 and S206a, or S205 and S206b:
S205、在显示至少两级菜单的情况下,电子设备接收用户的第三输入。S205. In a case where at least two levels of menus are displayed, the electronic device receives a third input from the user.
其中,第三输入为对第三区域显示的第一目标级菜单的输入。第一目标级菜单为上述至少两级菜单中除最后一级菜单之外的任意一级菜单。Among them, the third input is an input to the first target level menu displayed in the third area. The first target level menu is any one level menu except the last level menu among the above at least two level menus.
示例性的,如图10中的(a)中所示,假设电子设备在界面中的区域1显示二级菜单、的区域2中显示二级选项2对应的三级菜单,区域1中显示三级选项3对应的四级菜单,并且左侧隐藏了菜单(即一级菜单),右侧也隐藏了菜单(即用户已触发显示四级选项3对应的五级菜单以及之后的较低级的菜单)。则第一目标级菜单可以为图10中(a)的二级菜单和三级菜单中的任意一个。Exemplarily, as shown in (a) in Figure 10, suppose that the electronic device displays the second-level menu in area 1 of the interface, the third-level menu corresponding to the second-level option 2 is displayed in area 2 of the interface, and the third-level menu is displayed in area 1. Level option 3 corresponds to the four-level menu, and the menu is hidden on the left side (i.e. the first-level menu), and the menu is also hidden on the right side (that is, the user has triggered the display of the fifth-level menu corresponding to the fourth-level option 3 and the lower-level menus thereafter. menu). Then the first target-level menu can be any one of the second-level menu and the third-level menu in FIG. 10(a).
S206a、响应于第三输入,电子设备在第三区域显示第二目标级菜单,并保持显示其他区域中显示的菜单。S206a. In response to the third input, the electronic device displays the second target level menu in the third area, and keeps displaying the menus displayed in other areas.
其中,第二目标级菜单为第一目标级菜单的下一级菜单中与第三输入对应的菜单。Wherein, the second target-level menu is a menu corresponding to the third input among the lower-level menus of the first target-level menu.
具体的,电子设备可以将第一目标级菜单更新为第二目标级菜单,并保持显示至少两级菜单中除第一目标级菜单之外的其他级菜单。Specifically, the electronic device may update the first target level menu to the second target level menu, and keep displaying other levels of the at least two levels of menus except the first target level menu.
示例性的,假设用户在三级菜单中点击三级选项1,则第二目标级菜单为三级选项1对应的四级菜单,假设用户在二级菜单中点击二级选项4,则第二目标级菜单为二级选项对应的三级菜单。Exemplarily, suppose the user clicks the third-level option 1 in the third-level menu, and the second target-level menu is the fourth-level menu corresponding to the third-level option 1. Assuming that the user clicks the second-level option 4 in the second-level menu, the second The target-level menu is the third-level menu corresponding to the second-level option.
可选地,在S206a之后,电子设备上显示的m+1个菜单为不连续的菜单,即,电子设备显示的m+1级菜单中包括相同等级的菜单。Optionally, after S206a, the m+1 menus displayed on the electronic device are discrete menus, that is, the m+1 level menus displayed by the electronic device include menus of the same level.
在电子设备显示的m+1级菜单包括不连续等级的菜单,则示例性的,电子设备可以根据在区域1中显示一级菜单、在区域2中显示一级选项1对应的二级菜单、在区域3中显 示一级选项2对应的二级菜单。The m+1 level menu displayed on the electronic device includes non-continuous level menus. For example, the electronic device may display the first level menu in area 1 and the second level menu corresponding to the first level option 1 in area 2. The second-level menu corresponding to the first-level option 2 is displayed in area 3.
示例性的,结合图10中的(a),若用户在区域2中显示的三级菜单中点击三级选项5,则如图10中的(b)所示,电子设备可以在区域2中显示三级选项5对应的四级菜单,该四级菜单包括四级选项4、四级选项5、四级选项6、四级选项7和四级选项8。Exemplarily, in conjunction with (a) in Figure 10, if the user clicks on the three-level option 5 in the three-level menu displayed in area 2, then as shown in Figure 10 (b), the electronic device can be in area 2 The four-level menu corresponding to the third-level option 5 is displayed, and the four-level menu includes the fourth-level option 4, the fourth-level option 5, the fourth-level option 6, the fourth-level option 7 and the fourth-level option 8.
示例性的,在S206a之后,电子设备也可以根据用户的输入更新电子设备上显示的内容。具体的,若电子设备分别在区域1显示第k级菜单,在区域2显示k级选项1对应的第k+1级菜单(即第k级菜单的选项1对应的下一级菜单)、在区域3显示k级选项2第k+1级菜单(即第k级菜单的选项2对应的下一级菜单),若用户在电子设备上向左滑动,则电子设备可以在区域1中显示k级选项1对应的第k+1级菜单,在区域2中显示k级选项2对应的第k+1级菜单,在区域3显示k+2级菜单。Exemplarily, after S206a, the electronic device may also update the content displayed on the electronic device according to the user's input. Specifically, if the electronic device displays the k-th level menu in area 1, respectively, displays the k+1 level menu corresponding to k-level option 1 in area 2 (that is, the lower-level menu corresponding to option 1 of the k-th level menu). Area 3 displays the k level option 2 k+1 level menu (ie the next level menu corresponding to option 2 of the k level menu). If the user swipes to the left on the electronic device, the electronic device can display k in area 1. The k+1 level menu corresponding to level option 1 is displayed in area 2, the k+1 level menu corresponding to level k option 2 is displayed in area 2, and the k+2 level menu is displayed in area 3.
S206b、响应于第三输入,电子设备将第一目标级菜单的所有下级菜单更新为第二目标级菜单。S206b. In response to the third input, the electronic device updates all subordinate menus of the first target level menu to the second target level menu.
示例性的,若第一目标级菜单之后屏幕上包括至少两级菜单,则电子设备可以在接收到第三输入之后,重新划分区域显示菜单。Exemplarily, if at least two levels of menus are included on the screen after the first target level menu, the electronic device may re-divide the area to display the menu after receiving the third input.
具体的,若第一目标级菜单之后包括一级菜单,则电子设备可以在该一级菜单的区域显示第二目标级菜单,并取消右侧控件。Specifically, if a first-level menu is included after the first target-level menu, the electronic device may display the second target-level menu in the area of the first-level menu, and cancel the right control.
当然,如图10中的(c)所示,若用户在点击区域2显示的三级菜单中的三级选项5,电子设备也可以在三级选项3对应的四级菜单的区域3显示三级选线5对应的四级菜单,并且取消右向箭头的显示。Of course, as shown in (c) in Figure 10, if the user clicks on the third-level option 5 in the three-level menu displayed in area 2, the electronic device can also display three-level options in area 3 of the fourth-level menu corresponding to the third-level option 3. The level selection line 5 corresponds to the four-level menu, and the display of the right arrow is canceled.
基于该方案,在电子设备显示至少两级菜单的情况下,电子设备可以接收用户对至少两级菜单中的第一目标级菜单的情况下,电子设备可以将该第一目标级菜单更新为第二目标级菜单,并保持显示其他的菜单。可以方便用户在显示多级菜单的情况下,在深层级的菜单中查找某高一层级菜单的情况下不退出低层级的菜单,便于用户在选中高层级的菜单之后返回原先显示的菜单继续查看。Based on this solution, when the electronic device displays at least two levels of menus, the electronic device can receive the user's first target level menu in the at least two levels of menus, and the electronic device can update the first target level menu to the first target level menu. The second target level menu, and keep displaying other menus. It is convenient for the user to not exit the lower-level menu when searching for a higher-level menu in the deep-level menu when displaying multi-level menus, so that the user can return to the original displayed menu after selecting the higher-level menu to continue to view .
进而,在电子设备的屏幕为可以折叠的屏幕的情况下,本申请实施例的菜单显示方法还可以包括下述的S207和S208。Furthermore, when the screen of the electronic device is a foldable screen, the menu display method of the embodiment of the present application may further include the following S207 and S208.
S207、在屏幕显示至少两级菜单的情况下,电子设备接收用户的第四输入。S207: In a case where at least two levels of menus are displayed on the screen, the electronic device receives a fourth input from the user.
其中,第四输入为触发屏幕中的第四区域折叠的输入。Among them, the fourth input is an input that triggers the folding of the fourth area on the screen.
为了便于理解,结合图9,若用户触发第三屏幕向第二屏幕折叠,则第四区域为第三屏幕上的显示区域,若用户触发第二屏幕和第三屏幕向第一屏幕折叠,则第四区域包括第二屏幕上的显示区域和第三屏幕上的显示区域。For ease of understanding, in conjunction with Figure 9, if the user triggers the third screen to fold toward the second screen, the fourth area is the display area on the third screen. If the user triggers the second screen and the third screen to fold toward the first screen, then The fourth area includes a display area on the second screen and a display area on the third screen.
S208、响应于第四输入,电子设备取消第四区域中的菜单的显示。S208. In response to the fourth input, the electronic device cancels the display of the menu in the fourth area.
例如,结合图9,若用户触发第三屏幕向第四屏幕折叠,则电子设备可以取消第三屏幕上显示的三级菜单。For example, in conjunction with FIG. 9, if the user triggers the third screen to fold to the fourth screen, the electronic device can cancel the three-level menu displayed on the third screen.
需要说明的是,若用户点击第j级菜单中的“取消”控件,电子设备也可以取消该级菜单的显示。It should be noted that if the user clicks the "cancel" control in the j-th level menu, the electronic device can also cancel the display of this level menu.
基于该方案,在电子设备的屏幕为可以折叠的屏幕的情况下,用户可以通过控制屏幕的折叠来取消屏幕上的菜单的显示,操作方式更加便捷,提高了用户的用户体验。Based on this solution, when the screen of the electronic device is a foldable screen, the user can cancel the display of the menu on the screen by controlling the folding of the screen, the operation mode is more convenient, and the user experience of the user is improved.
图11为本申请实施例提供的一种电子设备可能的结构示意图,如图11所示,电子设备700包括接收模块701和显示模块702;接收模块701,用于在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;显示模块702,用于响应于接收模块701接收的第一输入,在第一区域显示第j+p级菜单,其中,j为从i取到i+m的至少两个整数,i、m和j均为正整数,p为整数;或者,i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1,第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。FIG. 11 is a schematic diagram of a possible structure of an electronic device provided by an embodiment of the application. As shown in FIG. 11, the electronic device 700 includes a receiving module 701 and a display module 702; the receiving module 701 is used for displaying respectively in m+1 areas In the case of the i-th level menu to the i+m-th level menu, the user’s first input is received, where the display content of the first area of the m+1 areas is the j-th level menu; the display module 702 is used for In response to the first input received by the receiving module 701, the j+p level menu is displayed in the first area, where j is at least two integers taken from i to i+m, and i, m, and j are all positive integers, p is an integer; or, any integer from i to i+m-1, i, m, and j are all positive integers, p=1, the j+p level menu displayed in the first area and the second area The j+p level menu displayed is a different submenu of the same level menu.
可选地,在第一输入为用户对第i+m级菜单中的任意一个选项选中输入的情况下,第i+m+p级菜单为第一输入触发显示的菜单,p=1;或者,在第一输入为用户的滑动输入或对目标控件的输入的情况下,第i+m+p级菜单为第一输入之前在该m+1个区域中显示过的菜单,p为正整数或负整数。Optionally, in the case where the first input is the user's selection of any one of the options in the i+m-th level menu, the i+m+p-th level menu is a menu that is triggered by the first input, and p=1; or , When the first input is the user’s sliding input or the input to the target control, the i+m+p level menu is the menu displayed in the m+1 areas before the first input, and p is a positive integer Or a negative integer.
可选地,m+1为电子设备一次显示的菜单的最大多数;接收模块701,还用于在在接收第一输入之前,显示模块702在n+1个区域分别显示第1级菜单至第n+1级菜单的情况下,接收用户的第二输入,0≤n<m,n为整数;显示模块702,还用于响应于第二输入,在n+2个区域分别显示第1级菜单至第n+2级菜单。Optionally, m+1 is the most majority of the menus displayed by the electronic device at one time; the receiving module 701 is also used to display the first level to the first level of the menu in the n+1 areas before receiving the first input, and the display module 702 In the case of n+1 level menu, the second input of the user is received, 0≤n<m, where n is an integer; the display module 702 is also used to display the first level in n+2 areas in response to the second input Menu to n+2 level menu.
可选地,接收模块701,还用于在显示模块702显示至少两级菜单的情况下,接收用户的第三输入,第三输入为第三区域显示的第一目标级菜单的输入,第一目标级菜单为至少两级菜单中除最后一级菜单之外的任意一级菜单;显示模块702,还用于响应于接收模块701接收的第三输入,在第三区域显示第二目标级菜单,并保持显示其他区域中显示的菜单,第二目标级菜单为第一目标级菜单的下一级菜单中与第三输入对应的菜单。Optionally, the receiving module 701 is further configured to receive a third input from the user when the display module 702 displays at least two levels of menus, the third input being the input of the first target level menu displayed in the third area, and the first The target-level menu is any one of the at least two-level menus except the last-level menu; the display module 702 is also used to display the second target-level menu in the third area in response to the third input received by the receiving module 701 , And keep displaying the menus displayed in other areas. The second target level menu is the menu corresponding to the third input in the lower level menu of the first target level menu.
可选地,电子设备的屏幕为可折叠屏幕;接收模块701,还用于在屏幕显示至少两级菜单的情况下,接收用户的第四输入,第四输入为触发屏幕中的第四区域折叠的输入;显示模块702,还用于响应于接收模块701接收的第四输入,取消第四区域中的菜单的显示。Optionally, the screen of the electronic device is a foldable screen; the receiving module 701 is further configured to receive a fourth input from the user when at least two levels of menus are displayed on the screen, and the fourth input is to trigger the folding of the fourth area on the screen The display module 702 is also used to cancel the display of the menu in the fourth area in response to the fourth input received by the receiving module 701.
本申请实施例提供的电子设备700能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device 700 provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment, and to avoid repetition, details are not described herein again.
本申请实施例提供的电子设备,电子设备在m+1个区域分别显示第i级菜单至第i+m 级菜单的情况下,用户可以在根据需要输入第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;电子设备在接收到第一输入之后,可以响应于第一输入,在第一区域显示第j+p级菜单;在j取从i到i+m中的至少两个整数,i、m和j均为正整数,p为整数的情况下,电子设备可以为将至少两个j对应的第一区域中的第j级菜单更新显示为对应的第j+p级菜单,在j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1的情况下,电子设备可以将屏幕上一个第一区域显示的1个j第j级菜单更新显示为与第一输入对应的第j+p级菜单,该第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单,即电子设备可以只更新其中一级菜单,也可以同时更新多级菜单,若用户需要在多级菜单中查找菜单选项时,可以方便的根据第一输入切换界面中显示的多个层级菜单的级别,相比于目前在深层级菜单中查找的方式,简化了操作步骤,无需用户多出触发电子设备返回上一级菜单,从而可以更加方便用户在菜单查找选项。In the electronic device provided by the embodiment of the present application, when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+1 The display content of the first area of the two areas is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; At least two integers from i+m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update the display of the j-th level menu in the first area corresponding to the at least two j Is the corresponding j+p level menu, when j takes any integer from i to i+m-1, i, m, and j are all positive integers, and p=1, the electronic device can set a The j-th level menu displayed in the first area is updated and displayed as the j+p-th level menu corresponding to the first input. The j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area. +p-level menus are different sub-menus of the same-level menu, that is, the electronic device can update only one of the first-level menus, or update multiple-level menus at the same time. If users need to find menu options in the multi-level menus, they can conveniently One input switches the levels of multiple hierarchical menus displayed in the interface. Compared with the current way of searching in deep-level menus, the operation steps are simplified, and there is no need for the user to trigger the electronic device to return to the previous menu, which can be more convenient for users Find options in the menu.
图12为实现本申请各个实施例的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。12 is a schematic diagram of the hardware structure of an electronic device implementing each embodiment of the present application. The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 12 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present application, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
其中,用户输入单元107,用于在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;显示单元106,用于响应于第一输入,在第一区域显示第j+p级菜单;其中,j为从i取到i+m的整数,i、m和j均为正整数,p为整数;或者,j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1,第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。Wherein, the user input unit 107 is configured to receive the first input of the user when the i-th level menu to the i+m-th level menu are respectively displayed in m+1 areas, wherein the first input of the m+1 area is The display content of one area is the j-th level menu; the display unit 106 is configured to display the j+p-th level menu in the first area in response to the first input; where j is an integer from i to i+m, i , M and j are all positive integers, p is an integer; or, j is any integer from i to i+m-1, i, m, and j are all positive integers, p=1, the display in the first area The j+p level menu and the j+p level menu displayed in the second area are different submenus of the same level menu.
本申请实施例提供的电子设备,电子设备在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,用户可以在根据需要输入第一输入,其中,该m+1个区域中的第一区域的显示内容为第j级菜单;电子设备在接收到第一输入之后,可以响应于第一输入,在第一区域显示第j+p级菜单;在j取从i到i+m中的至少两个整数,i、m和j均为正整数,p为整数的情况下,电子设备可以为将至少两个j对应的第一区域中的第j级菜单更新显示为对应的第j+p级菜单,在j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1的情况下,电子设备可以将屏幕上一个第一区域显示的1个j第j级菜单更新显示为与第一输入对应的第j+p级菜单,该第一区域中显示的第j+p级菜单与第二区域中显示的第j+p 级菜单为同一级菜单的不同子菜单,即电子设备可以只更新其中一级菜单,也可以同时更新多级菜单,若用户需要在多级菜单中查找菜单选项时,可以方便的根据第一输入切换界面中显示的多个层级菜单的级别,相比于目前在深层级菜单中查找的方式,简化了操作步骤,无需用户多出触发电子设备返回上一级菜单,从而可以更加方便用户在菜单查找选项。In the electronic device provided by the embodiment of the present application, when the electronic device respectively displays the i-th level menu to the i+m-th level menu in m+1 areas, the user can input the first input as needed, where the m+1 The display content of the first area of the two areas is the j-th level menu; after receiving the first input, the electronic device can respond to the first input and display the j+p-th level menu in the first area; At least two integers from i+m, i, m, and j are all positive integers, and when p is an integer, the electronic device can update the display of the j-th level menu in the first area corresponding to the at least two j Is the corresponding j+p level menu, when j takes any integer from i to i+m-1, i, m, and j are all positive integers, and p=1, the electronic device can set a The j-th level menu displayed in the first area is updated and displayed as the j+p-th level menu corresponding to the first input. The j+p-th level menu displayed in the first area is the same as the j-th level menu displayed in the second area. +p-level menus are different sub-menus of the same-level menu, that is, the electronic device can update only one of the first-level menus, or update multiple-level menus at the same time. If the user needs to find menu options in the multi-level menus, they can conveniently One input switches the levels of multiple hierarchical menus displayed in the interface. Compared with the current way of searching in deep-level menus, the operation steps are simplified, and there is no need for the user to trigger the electronic device to return to the previous menu, which can be more convenient for users Find options in the menu.
应理解的是,本申请实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present application, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其他存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管 (Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图12中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 12, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device and the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处 理器110可包括一个或多个处理单元;可选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
可选地,本申请实施例还提供一种电子设备,结合图12,包括处理器110,存储器109,存储在存储器109上并可在处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述菜单显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device. With reference to FIG. 12, the electronic device includes a processor 110, a memory 109, a computer program stored in the memory 109 and running on the processor 110, and the computer program is When 110 is executed, each process of the above embodiment of the menu display method is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述菜单显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned menu display method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ) Includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (12)

  1. 一种菜单显示方法,应用于电子设备,所述方法包括:A menu display method, applied to an electronic device, the method including:
    在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入,其中,所述m+1个区域中的第一区域的显示内容为第j级菜单;In the case where m+1 areas respectively display the i-th level menu to the i+m-th level menu, the user’s first input is received, wherein the display content of the first area in the m+1 areas is the jth level Level menu
    响应于所述第一输入,在所述第一区域显示第j+p级菜单;In response to the first input, display a j+p level menu in the first area;
    其中,j取i到i+m中的至少两个整数,i、m和j均为正整数,p为整数;Wherein, j takes at least two integers from i to i+m, i, m, and j are all positive integers, and p is an integer;
    或者,or,
    j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1,所述第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。j takes any integer from i to i+m-1, i, m, and j are all positive integers, p=1, the j+p level menu displayed in the first area and the menu displayed in the second area The j+p level menu is a different submenu of the same level menu.
  2. 根据权利要求1所述的方法,其中,The method of claim 1, wherein:
    在所述第一输入为用户对第i+m级菜单中的任意一个选项选中输入的情况下,第i+m+p级菜单为所述第一输入触发显示的菜单,p=1;或者,In the case where the first input is the user's selection input for any option in the i+m-th level menu, the i+m+p-th level menu is the menu that is triggered by the first input to display, p=1; or ,
    在所述第一输入为用户的滑动输入或对目标控件的输入的情况下,第i+m+p级菜单为所述第一输入之前在所述m+1个区域中显示过的菜单,p为正整数或负整数。In the case where the first input is a user's sliding input or an input to a target control, the i+m+p-th level menu is a menu that has been displayed in the m+1 areas before the first input, p is a positive or negative integer.
  3. 根据权利要求1所述的方法,其中,m+1为所述电子设备一次显示的菜单的最多级数;The method according to claim 1, wherein m+1 is the maximum number of levels of menus displayed by the electronic device at one time;
    在接收第一输入之前,所述方法还包括:Before receiving the first input, the method further includes:
    在n+1个区域分别显示第1级菜单至第n+1级菜单的情况下,接收用户的第二输入,0≤n<m,n为整数;In the case where n+1 areas respectively display the 1st level menu to the n+1th level menu, the second input of the user is received, 0≤n<m, and n is an integer;
    响应于所述第二输入,在n+2个区域分别显示第1级菜单至第n+2级菜单。In response to the second input, the first level menu to the n+2 level menu are displayed in n+2 areas, respectively.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在显示至少两级菜单的情况下,接收用户的第三输入,所述第三输入为对第三区域显示的第一目标级菜单的输入,所述第一目标级菜单为所述至少两级菜单中除最后一级菜单之外的任意一级菜单;When at least two levels of menus are displayed, a third input from the user is received, the third input being an input to the first target level menu displayed in the third area, and the first target level menu is the at least two levels Any level menu except the last level menu in the menu;
    响应于所述第三输入,在所述第三区域显示第二目标级菜单,并保持显示其他区域中显示的菜单,所述第二目标级菜单为所述第一目标级菜单的下一级菜单中与所述第三输入对应的菜单。In response to the third input, display a second target-level menu in the third area, and keep displaying menus displayed in other areas, the second target-level menu being the next level of the first target-level menu The menu corresponding to the third input in the menu.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述电子设备的屏幕为可折叠屏幕;The method according to any one of claims 1 to 4, wherein the screen of the electronic device is a foldable screen;
    所述方法还包括:The method also includes:
    在所述屏幕显示至少两级菜单的情况下,接收用户的第四输入,所述第四输入为触发所述屏幕中的第四区域折叠的输入;When the screen displays at least two levels of menus, receiving a fourth input from the user, where the fourth input is an input that triggers the folding of the fourth area in the screen;
    响应于所述第四输入,取消所述第四区域中的菜单的显示。In response to the fourth input, the display of the menu in the fourth area is cancelled.
  6. 一种电子设备,所述电子设备包括:接收模块和显示模块;An electronic device, the electronic device comprising: a receiving module and a display module;
    所述接收模块,用于在m+1个区域分别显示第i级菜单至第i+m级菜单的情况下,接收用户的第一输入,其中,所述m+1个区域中的第一区域的显示内容为第j级菜单;The receiving module is configured to receive the first input of the user when the i-th level menu to the i+m-th level menu are respectively displayed in m+1 areas, wherein the first input of the m+1 areas is The display content of the area is the j-th level menu;
    所述显示模块,用于响应于所述接收模块接收的所述第一输入,在所述第一区域显示第j+p级菜单;The display module is configured to display a j+p level menu in the first area in response to the first input received by the receiving module;
    其中,j取i到i+m中的至少两个整数,i、m和j均为正整数,p为整数;Wherein, j takes at least two integers from i to i+m, i, m, and j are all positive integers, and p is an integer;
    或者,or,
    j取i到i+m-1中的任意一个整数,i、m和j均为正整数,p=1,所述第一区域中显示的第j+p级菜单与第二区域中显示的第j+p级菜单为同一级菜单的不同子菜单。j takes any integer from i to i+m-1, i, m, and j are all positive integers, p=1, the j+p level menu displayed in the first area and the menu displayed in the second area The j+p level menu is a different submenu of the same level menu.
  7. 根据权利要求6所述的电子设备,其中,The electronic device according to claim 6, wherein:
    在所述第一输入为用户对第i+m级菜单中的任意一个选项选中输入的情况下,第i+m+p级菜单为所述第一输入触发显示的菜单,p=1;或者,In the case where the first input is the user's selection input for any option in the i+m-th level menu, the i+m+p-th level menu is the menu that is triggered by the first input to display, p=1; or ,
    在所述第一输入为用户的滑动输入或对目标控件的输入的情况下,第i+m+p级菜单为所述第一输入之前在所述m+1个区域中显示过的菜单,p为正整数或负整数。In the case where the first input is a user's sliding input or an input to a target control, the i+m+p-th level menu is a menu that has been displayed in the m+1 areas before the first input, p is a positive or negative integer.
  8. 根据权利要求6所述的电子设备,其中,m+1为所述电子设备一次显示的菜单的最多级数;The electronic device according to claim 6, wherein m+1 is the maximum number of levels of the menu displayed at one time by the electronic device;
    所述接收模块,还用于在接收第一输入之前,在显示模块在n+1个区域分别显示第1级菜单至第n+1级菜单的情况下,接收用户的第二输入,0≤n<m,n为整数;The receiving module is further configured to receive the second input from the user when the display module separately displays the first level menu to the n+1 level menu in n+1 areas before receiving the first input, 0≤ n<m, n is an integer;
    所述显示模块,还用于响应于所述第二输入,在n+2个区域分别显示第1级菜单至第n+2级菜单。The display module is further configured to display the first level menu to the n+2 level menu in n+2 areas in response to the second input.
  9. 根据权利要求6所述的电子设备,其中,The electronic device according to claim 6, wherein:
    所述接收模块,还用于在显示模块显示至少两级菜单的情况下,接收用户的第三输入,所述第三输入为对第三区域显示的第一目标级菜单的输入,所述第一目标级菜单为所述至少两级菜单中除最后一级菜单之外的任意一级菜单;The receiving module is further configured to receive a third input from the user when the display module displays at least two levels of menus, where the third input is an input to the first target level menu displayed in the third area, and the first target level menu is displayed in the third area. A target level menu is any one level menu except the last level menu among the at least two levels of menus;
    所述显示模块,还用于响应于所述接收模块接收的所述第三输入,在所述第三区域显示第二目标级菜单,并保持显示其他区域中显示的菜单,所述第二目标级菜单为所述第一目标级菜单的下一级菜单中与所述第三输入对应的菜单。The display module is further configured to display a second target level menu in the third area in response to the third input received by the receiving module, and keep displaying menus displayed in other areas, the second target The level menu is a menu corresponding to the third input among the lower level menus of the first target level menu.
  10. 根据权利要求6至9中任一项所述的电子设备,其中,所述电子设备的屏幕为可折叠屏幕;The electronic device according to any one of claims 6 to 9, wherein the screen of the electronic device is a foldable screen;
    所述接收模块,还用于在所述屏幕显示至少两级菜单的情况下,接收用户的第四输入,所述第四输入为触发所述屏幕中的第四区域折叠的输入;The receiving module is further configured to receive a fourth input from the user when the screen displays at least two levels of menus, where the fourth input is an input that triggers the folding of the fourth area in the screen;
    所述显示模块,还用于响应于所述接收模块接收的所述第四输入,取消所述第四区域中的菜单的显示。The display module is further configured to cancel the display of the menu in the fourth area in response to the fourth input received by the receiving module.
  11. 一种电子设备,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的菜单显示方法的步骤。An electronic device that includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor to implement as claimed in claim 1. Steps of the menu display method described in any one of to 5.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的菜单显示方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the menu display method according to any one of claims 1 to 5 are realized.
PCT/CN2020/118814 2019-10-08 2020-09-29 Menu display method and electronic device WO2021068804A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910951023.3A CN110851039B (en) 2019-10-08 2019-10-08 Menu display method and electronic equipment
CN201910951023.3 2019-10-08

Publications (1)

Publication Number Publication Date
WO2021068804A1 true WO2021068804A1 (en) 2021-04-15

Family

ID=69596347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118814 WO2021068804A1 (en) 2019-10-08 2020-09-29 Menu display method and electronic device

Country Status (2)

Country Link
CN (1) CN110851039B (en)
WO (1) WO2021068804A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851039B (en) * 2019-10-08 2021-07-02 维沃移动通信有限公司 Menu display method and electronic equipment
CN112416237B (en) * 2020-11-19 2022-01-21 珠海格力电器股份有限公司 Interface interaction method, control device, storage medium and plant planting electric appliance
CN115309312A (en) * 2021-04-21 2022-11-08 花瓣云科技有限公司 Content display method and electronic equipment
CN113467665A (en) * 2021-07-01 2021-10-01 北京有竹居网络技术有限公司 Multi-level menu display method and device, storage medium and electronic equipment
CN113589994A (en) * 2021-07-30 2021-11-02 恒生电子股份有限公司 Display control method, device and equipment of navigation menu and storage medium
CN113923131B (en) * 2021-09-10 2023-08-22 北京世纪互联宽带数据中心有限公司 Monitoring information determining method and device, computing equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761267A (en) * 2004-10-11 2006-04-19 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal having multiple screens and method for controlling menu list display
US20100146451A1 (en) * 2008-12-09 2010-06-10 Sungkyunkwan University Foundation For Corporate Collaboration Handheld terminal capable of supporting menu selection using dragging on touch screen and method of controlling the same
CN103049176A (en) * 2013-01-22 2013-04-17 网神信息技术(北京)股份有限公司 Method and device for displaying menus
CN104317487A (en) * 2014-11-12 2015-01-28 北京国双科技有限公司 Display method and display device of annular menu
CN105893017A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and device for presenting project menu on equipment
CN107589903A (en) * 2017-10-19 2018-01-16 广东欧珀移动通信有限公司 The method and apparatus for showing more page number displaying information
CN110851039A (en) * 2019-10-08 2020-02-28 维沃移动通信有限公司 Menu display method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552837B (en) * 2009-03-11 2012-06-20 惠州Tcl移动通信有限公司 Menu indication method
US20110314421A1 (en) * 2010-06-18 2011-12-22 International Business Machines Corporation Access to Touch Screens
CN103793135B (en) * 2013-12-31 2017-01-11 远光软件股份有限公司 User interface tree-structure display method and system
CN107728901B (en) * 2017-10-24 2020-07-24 Oppo广东移动通信有限公司 Interface display method and device and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761267A (en) * 2004-10-11 2006-04-19 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal having multiple screens and method for controlling menu list display
US20100146451A1 (en) * 2008-12-09 2010-06-10 Sungkyunkwan University Foundation For Corporate Collaboration Handheld terminal capable of supporting menu selection using dragging on touch screen and method of controlling the same
CN103049176A (en) * 2013-01-22 2013-04-17 网神信息技术(北京)股份有限公司 Method and device for displaying menus
CN104317487A (en) * 2014-11-12 2015-01-28 北京国双科技有限公司 Display method and display device of annular menu
CN105893017A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and device for presenting project menu on equipment
CN107589903A (en) * 2017-10-19 2018-01-16 广东欧珀移动通信有限公司 The method and apparatus for showing more page number displaying information
CN110851039A (en) * 2019-10-08 2020-02-28 维沃移动通信有限公司 Menu display method and electronic equipment

Also Published As

Publication number Publication date
CN110851039A (en) 2020-02-28
CN110851039B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
WO2021068804A1 (en) Menu display method and electronic device
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2021197263A1 (en) Content sharing method and electronic device
WO2021129762A1 (en) Application sharing method, electronic device and computer-readable storage medium
WO2020258934A1 (en) Interface display method and terminal device
WO2021057337A1 (en) Operation method and electronic device
WO2020215949A1 (en) Object processing method and terminal device
JP7247417B2 (en) Icon display method and terminal equipment
US11354017B2 (en) Display method and mobile terminal
WO2021129536A1 (en) Icon moving method and electronic device
CN110109604B (en) Application interface display method and mobile terminal
WO2021129538A1 (en) Control method and electronic device
WO2020151512A1 (en) Image storage method and terminal apparatus
WO2020215991A1 (en) Display control method and terminal device
WO2021129732A1 (en) Display processing method and electronic device
WO2020181945A1 (en) Identifier displaying method and terminal device
WO2021017738A1 (en) Interface display method and electronic device
WO2020192324A1 (en) Interface displaying method and terminal device
WO2020215967A1 (en) Content selection method and terminal device
WO2020192297A1 (en) Screen interface switching method and terminal device
US20210320995A1 (en) Conversation creating method and terminal device
WO2020215982A1 (en) Desktop icon management method and terminal device
WO2020168882A1 (en) Interface display method and terminal device
WO2020215950A1 (en) Interface display method and terminal device
WO2020220893A1 (en) Screenshot method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20874280

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20874280

Country of ref document: EP

Kind code of ref document: A1