CN110908559B - Display method and device of shortcut application panel, electronic equipment and storage medium - Google Patents

Display method and device of shortcut application panel, electronic equipment and storage medium Download PDF

Info

Publication number
CN110908559B
CN110908559B CN201911137390.6A CN201911137390A CN110908559B CN 110908559 B CN110908559 B CN 110908559B CN 201911137390 A CN201911137390 A CN 201911137390A CN 110908559 B CN110908559 B CN 110908559B
Authority
CN
China
Prior art keywords
event
touch event
transparent window
touch
transparent
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.)
Active
Application number
CN201911137390.6A
Other languages
Chinese (zh)
Other versions
CN110908559A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911137390.6A priority Critical patent/CN110908559B/en
Publication of CN110908559A publication Critical patent/CN110908559A/en
Application granted granted Critical
Publication of CN110908559B publication Critical patent/CN110908559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04817Interaction 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 using icons
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows

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 embodiment of the application discloses a display method and device of a shortcut application panel, electronic equipment and a storage medium, and belongs to the technical field of terminals. The method comprises the following steps: providing a transparent window at a target position of an interface edge of the electronic equipment, wherein the transparent window is used for triggering the display of a shortcut application panel, and the shortcut application panel is used for displaying shortcut icons of at least one application; if a touch event to the transparent window is detected, acquiring event information of the touch event; and displaying the shortcut application panel in the electronic equipment interface when the event information meets the target condition. According to the technical scheme, the transparent window for calling the shortcut application panel is provided on the interface edge of the electronic device, and cannot be perceived by naked eyes of a user, so that visual interference cannot be caused, and due to the fact that the window also has certain triggering conditions, false touch and gesture conflict are not easy to occur, and user experience is greatly improved.

Description

Display method and device of shortcut application panel, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a display method and device of a shortcut application panel, electronic equipment and a storage medium.
Background
With the development of terminal technology, applications that can be installed on electronic devices such as mobile phones and tablets are increasing. Typically, the electronic device displays an icon of the installed application on the main interface, so that the user can open the corresponding application by clicking the icon.
In the related art, in order to facilitate the operation of a user, an electronic device may provide a shortcut application panel so that the user adds an application commonly used by the user to the shortcut application panel. The shortcut application panel may be invoked by a buoy of a display interface of the electronic device, e.g., a user may click on the buoy to quickly invoke the shortcut application panel.
However, the float may cause visual disturbance to the user on the screen and risk false touches and gesture conflicts.
Disclosure of Invention
The embodiment of the application provides a display method, a device, electronic equipment and a storage medium of a shortcut application panel, which can solve the problems that a buoy calling the shortcut application panel in the related technology can cause visual interference to a user on a screen and the risk of false touch and gesture conflict exists. The technical scheme is as follows:
in one aspect, a method for displaying a shortcut application panel is provided, the method including:
providing a transparent window at a target position of an interface edge of the electronic equipment, wherein the transparent window is used for triggering the display of a shortcut application panel, and the shortcut application panel is used for displaying shortcut icons of at least one application;
if a touch event to the target position is detected, acquiring event information of the touch event;
and when the event information meets the target condition corresponding to the transparent window, displaying the shortcut application panel in the electronic equipment interface.
In another aspect, there is provided a display device of a shortcut application panel, the device including:
the display module is used for displaying a shortcut application panel, and the shortcut application panel is used for displaying shortcut icons of at least one application;
the acquisition module is used for acquiring event information of the touch event if the touch event to the target position is detected;
and the display module is used for displaying the shortcut application panel in the electronic equipment interface when the event information meets the target condition corresponding to the transparent window.
In another aspect, an electronic device is provided, wherein the electronic device includes a processor and a memory; the memory stores at least one instruction for execution by the processor to implement a method of displaying a shortcut application panel as described in the above aspect.
In another aspect, a computer-readable storage medium is provided, the storage medium storing at least one instruction for execution by a processor to implement a method of displaying a shortcut application panel as described in the above aspect.
In the display method of the shortcut application panel provided by the embodiment of the application, a transparent window is provided at a target position of an interface edge of electronic equipment, and if a touch event to the transparent window is detected, a moving direction and a moving distance of the touch event are obtained; and when the moving direction and the moving distance meet the target conditions, displaying a shortcut application panel in the interface of the electronic equipment. According to the technical scheme, the transparent window for calling the shortcut application panel is provided on the interface edge of the electronic device, and cannot be perceived by naked eyes of a user, so that visual interference cannot be caused, and due to the fact that the window also has certain triggering conditions, false touch and gesture conflict are not easy to occur, and user experience is greatly improved.
Drawings
FIG. 1 illustrates a block diagram of an electronic device provided in an exemplary embodiment of the present application;
FIG. 2 illustrates a flowchart of a method of displaying a shortcut application panel as illustrated in an exemplary embodiment of the present application;
FIG. 3 illustrates a flowchart of a method of displaying a shortcut application panel as illustrated in another exemplary embodiment of the present application;
FIG. 4 illustrates a schematic diagram of a transparent window area in an electronic device as illustrated in one exemplary embodiment of the present application;
FIG. 5 illustrates a flowchart of a display of a shortcut application panel shown in another exemplary embodiment of the present application;
FIG. 6 illustrates a schematic architecture diagram of an electronic device system as illustrated in another exemplary embodiment of the present application;
FIG. 7 illustrates a schematic diagram of an electronic device detecting a touch event within a transparent window area according to an exemplary embodiment of the present application;
FIG. 8 illustrates a schematic diagram of an electronic device display shortcut application panel as illustrated in an exemplary embodiment of the present application;
FIG. 9 illustrates a schematic diagram of an electronic device detecting a touch event outside of a transparent window area according to an exemplary embodiment of the present application;
fig. 10 is a block diagram illustrating a structure of a display device of a shortcut application panel provided in an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "connected," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
For ease of understanding of the schemes shown in the embodiments of the present application, the terms appearing in the embodiments of the present application are described below.
Application icon: is an icon displayed in a touch screen. Optionally, after the icon is triggered, the terminal device will start the user interface corresponding to the application icon. In one possible implementation, the user interface displayed after the application icon is triggered may be either a main interface of the corresponding application or a designated user interface in the corresponding application. In another possible implementation, when an application icon is triggered, the terminal device may directly enable the function or service corresponding to the icon. For example, when the application to which the application icon corresponds is a flashlight application, the terminal device will directly launch the flashlight application when the application icon is triggered.
Alternatively, the application corresponding to the application icon may be an application that needs to be installed in the installation package, or may be an applet, a flash application, a mini application, or a light application that does not need to be installed, which is not limited in this application.
Referring to fig. 1, a block diagram of an electronic device 100 according to an exemplary embodiment of the present application is shown. The electronic device 100 may be a smart phone, tablet computer, notebook computer, etc. The electronic device 100 in this application may include one or more of the following components: processor 110, memory 120, display 130.
Processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a Neural network processor (Neural-network Processing Unit, NPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is responsible for rendering and drawing the content required to be displayed by the touch display screen 130; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functionality; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented by a single chip.
The Memory 120 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 120 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc.; the storage data area may store data (e.g., audio data, phonebook) created according to the use of the electronic device 100, etc.
The display 130 is a display component for displaying a user interface. Optionally, the display screen 130 further has a touch function, through which a user can perform a touch operation on the display screen 130 using any suitable object such as a finger, a touch pen, or the like.
The display screen 130 is typically disposed on a front panel of the electronic device 130. The display 130 may be designed as a full screen, a curved screen, a contoured screen, a double-sided screen, or a folded screen. The display 130 may also be designed as a combination of a full screen and a curved screen, and a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment.
In addition, those skilled in the art will appreciate that the configuration of the electronic device 100 shown in the above-described figures does not constitute a limitation of the electronic device 100, and the electronic device may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the electronic device 100 further includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, wiFi) module, a power supply, a bluetooth module, and the like, which are not described herein.
Referring to fig. 2, a flowchart of a method for displaying a shortcut application panel is shown in an exemplary embodiment of the present application. The method comprises the following steps:
in step 201, the electronic device provides a transparent window at a target position at an interface edge of the electronic device, where the transparent window is used to trigger display of a shortcut application panel, and the shortcut application panel is used to display shortcut icons of at least one application.
In step 202, if a touch event to the target location is detected, the electronic device acquires event information of the touch event.
And 203, when the event information meets the target condition corresponding to the transparent window, the electronic equipment displays a shortcut application panel in an electronic equipment interface.
In one possible implementation, providing a transparent window at a target location of an interface edge of an electronic device includes:
setting a transparent window on a target position;
the transparent window is prioritized over other windows on the electronic device.
In another possible implementation, if a touch event is detected for the target location, acquiring event information of the touch event includes:
if a touch event to the target position is detected, sending the touch event to a transparent window with higher priority than other windows through window management service according to the priority of the window on the target position, and acquiring event information of the touch event by the transparent window.
In another possible implementation, providing a transparent window at a target location of an interface edge of an electronic device includes:
setting a transparent window on a target position;
an event channel is created for the transparent window, the event channel for receiving touch events occurring at the target location.
In another possible implementation, if a touch event is detected for the target location, acquiring event information of the touch event includes:
if the electronic equipment detects a touch event to the target position, the touch event is sent to the transparent window through the event channel, and event information of the touch event is obtained through the transparent window.
In another possible implementation, disposing the transparent window at the target location includes:
creating resident system services in an operating system of the electronic device; a transparent window is set at the target location by the resident system service.
In another possible implementation, the method further includes:
if the event information does not meet the target condition corresponding to the transparent window, setting the transparent window in an untouchable state, and sending the touch event to the window at the position corresponding to the touch event through the window management service.
In another possible implementation, the target positions are two, and accordingly, the transparent windows are two, and the two transparent windows are respectively located at two ends of the interface edge of the electronic device.
In another possible implementation, if a touch event is detected for the target location, acquiring event information of the touch event includes:
if the electronic equipment detects one touch event at two target positions respectively within the preset time period, acquiring event information of the two detected touch events.
According to the technical scheme, the transparent window for calling the shortcut application panel is provided on the interface edge of the electronic device, and cannot be perceived by naked eyes of a user, so that visual interference cannot be caused, and due to the fact that the window also has certain triggering conditions, false touch and gesture conflict are not easy to occur, and user experience is greatly improved.
Referring to fig. 3, a flowchart of a method for displaying a shortcut application panel is shown in an exemplary embodiment of the present application. The method is applied to electronic equipment, wherein the electronic equipment can be any equipment such as a smart phone, a tablet personal computer, a wearable equipment or a portable personal computer, and the method comprises the following steps of:
in step 301, the electronic device provides a transparent window at a target location at an interface edge of the electronic device.
The transparent window is used for triggering the display of a shortcut application panel, and the shortcut application panel is used for displaying shortcut icons of at least one application. In this application example, the transparent window needs to receive a touch event, and display of the shortcut application panel is triggered according to the touch event.
The interface edge of the electronic device may be an interface upper edge of the electronic device or an interface lower edge of the electronic device. Wherein the number of transparent windows is at least one. When the number of the transparent windows is one, the transparent windows may be disposed at the left end of the interface edge or at the right end of the interface edge. When the number of the transparent windows is two, the transparent windows can be arranged at the same end of the interface edge or respectively arranged at two ends of the interface edge. In the embodiment of the present application, the number of transparent windows and the positions at the interface edges are not particularly limited, and may be set and changed as required.
Fig. 4 shows a schematic view of transparent windows according to an exemplary embodiment of the present application, referring to fig. 4, in the electronic device, the number of transparent windows is two, namely, transparent window 401 and transparent window 402, and the two transparent windows are respectively located at two ends of a status bar of the electronic device. The status bar is positioned at the upper edge of the interface of the electronic equipment, and the position of the status bar is related to the motion state of the electronic equipment; for example, when the electronic device rotates, the status bar also rotates, the rotated status bar is still located at the upper edge of the interface of the electronic device, and the two transparent windows also change in position along with the rotation of the electronic device, and are still located at two ends of the rotated status bar.
It should be noted that when the two transparent windows are respectively located at two ends of the status bar of the electronic device, the trigger area of the task bar may be disposed between the two transparent windows, that is, the user may perform a corresponding touch operation in a middle area between the two transparent windows, and when the electronic device detects the touch operation in the middle area, and the touch operation meets a certain condition, the task bar may be called in response to the touch operation. The user can select and call the shortcut application panel or the task bar according to the own requirements, gesture conflict can not occur, and user experience is improved.
In one possible implementation, the transparent window may be enabled to receive touch events preferentially through the setting of priorities. Accordingly, this step may be performed by the steps of: setting a transparent window on the target position; the priority of the transparent window is set to be higher than other windows on the electronic device, so that when a touch event is detected at a target position, event distribution can be performed based on the priority, and the event distribution can be performed on other windows with rear priority only when the transparent window determines that the received touch event does not meet the target condition, so that false triggering of windows displayed on the lower layer of the transparent window is avoided.
In one possible implementation, the transparent window may receive touch events through a pre-created event channel. Accordingly, this step can be achieved by the following steps (1) to (2):
(1) The electronic device sets a transparent window at a target location at an interface edge of the electronic device.
In one possible implementation, the transparent window may be set by a developer, and the transparent window automatically starts when the electronic device is powered on. Referring to FIG. 5, setting up a transparent window at a target location includes creating resident system services in an operating system of an electronic device; a transparent window is set at the target location by the resident system service. The resident system service refers to a system service which keeps an operation state all the time after the electronic equipment is started. The transparent window is arranged on the target position through the resident system service, so that the transparent window is automatically started when the electronic equipment is started and can be always in an operating state, and the transparent window can receive touch events at any time.
(2) An event channel is created for the transparent window, the event channel for receiving touch events occurring at the target location.
In one possible implementation, referring to fig. 6, an event channel is created for the transparent window, where the creating an event channel may refer to registering the event channel in the event processing system, such that when the event processing system receives a touch event to a target location, the event processing system may send the touch event to the transparent window through the event channel.
With continued reference to fig. 6, the electronic device may include multiple types of windows, such as an application window or a system window. The application window may be a window of any application installed on the electronic device, and the system window may include a status bar and a navigation bar. The status bar may display status information of the electronic device, for example, the status bar may display status information of a remaining power of the electronic device, a network to which the electronic device is currently connected, and whether a wireless network or bluetooth of the electronic device is opened. The navigation bar is used for operating the display window of the electronic device, for example, returning to the display window displayed last time, or directly returning to the main interface of the electronic device, etc.
It should be noted that, with continued reference to fig. 6, the event channel and the window management service may belong to parallel channels. When a touch event occurs on the transparent window, the touch event is firstly reported to the event processing system through the touch drive; at this time, the event processing system sends touch events to the event channel and the window management service in parallel; the window management service can distribute the touch event to the transparent window according to the priority, the transparent window can receive the touch event through the event channel and the window management service, the distribution of the window management service can enable the touch event not to be sent to other windows on the target position, the transparent window can be guaranteed to be capable of receiving the touch event based on the sending of the event channel, and the detection accuracy of the touch event can be improved. In the embodiment of the application, the priority of the transparent window is set higher than that of the bottom window, so that the conflict of the transparent window and other windows on touch events can be effectively avoided, and the user experience is improved.
In step 302, if the operating system of the electronic device detects a touch event on the transparent window, the electronic device sends the touch event to the transparent window through the event channel.
In the embodiment of the present application, the transmission of the touch event by using the event channel is merely described as an example. In this embodiment of the present application, an operating system of an electronic device may detect a touch event to a target location, determine an event channel corresponding to the target location, and then send the touch event to a transparent window through the event channel.
The touch event may be a click event of the user, for example, a single click operation or a double click operation, or may be a sliding event of the user, which is not limited in the embodiment of the present application. The system architecture of the electronic device is divided into a driving layer, a framework layer and a user interface layer. The driving layer can detect the touch event, send the detected touch event to the WMS (Window Management System, window management service) in the frame layer, send the information of the touch event to the user interface layer after the WMS performs a series of conversion and calculation on the touch event, and finally make a corresponding response event on the touch event by the user interface layer. In one possible implementation, with continued reference to FIG. 6, the underlying driver layer includes a touch driver that can receive detected touch events and report the touch events to the event processing system, which sends the touch events to the frame layer. The WMS may receive the touch event dispatched by the event handling system, and after performing a series of conversions and calculations on the touch event, send information of the touch event to the user interface layer through the WMS and the event channel.
When the transparent window receives touch events through the event channel and the window management service respectively, whether the received touch event is one touch event or not can be judged according to the information such as the occurrence time of the touch event, if so, whether the received touch event meets the target condition or not is processed based on any one of the touch events, and the other touch event is ignored. Through the dual-channel transmission, the transparent window can be ensured to receive touch events, and meanwhile, the false touch to other windows can be avoided.
Step 303, if the operating system of the electronic device detects a click event on the transparent window, the electronic device sets the transparent window to be in a non-touchable state, and sends the click event to an application or window at a position corresponding to the click event through the window management service.
The transparent window may have two states, a touchable state and a non-touchable state, and when the transparent window is in the touchable state, the transparent window may respond to a touch operation; when the transparent window is in the non-touchable state, the transparent window does not respond to the touch operation. The setting of the state may be achieved by state labeling of transparent windows in the WMS.
When the operating system of the electronic device detects a click event on the transparent window, the electronic device sets the transparent window to a non-touchable state, for example, the transparent window is marked as a non-touchable state in the WMS, and when the WMS detects the marking of the non-touchable state, the click event can be reinjected into the event processing system, sent to the WMS again by the data processing system, distributed to other windows with lower priority than the transparent window by the WMS, and responded by the window receiving the click event, for example, an application interface is opened.
It should be noted that, after the WMS sends the click event and the click event has been responded, the electronic device may restore the transparent window to the touchable state, so that the transparent window is not affected to receive the subsequent touch event.
In the embodiment of the application, the transparent window is set to be in the non-touchable state, so that the bottom window can normally receive the click event through the WMS, the situation that the bottom window cannot respond to the touch event and the click event is invalid is prevented, and the user experience is improved.
And step 304, when the event information of the touch event meets the target condition corresponding to the transparent window, the electronic equipment displays a shortcut application panel in the interface of the electronic equipment.
The event information of the touch event may include a moving direction and a moving distance of the touch operation. In one possible implementation, the movement distance of the touch event may be a linear distance between a start point and an end point of the occurrence of the touch event, and the electronic device obtains coordinates of the start point of the touch event and coordinates of the end point of the touch event, and determines the movement distance of the touch event through the coordinates of the start point of the touch event and the coordinates of the end point of the touch event.
In one possible implementation, the target condition is that the distance moved by the touch event is greater than a first distance threshold. Wherein the first distance threshold may be any value from 0.5cm to 1cm, such as 0.5cm, 0.8cm, or 1cm; in the embodiment of the present application, the first distance threshold is not specifically limited, and may be set and changed as needed.
In another possible implementation, the target condition is that the direction of movement of the touch event is downward and the distance of movement is greater than a second distance threshold. In the interface of the electronic device, a shortcut application panel is displayed, and the interface of the electronic device is shown in fig. 8. Wherein the second distance threshold may be any value from 0.5cm to 1cm, such as 0.5cm, 0.8cm, or 1cm; in the embodiment of the present application, the second distance threshold is not specifically limited, and may be set and changed as needed.
In another possible implementation, the target condition is that the touch event moves down the interface edge and the distance of movement is greater than a third distance threshold. Wherein the third distance threshold may be any value from 0.5cm to 1cm, such as 0.5cm, 0.8cm, or 1cm; in the embodiment of the present application, the third distance threshold is not specifically limited, and may be set and changed as needed.
In one possible implementation, referring to fig. 7, if the electronic device detects one touch event at two target positions within a preset time period, event information of the detected two touch events is obtained. Wherein two target positions are referred to as two transparent window positions. The preset time period may be any one of 0s to 1s, for example, 0s, 0.1s, or 0.2s; in the embodiment of the present application, the preset duration is not specifically limited, and may be set and changed as needed.
In one possible implementation, when the event information of the two touch events meets the target condition corresponding to the transparent window, the electronic device displays a shortcut application panel in the electronic device interface. In another possible implementation manner, when either one of the two touch events meets a target condition corresponding to the transparent window, the electronic device displays a shortcut application panel in the electronic device interface.
In the implementation of the present disclosure, when a touch event occurs on both transparent windows and event information of the touch event satisfies a target condition, the electronic device displays a shortcut application panel in the electronic device interface. Therefore, false touch and gesture conflict are less likely to occur, and user experience is greatly improved.
The display effect of the shortcut application panel can be popped up from the interface edge of the electronic device, or can be popped up directly from the interface of the electronic device.
It should be noted that, with continued reference to fig. 8, the shortcut application panel may be provided with the shortcut application icon, and the user may add the shortcut application icon in the shortcut application panel in a custom manner, and the user may click on the shortcut application icon to open the corresponding shortcut application. Wherein the shortcut application may be a system application such as a calculator, a flashlight, etc.; the shortcut application may also be a third party application.
With continued reference to fig. 6, when the moving direction and moving distance of the touch event satisfy the target condition, a shortcut application panel is displayed in the electronic device interface, and the processing flow of the touch event is ended.
In step 305, when the electronic device detects a touch event in an area outside the transparent window, the electronic device cancels the display of the shortcut application panel.
The transparent window can be square, rectangular or round; in the embodiment of the present application, the shape of the transparent window is not particularly limited, and may be set and changed as needed.
In one possible implementation, the display of the shortcut application panel is canceled when the electronic device detects a click event in an area outside the transparent window. For example, the click event is set as a click operation, and when the electronic device detects the click operation in an area other than the transparent window, the display of the shortcut application panel is canceled. In another possible implementation, the display of the shortcut application panel is canceled when the electronic device detects a touch event in an area outside the transparent window. The direction of the touch event may be any direction or a preset direction. For example, referring to fig. 9, when the electronic device detects that the direction of the touch event is upward in an area other than the transparent window, the display of the shortcut application panel is canceled, and the interface of the electronic device is shown in fig. 4.
It should be noted that, in this embodiment of the present application, the cancellation of the display of the shortcut application panel is only described with respect to the cancellation of the display of the shortcut application panel when the touch event is detected in the area other than the transparent window, and in another embodiment, the cancellation of the display of the shortcut application panel may also be performed by other means, and in one possible implementation, the cancellation of the display of the shortcut application panel is performed when the click event is detected in the shortcut application panel. In one possible implementation, a close button may be disposed within the shortcut application panel, and when the electronic device detects a click event at the close button, the display of the shortcut application panel is canceled.
In another possible implementation, the display of the shortcut application panel is canceled when a touch event is detected within the shortcut application panel. The direction of the touch event can be any direction or a preset direction; for example, when the electronic device detects that the direction of the touch event is upward within the shortcut application panel, the display of the shortcut application panel is canceled.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 10, a block diagram of a display device of a shortcut application panel according to an embodiment of the present application is shown. The device comprises:
a providing module 1001, configured to provide a transparent window at a target location on an interface edge of the electronic device, where the transparent window is used to trigger display of a shortcut application panel, and the shortcut application panel is used to display shortcut icons of at least one application;
an obtaining module 1002, configured to obtain event information of a touch event if the touch event to the target position is detected;
and a display module 1003, configured to display the shortcut application panel in the electronic device interface when the event information meets the target condition corresponding to the transparent window.
In one possible implementation, the providing module 1001 includes:
a setting unit configured to set a transparent window at the target position;
and the priority setting unit is used for setting the priority of the transparent window to be higher than other windows on the electronic equipment.
In another possible implementation manner, the acquiring module 1002 is configured to send, if a touch event is detected for the target location, the touch event to the transparent window with a higher priority than other windows through a window management service according to the priority of the window at the target location, and acquire, by the transparent window, event information of the touch event.
In another possible implementation, the providing module 1001 includes:
a setting unit configured to set a transparent window at the target position;
and the channel creation unit is used for creating an event channel for the transparent window, and the event channel is used for receiving the touch event occurring at the target position.
In another possible implementation manner, the acquiring module 1002 is configured to send the touch event to the transparent window through the event channel if the electronic device detects the touch event to the target location, and acquire the event information of the touch event by the transparent window.
In another possible implementation, the setting unit is configured to create a resident system service in an operating system of the electronic device; a transparent window is set at the target location by the resident system service.
In another possible implementation, the apparatus further includes:
the state setting module is used for setting the transparent window to be in a non-touchable state if the touch event does not meet the target condition;
and the event sending module is used for sending the touch event to the window at the position corresponding to the touch event through the window management service.
In another possible implementation, the display module 1003 is further configured to cancel the display of the shortcut application panel when a touch event is detected in an area outside the transparent window.
In another possible implementation manner, the acquiring module 1002 is configured to acquire, if a touch event for the target location is detected, event information of the touch event including:
if the electronic equipment detects one touch event at two target positions respectively within the preset time period, acquiring event information of the two detected touch events.
In summary, in this embodiment, a transparent window for calling up a shortcut application panel is provided on an interface edge of an electronic device, and the window cannot be perceived by naked eyes of a user, so that visual interference cannot be caused, and because the window also has a certain triggering condition, false touch and gesture conflict are not easy to occur, so that user experience is greatly improved.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the method of displaying a shortcut application panel as set forth in the above aspect.
Embodiments of the present application also provide a computer readable medium storing at least one instruction that is loaded and executed by the processor to implement the method for displaying a shortcut application panel as described in the above embodiments.
Embodiments of the present application also provide a computer program product storing at least one instruction that is loaded and executed by the processor to implement the method for displaying a shortcut application panel as described in the above embodiments.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing description of the preferred embodiments of the present application is not intended to limit the invention to the particular embodiments of the present application, but to limit the scope of the invention to the particular embodiments of the present application.

Claims (6)

1. A method for displaying a shortcut application panel, the method comprising:
setting transparent windows on target positions of interface edges of electronic equipment, setting the priority of the transparent windows to be higher than that of other windows on the electronic equipment, creating event channels for the transparent windows, wherein the event channels are used for receiving touch events occurring on the target positions, the transparent windows are used for triggering the display of shortcut application panels, the shortcut application panels are used for displaying shortcut icons of at least one application, the number of the target positions is two, the number of the transparent windows is two, the two transparent windows are respectively positioned at two ends of the interface edges of the electronic equipment, and the transparent windows cannot be perceived by naked eyes of users;
if the electronic equipment detects a touch event at two target positions within a preset duration, respectively sending the touch event at each target position to a corresponding transparent window with higher priority than other windows through a window management service and the event channel according to the priorities of the windows at the two target positions;
when any transparent window receives touch events through the event channel and the window management service respectively and the received two touch events are the same touch event, acquiring event information of any received touch event by any transparent window, and if the event information of any received touch event received by each transparent window meets the target conditions corresponding to the two transparent windows respectively, displaying the shortcut application panel in an interface of the electronic device; the event information comprises a moving direction and a moving distance of touch operation, and the target condition is that the moving distance of the touch event is larger than a first distance threshold;
and if the event information of any touch event received by any transparent window does not meet the target condition corresponding to any transparent window, setting any transparent window to be in a non-touchable state, and sending the detected touch event to a window at a position corresponding to the detected touch event through the window management service.
2. The method of claim 1, wherein the disposing a transparent window at a target location of an interface edge of the electronic device comprises:
creating resident system services in an operating system of the electronic device; and setting a transparent window on the target position through the resident system service.
3. The method according to claim 1, wherein if the event information of any touch event received by each of the two transparent windows meets the target condition corresponding to each of the two transparent windows, after displaying the shortcut application panel in the interface of the electronic device, the method further comprises:
and when a touch event is detected in an area outside the transparent window, canceling the display of the shortcut application panel.
4. A display device for a shortcut application panel, the device comprising:
the method comprises the steps of providing a module, wherein the module is used for setting transparent windows on target positions of interface edges of electronic equipment, setting the priority of the transparent windows to be higher than that of other windows on the electronic equipment, creating event channels for the transparent windows, wherein the event channels are used for receiving touch events occurring on the target positions, the transparent windows are used for triggering the display of shortcut application panels, the shortcut application panels are used for displaying shortcut icons of at least one application, the number of the target positions is two, the number of the transparent windows is two, the two transparent windows are respectively positioned at two ends of the interface edges of the electronic equipment, and the transparent windows cannot be perceived by naked eyes of users;
the acquisition module is used for respectively detecting a touch event at two target positions in preset time length, and respectively transmitting the touch event at each target position to corresponding transparent windows with higher priority than other windows through window management service and the event channel according to the priorities of the windows at the two target positions;
the display module is used for acquiring event information of any received touch event by any transparent window under the condition that any transparent window receives touch events through the event channel and the window management service respectively and determines that the two received touch events are the same touch event, and displaying the shortcut application panel in an interface of the electronic equipment if the event information of any received touch event received by the two transparent windows respectively meets the target conditions corresponding to the two transparent windows respectively; the event information comprises a moving direction and a moving distance of touch operation, and the target condition is that the moving distance of the touch event is larger than a first distance threshold;
the state setting module is used for setting any transparent window to be in a non-touchable state if the event information of any touch event received by any transparent window does not meet the target condition corresponding to any transparent window;
and the event sending module is used for sending the detected touch event to a window at the position corresponding to the touch event through the window management service.
5. An electronic device comprising a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the method of displaying a shortcut application panel as defined in any one of claims 1 to 3.
6. A computer readable storage medium storing at least one instruction for execution by a processor to implement a method of displaying a shortcut application panel as claimed in any one of claims 1 to 3.
CN201911137390.6A 2019-11-19 2019-11-19 Display method and device of shortcut application panel, electronic equipment and storage medium Active CN110908559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911137390.6A CN110908559B (en) 2019-11-19 2019-11-19 Display method and device of shortcut application panel, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911137390.6A CN110908559B (en) 2019-11-19 2019-11-19 Display method and device of shortcut application panel, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110908559A CN110908559A (en) 2020-03-24
CN110908559B true CN110908559B (en) 2024-01-12

Family

ID=69818041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911137390.6A Active CN110908559B (en) 2019-11-19 2019-11-19 Display method and device of shortcut application panel, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908559B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467672A (en) * 2020-03-31 2021-10-01 Oppo广东移动通信有限公司 Dynamic control method of sidebar, electronic device and computer-readable storage medium
CN113360048A (en) * 2021-06-22 2021-09-07 展讯通信(天津)有限公司 Quick starting method and equipment
CN117101117B (en) * 2023-07-12 2024-08-06 荣耀终端有限公司 Touch control method and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224212A (en) * 2014-07-01 2016-01-06 中国移动通信集团公司 A kind of terminal screen unlock method, device and terminal
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
JP2017182224A (en) * 2016-03-29 2017-10-05 シャープ株式会社 Display system, controlling device, and display method
CN107577513A (en) * 2017-09-08 2018-01-12 北京小米移动软件有限公司 A kind of method, apparatus and storage medium for showing painted eggshell
CN108885531A (en) * 2016-10-14 2018-11-23 华为技术有限公司 A kind of method and terminal of interface display
CN109062475A (en) * 2018-08-22 2018-12-21 Oppo广东移动通信有限公司 icon display method, device, terminal and storage medium
CN109947322A (en) * 2019-03-19 2019-06-28 刘芳芳 Inventory management method and electronic equipment
CN110119234A (en) * 2019-04-08 2019-08-13 广州视源电子科技股份有限公司 Operation method of intelligent interactive panel, storage medium and related equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140017429A (en) * 2012-08-01 2014-02-11 삼성전자주식회사 Method of screen operation and an electronic device therof
KR20140042609A (en) * 2012-09-28 2014-04-07 삼성전자주식회사 Electronic apparatus, method for executing of application and computer-readable recording medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224212A (en) * 2014-07-01 2016-01-06 中国移动通信集团公司 A kind of terminal screen unlock method, device and terminal
JP2017182224A (en) * 2016-03-29 2017-10-05 シャープ株式会社 Display system, controlling device, and display method
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
CN108885531A (en) * 2016-10-14 2018-11-23 华为技术有限公司 A kind of method and terminal of interface display
CN107577513A (en) * 2017-09-08 2018-01-12 北京小米移动软件有限公司 A kind of method, apparatus and storage medium for showing painted eggshell
CN109062475A (en) * 2018-08-22 2018-12-21 Oppo广东移动通信有限公司 icon display method, device, terminal and storage medium
CN109947322A (en) * 2019-03-19 2019-06-28 刘芳芳 Inventory management method and electronic equipment
CN110119234A (en) * 2019-04-08 2019-08-13 广州视源电子科技股份有限公司 Operation method of intelligent interactive panel, storage medium and related equipment

Also Published As

Publication number Publication date
CN110908559A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN111061574B (en) Object sharing method and electronic device
US10725657B2 (en) Method for displaying graphical user interface and mobile terminal
KR102545602B1 (en) Electronic device and operating method thereof
JP5922480B2 (en) Portable device having display function, program, and control method of portable device having display function
CN110908559B (en) Display method and device of shortcut application panel, electronic equipment and storage medium
CN109933252B (en) Icon moving method and terminal equipment
CN110489029B (en) Icon display method and terminal equipment
CN110855830A (en) Information processing method and electronic equipment
CN110928461A (en) Icon moving method and electronic equipment
CN110502162B (en) Folder creating method and terminal equipment
CN110764666B (en) Display control method and electronic equipment
EP4083767A1 (en) Icon moving method and electronic device
CN109522278B (en) File storage method and terminal equipment
CN111273993B (en) Icon arrangement method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN109521933A (en) A kind of display control method and mobile terminal
CN109408072B (en) Application program deleting method and terminal equipment
CN108509105A (en) A kind of application management method and terminal
CN110383244B (en) Calculator operation method and terminal
CN110244884B (en) Desktop icon management method and terminal equipment
KR102636438B1 (en) Interface display method and terminal
CN111459350B (en) Icon sorting method and device and electronic equipment
CN111190517B (en) Split screen display method and electronic equipment
CN110221741B (en) Icon management method and terminal equipment
CN107943959B (en) Webpage display method and device and mobile terminal

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
GR01 Patent grant
GR01 Patent grant