WO2017041589A1 - 菜单显示方法及装置 - Google Patents

菜单显示方法及装置 Download PDF

Info

Publication number
WO2017041589A1
WO2017041589A1 PCT/CN2016/090736 CN2016090736W WO2017041589A1 WO 2017041589 A1 WO2017041589 A1 WO 2017041589A1 CN 2016090736 W CN2016090736 W CN 2016090736W WO 2017041589 A1 WO2017041589 A1 WO 2017041589A1
Authority
WO
WIPO (PCT)
Prior art keywords
menu
operated
image copy
display
preset
Prior art date
Application number
PCT/CN2016/090736
Other languages
English (en)
French (fr)
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 WO2017041589A1 publication Critical patent/WO2017041589A1/zh

Links

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 present invention relates to the field of program control technology, and more particularly to a menu display method and a menu display device. Background technique
  • the terminal system calls up the menu by starting the menu activity and loading the data and logic services required by the menu.
  • the startup menu activity takes at least 300 milliseconds, and if the data and logic services contained in the menu itself are complicated, the entire menu calling process will take longer, and the menu will be stuck when it is called out. Correspondingly, the display of the menu will be delayed. Summary of the invention
  • a menu display method includes the following steps:
  • the menu to be operated is switched and displayed at the display position of the image copy of the menu to be operated.
  • the image copy of the menu to be operated is immediately displayed to the user, and the image copy showing the menu to be operated does not contain any time-consuming data and logic processing, and the terminal system does not need to load the menu.
  • Activity so it is lightweight, thus avoiding the delay caused by loading the menu when the menu is displayed.
  • the display of the to-be-operated menu is switched in the display position of the image copy of the menu to be operated, and the gap-free display of the menu to be operated is realized.
  • a menu display device includes a form management module, a menu loading module, and a switch display module: the form management module is configured to display an image copy of the menu to be operated when the call menu operation is detected;
  • the menu loading module is configured to load the to-be-operated menu
  • the switching display module is configured to switch to display the to-be-operated menu at a display position of the image copy of the to-be-operated menu after the to-be-operated menu is loaded.
  • the form management module When the above menu display device is used to call up the menu, the form management module immediately displays the image copy of the menu to be operated to the user, and the image copy showing the menu to be operated does not contain any time-consuming data and logic processing, and does not require a terminal.
  • the system loads the menu activity, so it is lightweight, thus avoiding the delay caused by loading the menu when the menu is displayed.
  • the display menu of the image of the to-be-operated menu is switched to display the menu to be operated, and the quick display without gaps of the menu to be operated is realized.
  • FIG. 1 is a flow chart of a menu display method of the present invention
  • FIG. 2 is a flow chart of a menu display method according to an embodiment of the present invention.
  • FIG. 3 to FIG. 7 are schematic diagrams showing an operation interface of a user calling a menu according to an embodiment of the present invention.
  • Figure 8 is a schematic structural view of a menu display device of the present invention.
  • FIG. 9 is a schematic structural diagram of a menu display device according to an embodiment of the present invention. detailed description
  • the present invention provides a menu display method. As shown in FIG. 1, the method includes the following steps: S102: displaying a copy of an image of a menu to be operated when a call menu operation is detected;
  • the image copy of the menu to be operated is immediately displayed to the user, and the image copy showing the menu to be operated does not contain any time-consuming data and logic processing, and the terminal system does not need to load the menu.
  • Activity so it is lightweight, thus avoiding the delay caused by loading the menu when the menu is displayed.
  • the display of the to-be-operated menu is switched in the display position of the image copy of the menu to be operated, and the gap-free display of the menu to be operated is realized.
  • the menu display method may be a menu display method based on an Android system.
  • step S102 the element included in the image copy of the menu to be operated and the image size displayed in the terminal system window are consistent with the display result image of the menu to be operated, and the size of the image copy of the menu to be operated may be based on the terminal Type, different size and different menu types are set separately.
  • the image copy of the menu to be operated may be pre-stored in the data store of the terminal.
  • Pre-storing a copy of the image of the menu to be operated in the data storage of the terminal can be called at any time when the menu is called, and can be displayed in time.
  • the detection call The menu operation includes the following steps:
  • the effective area of the call menu may be an area preset in the terminal system window.
  • the valid area of the call menu is preset in the system window, which can be called at any time when the menu is called out, without re-acquiring, saving the time of the entire menu.
  • the detecting the call menu operation is to detect that the user right clicks the mouse to invoke the menu.
  • the call menu operation may also be other types of touch actions, which may be customized according to user usage habits or preset by the programmer.
  • Step S106 also includes the following steps:
  • the image copy of the menu to be operated is hidden, and the to-be-operated menu is switched and displayed at the display position of the image copy of the menu to be operated.
  • the first preset condition includes that the image copy of the menu to be operated reaches the first preset position or the image copy display duration of the menu to be operated reaches a first preset duration.
  • the first preset position is a position that completely coincides with the display position of the menu to be operated.
  • the first preset location includes preset location coordinates in a terminal system window, and the first preset duration is not less than a time used to load the menu to be operated.
  • the first preset condition is satisfied.
  • the first preset position or the first predetermined duration is set in the background program, which facilitates recording and real-time updating of the position of the copy of the menu image to be operated, and facilitates switching display of the image display image to be operated and the image copy of the menu to be operated.
  • step S105 is further included: determining whether a second preset condition for loading the menu to be operated is satisfied, and when the second preset condition is met, loading the to-be-operated menu.
  • the second preset condition may include that the image copy of the menu to be operated reaches the second preset position or the image copy display duration of the menu to be operated reaches the second preset duration.
  • Detecting the image copy of the menu to be operated will first reach the second preset position and then reach the first preset position.
  • the first preset time is longer than the second preset time length (eg, 1 second difference).
  • the menu to be operated is loaded only when the second preset condition is satisfied, instead of directly loading the menu to be operated, thereby effectively avoiding the terminal system calling up the menu. Time-consuming operation reduces the cost and improves the operating efficiency of the system.
  • the image copy of the menu to be operated is automatically moved to a second preset position, for example, 1/3 of the height of the entire terminal system window, and then the menu to be operated is triggered to be loaded at this time.
  • a condition that detecting that the image copy of the menu to be operated is automatically moved to a second preset position, for example, at a height of 2/3 of the height of the entire terminal system window, switching at a display position of the image copy of the menu to be operated The menu to be operated is displayed.
  • the condition for loading the menu to be operated is triggered at this time, and the image of the menu to be operated is detected.
  • the copy display duration reaches the first preset duration, the display of the to-be-operated menu is switched and displayed at the display position of the image copy of the menu to be operated.
  • the second preset duration is, for example, 1 second
  • the first preset duration is, for example, 2 seconds.
  • Whether the condition for loading the menu to be operated is satisfied is determined by setting the second preset position and the second preset duration, which is convenient for operation, and increases the reliability and stability of the entire device.
  • the menu to be operated is a global menu.
  • the implementation of the global menu depends on the window management service of an application process, through which the window manager of the process can be obtained, and the window manager can add any view layout as a menu view layout to implement the global menu.
  • the feature of this menu is that it can be seen no matter which APP the user is running.
  • the global menu depends on the entire application process and has no dependencies on an interface within the program, so when an application retreats to the background and does not display the interface, the global menu will not disappear.
  • the global menu uses the window management service to manage the view of each menu and the complex business data contained in the menu. Loading the global menu causes a long time delay, switching the image copy using a global menu without any time-consuming data and logic processing. Displaying the global menu can greatly shorten the time displayed by the global menu.
  • the global menu is a drag-and-drop interactive menu.
  • FIG. 3 A specific example of the menu display method of the present invention is given below.
  • the schematic diagram of the operation interface of the call menu based on the Android system of the present invention will be described with reference to FIG. 3, FIG. 4, FIG. 5, FIG. 6, and FIG.
  • 100 in FIG. 3 to FIG. 7 is a machine device equipped with an Android system
  • 102 is an effective area for calling up a menu
  • 104 is a second preset position for loading the menu to be operated
  • 106 is an image copy of a menu to be operated
  • 108 For the menu to be operated.
  • the first preset position is a position completely coincident with the menu to be operated, as shown in FIG. 6 where the image copy 106 of the menu to be operated arrives, and the image copy 106 of the menu to be operated is hidden at this time, as shown in FIG.
  • the positional exchange is quickly performed between the first preset position where the image copy 106 of the menu to be operated is located and the loaded to-be-operated menu.
  • the time when the to-be-operated menu is loaded is not less than the time when the image copy 106 of the menu to be operated reaches the height 104 preset for the menu to be operated, so as to ensure that the image copy 106 of the menu to be operated and the menu to be operated 108 have no gap transition. .
  • the method of the present invention can be implemented on terminals of different models and sizes.
  • a menu display device based on the above menu display method is provided.
  • FIG. 8 it is a schematic structural view of the menu display device in the present invention.
  • a menu display device includes a form management module 204, a menu loading module 206, and a switch display module 208:
  • the form management module 204 is configured to display an image copy of the menu to be operated when the call menu operation is detected;
  • the menu loading module 206 is configured to load the to-be-operated menu;
  • the switching display module 208 is configured to switch to display the to-be-operated menu in a display position of the image copy of the to-be-operated menu after the to-be-operated menu is loaded.
  • the form management module 204 displays the image copy of the menu to be operated to the user immediately, and the image copy of the menu to be operated does not contain any time-consuming data and logic processing, and does not need
  • the terminal system loads the menu activity, so it is lightweight, thus avoiding the delay problem caused by loading the menu when the menu is displayed.
  • the menu of the to-be-operated menu is switched and displayed in the display position of the image copy of the menu to be operated, and the quick display without gaps of the menu to be operated is realized.
  • the menu display device may be a menu display device based on an Android system.
  • the form management module 204 is further configured to: detect a position coordinate of the user contact;
  • the effective area of the call menu may be an area preset in the terminal system window.
  • the valid area of the call menu is preset in the system window, which can be called at any time when the menu is called out, without re-acquiring, saving the time of the entire menu.
  • the form management module 204 is further configured to detect whether there is a right mouse click to invoke the menu, and if so, determine that the call menu operation is detected.
  • the call menu operation detected by the form management module 204 may also be other types of touch actions, which may be customized according to user usage habits or preset by the programmer.
  • the image included in the image copy of the menu to be operated and the image size displayed in the terminal system window are consistent with the display result image of the menu to be operated, and the size of the image copy of the menu to be operated may be Set according to the terminal model, different sizes and different menu types.
  • An image copy of the menu to be operated in the form management module 204 may be pre-stored in the data store of the terminal.
  • Pre-storing the image copy of the menu to be operated in the data storage of the terminal can facilitate the form management module 204 to call at any time when the menu is called, and can display in time.
  • the image copy of the menu to be operated is displayed, it does not contain any time-consuming data and logic processing, and the terminal system is not required to load the menu activity, so the image can be displayed instead of the real menu.
  • the quick menu loading module 206 is further used for: The activity of the operation menu is described; the data and logic services included in the menu to be operated are loaded.
  • the switching display module 208 is further configured to: determine whether the image copy of the menu to be operated satisfies a first preset condition, and when the first preset condition is met, hide an image copy of the to-be-operated menu, The display position of the image copy of the menu to be operated is switched to display the menu to be operated.
  • the first preset condition includes that the image copy of the menu to be operated reaches the first preset position or the image copy display duration of the menu to be operated reaches a first preset duration.
  • the first preset position is a position that completely coincides with the display position of the menu to be operated.
  • the first preset location includes preset location coordinates in the terminal system window, and the first preset duration is not less than a time used by the menu loading module 206 to load the menu to be operated.
  • the first preset condition is satisfied. .
  • the first preset position or the first predetermined duration is set in the background program, which facilitates recording and real-time updating of the position of the copy of the menu image to be operated, and facilitates switching display of the image display image to be operated and the image copy of the menu to be operated.
  • the method further includes a determining module 205, configured to determine whether a second preset condition for loading the menu to be operated is satisfied, and when the second preset condition is met, loading the location Tell the operation menu.
  • the second preset condition may include that the image copy of the menu to be operated reaches the second preset position or the image copy display duration of the to-be-operated menu reaches a second preset duration.
  • the image copy of the menu to be operated will first reach the second preset position and then reach the first preset position.
  • the first preset duration is longer than the second preset duration (eg, 1 second apart).
  • the menu to be operated is loaded only when the second preset condition is satisfied, instead of directly loading the menu to be operated, thereby effectively avoiding the terminal system calling up the menu. Time-consuming operation reduces the cost and improves the operating efficiency of the system.
  • the determining module 205 detects that the image copy of the menu to be operated is automatically moved to a second preset position, for example, 1/3 of the height of the entire terminal system window, and then the menu loading module 206 Loading the to-be-operated menu, and the switching display module 208 detects that the image copy of the to-be-operated menu is automatically moved to a second preset position, for example, at a height of 2/3 of the entire terminal system window height, in the to-be-operated menu The display position of the image copy is switched to display the menu to be operated.
  • the menu loading module 206 loads the condition of the menu to be operated, and switches the display module. 208.
  • the display menu of the image copy of the to-be-operated menu is switched to display the to-be-operated menu.
  • the second preset duration is, for example, 1 second
  • the first preset duration is, for example, 2 seconds.
  • Whether the condition for loading the menu to be operated is satisfied is determined by setting the second preset position and the second preset duration, which is convenient for operation, and increases the reliability and stability of the entire device.
  • the to-be-operated menu is a global menu.
  • the implementation of the global menu depends on the window management service of an application process, through which the window manager of the process can be obtained, and the window manager can add any view layout as a menu view layout, thereby implementing a global menu, this menu
  • This menu can be seen no matter which app the user is running.
  • the global menu depends on the entire application process and has no dependencies on an interface within the program, so when an application retreats to the background and does not display the interface, the global menu will not disappear.
  • the global menu manages the view of each menu and the complexity of the menu through the window management service.
  • the business data, loading the global menu can cause a long time delay, and switching the display of the global menu using an image copy of the global menu without any time consuming data and logic processing can greatly shorten the time displayed by the global menu.
  • the global menu is a drag-and-drop interactive menu.
  • the drag-and-drop global interactive menu is convenient for the user to drag the global menu to perform corresponding displacement during the touch operation, so as to facilitate the dragging operation of the global menu.
  • the image copy of the menu to be operated is immediately displayed to the user instead of the real menu layout, and the delay problem that occurs when the menu is loaded is avoided, and the corresponding user can be visually instantly Operation, improved user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

本发明涉及一种菜单显示方法,包括以下步骤:当检测到唤出菜单操作时,显示待操作菜单的图像副本;加载所述待操作菜单;所述待操作菜单加载完毕后,在所述待操作菜单的图像副本的显示位置,切换显示所述待操作菜单。当用户唤出菜单时,待操作菜单的图像副本立即显示给用户,而显示待操作菜单的图像副本不含任何耗时的数据和逻辑处理,也不需要终端系统去加载菜单活动,所以它是轻量级的,因而,规避了菜单显示时因加载菜单而出现的延时问题。

Description

菜单显示方法及装置
技术领域
本发明涉及程序控制技术领域, 特别是一种涉及菜单显示方法, 以及一 种菜单显示装置。 背景技术
在现有的方案中, 终端系统是通过启动菜单活动并加载菜单所需要的数 据和逻辑业务来调出菜单的。其中,启动菜单活动至少需要 300毫秒的时间, 而如果菜单本身包含的数据和逻辑业务较为繁杂时, 则整个菜单调用过程会 需要更长的时间, 则菜单在调出时会出现卡顿现象, 相应的, 菜单的显示就 会延时。 发明内容
基于此, 有必要针对菜单调出时出现的延时问题, 提供一种能够快速反 应的菜单显示方法。
一种菜单显示方法, 包括以下步骤:
当检测到唤出菜单操作时, 显示待操作菜单的图像副本;
加载所述待操作菜单;
所述待操作菜单加载完毕后, 在所述待操作菜单的图像副本的显示位置, 切换显示所述待操作菜单。
在上述方案中, 当用户唤出菜单时, 待操作菜单的图像副本立即显示给 用户, 而显示待操作菜单的图像副本不含任何耗时的数据和逻辑处理, 也不 需要终端系统去加载菜单活动, 所以它是轻量级的, 因而, 规避了菜单显示 时因加载菜单而出现的延时问题。 所述待操作菜单加载完毕后, 在所述待操 作菜单的图像副本的显示位置, 切换显示所述待操作菜单, 实现待操作菜单 的无间隙的快速显示。
还有必要针对菜单调出时出现的延时问题, 提供一种能够快速反应的菜 单显示装置。
一种菜单显示装置,包括窗体管理模块、菜单加载模块和切换显示模块: 所述窗体管理模块, 用于在检测到唤出菜单操作时, 显示待操作菜单的 图像副本;
所述菜单加载模块, 用于加载所述待操作菜单;
所述切换显示模块, 用于在所述待操作菜单加载完毕后, 在所述待操作 菜单的图像副本的显示位置, 切换显示所述待操作菜单。
运用上述菜单显示装置来唤出菜单时, 窗体管理模块将待操作菜单的图 像副本立即显示给用户, 而显示待操作菜单的图像副本不含任何耗时的数据 和逻辑处理, 也不需要终端系统去加载菜单活动, 所以它是轻量级的, 因而, 规避了菜单显示时因加载菜单而出现的延时问题。 运用菜单加载模块将所述 待操作菜单加载完毕后, 在所述待操作菜单的图像副本的显示位置, 切换显 示所述待操作菜单, 实现待操作菜单的无间隙的快速显示。 附图说明
图 1为本发明菜单显示方法的流程图;
图 2为本发明一个实施例中菜单显示方法的流程图;
图 3至图 7为本发明实施例中用户调出菜单的操作界面示意图;
图 8为本发明菜单显示装置的结构示意图;
图 9为本发明一个实施例中菜单显示装置的结构示意图。 具体实施方式
为了使本发明的目的、 技术方案及优点更加的详细、 清楚, 下面结合附 图和实施例对本发明进行详细说明。
本发明提供一种菜单显示方法, 如图 1所示, 该方法包括以下步骤: S102 : 当检测到唤出菜单操作时, 显示待操作菜单的图像副本;
S104: 加载所述待操作菜单;
S106 : 所述待操作菜单加载完毕后, 在所述待操作菜单的图像副本的显 示位置, 切换显示所述待操作菜单。
在上述方案中, 当用户唤出菜单时, 待操作菜单的图像副本立即显示给 用户, 而显示待操作菜单的图像副本不含任何耗时的数据和逻辑处理, 也不 需要终端系统去加载菜单活动, 所以它是轻量级的, 因而, 规避了菜单显示 时因加载菜单而出现的延时问题。 所述待操作菜单加载完毕后, 在所述待操 作菜单的图像副本的显示位置, 切换显示所述待操作菜单, 实现待操作菜单 的无间隙的快速显示。
所述菜单显示方法可以是基于 Android系统的菜单显示方法。
在步骤 S102中, 待操作菜单的图像副本所包含的元素及在终端系统窗口 中显示的图像大小与待操作菜单的显示结果图像一致, 所述待操作菜单的图 像副本的大小,可以根据终端机型、不同的尺寸和不同的菜单类型分别设定。
所述待操作菜单的图像副本可预先储存在终端的数据储存器中。
在终端的数据储存器中预先储存待操作菜单的图像副本, 可以在唤出菜 单时随时调用, 能够及时的显示。
待操作菜单的图像副本显示时, 不包含任何耗时的数据和逻辑处理, 也 不需要终端系统去加载菜单活动, 因此可以替代真实的菜单显示图像快速显 在一个实施例中, 所述检测唤出菜单操作包括以下步骤:
检测用户触点的位置坐标;
判断所述用户触点的位置坐标是否位于唤出菜单的有效区域, 若位于唤 出菜单的有效区域内, 则判断为检测到唤出菜单操作。
所述唤出菜单的有效区域可以是在终端系统窗口中预先设定的区域。 在系统窗口中预先设定唤出菜单的有效区域, 可以在唤出菜单时随时调 用, 无需重新获取, 节省了整个调出菜单的时间。
在另一个实施例中, 所述检测到唤出菜单操作为检测到用户右击鼠标唤 出菜单。 所述唤出菜单操作还可以是其他类型的触摸动作, 可根据用户使用 习惯自定义或由程序设计者预先设定。
在步骤 S104中, 加载所述待操作菜单可包括以下步骤: 启动所述待操作菜单的活动;
加载所述待操作菜单所包含的数据及逻辑业务。
步骤 S106还包括以下步骤:
判断所述待操作菜单的图像副本是否满足第一预设条件;
若满足第一预设条件, 则将所述待操作菜单的图像副本隐藏, 在所述待 操作菜单的图像副本的显示位置, 切换显示所述待操作菜单。
在一个实施例中, 所述第一预设条件包括所述待操作菜单的图像副本到 达第一预设位置或者所述待操作菜单的图像副本显示时长达到第一预设时长。
所述第一预设位置是与待操作菜单的显示位置完全重合的位置。 在一个 实施例中, 所述第一预设位置包括终端系统窗口中的预设位置坐标, 所述第 一预设时长不小于加载所述待操作菜单所用的时间。
例如, 判断所述待操作菜单的图像副本到达指定的高度 (例如整个终端 系统窗口高度的中间位置) 或者所述待操作菜单的图像副本显示时长达到 2 秒, 则满足第一预设条件。
在一个优选的实施例中, 检测到所述待操作菜单的图像副本被拖动或者 控制所述待操作菜单的图像副本移至整个终端系统窗口高度的中间位置, 在 该位置切换显示所述待操作菜单。
在后台程序中设置所述第一预设位置或者第一预定时长, 便于记录和实 时更新待操作菜单图像副本的位置, 有利于待操作菜单显示图像与待操作菜 单的图像副本切换显示。
在一个实施例中, 如图 2所示, 还包括步骤 S105 : 判断是否满足加载所 述待操作菜单的第二预设条件, 当满足所述第二预设条件时, 则加载所述待 操作菜单。
所述第二预设条件可包括所述待操作菜单的图像副本到达第二预设位置 或者所述待操作菜单的图像副本显示时长达到第二预设时长。
检测到所述待操作菜单的图像副本会首先到达第二预设位置, 然后再到 达第一预设位置。
所述第一预设时长长于所述第二预设时长 (例如相差 1秒)。 当不慎触发了唤出待操作菜单操作时, 因为需要在满足第二预设条件时 才加载所述待操作菜单, 而不是直接加载所述待操作菜单, 从而有效避免了 终端系统调出菜单等耗时操作, 减小了成本损耗, 提高了系统的运行效率。
在一个优选的实施例中, 检测到所述待操作菜单的图像副本自动移动至 第二预设位置, 例如整个终端系统窗口高度的 1/3 高度处, 则此时触发加载 所述待操作菜单的条件, 检测到所述待操作菜单的图像副本自动移动至第二 预设位置, 例如整个终端系统窗口高度的 2/3 高度处时, 在所述待操作菜单 的图像副本的显示位置, 切换显示所述待操作菜单。
在一个优选的实施例中, 检测到所述待操作菜单的图像副本显示时长达 到第二预设时长时, 则此时触发加载所述待操作菜单的条件, 检测到所述待 操作菜单的图像副本显示时长达到第一预设时长时, 在所述待操作菜单的图 像副本的显示位置, 切换显示所述待操作菜单。 其中, 所述第二预设时长例 如为 1秒, 所述第一预设时长例如为 2秒。
通过设定第二预设位置和第二预设时长来判断是否满足加载所述待操作 菜单的条件, 便于操作, 且增加了整个装置的可靠性和稳定性。
在一个优选的实施例中, 所述待操作菜单为全局菜单。
全局菜单的实现依赖于一个应用程序进程的窗口管理服务, 通过该服务 可以获取进程的窗口管理者, 通过窗口管理者即可将任意视图布局作为菜单 视图布局进行添加, 从而实现全局菜单。 此菜单的特性在于, 无论用户在运 行哪个 APP, 都可以看到此菜单。全局菜单依赖于整个应用程序进程, 与程序 内的某个界面无依赖关系, 所以当某个应用程序退至后台不做界面显示的时 候, 全局菜单也依然不会消失。
全局菜单通过窗口管理服务去管理各个菜单的视图以及菜单包含的复杂 的业务数据, 加载全局菜单会造成较长的时间延迟, 使用不含任何耗时的数 据和逻辑处理的全局菜单的图像副本切换显示所述全局菜单, 可以大大缩短 所述全局菜单显示的时间。
优选地, 所述的全局菜单为拖拉式交互菜单。
使用拖拉式的全局交互菜单, 便于用户在触摸操作时, 拖动所述全局菜 单来进行相应的位移, 便于对全局菜单进行拖拉的操作。
下面给出本发明菜单显示方法的一个具体实例, 结合图 3、 图 4、 图 5、 图 6和图 7本发明基于 Android系统的调出菜单的操作界面示意图进行说明。
图 3至图 7中的 100为搭载 Android系统的机器设备, 102为唤出菜单的 有效区域, 104为加载所述待操作菜单的第二预设位置, 106为待操作菜单的 图像副本, 108为待操作菜单。
当检测到用户触碰如图 3所示的唤出菜单的有效区域 102时, 则会将待 操作菜单的图像副本 106显示给用户。
当检测到用户在唤出菜单的有效区域 102内如图 4所示移动待操作菜单 的图像副本 106时, 则更新待操作菜单的图像副本 106的位置。
检测到所述待操作菜单的图像副本 106被拖动至如图 5所示的加载所述 待操作菜单第二预设位置 104时, 则加载待操作菜单 108, 控制待操作菜单的 图像副本 106移动至第一预设位置。
所述第一预设位置是与待操作菜单完全重合的位置, 如图 6 中待操作菜 单的图像副本 106到达的位置, 此时将待操作菜单的图像副本 106隐藏, 如 图 7所示, 在待操作菜单的图像副本 106所在的第一预设位置与加载完毕的 待操作菜单迅速地进行位置的交换。
加载所述待操作菜单的时间不小于待操作菜单的图像副本 106达到加载 所述待操作菜单预设的高度 104时的时间, 才能保证待操作菜单的图像副本 106与待操作菜单 108无间隙过渡。
本发明的方法可以在不同机型、 不同尺寸的终端上实现。
根据菜单显示方法, 提供一种基于本以上菜单显示方法的菜单显示装置, 如图 8所示, 为本发明中菜单显示装置的结构示意图。
一种菜单显示装置, 包括窗体管理模块 204、菜单加载模块 206和切换显 示模块 208:
所述窗体管理模块 204, 用于在检测到唤出菜单操作时, 显示待操作菜单 的图像副本;
所述菜单加载模块 206, 用于加载所述待操作菜单; 所述切换显示模块 208, 用于在所述待操作菜单加载完毕后, 在所述待操 作菜单的图像副本的显示位置, 切换显示所述待操作菜单。
运用上述菜单显示装置来唤出菜单时, 窗体管理模块 204将待操作菜单 的图像副本立即显示给用户, 而显示待操作菜单的图像副本不含任何耗时的 数据和逻辑处理, 也不需要终端系统去加载菜单活动, 所以它是轻量级的, 因而, 规避了菜单显示时因加载菜单而出现的延时问题。 运用菜单加载模块
206将所述待操作菜单加载完毕后,在所述待操作菜单的图像副本的显示位置, 切换显示所述待操作菜单, 实现待操作菜单的无间隙的快速显示。
所述菜单显示装置可以是基于 Android系统的菜单显示装置。
在一个实施例中, 窗体管理模块 204进一步用于: 检测用户触点的位置 坐标;
判断所述用户触点的位置坐标是否位于唤出菜单的有效区域, 若位于唤 出菜单的有效区域内, 则判断为检测到唤出菜单操作。
所述唤出菜单的有效区域可以是在终端系统窗口中预先设定的区域。
在系统窗口中预先设定唤出菜单的有效区域, 可以在唤出菜单时随时调 用, 无需重新获取, 节省了整个调出菜单的时间。
在另一个实施例中, 窗体管理模块 204还用于检测是否有右击鼠标调取 唤出菜单的行为, 若有, 则判断为检测到唤出菜单操作。
窗体管理模块 204检测到的唤出菜单操作还可以是其他类型的触摸动作, 可根据用户使用习惯自定义或由程序设计者预先设定。
在窗体管理模块 204 中, 待操作菜单的图像副本所包含的元素及在终端 系统窗口中显示的图像大小与待操作菜单的显示结果图像一致, 所述待操作 菜单的图像副本的大小, 可以根据终端机型、 不同的尺寸和不同的菜单类型 分别设定。
窗体管理模块 204 中的所述待操作菜单的图像副本可预先储存在终端的 数据储存器中。
在终端的数据储存器中预先储存待操作菜单的图像副本, 可以在唤出菜 单时便于窗体管理模块 204随时调用, 则能够及时的显示。 待操作菜单的图像副本显示时, 不包含任何耗时的数据和逻辑处理, 也 不需要终端系统去加载菜单活动, 因此可以替代真实的菜单显示图像快速显 菜单加载模块 206进一步用于: 启动所述待操作菜单的活动; 加载所述 待操作菜单所包含的数据及逻辑业务。
切换显示模块 208进一步用于: 判断所述待操作菜单的图像副本是否满 足第一预设条件, 当满足所述第一预设条件时, 将所述待操作菜单的图像副 本隐藏, 在所述待操作菜单的图像副本的显示位置, 切换显示所述待操作菜 单。
在一个实施例中, 所述第一预设条件包括所述待操作菜单的图像副本到 达第一预设位置或者所述待操作菜单的图像副本显示时长达到第一预设时长。
所述第一预设位置是与待操作菜单的显示位置完全重合的位置。 在一个 实施例中, 所述第一预设位置包括终端系统窗口中的预设位置坐标, 所述第 一预设时长不小于菜单加载模块 206加载所述待操作菜单所用的时间。
例如, 判断所述待操作菜单的图像副本到达指定的高度 (例如整个终端 系统窗口高度的 1/2 位置) 或者所述待操作菜单的图像副本显示时长达到 2 秒, 则满足第一预设条件。
在一个优选的实施例中, 检测所述待操作菜单的图像副本被拖动或者控 制所述待操作菜单的图像副本移至整个终端系统窗口高度的 1/2位置, 在该 位置切换显示所述待操作菜单。
在后台程序中设置所述第一预设位置或者第一预定时长, 便于记录和实 时更新待操作菜单图像副本的位置, 有利于待操作菜单显示图像与待操作菜 单的图像副本切换显示。
在一个实施例中, 如图 9所示, 还包括判断模块 205, 用于判断是否满足 加载所述待操作菜单的第二预设条件, 当满足所述第二预设条件时, 则加载 所述待操作菜单。
所述第二预设条件可包括所述待操作菜单的图像副本到达第二预设位置 或者所述待操作菜单的图像副本显示时长达到第二预设时长。 所述待操作菜单的图像副本会首先到达第二预设位置, 然后再到达第一 预设位置。
所述第一预设时长要长于所述第二预设时长 (例如相差 1秒)。
当不慎触发了唤出待操作菜单操作时, 因为需要在满足第二预设条件时 才加载所述待操作菜单, 而不是直接加载所述待操作菜单, 从而有效避免了 终端系统调出菜单等耗时操作, 减小了成本损耗, 提高了系统的运行效率。
在一个优选的实施例中, 判断模块 205检测到所述待操作菜单的图像副 本自动移动至第二预设位置, 例如整个终端系统窗口高度的 1/3 高度处, 则 此时菜单加载模块 206加载所述待操作菜单, 切换显示模块 208检测到所述 待操作菜单的图像副本自动移动至第二预设位置, 例如整个终端系统窗口高 度的 2/3 高度处时, 在所述待操作菜单的图像副本的显示位置, 切换显示所 述待操作菜单。
在一个优选的实施例中, 判断模块 205检测到所述待操作菜单的图像副 本显示时长达到第二预设时长时, 则此时菜单加载模块 206加载所述待操作 菜单的条件, 切换显示模块 208检测到所述待操作菜单的图像副本显示时长 达到第一预设时长时, 在所述待操作菜单的图像副本的显示位置, 切换显示 所述待操作菜单。 其中, 所述第二预设时长例如为 1 秒, 所述第一预设时长 例如为 2秒。
通过设定第二预设位置和第二预设时长来判断是否满足加载所述待操作 菜单的条件, 便于操作, 且增加了整个装置的可靠性和稳定性。
在一个实施例中, 所述的待操作菜单为全局菜单。
全局菜单的实现依赖于一个应用程序进程的窗口管理服务, 通过该服务 可以获取进程的窗口管理者, 通过窗口管理者即可将任意视图布局作为菜单 视图布局进行添加, 从而实现全局菜单, 此菜单的特性在于, 无论用户在运 行哪个 APP, 都可以看到此菜单。全局菜单依赖于整个应用程序进程, 与程序 内的某个界面无依赖关系, 所以当某个应用程序退至后台不做界面显示的时 候, 全局菜单也依然不会消失。
全局菜单通过窗口管理服务去管理各个菜单的视图以及菜单包含的复杂 的业务数据, 加载全局菜单会造成较长的时间延迟, 使用不含任何耗时的数 据和逻辑处理的全局菜单的图像副本切换显示所述全局菜单, 可以大大缩短 所述全局菜单显示的时间。
优选地, 所述的全局菜单为拖拉式交互菜单。
使用拖拉式的全局交互菜单, 便于用户在触摸操作时, 拖动所述全局菜 单来进行相应的位移, 便于对全局菜单进行拖拉的操作。
在本发明的技术方案中, 当用户在调用菜单时, 待操作菜单的图像副本 会替代真实的菜单布局立即显示给用户, 规避了菜单加载而出现的延时问题, 可以在视觉上即刻相应用户操作, 改善了用户体验。
以上所述实施例的各技术特征可以进行任意的组合, 为使描述简洁, 未 对上述实施例中的各个技术特征所有可能的组合都进行描述, 然而, 只要这 些技术特征的组合不存在矛盾, 都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式, 其描述较为具体和详 细, 但并不能因此而理解为对发明专利范围的限制。 应当指出的是, 对于本 领域的普通技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干 变形和改进, 这些都属于本发明的保护范围。 因此, 本发明专利的保护范围 应以所附权利要求为准。

Claims

权利要求书
1、 一种菜单显示方法, 其特征在于, 包括以下步骤:
当检测到唤出菜单操作时, 显示待操作菜单的图像副本;
加载所述待操作菜单;
所述待操作菜单加载完毕后, 在所述待操作菜单的图像副本的显示位置, 切换显示所述待操作菜单。
2、 根据权利要求 1所述的菜单显示方法, 其特征在于, 在所述待操作菜 单的图像副本的显示位置, 切换显示所述待操作菜单包括以下步骤:
检测到所述待操作菜单的图像副本满足第一预设条件;
将所述待操作菜单的图像副本隐藏, 在所述待操作菜单的图像副本的显 示位置, 切换显示所述待操作菜单。
3、 根据权利要求 2所述的菜单显示方法, 其特征在于, 所述第一预设条 件包括所述待操作菜单的图像副本到达第一预设位置或者所述待操作菜单的 图像副本显示时长达到第一预设时长。
4、 根据权利要求 1所述的菜单显示方法, 其特征在于, 在加载所述待操 作菜单步骤之前还包括判断是否满足加载所述待操作菜单的第二预设条件, 当满足所述第二预设条件时, 则加载所述待操作菜单, 所述第二预设条件包 括所述待操作菜单的图像副本到达第二预设位置或者所述待操作菜单的图像 副本显示时长达到第二预设时长。
5、 根据权利要求 1至 4任意一个所述的菜单显示方法, 其特征在于, 所 述待操作菜单为全局菜单。
6、 一种菜单显示装置, 其特征在于, 包括窗体管理模块、 菜单加载模块 和切换显示模块:
所述窗体管理模块, 用于在检测到唤出菜单操作时, 显示待操作菜单的 图像副本;
所述菜单加载模块, 用于加载所述待操作菜单;
所述切换显示模块, 用于在所述待操作菜单加载完毕后, 在所述待操作 菜单的图像副本的显示位置, 切换显示所述待操作菜单。
7、 根据权利要求 6所述的菜单显示装置, 其特征在于, 所述切换显示模 块进一步用于判断所述待操作菜单的图像副本是否满足第一预设条件, 当满 足所述第一预设条件时, 将所述待操作菜单的图像副本隐藏, 在所述待操作 菜单的图像副本的显示位置, 切换显示所述待操作菜单。
8、 根据权利要求 7所述的菜单显示装置, 其特征在于, 所述第一预设条 件包括所述待操作菜单的图像副本到达第一预设位置或者所述待操作菜单的 图像副本显示时长达到第一预设时长。
9、根据权利要求 6所述的菜单显示装置,其特征在于,还包括判断模块, 所述判断模块用于判断是否满足加载所述待操作菜单的第二预设条件, 当满 足所述第二预设条件时, 则加载所述待操作菜单, 所述第二预设条件包括所 述待操作菜单的图像副本到达第二预设位置或者所述待操作菜单的图像副本 显示时长达到第二预设时长。
10、 根据权利要求 6至 9任意一个所述的菜单显示装置, 其特征在于, 所述待操作菜单为全局菜单。
PCT/CN2016/090736 2015-09-09 2016-07-20 菜单显示方法及装置 WO2017041589A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510571789.0 2015-09-09
CN201510571789.0A CN105242836B (zh) 2015-09-09 2015-09-09 菜单显示方法及装置

Publications (1)

Publication Number Publication Date
WO2017041589A1 true WO2017041589A1 (zh) 2017-03-16

Family

ID=55040503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090736 WO2017041589A1 (zh) 2015-09-09 2016-07-20 菜单显示方法及装置

Country Status (2)

Country Link
CN (1) CN105242836B (zh)
WO (1) WO2017041589A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242836B (zh) * 2015-09-09 2019-03-01 广州视睿电子科技有限公司 菜单显示方法及装置
CN107656668B (zh) * 2016-07-27 2020-03-17 平安科技(深圳)有限公司 侧滑菜单加载方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176689A (zh) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 界面切换方法及系统
CN104077056A (zh) * 2014-06-27 2014-10-01 广州视睿电子科技有限公司 屏幕显示页面的平移方法和系统
CN104199597A (zh) * 2014-08-13 2014-12-10 百度在线网络技术(北京)有限公司 新标签页打开方法及装置
CN105242836A (zh) * 2015-09-09 2016-01-13 广州视睿电子科技有限公司 菜单显示方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8826153B2 (en) * 2011-10-04 2014-09-02 Google Inc. Speculative actions based on user dwell time over selectable content
CN103412706A (zh) * 2013-07-26 2013-11-27 惠州市德赛西威汽车电子有限公司 一种菜单切换方法
CN103761036B (zh) * 2014-02-14 2017-05-17 北京猎豹移动科技有限公司 一种用于启动应用的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176689A (zh) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 界面切换方法及系统
CN104077056A (zh) * 2014-06-27 2014-10-01 广州视睿电子科技有限公司 屏幕显示页面的平移方法和系统
CN104199597A (zh) * 2014-08-13 2014-12-10 百度在线网络技术(北京)有限公司 新标签页打开方法及装置
CN105242836A (zh) * 2015-09-09 2016-01-13 广州视睿电子科技有限公司 菜单显示方法及装置

Also Published As

Publication number Publication date
CN105242836A (zh) 2016-01-13
CN105242836B (zh) 2019-03-01

Similar Documents

Publication Publication Date Title
US20230229293A1 (en) Method, apparatus, and terminal for processing notification information
US9400590B2 (en) Method and electronic device for displaying a virtual button
AU2013389985B2 (en) User interface elements for multiple displays
US20090115736A1 (en) System having user interface using motion based object selection and mouse movement
CN106970735B (zh) 一种信息处理方法及电子设备
CN104898952A (zh) 一种终端分屏实现方法及终端
AU2019440748B2 (en) Method, device and apparatus for controlling touch operation mode, and storage medium
CN105630497A (zh) 应用程序的切换方法及切换装置
CN105573637A (zh) 一种触屏设备的操作方法、装置
CN105955573A (zh) 一种移动终端应用程序切换方法和系统
WO2017101333A1 (zh) 列表项操作的处理方法和装置
US20150227269A1 (en) Fast response graphical user interface
WO2016173307A1 (zh) 一种消息复制方法和装置、以及智能终端
KR20160020486A (ko) 터치패드 조작 및 더블 탭 주밍을 위한 독립적 히트 테스팅
WO2017041589A1 (zh) 菜单显示方法及装置
CN105786341B (zh) 控制移动终端应用程序的方法和装置
WO2015096076A1 (zh) 暂态界面的显示处理方法和终端
CN105824493A (zh) 一种移动终端的控制方法及移动终端
WO2018103410A1 (zh) 终端的触摸操作控制方法、终端和计算机可读存储介质
CN105843471A (zh) 信息处理方法及电子设备
CN107168600B (zh) 推送消息的查看方法及装置
CN105404439B (zh) 文件夹创建方法及装置
WO2016101613A1 (zh) 一种基于可交互式屏幕的信息指令输入方法及其装置
WO2021068112A1 (zh) 触摸事件的处理方法、装置、移动终端及存储介质
CN107015874B (zh) 数据传输控制方法、装置及终端

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: 16843527

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: 16843527

Country of ref document: EP

Kind code of ref document: A1