CN113434068A - Control method and device for suspension shortcut menu, electronic equipment and storage medium - Google Patents

Control method and device for suspension shortcut menu, electronic equipment and storage medium Download PDF

Info

Publication number
CN113434068A
CN113434068A CN202110595330.XA CN202110595330A CN113434068A CN 113434068 A CN113434068 A CN 113434068A CN 202110595330 A CN202110595330 A CN 202110595330A CN 113434068 A CN113434068 A CN 113434068A
Authority
CN
China
Prior art keywords
shortcut menu
preset
suspension
event
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110595330.XA
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 Xinhe Times Technology Co ltd
Original Assignee
Beijing Xinhe Times 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 Xinhe Times Technology Co ltd filed Critical Beijing Xinhe Times Technology Co ltd
Priority to CN202110595330.XA priority Critical patent/CN113434068A/en
Publication of CN113434068A publication Critical patent/CN113434068A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

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)

Abstract

The utility model discloses a control method, a device, an electronic device and a storage medium of a suspension shortcut menu, wherein the control method of the suspension shortcut menu comprises the steps of monitoring whether a first preset event is received under the condition that the suspension shortcut menu is hidden, wherein the first preset event is a control event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu; when a first preset event is received, determining the operation position of the first preset event; determining the display position of the suspension shortcut menu according to the operation position; and displaying the suspension shortcut menu according to the display position. The method enables the display control of the suspended shortcut menu by the user to be no longer limited to the operation control aiming at the preset control, and the display of the shortcut menu can be realized, thereby facilitating the operation and use of the user and improving the interactivity of the large-screen display equipment with the large-size display screen.

Description

Control method and device for suspension shortcut menu, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of display equipment, in particular to a control method and device of a suspension shortcut menu, electronic equipment and a storage medium.
Background
At present, many handheld devices (such as mobile phones and tablets) have a suspended shortcut menu, and a user can control the handheld devices by operating and controlling the shortcut menu and can display the shortcut menu by clicking the shortcut menu;
with the continuous development of screen manufacturing technology, the size of a screen can be increased, a plurality of large-screen devices appear, but the human arm spread is limited, the operable range is limited, and the large-screen devices are inconvenient for users to use if the users continue to use the click operation aiming at the shortcut menu to display the shortcut menu.
Disclosure of Invention
The embodiment of the disclosure aims to provide a control method and device for a suspended shortcut menu, an electronic device and a storage medium, so as to at least solve the problem that the suspended shortcut menu of the existing large-screen device is inconvenient to use.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for controlling a floating shortcut menu is provided, where the method may include:
monitoring whether a first preset event is received or not under the condition that the suspension shortcut menu is hidden, wherein the first preset event is an operation event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu;
when a first preset event is received, determining the operation position of the first preset event;
determining the display position of the suspension shortcut menu according to the operation position;
and displaying the suspension shortcut menu according to the display position.
Further, the first preset event comprises a multi-finger pressing operation; monitoring whether a first preset event is received may specifically include:
monitoring whether a multi-finger touch event is received;
when a multi-finger touch event is received, recording a first sliding distance of each finger and a first touch duration of simultaneous touch of the multiple fingers; the first sliding distance is the distance between a first starting coordinate point where touch occurs and a first ending coordinate point where touch ends;
determining whether the first sliding distances of all the fingers are greater than a first preset distance;
if yes, determining that the multi-finger pressing operation is received;
otherwise, determining whether the first touch duration exceeds a first preset duration;
and if the first touch duration exceeds a first preset duration, determining that the multi-finger pressing operation is received.
Further, when the first preset event is received, determining the operation position of the first preset event may include:
and calculating the average value of the first termination coordinate points of all the fingers to obtain the operation position.
Further, the first preset event comprises a sliding operation of a single finger from the edge of the display area to the middle of the display area; monitoring whether a first preset event is received may specifically include:
monitoring whether a single-finger touch event is received;
when a single-finger touch event is received, recording a second starting coordinate point where the finger starts to touch and a second ending coordinate point where the finger ends to touch;
and if the second starting coordinate point and the second ending coordinate point are respectively positioned at the edge and the middle of the display area, determining that the sliding operation from the edge to the middle of the display area is received.
Further, the first preset event comprises a closing operation for the first application, and the first application is an application which needs to hide the floating shortcut menu when being opened; when the first preset event is received, determining the operation position of the first preset event may include:
determining a first center coordinate of a target control corresponding to a first application;
the first center coordinate is determined as the operation position.
Further, the first preset event comprises a starting operation for a second application, and the second application is an application needing to display the floating shortcut menu; when the first preset event is received, determining the operation position of the first preset event may include:
calculating an operable area after the second application is started;
determining a second center coordinate of the operable area;
the second center coordinate is determined as the operation position.
Further, determining the display position of the floating shortcut menu according to the operation position may include:
taking the operation position as the central position of the suspension shortcut menu to obtain the display center of the suspension shortcut menu;
and determining the display position of the floating shortcut menu according to the display center.
According to a second aspect of the embodiments of the present disclosure, there is provided a control apparatus for a floating shortcut menu, the apparatus may include:
the system comprises a first preset event monitoring module, a first control module and a second preset event monitoring module, wherein the first preset event monitoring module is used for monitoring whether a first preset event is received or not under the condition that a suspension shortcut menu is hidden, the first preset event is a control event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu;
the operation position determining module is used for determining the operation position of a first preset event when the first preset event is received;
the display position determining module is used for determining the display position of the suspension shortcut menu according to the operation position;
and the suspension shortcut menu display module is used for displaying the suspension shortcut menu according to the display position.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus, which may include:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute instructions to implement a method of controlling a floating shortcut menu as shown in any one of the embodiments of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, in which instructions are executed by a processor of an information processing apparatus or a server to cause the information processing apparatus or the server to implement a control method of floating a shortcut menu as shown in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method and the device for displaying the suspension shortcut menu comprises the steps that whether a first preset event is received or not is monitored under the condition that the suspension shortcut menu is hidden, the first preset event is a control event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu; when a first preset event is received, determining the operation position of the first preset event; determining the display position of the suspension shortcut menu according to the operation position; and displaying the suspension shortcut menu according to the display position. Therefore, the method can realize the display of the shortcut menu by monitoring the first preset event and performing display control on the floating shortcut menu according to the monitoring result, wherein the first preset event is not limited to the operation event aiming at the preset control, so that the display control on the floating shortcut menu by a user is not limited to the operation control aiming at the preset control any more, the display position of the floating shortcut menu is determined according to the operation position, the operation and the use of the user are facilitated, and the interactivity of the large-screen display equipment with the large-size display screen is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method for controlling a hover shortcut menu in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram of a control device for a hover shortcut menu in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram of an electronic device shown in accordance with an exemplary embodiment;
fig. 4 is a schematic diagram illustrating a hardware structure of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The conventional mainstream suspended shortcut menu has a relatively comprehensive hidden function implementation scheme, but the display scheme is the operation aiming at a switch control, so that the convenience of the suspended shortcut menu is reduced by single operation, and the inconvenience in use of a user can also be caused. The present disclosure provides a control method and apparatus for a floating shortcut menu, an electronic device, and a storage medium, so as to improve interactivity of a large-screen display device with a large-size display screen, which is convenient for a user to use, wherein the screen size of the large-screen display device is greater than or equal to 55 inches.
As shown in fig. 1, according to a first aspect of an embodiment of the present disclosure, a method for controlling a floating shortcut menu is provided, which may include:
step 110: monitoring whether a first preset event is received or not under the condition that the suspension shortcut menu is hidden, wherein the first preset event is an operation event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu;
step 120: when a first preset event is received, determining the operation position of the first preset event;
step 130: determining the display position of the suspension shortcut menu according to the operation position;
step 140: and displaying the suspension shortcut menu according to the display position.
According to the method, the first preset event is monitored, the display control is carried out on the floating shortcut menu according to the monitoring result, and the first preset event is not limited to the operation event aiming at the preset control, so that the display control of the floating shortcut menu by a user can be realized by the method without being limited to the operation control aiming at the preset control, the display position of the floating shortcut menu is determined according to the operation position, the operation and the use of the user are facilitated, and the interactivity of the large-screen display equipment of the large-size display screen is improved.
Specific implementations of the above steps will be described in detail below.
Introducing step 110 and step 120, monitoring whether a first preset event is received under the condition that the floating shortcut menu is hidden, and determining the operation position of the first preset event when the first preset event is received.
The first preset event in this step is an operation event which is associated with the floating shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the floating shortcut menu to be opened. In the step, the opening control of the suspension shortcut menu is suspended on the user interface, and for a large-screen display device, the screen size is larger, but the human arm spread is limited, and the operable range is limited. If the user is required to operate and control the opening control of the floating shortcut menu continuously, the use of the user is very inconvenient. Therefore, the embodiment further performs opening control on the floating shortcut menu by monitoring the first preset event. Because the first preset event is the control event which is not needed for the preset control, the user can control the arm in the arm extension range, and the problem of inconvenient operation caused by the fact that the user can only control the preset control in the prior art is solved.
As an alternative example, the first preset event may include: multi-finger pressing operation; monitoring whether a first preset event is received, specifically including:
monitoring whether a multi-finger touch event is received;
when a multi-finger touch event is received, recording a first sliding distance of each finger and a first touch duration of simultaneous touch of the multiple fingers; the first sliding distance is the distance between a first starting coordinate point where touch occurs and a first ending coordinate point where touch ends;
determining whether the first sliding distances of all the fingers are greater than a first preset distance;
if yes, determining that the multi-finger pressing operation is received; otherwise, determining whether the first touch duration exceeds a first preset duration; and if the first touch duration exceeds a first preset duration, determining that the multi-finger pressing operation is received.
The first preset distance and the first preset duration in this embodiment may be set according to actual needs, as long as it can be determined that the operation is a multi-finger pressing operation.
The specific judgment process of the multi-finger pressing operation can be as follows: taking an android system as an example, the method includes monitoring a touch event, receiving and processing a first touch message when touch occurs and a second touch message when touch is finished. The first touch message when the touch occurs comprises a first starting coordinate point and a first touch initial time of each finger when the touch occurs. The second touch message at the time of ending the touch includes a first end coordinate point and a first touch end time of each finger at the time of ending the touch. It should be understood that the occurrence of a touch and the ending of a touch in embodiments of the present invention are a complete touch process. That is, between the touch initial time when the touch occurs and the touch termination time when the touch is terminated, each finger does not leave the touch screen. In the multi-finger touch event, when the touch occurs, all fingers touch the screen at the same time, and when the touch is finished, all fingers leave the touch screen at the same time.
And after the touch is finished, calculating the distance between the first starting coordinate point of each finger and the first ending coordinate point of the corresponding finger when the touch is finished. For convenience of description, the distance is described as the first sliding distance of the corresponding finger. When the first sliding distance of each finger in the multi-finger exceeds the first preset distance, it can be determined that the multi-finger touch event is a multi-finger pressing event, and then a hover shortcut menu is displayed. And if the sliding distance value of each finger in the multiple fingers is within a first preset distance range, calculating a first touch duration between the first touch termination time and the first touch initiation time. And if the first touch duration is longer than a first preset duration, judging that the multi-finger touch event is a multi-finger pressing event, and then displaying a floating shortcut menu. For example, the first preset time period may be 1s, 1.5s, 2s, 2.5s, 3s, etc., as long as it can be determined that the touch event is a multi-finger touch operation.
In this embodiment, when the first preset event is a multi-finger pressing operation, the determining the operation position of the first preset event in step 120 may specifically include:
and calculating the average value of the first termination coordinate points of all the fingers to obtain the operation position.
In this step, the average value of the first end coordinate points of all the fingers is the center position of the first end coordinate points of all the fingers, and the center position is determined as the operation position. For example, when the multi-finger pressing operation is a two-finger pressing operation, the middle point of the two-finger touch at the time of the end touch may be used as the operation position.
As an alternative example, the first preset event may include: the single finger is operated to slide from the edge of the display area to the middle of the display area. In this embodiment, the monitoring in step 110 of whether the first preset event is received specifically includes:
monitoring whether a single-finger touch event is received;
when a single-finger touch event is received, recording a second starting coordinate point where the finger starts to touch and a second ending coordinate point where the finger ends to touch;
and if the second starting coordinate point and the second ending coordinate point are respectively positioned at the edge and the middle of the display area, determining that the sliding operation from the edge to the middle of the display area is received.
In this embodiment, it is determined that the sliding operation is determined from the edge of the display area to the middle of the display area according to the positions of the second start coordinate point and the second end coordinate point, and if the second start coordinate point is located at the edge of the display area and the second end coordinate point is located at the middle of the display area, it is determined that the sliding operation from the edge of the display area to the middle of the display area is received.
The specific judgment process of the single-finger touch event may be as follows: taking an android system as an example, the method includes monitoring a touch event, receiving and processing a third touch message when the touch occurs and a fourth touch message for finishing the touch. And sending a third touch message when the touch is generated, wherein the third touch message when the touch is generated comprises a second starting coordinate point of the single finger when the touch is generated and a second touch initial moment. The fourth touch message at the end of the touch includes a second end coordinate point of the single finger at the end of the touch and a second touch end time. It should be understood that the occurrence of a touch and the ending of a touch in embodiments of the present invention are a complete touch process. That is, between the second touch initial time when the touch occurs and the second touch termination time when the touch is ended, no single finger leaves the touch screen. In the single-finger sliding operation event, when the screen is touched by a single finger, the screen is touched by the single finger, and when the touch is finished, the screen is separated by the single finger.
In the touch process, if the second starting coordinate point and the second ending coordinate point of the single finger are respectively located at the edge of the display area and the middle of the display area, it can be determined that the single-finger touch event is a single-finger sliding event, and then the floating shortcut menu is displayed. The edge of the display area and the part in the display area are respectively preset coordinate areas. Taking the edge of the display area as an example, the edge of the display area may include preset areas around four sides of the display device, and assuming that each preset area is a strip, each vertex coordinate of the strip-shaped preset area uniquely determines one preset area. Taking the preset area on the top of the display device as an example, the coordinates of each vertex are (x)1,y1)、(x2,y1)、(x1,y2)、(x2,y2). Let x be2>x1,y2>y1When the abscissa of the second start coordinate point is located at x1And x2And the ordinate of the second starting coordinate point is located at y1And y2And determining that the second starting coordinate point is located at the edge of the display area. Similarly, when the display area is presetWhen the edge is multiple, the second initial coordinate point can be considered to be located at the edge of the display area when the second initial coordinate point is located at the edge of any one display area. The method for determining whether the second ending coordinate point is located at the middle of the display area is the same as the method for determining whether the second starting coordinate point is located at the edge of the display area, please refer to the above description, which is not repeated herein.
When the single-finger touch event is received, in step 120, determining the operation position of the first preset event may include:
and determining a second termination coordinate point of the single-finger touch screen, and taking the second termination coordinate point as the operation position.
In the embodiment, no matter the multi-finger pressing operation or the single-finger sliding operation is simple, the operation is easy to use, and the operations are not limited to the operation events aiming at the preset control, so that the method enables the display control of the floating shortcut menu by the user to be not limited to the operation control aiming at the preset control any more, the display of the shortcut menu can be realized, the operation and the use of the user are facilitated, and the interactivity of the large-screen display equipment with the large-size display screen is improved.
As an alternative example, the first preset event may include: aiming at the closing operation of a first application, the first application is an application which needs to hide a floating shortcut menu when the first application is opened; when a first preset event is received, determining the operation position of the first preset event, wherein the step comprises the following steps:
determining a first center coordinate of a target control corresponding to a first application;
the first center coordinate is determined as the operation position.
Illustratively, the android system is taken as an example, the closing of the first application is sensed, and a floating shortcut menu is displayed. The first application is an application which needs to hide the suspension shortcut menu when being opened, and the suspension shortcut menu is not displayed when the first application is opened. The core principle of the first application closing and displaying the floating shortcut menu is to register a self-defined barrier-free service which can monitor the interface switching of the system. And acquiring application package name information corresponding to the current interface (the application package name has uniqueness, and no application with the same package name is installed on the equipment). And if the application corresponding to the matched current interface does not set the suspension shortcut menu not to be displayed, displaying the suspension shortcut menu.
On the other hand, it is considered that this approach is to detect application switching-related user privacy data during user usage. Therefore, the method can be not started by default, and the function can be normally used only after the user knows the content of the function and authorizes the function when starting the system. Specifically, first, a specific attribute of a self-defined barrier-free service is configured; then, inherit the originally provided barrier-free service (accessitivyservice), and rewrite the corresponding method. When the first application is monitored to be closed, detecting whether the packet name of the first application is the application for hiding the floating shortcut menu, and if so, displaying the floating shortcut menu; next, registering the self-defined barrier-free service in an android application configuration list; and finally, when the user starts the function, jumping to an accessible service authorization page. After authorization, the function can be normally started.
As an alternative example, the first preset event may include: aiming at the starting operation of a second application, the second application is the application needing to display the floating shortcut menu; when a first preset event is received, determining the operation position of the first preset event, wherein the step comprises the following steps:
calculating an operable area after the second application is started;
determining a second center coordinate of the operable area;
the second center coordinate is determined as the operation position.
For example, still taking the android system as an example, the second application is sensed, the second application is an application that needs to display the floating shortcut menu, and after the second application is started, a core principle of displaying the floating shortcut menu is similar to a setting mode of the first application, and details are not repeated here.
In the embodiment, the closed application and the opened application are judged, and when the closed application is the application needing to hide the floating shortcut menu when the closed application is opened, the hidden floating shortcut menu can be displayed; when the started application is the application which does not need to hide the suspension shortcut menu, the hidden suspension shortcut menu can be displayed, and the display position of the suspension shortcut menu is optimized by the embodiment, so that the use of a user is facilitated.
Referring next to step 130, the display position of the floating shortcut menu is determined according to the operation position; and step 140: and displaying the suspension shortcut menu according to the display position.
The steps are that under the condition that a first preset event is received, namely the display condition of the suspension shortcut menu is met, the fact that a user needs to suspend the shortcut menu is proved, and therefore the display position is determined according to the operation position in response to the first preset event, and the suspension shortcut menu is displayed at the display position, so that the control requirement of the user on the suspension shortcut menu is met.
As an optional example, determining the display position of the hover shortcut menu according to the operation position may include:
taking the operation position as the central position of the suspension shortcut menu to obtain the display center of the suspension shortcut menu;
and determining the display position of the floating shortcut menu according to the display center.
In other embodiments, the operation position may be any reference position on the display plane of the floating shortcut menu, including but not limited to the center position. For example, in one specific embodiment, the reference position is any vertex position of the display plane of the floating shortcut menu. In another specific embodiment, the reference position is a midpoint position of any one edge of the display plane of the floating shortcut menu.
It is noted that the determination of the reference position may be determined with reference to the shape of the hover shortcut menu. For example, when the hover shortcut menu is a ring shape, the reference position may be determined as a center position of the hover shortcut menu. When the suspension shortcut menu is a polygon, the reference position can be determined as the center position of the suspension shortcut menu, or the reference position can be determined as any vertex position or any midpoint position of one edge of the suspension shortcut menu.
In this embodiment, the display position of the suspension shortcut menu is determined according to the display center of the suspension shortcut menu, so that the suspension shortcut menu can be displayed more accurately, and the operation and use of a user are facilitated.
In some optional embodiments of the present disclosure, after displaying the hover shortcut menu, the method may further include:
and under the condition of displaying the floating shortcut menu, monitoring whether a second preset event is received.
In this step, the floating shortcut menu floats on the user interface, and the floating shortcut menu can block the operation interface or the use interface of the user under some conditions. For a large-screen display device, the screen size is large, but the human arm spread is limited, and the operable range is limited. If the display position of the floating shortcut menu is far away from the user, the operation control of the floating shortcut menu is very inconvenient. Therefore, the embodiment monitors the input unit, monitors whether the input unit receives a second preset event, and controls the floating shortcut menu. The input unit may be a touch screen or a graphic acquisition device.
As an example, the second preset event may include:
and receiving a first input in a display area except the floating shortcut menu.
In this embodiment, the input unit is a touch screen, and the first input may be a touch operation to a display area other than the floating shortcut menu. The touch operation may include a click operation on a display area other than the hover shortcut menu and a slide operation on the display area other than the hover shortcut menu. Illustratively, the first input may be a single click, a double click, a single finger swipe, a multi-finger swipe, and the like. The first input operation is simple, and the hiding of the suspension shortcut menu can be realized without being limited to the control of the suspension shortcut menu.
Specifically, taking an android system as an example, the attribute of a root view of a floating shortcut menu is set, so that the root view supports monitoring of events outside a touch floating menu; and setting a floating shortcut menu control to monitor the touch event, and hiding the menu if the touch event type is matched with the touch external area.
As another example, the second preset event may include:
and the second input is not received within the preset time period of the continuous display of the floating shortcut menu.
In this embodiment, the input unit may be a touch screen or an image capturing device, that is, there is no touch input or gesture input within a preset time period.
In this embodiment, the second input may be a control operation on the large-screen display device, or may be a control operation on a displayed application. For example, the second input may be volume and brightness adjustment control for a large-screen display device, and may also be usage control for an application. The preset time period can be 5 minutes, 8 minutes, 10 minutes and the like, the starting point of the preset time period is the last operation control ending time of the large-screen display device, the preset time period can be set according to the requirements of a user, and the floating shortcut menu is hidden for reducing computing power and saving energy consumption by not receiving an application control signal for a long time or a control signal for the large-screen display device.
Illustratively, also taking the android system as an example, the touch event is monitored, and the monitored content includes occurrence of a touch, ending of a touch, or a touch cancellation event. And correspondingly canceling or starting the timer for hiding the floating shortcut menu message. And when the touch event is not monitored to occur or the touch ending or touch canceling event is monitored to end, starting a timer, and hiding the floating shortcut menu after receiving a message timed by the timer. Specifically, a timer is established first, then a floating shortcut menu control is set to monitor a touch event, and a timed hidden menu message is cancelled when touch occurs; a timer message is started when the touch is finished or cancelled. Therefore, when the timer counts a second preset time length, the hidden menu message is sent, and since no touch event occurs in the time length, the floating shortcut menu is hidden.
As another example, the second preset event may include:
aiming at the opening operation of the first application, the first application is an application which needs to hide the floating shortcut menu when the first application is opened.
In this embodiment, some applications are in conflict with the floating shortcut menu in operation and use, and some applications need to be full-screen in the use process, and the shielding of the floating shortcut menu can influence the use experience, so that the first application is monitored.
The monitoring process of the first application in the above embodiment is the same as the monitoring process of the first application in the first preset event, please refer to the detailed description of the monitoring process of the first application in the above embodiment, which is not described herein again.
The example method avoids the user from actively controlling the operation of the floating shortcut menu by monitoring whether the second preset event is received, and is convenient for the user to operate and use.
In some optional embodiments of the present disclosure, the floating shortcut menu is hidden when a second preset event is received.
In the step, under the condition that a second preset event is received, namely the hiding condition of the suspension shortcut menu is met, the suspension shortcut menu can be hidden, and a user actively controls the operation of the suspension shortcut menu, so that the user can conveniently operate and use the suspension shortcut menu.
As an example, the hiding manner of the floating shortcut menu may include:
and closing the suspension shortcut menu.
In this embodiment, the closing process may be to completely exit the floating shortcut menu, or may be to run in the background and quickly open the menu for subsequent use.
As another example, the hiding manner of the floating shortcut menu may include:
and carrying out transparent processing on the suspension shortcut menu.
In this embodiment, the transparency of the floating shortcut menu is improved through the transparent processing, so that the floating shortcut menu does not block the application under the floating shortcut menu, and a user can use the floating shortcut menu quickly when needed.
As another example, the hiding manner of the floating shortcut menu may include:
and moving the floating shortcut menu to the edge position of the display area.
In this embodiment, after the floating shortcut menu is moved to the edge position of the display area, the floating shortcut menu may be minimized, or only the open control of the floating shortcut menu is retained.
The above examples can be implemented in a cross combination mode, when the large-screen display device is implemented and used in a combination mode in multiple modes, the large-screen display device has a hidden mode with multiple floating shortcut menus, a user can conveniently select and use the large-screen display device according to needs, and interactivity of the large-screen display device with the large-size display screen is improved.
As shown in fig. 2, in a second aspect of an embodiment of the present disclosure, there is provided a control apparatus for hovering a shortcut menu, the apparatus may include:
the first preset event monitoring module 210 is configured to monitor whether a first preset event is received under the condition that the floating shortcut menu is hidden, where the first preset event is a control event associated with the floating shortcut menu and not specific to a preset control, and the preset control is a control for controlling display of the floating shortcut menu;
an operation position determining module 220, configured to determine an operation position of a first preset event when the first preset event is received;
a display position determining module 230, configured to determine a display position of the floating shortcut menu according to the operation position;
and a floating shortcut menu display module 240, configured to display the floating shortcut menu according to the display position.
The device of the above embodiment monitors the first preset event by using the first preset event monitoring module 210, and displays the floating shortcut menu according to the display position by using the floating shortcut menu display module 240, where the first preset event is an operation event that is not limited to the preset control, so that the method enables the display control of the floating shortcut menu by the user to be no longer limited to the operation control of the preset control, and the display position of the floating shortcut menu is determined according to the operation position by using the operation position determination module 220 and the display position determination module 230, which is more convenient for the user to operate and use, and improves the interactivity of the large-screen display device of the large-size display screen.
The control device of the floating shortcut menu in the embodiment of the present disclosure may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the disclosed embodiments are not limited in particular.
The control device of the floating shortcut menu in the embodiment of the present disclosure may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and the embodiment of the present disclosure is not particularly limited.
The control device for the floating shortcut menu provided in the embodiment of the present disclosure can implement each process implemented in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
Based on the same inventive concept, the embodiment of the present disclosure further provides an electronic device, which is specifically described in detail with reference to fig. 3.
Optionally, as shown in fig. 3, an electronic device 300 according to an embodiment of the present disclosure is further provided, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the above-mentioned embodiment of the control method for floating the shortcut menu, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present disclosure includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present disclosure.
The hardware architecture 400 of the electronic device includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the hardware configuration 400 of the electronic device may further include a power supply (e.g., a battery) for supplying power to the various components, and the power supply may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The input unit 404 is configured to monitor whether a first preset event is received; the input unit 404 is further configured to monitor whether a second preset event is received.
The processor 410 is used for hiding the floating shortcut menu; and the processor 410 is further configured to display the floating shortcut menu.
In the electronic device according to the embodiment, the input unit 404 is used for monitoring whether the first preset event and the second preset event are received, and the processor 410 controls the floating shortcut menu according to the monitoring result, so that the floating shortcut menu is quickly controlled, a user can display and hide the shortcut menu without operating the shortcut menu, the electronic device is convenient for the user to operate and use, and the interactivity of the large-screen display device with the large-size display screen is improved.
It should be understood that, in the embodiment of the present disclosure, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a program or an instruction is stored in the storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the control method for a floating shortcut menu, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here.
The processor is the processor in the electronic device described in the above embodiment. The storage medium includes a computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present disclosure further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the control method embodiment of the floating shortcut menu, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present disclosure may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (10)

1. A control method of a floating shortcut menu is characterized by comprising the following steps:
monitoring whether a first preset event is received or not under the condition that a suspension shortcut menu is hidden, wherein the first preset event is a control event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu;
when the first preset event is received, determining the operation position of the first preset event;
determining the display position of the suspension shortcut menu according to the operation position;
and displaying the suspension shortcut menu according to the display position.
2. The method of claim 1, wherein the first preset event comprises a multi-finger press operation; the monitoring whether the first preset event is received specifically includes:
monitoring whether a multi-finger touch event is received;
when the multi-finger touch event is received, recording a first sliding distance of each finger and a first touch duration of simultaneous touch of the multiple fingers; the first sliding distance is the distance between a first starting coordinate point where touch occurs and a first ending coordinate point where touch ends;
determining whether the first sliding distances of all the fingers are greater than a first preset distance;
if yes, determining that the multi-finger pressing operation is received;
otherwise, determining whether the first touch duration exceeds a first preset duration;
and if the first touch duration exceeds a first preset duration, determining that the multi-finger pressing operation is received.
3. The method according to claim 2, wherein the determining the operation position of the first preset event when the first preset event is received comprises:
and calculating the average value of the first termination coordinate points of all the fingers to obtain the operation position.
4. The method according to claim 1, wherein the first preset event comprises a sliding operation of a single finger from the edge of the display area to the middle of the display area; the monitoring whether the first preset event is received specifically includes:
monitoring whether a single-finger touch event is received;
when the single-finger touch event is received, recording a second starting coordinate point where the finger starts to touch and a second ending coordinate point where the finger ends to touch;
and if the second starting coordinate point and the second ending coordinate point are respectively located at the edge and the middle of the display area, determining that the sliding operation from the edge to the middle of the display area is received.
5. The method according to claim 1, wherein the first preset event includes a closing operation for a first application, and the first application is an application that needs to hide the floating shortcut menu when the first application is opened; when the first preset event is received, determining the operation position of the first preset event includes:
determining a first center coordinate of a target control corresponding to the first application;
determining the first center coordinate as the operation position.
6. The method according to claim 1, wherein the first preset event comprises a starting operation for a second application, and the second application is an application requiring the floating shortcut menu to be displayed; when a first preset event is received, determining an operation position of the first preset event includes:
calculating an operable area after the second application is started;
determining a second center coordinate of the operable area;
determining the second center coordinate as the operation position.
7. The method according to any one of claims 1-6, wherein determining the display position of the hover shortcut menu based on the operation position comprises:
taking the operation position as the center position of the suspension shortcut menu to obtain the display center of the suspension shortcut menu;
and determining the display position of the suspension shortcut menu according to the display center.
8. A control device for a floating shortcut menu, comprising:
the system comprises a first preset event monitoring module, a first control module and a second preset event monitoring module, wherein the first preset event monitoring module is used for monitoring whether a first preset event is received or not under the condition that a suspension shortcut menu is hidden, the first preset event is a control event which is associated with the suspension shortcut menu and is not specific to a preset control, and the preset control is a control for controlling the display of the suspension shortcut menu;
an operation position determining module, configured to determine an operation position of the first preset event when the first preset event is received;
the display position determining module is used for determining the display position of the suspension shortcut menu according to the operation position;
and the suspension shortcut menu display module is used for displaying the suspension shortcut menu according to the display position.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of controlling a hover shortcut menu as claimed in any of claims 1-7.
10. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of an information processing apparatus or a server, cause the information processing apparatus or the server to implement the control method of a floating shortcut menu according to any one of claims 1 to 7.
CN202110595330.XA 2021-05-28 2021-05-28 Control method and device for suspension shortcut menu, electronic equipment and storage medium Pending CN113434068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110595330.XA CN113434068A (en) 2021-05-28 2021-05-28 Control method and device for suspension shortcut menu, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110595330.XA CN113434068A (en) 2021-05-28 2021-05-28 Control method and device for suspension shortcut menu, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113434068A true CN113434068A (en) 2021-09-24

Family

ID=77803258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110595330.XA Pending CN113434068A (en) 2021-05-28 2021-05-28 Control method and device for suspension shortcut menu, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113434068A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356177A (en) * 2021-12-31 2022-04-15 上海洛轲智能科技有限公司 Display method and device of vehicle-mounted system menu bar and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777850A (en) * 2014-01-17 2014-05-07 广州华多网络科技有限公司 Menu display method, device and terminal
CN104714725A (en) * 2011-12-31 2015-06-17 北京奇虎科技有限公司 Display method and device of floating window
CN105975166A (en) * 2016-04-29 2016-09-28 广州华多网络科技有限公司 Application control method and apparatus
CN106528131A (en) * 2016-10-26 2017-03-22 北京小米移动软件有限公司 Application function display method and apparatus, and terminal device
WO2017080258A1 (en) * 2015-11-12 2017-05-18 广州视睿电子科技有限公司 Method and system for controlling touch menu
CN106980445A (en) * 2017-03-27 2017-07-25 北京小米移动软件有限公司 Manipulate the awaking method and device, electronic equipment of menu
CN107124508A (en) * 2017-04-18 2017-09-01 北京小米移动软件有限公司 Location regulation method, device and the terminal of suspension control, readable storage medium storing program for executing
CN108885525A (en) * 2016-11-04 2018-11-23 华为技术有限公司 Menu display method and terminal
CN108958616A (en) * 2017-05-17 2018-12-07 深圳市鸿合创新信息技术有限责任公司 A kind of menu control method
CN109656457A (en) * 2017-10-10 2019-04-19 北京仁光科技有限公司 Refer to touch control method, device, equipment and computer readable storage medium more
CN111273838A (en) * 2018-12-19 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Moving method of suspension toolbar in touch display device and touch display device
CN111901646A (en) * 2020-07-23 2020-11-06 海信视像科技股份有限公司 Display device and touch menu display method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714725A (en) * 2011-12-31 2015-06-17 北京奇虎科技有限公司 Display method and device of floating window
CN103777850A (en) * 2014-01-17 2014-05-07 广州华多网络科技有限公司 Menu display method, device and terminal
WO2017080258A1 (en) * 2015-11-12 2017-05-18 广州视睿电子科技有限公司 Method and system for controlling touch menu
CN105975166A (en) * 2016-04-29 2016-09-28 广州华多网络科技有限公司 Application control method and apparatus
CN106528131A (en) * 2016-10-26 2017-03-22 北京小米移动软件有限公司 Application function display method and apparatus, and terminal device
CN108885525A (en) * 2016-11-04 2018-11-23 华为技术有限公司 Menu display method and terminal
CN106980445A (en) * 2017-03-27 2017-07-25 北京小米移动软件有限公司 Manipulate the awaking method and device, electronic equipment of menu
CN107124508A (en) * 2017-04-18 2017-09-01 北京小米移动软件有限公司 Location regulation method, device and the terminal of suspension control, readable storage medium storing program for executing
CN108958616A (en) * 2017-05-17 2018-12-07 深圳市鸿合创新信息技术有限责任公司 A kind of menu control method
CN109656457A (en) * 2017-10-10 2019-04-19 北京仁光科技有限公司 Refer to touch control method, device, equipment and computer readable storage medium more
CN111273838A (en) * 2018-12-19 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Moving method of suspension toolbar in touch display device and touch display device
CN111901646A (en) * 2020-07-23 2020-11-06 海信视像科技股份有限公司 Display device and touch menu display method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
涂俊;鲍海;李晓娟;: "基于多点触控操作的网页界面设计趋势研究", 科技传播, no. 02, 23 January 2014 (2014-01-23), pages 105 - 108 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356177A (en) * 2021-12-31 2022-04-15 上海洛轲智能科技有限公司 Display method and device of vehicle-mounted system menu bar and electronic equipment

Similar Documents

Publication Publication Date Title
US11054988B2 (en) Graphical user interface display method and electronic device
CN104932809B (en) Apparatus and method for controlling display panel
EP3287883B1 (en) Screen activation method, device and electronic equipment
US20150331573A1 (en) Handheld mobile terminal device and method for controlling windows of same
CN109375890A (en) A kind of screen display method and Multi-screen electronic equipment
US10739927B2 (en) Operation detection method and apparatus, and mobile terminal
CN108228040A (en) Mobile terminal and floating barrier method of controlling operation thereof, device
US11567725B2 (en) Data processing method and mobile device
CN110007800B (en) Control method, device and equipment of touch operation mode and storage medium
CN112099707A (en) Display method and device and electronic equipment
US20230152956A1 (en) Wallpaper display control method and apparatus and electronic device
WO2020078234A1 (en) Display control method and terminal
WO2023025121A1 (en) Display method and apparatus, electronic device, and readable storage medium
WO2023005828A1 (en) Message display method and apparatus, and electronic device
US20140195935A1 (en) Information processing device, information processing method, and information processing program
CN109165033A (en) A kind of application update method and mobile terminal
WO2023006027A1 (en) Information display method and apparatus, electronic device, and medium
CN112148167A (en) Control setting method and device and electronic equipment
CN110221741B (en) Icon management method and terminal equipment
CN111026321A (en) Touch control method and electronic equipment
CN113434068A (en) Control method and device for suspension shortcut menu, electronic equipment and storage medium
TW202144984A (en) Equipment control method and device, storage medium and electronic equipment
CN108491128A (en) A kind of application management method and terminal
WO2023066123A1 (en) Terminal power-saving display method and apparatus, and electronic device
WO2023078348A1 (en) Application display method and apparatus, and electronic device

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