CN110865748A - Menu presenting method and device, electronic equipment and computer readable storage medium - Google Patents

Menu presenting method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110865748A
CN110865748A CN201911108148.6A CN201911108148A CN110865748A CN 110865748 A CN110865748 A CN 110865748A CN 201911108148 A CN201911108148 A CN 201911108148A CN 110865748 A CN110865748 A CN 110865748A
Authority
CN
China
Prior art keywords
menu
display interface
submenus
displacement
hidden
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911108148.6A
Other languages
Chinese (zh)
Inventor
谢飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Infinite Light Field Technology Co Ltd
Original Assignee
Beijing Infinite Light Field Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Infinite Light Field Technology Co Ltd filed Critical Beijing Infinite Light Field Technology Co Ltd
Priority to CN201911108148.6A priority Critical patent/CN110865748A/en
Publication of CN110865748A publication Critical patent/CN110865748A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The present disclosure provides a menu presenting method, device, electronic device and computer readable storage medium, the menu presenting method comprising: acquiring a menu moving instruction on a current display interface, wherein the menu comprises a plurality of submenus arranged in a preset sequence; adjusting the positions of all the submenus on the display interface according to displacement information included in the menu moving instruction, and determining a new menu; and displaying the new menu. According to the menu presentation method, the menu which is formed by arranging the submenus according to the preset sequence is integrally moved by analyzing the menu movement instruction on the current display interface, and a new menu with a new relative position is formed and displayed on the display interface, so that the submenus are always displayed on the display interface according to the preset sequence, a user can conveniently check and select the submenus, and the menu operation efficiency is improved.

Description

Menu presenting method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a menu presenting method and apparatus, an electronic device, and a computer-readable storage medium.
Background
On the display pages of electronic devices such as personal computers, mobile phones, tablet computers, industrial device control terminals and the like, various forms of menus are generally available, and the menus are used for transmitting instructions of operators to computers to realize man-machine interaction. With the development of computer technology, the functions of various software or application programs are gradually diversified, and the number of menus on the same display interface is gradually increased.
In the prior art, a plurality of theme menus are often displayed on a page of an application program, for example, theme menu items such as "focus", "recommend", "favorite" and the like may exist on a page of certain reading software. Under the condition that the number of menus is small or the display space is enough, the menus can be displayed on the display interface in a full display mode, however, when the number of menu items is large and the space of the display interface is limited, all the menus cannot be clearly and completely displayed, so that the menus are folded and hidden or only partially displayed, a user cannot quickly check all functional options of a current page, a selection is made quickly, the operation efficiency of the user is reduced, and the user experience is poor.
Disclosure of Invention
The present disclosure is directed to solving at least one of the above-mentioned technical drawbacks, particularly the inability to quickly view all menu items on a page.
In a first aspect, the present disclosure provides a menu presenting method, including:
acquiring a menu moving instruction on a current display interface, wherein the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence;
adjusting the positions of all submenus on a display interface according to displacement information included in a menu moving instruction, and if part of submenus at one end of a menu queue are hidden in the one-way display interface, sequentially moving the hidden submenus to the other end of the menu queue to determine a new menu;
and displaying at least part of the new menu on the display interface.
In a second aspect, the present disclosure provides a menu presenting apparatus comprising:
the menu moving module is used for obtaining a menu moving instruction on a current display interface, and the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence;
the adjusting module is used for adjusting the positions of all submenus on the display interface according to the displacement information included in the menu moving instruction, and if part of submenus at one end of the menu queue are hidden in the unidirectional display interface, the hidden submenus are sequentially moved to the other end of the menu queue to determine a new menu;
and the display module is used for displaying the new menu.
In a third aspect, the present disclosure provides a menu presenting apparatus comprising:
one or more processors;
a memory;
one or more applications stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: implementing a menu presentation method as provided by the first aspect of the present disclosure.
In a fourth aspect, the present disclosure provides a computer-readable storage medium having stored thereon at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the menu presentation method as provided in the first aspect of the present disclosure.
The technical scheme provided by the disclosure has the following beneficial effects:
according to the menu presentation method, the menu which is formed by arranging the submenus according to the preset sequence is integrally moved by analyzing the menu movement instruction on the current display interface, and the submenus hidden to one side of the display interface are rearranged to the other end of the menu queue, so that a new menu with a new relative position can be formed and displayed on the display interface, a plurality of submenus are always displayed on the display interface circularly according to the preset sequence, a user can check and select conveniently, and the menu operation efficiency is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a menu presenting method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating a process of acquiring a menu movement instruction on a current display interface according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a process of adjusting positions of all sub-menus on a display interface according to displacement information included in a menu movement instruction to determine a new menu according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating an initial state of a menu according to an embodiment of the present disclosure;
fig. 5 is a schematic view illustrating a menu after being moved according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a display state after another menu movement according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating an initial state of menu presentation according to another embodiment of the present disclosure;
FIG. 8 is a schematic diagram illustrating a display state after a menu has been moved according to another embodiment of the present disclosure;
FIG. 9 is a schematic diagram illustrating a display state after another menu movement according to another embodiment of the present disclosure;
FIG. 10 is a schematic diagram illustrating a menu after being moved according to another embodiment of the present disclosure;
FIG. 11 is a schematic diagram illustrating a display state of another menu after being moved according to another embodiment of the present disclosure;
FIG. 12 is a schematic diagram illustrating a display state during a menu movement process according to still another embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a menu presenting device according to an embodiment of the present disclosure;
fig. 14 is a schematic structural diagram of a menu presenting apparatus according to yet another embodiment of the present disclosure;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the devices, modules or units to be determined as different devices, modules or units, and are not used for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Setting up menus on the display interface of a computer device is a friendly implementation way of man-machine interaction, and the menus are used for transmitting instructions of an operator to a computer. Nowadays, as the functions of various software or applications are gradually diversified, more and more tasks can be performed by the software or applications, and the number of menus on the same display interface is gradually increased. However, the display space of the display interface of the computer device is limited, and all menus cannot be displayed on the same interface, so that the user cannot comprehensively master the functions of software or application programs, and the operation efficiency is affected.
The present disclosure provides a menu presenting method, an apparatus, an electronic device and a computer readable storage medium, which aim to solve the above technical problems of the prior art.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
In one embodiment, a menu presentation method is provided, as shown in fig. 1, the method comprising:
s100: and acquiring a menu moving instruction on the current display interface, wherein the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence.
S200: and adjusting the positions of all submenus on the display interface according to the displacement information included in the menu moving instruction, and if part of submenus at one end of the menu queue are hidden in the one-way display interface, sequentially moving the hidden submenus to the other end of the menu queue to determine a new menu.
S300: and displaying at least part of the new menu on the display interface. The display interface on the terminal device always has a certain display area, and the display space is limited, but the contents of the menu may be more, and the menu cannot be displayed on one display interface at the same time, so that only a part of the menu may be displayed during actual display. And for the same display interface, the number of the submenus displayed on the display interface by the menu before the adjustment and the new menu after the adjustment is the same.
The menu presenting method provided by the above embodiment of the disclosure moves the menu comprising a plurality of submenus arranged according to the predetermined sequence as a whole by analyzing the menu moving instruction on the current display interface, forms and displays a new menu having a new relative position on the display interface, and can be presented according to the predetermined sequence on the display interface and the menu moving instruction no matter how many submenus are specifically included, thereby facilitating the user to check and select and improving the menu operation efficiency.
For S100, in general, a certain software or application program is opened on a terminal device, and a plurality of desktop elements, including a menu, are directly presented on a display interface of the terminal device, where the menu generally includes a sub-menu or a plurality of sub-menus, and are distributed on the display interface in a certain order, and before moving, the menu elements are arranged in a queue with beginning and end, that is, a menu queue, in order. Of course, after the movement, another menu queue is formed according to a certain new sequence, which is equivalent to forming a new menu. In addition, there are various specific forms of menu movement instructions, for example, on a terminal device that operates only by a mouse, a menu movement instruction may be generated for actions such as clicking and dragging of the mouse. In the past, more and more menus can be moved by touching the screen.
In one possible embodiment, the submenus are arranged uniformly along the horizontal or vertical direction of the display interface. One example of the display form of the menu is a bar type, which is arranged horizontally or vertically on the display interface. The menu queue appears as a row or column on the display interface. Of course, it is not excluded to display sub-menus in a way that highlights parts of the sub-menu in a particular way.
In one possible embodiment, the obtaining of the menu movement instruction on the current display interface includes:
s110: a menu triggering event on the display interface is detected.
S120: and acquiring occurrence attribute information of the menu trigger event, wherein the occurrence attribute information comprises starting point position information, duration and end point position information.
S130: and determining a menu moving instruction according to the occurrence attribute information.
Once the terminal device detects that an action instruction occurs on the display interface, for example, a click occurs on the display interface, or a finger touch occurs on the touch screen, and the strength condition of signal generation is achieved, the terminal device reflects the action instruction accordingly. Then, the specific content of the menu trigger event is acquired and analyzed, and the related occurrence attribute information is captured. The occurrence attribute information is a plurality of factors characterizing the menu triggering event, and although only the start point position information, the duration and the end point position information are described in the foregoing, it does not represent that only the above information is provided. By collecting and analyzing the generated attribute information, the specific content of the instruction information represented by the menu movement instruction is judged and determined, namely what operation needs to be executed on the menu by the terminal equipment, and an information basis is provided for the change of the subsequent menu.
In another possible embodiment, before the step of acquiring the menu movement instruction on the current display interface, the method includes: obtaining effective touch information on a current display interface; and when the menu is determined to be in the hidden state, displaying the menu on the display interface according to the effective touch information. In an actual scenario, there is likely to be a case where menus are not directly presented on a display interface, for example, in a full-screen playing video or a full-screen game interface, so that when a terminal device performs an operation related to the menus, the menus are first activated from a hidden state to a display state. The effective touch information may be that the terminal device detects a mouse shake, or detects a finger touching a touch display screen included in the terminal device.
During operation of a computer device, such situations may also be encountered: the theme menus of a hierarchy displayed in the main page of the application program, such as sub-menu items of "open", "create", "save", "print", "share", may appear in a horizontal row on the display interface, each sub-menu is displayed in a certain shape, the width of the display interface is limited, and the size of each sub-menu is small due to the whole display, so that it is difficult for the user to see the content clearly. In addition, the user may browse the theme menu by sliding each sub-menu all the time to the left, and after browsing all the sub-menus, the user may browse a certain sub-menu that has been previously viewed only by sliding right again, which is not favorable for the user to view and select the sub-menu items more conveniently.
In order to solve the foregoing technical problem, a solution is provided in a practical embodiment of the present disclosure, as shown in the drawing, the positions of all submenus on the display interface are adjusted according to displacement information included in the menu movement instruction, and if a part of submenus at one end of the menu queue is hidden in the one-way display interface, the hidden part of submenus are sequentially moved to the other end of the menu queue, so as to determine a new menu, which specifically includes:
s210: and determining the displacement direction and the displacement value of the displacement information.
Typically, the actions of the user selecting the menu are: clicking a mouse on a display interface, pressing the mouse, dragging the mouse, or sensing a gesture action through a touch screen on a display device with the touch screen. No matter the mouse action or the gesture action shows the change of the sliding angle and the position, the displacement information can be generated on the display interface, and the displacement information comprises the displacement direction and the displacement value, so that the relevant parameters are provided for the subsequent menu action.
S220: and determining the distance between the submenu close to the edge of the display interface and the edge of the display interface in the displacement direction. The display interface of the terminal device is usually rectangular, although a circular or curved display interface is not excluded, a menu queue formed by arranging a plurality of submenus according to a certain sequence occupies a certain interface space on the display interface, the submenu on the most edge of the menu is usually spaced from the edge of the display interface by a certain distance before moving, and the size of the distance is determined according to the initial design of software. And if the displacement direction is towards the right side of the display interface, determining the distance between the submenu close to the right side edge of the display interface on the menu and the right side edge of the display interface, and if the displacement direction is towards the left side of the display interface, determining the distance between the submenu close to the left side edge of the display interface on the menu and the left side edge of the display interface.
S230: when the difference value between the displacement value and the distance is N +1/N times of the width value of the submenu, hiding the N +1/N submenus in the display interface edge in the displacement direction, and adding the hidden N +1/N submenus in sequence on the end of the menu queue back to the displacement direction, wherein N is a natural number, and N is a nonzero number.
And determining the distance for moving the menu and the specific display form of the movement according to the displacement value. As described in the foregoing, the submenus have a certain width, the difference between the displacement value and the distance is equivalent to moving the submenu close to the edge of the display interface to be flush with the edge of the display interface, and the displacement value still has a margin, which is the difference. If the margin of the displacement value is the width value of one submenu, hiding the submenu close to the edge of the display interface outside the display interface, namely gradually moving the submenu gradually hidden to the other end of the original menu queue, and when the display interface can display all the menus, visually, namely, simultaneously displaying the submenu again on one side of the display interface back to the displacement direction. In addition, other submenus on the menu correspondingly move according to the displacement information, which is equivalent to the rotation of the menu on the display interface in visual sense, and a plurality of submenus form a ring-shaped menu.
As shown in fig. 4, when the menu includes five submenus arranged in an ABCDE order, and the display interface can display the five submenus in a horizontal row, a menu movement instruction is obtained, where the menu movement instruction includes displacement information for moving the menu to the left side of the display interface, and the moved displacement value is a width value of one submenu (the preset leftmost submenu a is located at a position where the left side of the submenu a is flush with the left edge of the display interface), at this time, N may be 0, and N is 1. After moving, the submenu A is gradually hidden towards the left edge of the display interface, meanwhile, the hidden submenu A is added to one end of the menu queue, which faces away from the displacement direction, and moves from the menu queue to one end, which faces away from the displacement direction, because the display interface can display five submenus, the submenu A is gradually redisplayed at the right edge of the display interface and is positioned at the rightmost side of the menu, and the hidden submenu and the displayed submenu are the same submenu. As shown in fig. 5, after the menu movement instruction is completed, the new menu displayed on the display interface is BCDEA. The menu movement instruction is obtained from a motion of a user sliding a finger on the display interface. Similarly, when the displacement value is the width value of two submenus, at this time, N is 1, after the menu is moved, the submenu a is added to the other end of the menu queue from one end of the menu queue to become BCDEA, and then the submenu B is continuously added to the other end of the menu queue just formed to become CDEAB, as shown in fig. 6, the new menu displayed on the display interface is CDEAB. If the user slides to the leftmost side from the rightmost side of the display interface by using a finger on the display interface, wherein N is 4 and N is 1, after a series of actions of moving the menu are completed, a new menu displayed on the display interface is ABCDE, and the method is the same as the previous method. During the movement, the menus are in dynamic state, and the hiding, adding and displaying are also in dynamic state, which is equivalent to circulating on the display interface.
The above example is a case where the menu displayed on the display interface includes only five submenus ABCDE, and as shown in fig. 7, there is also a case where six submenus ABCDEF are included, but the display interface is only enough to display five submenus ABCDE, that is, only five submenus ABCDE are displayed on the display interface (the submenu F in the dotted line portion is not visible). That is, in the moving process, the hidden sub-menu is not the same as the displayed sub-menu, but the hidden sub-menu is still the sub-menu that is moved or added to the other end of the menu queue. When N is 0 and N is 1, after the menu is moved, the complete new menu is actually BCDEFA, but only the part capable of being displayed is displayed on the display interface, as shown in fig. 8, the new menu displayed on the display interface is BCDEF, and the submenu a replacing the originally hidden submenu F is called the hidden submenu. When N is 1 and N is 1, after the menu is moved, as shown in fig. 9, the new menu displayed on the display interface is CDEFA, the sub-menu B is hidden, and a reappears.
Furthermore, the absolute value of n may be larger than 1, for example, the hidden submenu and the displayed submenu may be the same submenuWhen N is 1 and N is 3, firstlyThe submenu A moves to the rightmost side of the menu queue, is displayed when the display interface can be displayed, and continues to hide 1/3 of the submenu B and display the submenu B as B2/3And B is displayed at the rightmost side of the menu1/3As shown in FIG. 10, the new menu is B2/3CDEA B1/3. For the situation that the hidden submenu and the displayed submenu are not the same, before moving, the menu is ABCDEF, when N is 1 and N is 3, after moving the menu, the new menu is B2/3CDEFAB1/3However, the display interface can only display five sub-menus, so as shown in fig. 11, the new menu displayed on the display interface is B2/ 3CDEFA1/3
In a possible implementation manner, hiding the N +1/N submenus into the edge of the display interface in the displacement direction, and adding the hidden N +1/N submenus in sequence on the end of the menu queue opposite to the displacement direction, further comprising: and when the width value of the 1/n sub-menus is larger than a preset width threshold value, assigning n to be 1. To facilitate the moving operation of the submenu, when the last submenu near the edge of the display interface is partially hidden and the hidden part exceeds a certain value, for example 1/2 with the preset width threshold being the width of the submenu, the system directly hides the submenu completely and correspondingly adds the submenu at the other end of the menu queue, and may display a complete submenu on the display interface. For example, when N is 1 and N is-3, the hidden part is 2/3 submenus, as shown in fig. 12, the presented menu is originally a1/3BCDEA2/3However, the system directly evaluates the value of N +1/N to getThe displacement value is 1 submenu width, as shown in fig. 5, and the new menu finally obtained is BCDEA.
S240: a new menu is determined. After all the submenus are moved through the steps, a new menu consisting of submenus with new positions is confirmed, so that the new menu can be conveniently displayed on the display interface of the terminal equipment, and of course, the whole menu moving process can be displayed on the display interface.
In some embodiments, the submenus in the menu have the same width, i.e., the width of each submenu is equal, and the spacing between submenus is the same, and when a spacing is provided between two submenus, the spacing is considered to be a portion of the submenu width. In addition, the situations that the widths of the submenus are different and adaptive change is needed in calculation may also exist, but the same idea is adopted and different displacement values are specifically set, so that the menu presentation effect can be realized, namely, on the terminal equipment with the touch screen, the change of the sliding angle and the position of the button is calculated in real time according to the gesture dynamic state, and the circular reciprocating sliding between the submenus in the menu is realized according to the change situations of the sliding angle and the position of the button.
The menu presentation method disclosed by the embodiment can enable the menus with a plurality of submenus arranged in the display interface to keep a preset sequence when moving, and circularly present in the display interface. For the terminal equipment with the touch screen, a user can continuously slide the menu to the same direction to continuously display all submenus, the user does not need to turn back the menu to search for the submenus which are moved in the past, and the purpose of conveniently and quickly selecting the submenus is achieved.
In a second aspect, the present disclosure provides a menu presenting apparatus 10, as shown in fig. 13, including an obtaining module 11, an adjusting module 12, and a display module 13. The obtaining module 11 is configured to obtain a menu movement instruction on a current display interface, where the menu includes a plurality of sub-menus, and the sub-menus are arranged in a menu queue in a predetermined order. The adjusting module 12 is configured to adjust positions of all submenus on the display interface according to displacement information included in the menu moving instruction, and if a part of submenus at one end of the menu queue is hidden in the one-way display interface, sequentially move the hidden part of submenus to the other end of the menu queue, and determine a new menu. The display module 13 is configured to display at least a part of the new menu on the display interface.
The menu presenting device 10 provided by the present disclosure can move the menu including a plurality of sub-menus arranged according to the predetermined sequence as a whole by analyzing the menu moving instruction on the current display interface, and form and display a new menu having a new relative position on the display interface, so that a plurality of sub-menus are always displayed on the display interface according to the predetermined sequence, which is convenient for the user to check and select, and improves the menu operation efficiency of the user.
In a possible embodiment, the obtaining module 11 obtains the menu moving instruction on the current display interface, including: detecting a menu triggering event on a display interface; acquiring occurrence attribute information of a menu trigger event, wherein the occurrence attribute information comprises starting point position information, duration and end point position information; and determining a menu moving instruction according to the occurrence attribute information.
In a possible embodiment, before the step of acquiring the menu movement instruction on the current display interface, the acquiring module 11 includes: obtaining effective touch information on a current display interface; and when the menu is determined to be in the hidden state, displaying the menu on the display interface according to the effective touch information.
In one possible embodiment, as shown in fig. 14, the adjusting module 12 includes: a displacement analysis unit 12a, a pitch judgment unit 12b, a position moving unit 12c, and a sequence confirmation unit 12 d.
The displacement analyzing unit 12a is used for determining the displacement direction and the displacement value of the displacement information.
The distance determining unit 12b is configured to determine a distance between the sub-menu close to the edge of the display interface and the edge of the display interface in the displacement direction.
The position moving unit 12c is configured to hide the N +1/N submenus from the display interface edge in the shift direction when the difference between the shift value and the distance is N +1/N times of the width value of the submenu, and sequentially add the hidden N +1/N submenus to one end of the menu queue opposite to the shift direction, where N is a natural number and N is a non-zero number.
The order confirmation unit 12d is used to determine a new menu.
The menu presenting device 10 provided by the embodiment can keep the menu provided with a plurality of submenus in the display interface in a preset sequence when moving, and cyclically present each submenu in the display interface. For the terminal equipment with the touch screen, a user can continuously slide the menu to the same direction to continuously and alternately display all submenus, and the user does not need to turn back to the menu to search the browsed submenus, so that the user can conveniently and quickly select the submenus.
In a specific embodiment, the position moving unit 12c hides the N +1/N sub-menus into the edge of the display interface in the displacement direction, and sequentially adds the hidden N +1/N sub-menus to the end of the menu queue opposite to the displacement direction, which specifically includes: and when the width value of the 1/N submenu is larger than the preset width threshold value, rounding up the N +1/N to be used as a displacement numerical value.
In one possible embodiment, the display module 13 arranges the sub-menus evenly along the horizontal direction or the vertical direction of the display interface.
In another possible embodiment, the width values of the several submenus displayed on the display interface by the display module 13 are the same.
The menu presenting device 10 provided in each embodiment of the present disclosure can execute the menu presenting method shown in any embodiment of the present disclosure, and the implementation principles are similar and will not be further described.
Referring now to FIG. 15, a block diagram of an electronic device 100 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 15 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device comprises a memory and a processor, wherein the processor may be referred to as the lower processing device 101, the memory comprises at least one of a Read Only Memory (ROM)102, a Random Access Memory (RAM)103 and a storage device 108, which are described as follows:
as shown in fig. 15, the electronic apparatus 100 may include a processing device (e.g., a central processing unit, a graphic processor, etc.) 101, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)102 or a program loaded from a storage device 108 into a Random Access Memory (RAM) 103. In the RAM 103, various programs and data necessary for the operation of the electronic apparatus 100 are also stored. The processing device 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input/output (I/O) interface 105 is also connected to bus 104.
Generally, the following devices may be connected to the I/O interface 105: input devices 106 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 107 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 108 including, for example, magnetic tape, hard disk, etc.; and a communication device 109. The communication means 109 may allow the electronic device 100 to communicate wirelessly or by wire with other devices to exchange data. While fig. 6 illustrates an electronic device 100 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 109, or installed from the storage means 108, or installed from the ROM 102. The computer program, when executed by the processing device 101, performs the above-described functions defined in the menu presentation method provided by the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a menu moving instruction on a current display interface, wherein the menu comprises a plurality of submenus arranged in a preset sequence; according to the displacement information included in the menu moving instruction, adjusting the positions of all submenus on the display interface, and determining a new menu; the new menu is displayed.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the designation of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, a menu presenting method includes:
acquiring a menu moving instruction on a current display interface, wherein the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence;
adjusting the positions of all submenus on a display interface according to displacement information included in a menu moving instruction, and if part of submenus at one end of a menu queue are hidden in the one-way display interface, sequentially moving the hidden submenus to the other end of the menu queue to determine a new menu;
and displaying at least part of the new menu on the display interface.
In one possible implementation manner, acquiring a menu movement instruction on a current display interface includes:
detecting a menu triggering event on a display interface;
acquiring occurrence attribute information of a menu trigger event, wherein the occurrence attribute information comprises starting point position information, duration and end point position information;
and determining a menu moving instruction according to the occurrence attribute information.
In a possible implementation manner, before the step of acquiring the menu movement instruction on the current display interface, the method includes:
obtaining effective touch information on a current display interface;
and when the menu is determined to be in the hidden state, displaying the menu on the display interface according to the effective touch information.
In a possible implementation manner, adjusting positions of all submenus on a display interface according to displacement information included in a menu movement instruction, if a part of submenus at one end of the menu queue is hidden in a one-way display interface, sequentially moving the hidden part of submenus to the other end of the menu queue, and determining a new menu, includes:
determining the displacement direction and the displacement value of the displacement information;
determining the distance between the submenu close to the edge of the display interface and the edge of the display interface in the displacement direction;
when the difference value between the displacement value and the distance is N +1/N times of the width value of the submenu, hiding the N +1/N submenus into the edge of the display interface in the displacement direction, and adding the hidden N +1/N submenus in sequence on the end of the menu queue back to the displacement direction, wherein N is a natural number, and N is a nonzero number;
a new menu is determined.
In a possible implementation manner, hiding the N +1/N submenus into the edge of the display interface in the displacement direction, and adding the hidden N +1/N submenus in sequence on the end of the menu queue opposite to the displacement direction, including:
and when the width value of the 1/N submenu is larger than the preset width threshold value, rounding up the N +1/N to be used as a displacement numerical value.
In one possible implementation, the submenus are arranged uniformly along the horizontal direction or the vertical direction of the display interface.
In one possible implementation, the width values of several submenus are the same.
According to one or more embodiments of the present disclosure, there is provided a menu presenting apparatus including:
the menu moving module is used for obtaining a menu moving instruction on a current display interface, and the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence;
the adjusting module is used for adjusting the positions of all submenus on the display interface according to the displacement information included in the menu moving instruction, and if part of submenus at one end of the menu queue are hidden in the one-way display interface, the hidden submenus are sequentially moved to the other end of the menu queue to determine a new menu;
and the display module is used for displaying at least part of the new menu on the display interface.
In a possible implementation manner, the acquiring module acquires the menu movement instruction on the current display interface, including: detecting a menu triggering event on a display interface; acquiring occurrence attribute information of a menu trigger event, wherein the occurrence attribute information comprises starting point position information, duration and end point position information; and determining a menu moving instruction according to the occurrence attribute information.
In a possible implementation manner, before the step of acquiring the menu movement instruction on the current display interface, the acquiring module includes: obtaining effective touch information on a current display interface; and when the menu is determined to be in the hidden state, displaying the menu on the display interface according to the effective touch information.
In one possible implementation, the adjusting module includes: the device comprises a displacement analysis unit, a distance judgment unit, a position moving unit and a sequence confirmation unit.
The displacement analysis unit is used for determining the displacement direction and the displacement value of the displacement information.
The distance judgment unit is used for determining the distance between the submenu close to the edge of the display interface and the edge of the display interface in the displacement direction.
The position moving unit is used for hiding the N +1/N submenus into the display interface edge in the displacement direction when the difference value between the displacement value and the distance is N +1/N times of the width value of the submenu, and displaying the hidden N +1/N submenus on one side of the submenu, which faces away from the displacement direction, according to a preset sequence, wherein N is a natural number, and N is a non-zero number.
The order confirmation unit is used for determining a new menu.
In a possible implementation manner, the position moving unit hides the N +1/N sub-menus into the edge of the display interface in the displacement direction, and displays the hidden N +1/N sub-menus on the side of the menu opposite to the displacement direction according to a predetermined sequence, specifically including: and when the width value of the 1/N submenu is larger than the preset width threshold value, rounding up the N +1/N to be used as a displacement numerical value.
In one possible implementation manner, the display module arranges a plurality of sub-menus uniformly along the transverse direction or the longitudinal direction of the display interface.
In one possible implementation manner, the width values of the plurality of submenus displayed on the display interface by the display module are the same.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A menu presentation method, comprising:
acquiring a menu moving instruction on a current display interface, wherein the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence;
adjusting the positions of all the submenus on the display interface according to displacement information included in the menu moving instruction, and if part of submenus at one end of the menu queue are hidden in the one-way display interface, sequentially moving the hidden submenus to the other end of the menu queue to determine a new menu;
displaying at least part of the new menu on the display interface.
2. The menu presentation method according to claim 1, wherein the acquiring of the menu movement instruction on the current display interface comprises:
detecting a menu triggering event on a display interface;
acquiring occurrence attribute information of the menu trigger event, wherein the occurrence attribute information comprises starting point position information, duration and end point position information;
and determining the menu moving instruction according to the generation attribute information.
3. The menu presentation method according to claim 1, wherein the step of acquiring the menu movement instruction on the current display interface is preceded by:
obtaining effective touch information on a current display interface;
and when the menu is determined to be in the hidden state, displaying the menu on the display interface according to the effective touch information.
4. The menu presentation method according to any one of claims 1 to 3, wherein the adjusting, according to displacement information included in the menu movement instruction, positions of all the submenus on the display interface, and if a part of submenus at one end of the menu queue is hidden in the one-way display interface, sequentially moving the hidden part of submenus to the other end of the menu queue to determine a new menu includes:
determining the displacement direction and the displacement value of the displacement information;
determining the distance between the submenu close to the edge of the display interface and the edge of the display interface in the displacement direction;
when the difference value between the displacement value and the distance is N +1/N times of the width value of the submenu, hiding the N +1/N submenus to the display interface edge in the displacement direction, and sequentially adding the hidden N +1/N submenus at one end of the menu queue back to the displacement direction, wherein N is a natural number, and N is a nonzero number; a new menu is determined.
5. The method according to claim 4, wherein the hiding N +1/N sub-menus into the edge of the display interface in the displacement direction and adding the hidden N +1/N sub-menus in sequence on the end of the menu queue opposite to the displacement direction comprises:
and when the width values of the 1/N submenus are larger than a preset width threshold value, rounding up N +1/N to serve as the displacement numerical value.
6. A menu presentation method as claimed in claim 1, wherein a number of the sub-menus are arranged uniformly in a horizontal or vertical direction of the display interface.
7. A menu presentation method as claimed in claim 1, characterized in that the width values of several of the submenus are identical.
8. A menu presenting apparatus, comprising:
the menu moving module is used for obtaining a menu moving instruction on a current display interface, wherein the menu comprises a plurality of submenus which are arranged into a menu queue in a preset sequence;
the adjusting module is used for adjusting the positions of all the submenus on the display interface according to the displacement information included in the menu moving instruction, and if part of submenus at one end of the menu queue are hidden in the one-way display interface, the hidden submenus are sequentially moved to the other end of the menu queue to determine a new menu;
and the display module is used for displaying the new menu.
9. Menu presenting device according to claim 8, characterized in that the adjusting module comprises:
the displacement analysis unit is used for determining the displacement direction and the displacement value of the displacement information;
the distance judgment unit is used for determining the distance between the submenu close to the edge of the display interface and the edge of the display interface in the displacement direction;
a position moving unit, configured to hide N +1/N submenus towards the display interface edge in the displacement direction when the difference between the displacement value and the distance is N +1/N times of the width value of the submenu, and sequentially add hidden N +1/N submenus on the menu queue back to one end of the displacement direction, where N is a natural number and N is a nonzero number;
and the sequence confirming unit is used for confirming a new menu.
10. An electronic device, comprising:
one or more processors;
a memory;
one or more applications stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: implementing a menu presentation method as claimed in any one of claims 1 to 7.
11. A computer readable storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a menu presentation method as claimed in any one of claims 1 to 7.
CN201911108148.6A 2019-11-13 2019-11-13 Menu presenting method and device, electronic equipment and computer readable storage medium Pending CN110865748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911108148.6A CN110865748A (en) 2019-11-13 2019-11-13 Menu presenting method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911108148.6A CN110865748A (en) 2019-11-13 2019-11-13 Menu presenting method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110865748A true CN110865748A (en) 2020-03-06

Family

ID=69654111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911108148.6A Pending CN110865748A (en) 2019-11-13 2019-11-13 Menu presenting method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110865748A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981610A (en) * 2008-09-29 2013-03-20 株式会社日立制作所 Input Apparatus
CN104182133A (en) * 2014-08-29 2014-12-03 广东欧珀移动通信有限公司 List sliding control method and device
CN106648330A (en) * 2016-10-12 2017-05-10 广州视源电子科技股份有限公司 Human-machine interaction method and device
CN106648642A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Infinite page scrolling method of slide view in IOS client end and system
CN107817938A (en) * 2017-11-23 2018-03-20 平安科技(深圳)有限公司 Realize method, apparatus, equipment and readable storage medium storing program for executing that selective listing rolls
US20180300032A1 (en) * 2017-04-12 2018-10-18 Microsoft Technology Licensing, Llc Continued Selection During Scrolling
US20190065021A1 (en) * 2017-08-30 2019-02-28 Google Inc. Hybrid scrolling of user interfaces
CN109614179A (en) * 2018-11-09 2019-04-12 吉旗(成都)科技有限公司 A method of improving overlength list sliding capability and user experience

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981610A (en) * 2008-09-29 2013-03-20 株式会社日立制作所 Input Apparatus
CN104182133A (en) * 2014-08-29 2014-12-03 广东欧珀移动通信有限公司 List sliding control method and device
CN106648330A (en) * 2016-10-12 2017-05-10 广州视源电子科技股份有限公司 Human-machine interaction method and device
CN106648642A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Infinite page scrolling method of slide view in IOS client end and system
US20180300032A1 (en) * 2017-04-12 2018-10-18 Microsoft Technology Licensing, Llc Continued Selection During Scrolling
US20190065021A1 (en) * 2017-08-30 2019-02-28 Google Inc. Hybrid scrolling of user interfaces
CN107817938A (en) * 2017-11-23 2018-03-20 平安科技(深圳)有限公司 Realize method, apparatus, equipment and readable storage medium storing program for executing that selective listing rolls
CN109614179A (en) * 2018-11-09 2019-04-12 吉旗(成都)科技有限公司 A method of improving overlength list sliding capability and user experience

Similar Documents

Publication Publication Date Title
EP3175336B1 (en) Electronic device and method for displaying user interface thereof
US9304668B2 (en) Method and apparatus for customizing a display screen of a user interface
US9405452B2 (en) Apparatus and method of searching for contents in touch screen device
US10521102B1 (en) Handling touch inputs based on user intention inference
US20130212529A1 (en) User interface for touch and swipe navigation
US20110197165A1 (en) Methods and apparatus for organizing a collection of widgets on a mobile device display
US10628018B2 (en) Method and user interface (UI) for customized user access to application functionalities
KR20130064458A (en) Display apparatus for displaying screen divided by a plurallity of area and method thereof
US20150363062A1 (en) Storage System User Interface With Floating File Collection
AU2014308633B2 (en) Swipe toolbar to switch tabs
US20130227480A1 (en) Apparatus and method for selecting object in electronic device having touchscreen
US10620821B2 (en) Page sliding method and apparatus
CN105612511B (en) Identifying and structuring related data
US20150199058A1 (en) Information processing method and electronic device
CN111190520A (en) Menu item selection method and device, readable medium and electronic equipment
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
KR20160032938A (en) Apparatus AND method for DISPLAYING application
CN110865748A (en) Menu presenting method and device, electronic equipment and computer readable storage medium
CN111638828A (en) Interface display method and device
US20190012821A1 (en) Displaying images associated with apps based on app processing task progress statuses
CN111221456A (en) Interactive panel display method, device, equipment and storage medium thereof
KR20150039552A (en) Display manipulating method of electronic apparatus and electronic apparatus thereof
WO2018226989A1 (en) Displaying images associated with apps based on app processing task progress statuses
CN111796736B (en) Application sharing method and device and electronic equipment
US20150277676A1 (en) Creating an interaction area for listing user-selectable items

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination