CN111857488A - Method and device for popping up menu in applet, electronic equipment and storage medium - Google Patents

Method and device for popping up menu in applet, electronic equipment and storage medium Download PDF

Info

Publication number
CN111857488A
CN111857488A CN202010621951.6A CN202010621951A CN111857488A CN 111857488 A CN111857488 A CN 111857488A CN 202010621951 A CN202010621951 A CN 202010621951A CN 111857488 A CN111857488 A CN 111857488A
Authority
CN
China
Prior art keywords
long
picture
determining
press position
menu
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.)
Granted
Application number
CN202010621951.6A
Other languages
Chinese (zh)
Other versions
CN111857488B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010621951.6A priority Critical patent/CN111857488B/en
Publication of CN111857488A publication Critical patent/CN111857488A/en
Application granted granted Critical
Publication of CN111857488B publication Critical patent/CN111857488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

The application discloses a method and a device for popping up a menu in an applet, electronic equipment and a storage medium, and relates to the technical field of applet and picture editing and processing. The implementation scheme adopted when the menu in the applet pops up is as follows: after detecting that a user generates a long press action in the applet, acquiring a long press position; and responding to the fact that the long-press position is determined to have the picture, and popping up a menu corresponding to the picture. The method and the device can simplify the operation steps of the user, improve the operation efficiency of the user and the like.

Description

Method and device for popping up menu in applet, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for popping up a menu in an applet, an electronic device, and a storage medium in the technical field of editing and processing the applet and the picture.
Background
In the prior art, when a user presses a picture for a long time in an applet, a menu providing a plurality of functions related to the picture is not popped up to the user. Therefore, if the user wants to realize the function related to the picture in the applet, the user needs to perform multiple operations, so the operation steps are complicated, and the operation efficiency is low.
Disclosure of Invention
The technical scheme adopted by the application for solving the technical problem is to provide a method for popping up a menu in an applet, which comprises the following steps: after detecting that a user generates a long press action in the applet, acquiring a long press position; and responding to the fact that the long-press position is determined to have the picture, and popping up a menu corresponding to the picture.
The technical scheme adopted by the application for solving the technical problem is to provide a device for popping up a menu in an applet, which comprises the following steps: the detection unit is used for acquiring a long press position after detecting that a user generates a long press action in the applet; and the popup unit is used for responding to the fact that the long press position has the picture and popping up a menu corresponding to the picture.
An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above method.
A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the above method.
One embodiment in the above application has the following advantages or benefits: the method and the device can simplify the operation steps of the user, improve the operation efficiency of the user and the like. Because the technical means of popping up the menu after detecting that the user long presses the picture in the applet is adopted, the technical problem that the menu cannot be popped up when the user long presses the picture in the applet in the prior art is solved, the operation steps of the user are simplified, the operation efficiency of the user is improved, and the like.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present application;
FIG. 2 is a schematic diagram according to a second embodiment of the present application;
FIG. 3 is a schematic illustration according to a third embodiment of the present application;
FIG. 4 is a schematic illustration according to a fourth embodiment of the present application;
FIG. 5 is a schematic illustration according to a fifth embodiment of the present application;
fig. 6 is a block diagram of an electronic device for implementing a method for menu popup in an applet according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram according to a first embodiment of the present application. As shown in fig. 1, the method for popping up a menu in an applet of this embodiment may specifically include the following steps:
s101, after detecting that a user generates a long press action in an applet, acquiring a long press position;
s102, responding to the fact that the long press position has the picture, and popping up a menu corresponding to the picture.
According to the menu popup method, in the process that a user uses an applet, after a long press action of the user is detected, the menu corresponding to the picture is popped up in response to the fact that the picture exists in the long press position, and a plurality of functions related to the picture are provided for the user through the popped menu, so that the problem that the related functions can be realized only by the fact that the user needs to perform multiple operations in the prior art is solved, operation steps of the user are simplified, and operation efficiency of the user is improved.
The functions related to the picture provided by the pop-up menu in the embodiment include at least one of the functions of viewing the picture, recognizing and searching the picture, saving the picture, sharing the picture, setting wallpaper and the like. It is understood that the present embodiment does not limit the number and types of picture-related functions provided by the pop-up menu.
When executing S101 to detect that the user generates a long press action in the applet, the present embodiment may adopt the following manner: monitoring the operation of the user when using the applet, for example, clicking, sliding and the like when the user uses the applet in the terminal equipment; and when the fact that the time length of clicking the same position by the user exceeds a preset threshold value is detected, determining that the user generates a long press action in the applet, otherwise, determining that the user does not generate the long press action.
After the embodiment determines that the user generates the long press action in the applet, the long press position is obtained, and the long press position is the coordinate of the screen clicked when the user generates the long press action.
After the long-press position is acquired by executing S101, executing S102 to determine whether a picture exists in the long-press position, if so, popping up a menu of a corresponding picture, otherwise, not popping up the menu.
When S102 is executed to determine that there is a picture in the long-press position, the present embodiment may include the following: acquiring the top view element at the long-press position; determining whether the acquired view element is an image component; if yes, determining that the long-press position has the picture.
In this embodiment, when the step S102 is executed to determine that the long-press position has the picture, the following contents may be further included: after determining that the acquired view element is not an image component, determining whether the acquired view element is an image tag; if yes, determining that the long-press position has the picture.
In this embodiment, when the step S102 is executed to determine that the long-press position has the picture, the following contents may be further included: after determining that the acquired view element is not an image tag, determining whether the acquired view element has a background image; if so, determining that the picture exists in the long-press position, otherwise, determining that the picture does not exist in the long-press position.
That is to say, in the present embodiment, whether a picture exists in the long-press position is determined through the above-mentioned multiple determination processes, so that a problem that a menu cannot be popped up after determining that no picture exists is avoided through single determination, and thus whether a picture exists in the long-press position is determined more accurately, and accuracy of menu popping up is improved.
By using the method provided by the embodiment, when the long-press position of the user generating the long-press action is determined to have the picture, the menu corresponding to the picture can be popped up, so that the purpose of conveniently providing a plurality of functions related to the picture for the user is realized, the operation steps of the user are simplified, and the operation efficiency of the user is improved.
Fig. 2 is a schematic diagram according to a second embodiment of the present application. As shown in fig. 2, the method for popping up a menu in an applet of this embodiment may specifically include the following steps:
s201, after detecting that a user generates a long press action in an applet, acquiring a long press position;
S202, after the long-press position is determined to have the picture, whether the menu pop-up function is forbidden is determined;
s203, responding to the fact that the menu popup function is not forbidden, and popping up a menu corresponding to the picture.
Therefore, in the embodiment, after the long-press position is determined to have the picture, the operation of popping up the menu is not immediately executed, but the menu is popped up when the fact that the menu pop-up function of the applet is not forbidden is determined, so that the problem that the menu can still be popped up when the menu pop-up function is forbidden can be solved, and the accuracy of menu pop-up is improved.
It is understood that the developer of the applet can set the disabled state of the menu pop-up function of the applet, so that the present embodiment can acquire the disabled state of the menu pop-up function of the applet through the development log of the applet when executing S202, thereby determining whether the menu pop-up function is disabled.
After executing S202, if it is determined that the menu pop-up function of the applet is disabled, the present embodiment does not execute the operation of popping up the menu of the corresponding picture, and may return a prompt message to the user to notify that the menu pop-up function is disabled.
Fig. 3 is a schematic diagram according to a third embodiment of the present application. As shown in fig. 3, the method for popping up a menu in an applet of this embodiment may specifically include the following steps:
s301, after detecting that a user generates a long press action in an applet, acquiring a long press position;
s302, after determining that the long-press position has the picture and the menu popup function is not forbidden, determining whether a long-press event is bound to a current component at the long-press position;
s303, responding to the fact that the current component at the long press position is not bound with the long press event, and popping up a menu corresponding to the picture.
Therefore, in the embodiment, after it is determined that the long-press position has the picture and the menu popup function is not disabled, the operation of popping up the menu is not immediately executed, but the menu popup is performed when it is determined that the current component at the long-press position is not bound to the long-press event, so that the problem that the menu pops up by mistake when the user executes the long-press event of the current component can be avoided, and the accuracy of menu popup is improved.
It can be understood that, when the determination of the current component at the long-press position is performed in S302, the component corresponding to the top-most view element at the long-press position may be taken as the current component.
Since the developer of the applet can set the events bound by different components in the applet, in executing S302, the present embodiment can determine whether the current component at the long-press position binds the long-press event by acquiring the development log of the applet.
After executing S302, if it is determined that the long-press event is bound to the current component at the long-press position, the present embodiment does not perform an operation of popping up a menu of a corresponding picture.
Fig. 4 is a schematic diagram according to a fourth embodiment of the present application. As shown in fig. 4, the method for popping up a menu in an applet of this embodiment may specifically include the following steps:
s401, after detecting that a user generates a long press action in an applet, acquiring a long press position;
s402, after determining that a picture exists in the long press position, a menu popup function is not disabled, and a long press event is not bound to a current component at the long press position, determining whether an N-level parent component above the current component is bound to the long press event, wherein N is a positive integer;
s403, responding to the fact that the N-level parent components above the current component are not bound with the long-time press event, and popping up a menu corresponding to the picture.
Therefore, in the embodiment, after it is determined that a picture exists in the long-press position, the menu popup function is not disabled, and the long-press event is not bound to the current component at the long-press position, the operation of popping up the menu is not immediately performed, but the popup of the menu is performed when it is determined that none of the parent components of the current component at the upper N-th level are bound to the long-press event, so that the problem that the menu pops up by mistake when the long-press event of the parent component of the current component is performed by the user can be avoided, and the accuracy of popup of the menu is improved.
It is understood that the embodiment may determine whether the N-level parent component above the current component is bound with the long press event through the development log of the applet when executing S402.
After executing S402, if it is determined that the N-level parent component above the current component is bound with the long press event, the operation of popping up the menu of the corresponding picture is not performed.
Fig. 5 is a schematic diagram according to a fifth embodiment of the present application. As shown in fig. 5, the apparatus for menu pop-up in an applet of the present embodiment includes:
the detection unit 501 is configured to obtain a long-press position after detecting that a user generates a long-press action in an applet;
and the popup unit 502 is used for responding to the fact that the picture exists in the long-press position and popping up a menu corresponding to the picture.
When detecting that the user generates a long press action in the applet, the detection unit 501 may adopt the following modes: monitoring the operation of a user when using the applet; and when the fact that the time length of clicking the same position by the user exceeds a preset threshold value is detected, determining that the user generates a long press action in the applet, otherwise, determining that the user does not generate the long press action.
After the detection unit 501 determines that the user generates the long press action in the applet, the long press position is obtained, and the long press position is the coordinate of the screen clicked when the user generates the long press action.
After the detection unit 501 acquires the long-press position, the pop-up unit 502 determines whether a picture exists in the long-press position, if so, a menu corresponding to the picture is popped up, otherwise, the picture is not popped up.
The popup unit 502 may contain the following when determining that a picture exists at a long-press position: acquiring the top view element at the long-press position; determining whether the acquired view element is an image component; if yes, determining that the long-press position has the picture.
When determining that a picture exists at the long-press position, the pop-up unit 502 may further include the following: after determining that the acquired view element is not an image component, determining whether the acquired view element is an image tag; if yes, determining that the long-press position has the picture.
When determining that a picture exists at the long-press position, the pop-up unit 502 may further include the following: after determining that the acquired view element is not an image tag, determining whether the acquired view element has a background image; if so, determining that the picture exists in the long-press position, otherwise, determining that the picture does not exist in the long-press position.
That is to say, the pop-up unit 502 determines whether a picture exists at the long-press position through the above-mentioned multiple determination processes, so as to avoid the problem that a menu cannot be popped up after determining that no picture exists through single determination, thereby more accurately determining whether a picture exists at the long-press position, and thus improving the accuracy of menu pop-up.
The popup unit 502 may further include the following when executing a menu popup menu corresponding to a picture in response to determining that the picture exists at the long-press position: determining whether the menu popup function is forbidden after determining that a picture exists according to the position; and in response to determining that the menu popup function is not disabled, popping up a menu of the corresponding picture.
Therefore, after determining that the long-press position has a picture, the pop-up unit 502 does not immediately execute the operation of popping up the menu, but pops up the menu when determining that the menu pop-up function of the applet is not disabled, so that the problem that the menu can still pop up when the menu pop-up function is disabled can be avoided, and the accuracy of menu pop-up is improved.
It is understood that the developer of the applet can set the disabled state of the menu pop-up function of the applet, and thus the pop-up unit 502 can acquire the disabled state of the menu pop-up function of the applet through the development log of the applet, thereby determining whether the menu pop-up function is disabled.
When determining that the menu pop-up function of the applet is disabled, the pop-up unit 502 does not perform an operation of popping up the menu of the corresponding picture, and may return a prompt message to the user to inform that the menu pop-up function is disabled.
The popup unit 502 may further include the following when executing a menu popup menu corresponding to a picture in response to determining that the picture exists at the long-press position: determining whether a long press event is bound to a current component at the long press position after determining that an image exists at the long press position and the menu popup function is not disabled; popping up a menu of the picture in response to determining that the current component at the long press position is not bound to the long press event.
Therefore, the pop-up unit 502 does not immediately execute the operation of popping up the menu after determining that the long-press position has the picture and the menu pop-up function is not disabled, but pops up the menu when determining that the current component at the long-press position is not bound to the long-press event, so that the problem that the menu is popped up by mistake when the user executes the long-press event of the current component can be avoided, and the accuracy of menu pop-up is improved.
It is to be understood that the pop-up unit 502 may take the component corresponding to the topmost view element in the long-pressed position as the current component when determining the current component in the long-pressed position.
Since the developer of the applet can set events bound by different components in the applet, the pop-up unit 502 can determine whether the long press event is bound to the current component at the long press position by acquiring the development log of the applet.
The pop-up unit 502 does not perform an operation of popping up a menu of a corresponding picture if it is determined that the long press event is bound to the current component at the long press position.
The popup unit 502 may further include the following when executing a menu popup menu corresponding to a picture in response to determining that the picture exists at the long-press position: after determining that a picture exists in a long press position, a menu popup function is not disabled and a current component at the long press position is not bound to a long press event, determining whether an N-level parent component above the current component is bound to the long press event, wherein N is a positive integer; and responding to the fact that the N-level parent components above the current component are not bound with the long-press event, and popping up a menu of the corresponding picture.
Therefore, the popup unit 502 does not immediately execute the operation of popup menu after determining that a picture exists at the long-press position, the menu popup function is not disabled, and the current component at the long-press position is not bound to the long-press event, but pops up the menu when determining that none of the parent components of the current component at the upper N-th level is bound to the long-press event, so that the problem that the menu is popped up by mistake when the user executes the long-press event of the parent component of the current component can be avoided, and the accuracy of menu popup is improved.
It is understood that the pop-up unit 502 can determine whether the N-level parent component above the current component has bound the long press event through the development log of the applet.
The pop-up unit 502 does not perform an operation of popping up a menu of a corresponding picture if it is determined that the N-level parent component above the current component is bound to the long press event.
According to an embodiment of the present application, an electronic device and a computer-readable storage medium are also provided.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for menu pop-up in an applet provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the method of menu popup in an applet provided by the present application.
The memory 602 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for menu popup in the applet in the embodiment of the present application (for example, the detection unit 501 and the popup unit 502 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing, i.e., implementing the method of menu popup in an applet in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 may optionally include memory located remotely from the processor 601, and these remote memories may be connected over a network to the electronic device of the method of menu pop-up in an applet. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method of menu popup in an applet may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the method of menu pop-up in the applet, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the menu is popped up after the fact that the user long-presses the picture in the applet is detected, the purpose of conveniently providing a plurality of functions related to the picture for the user is achieved, the operation steps of the user are simplified, and the operation efficiency of the user is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method of menu pop-up in an applet, comprising:
after detecting that a user generates a long press action in the applet, acquiring a long press position;
and responding to the fact that the long-press position is determined to have the picture, and popping up a menu corresponding to the picture.
2. The method of claim 1, wherein the determining that the long press position exists picture comprises:
acquiring the top view element at the long pressing position;
Determining whether the view element is an image component;
and if so, determining that the long-press position has a picture.
3. The method of claim 2, wherein the determining that the long press position exists picture comprises:
after determining that the view element is not an image component, determining whether the view element is an image tag;
and if so, determining that the long-press position has a picture.
4. The method of claim 3, wherein the determining that the long press position exists picture comprises:
after determining that the view element is not an image tag, determining whether the view element has a background picture;
and if so, determining that the long-press position has a picture.
5. The method of claim 1, wherein, in response to determining that a picture exists in the long-press position, popping up a menu corresponding to the picture comprises:
after determining that the long press position has the picture, determining whether a current component at the long press position is bound with a long press event;
in response to determining that the current component at the long press position is not bound to a long press event, popping up a menu corresponding to the picture.
6. The method of claim 5, wherein, in response to determining that a picture exists in the long-press position, popping up a menu corresponding to the picture comprises:
Determining whether an N-level parent component above the current component is bound with a long press event or not after determining that a picture exists in the long press position and the current component at the long press position is not bound with the long press event, wherein N is a positive integer;
and responding to the fact that the N-level parent components above the current component are not bound with the long-time press event, and popping up a menu corresponding to the picture.
7. An apparatus for menu popup in an applet, comprising:
the detection unit is used for acquiring a long press position after detecting that a user generates a long press action in the applet;
and the popup unit is used for responding to the fact that the long press position has the picture and popping up a menu corresponding to the picture.
8. The apparatus according to claim 7, wherein the popup unit, when determining that there is a picture in the long-press position, specifically performs:
acquiring the top view element at the long pressing position;
determining whether the view element is an image component;
and if so, determining that the long-press position has a picture.
9. The apparatus according to claim 8, wherein the popup unit, when determining that there is a picture in the long-press position, specifically performs:
after determining that the view element is not an image component, determining whether the view element is an image tag;
And if so, determining that the long-press position has a picture.
10. The apparatus according to claim 9, wherein the popup unit, when determining that there is a picture in the long-press position, specifically performs:
after determining that the view element is not an image tag, determining whether the view element has a background picture;
and if so, determining that the long-press position has a picture.
11. The apparatus according to claim 7, wherein the popup unit, when popping up a menu corresponding to the picture in response to determining that the long-press position has the picture, specifically performs:
after determining that the long press position has the picture, determining whether a current component at the long press position is bound with a long press event;
in response to determining that the current component at the long press position is not bound to a long press event, popping up a menu corresponding to the picture.
12. The apparatus according to claim 11, wherein the popup unit, when popping up a menu corresponding to the picture in response to determining that the long-press position has the picture, specifically performs:
determining whether an N-level parent component above the current component is bound with a long press event or not after determining that a picture exists in the long press position and the current component at the long press position is not bound with the long press event, wherein N is a positive integer;
And responding to the fact that the N-level parent components above the current component are not bound with the long-time press event, and popping up a menu corresponding to the picture.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202010621951.6A 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium Active CN111857488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010621951.6A CN111857488B (en) 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010621951.6A CN111857488B (en) 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111857488A true CN111857488A (en) 2020-10-30
CN111857488B CN111857488B (en) 2022-06-28

Family

ID=72988353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010621951.6A Active CN111857488B (en) 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111857488B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7565671B1 (en) * 2000-02-01 2009-07-21 Swisscom Mobile Ag System and method for diffusing image objects
US20110016378A1 (en) * 2004-11-29 2011-01-20 Ariel Inventions, Llc System and method of automatically identifying and marking hyperimages when displayed
CN102663056A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for displaying picture elements
CN110069734A (en) * 2017-08-16 2019-07-30 阿里巴巴集团控股有限公司 A kind of page assembly shows method and apparatus
CN110362248A (en) * 2019-06-19 2019-10-22 北京字节跳动网络技术有限公司 Control method, device, equipment and the medium of small routine side menu bar
CN110727383A (en) * 2019-09-18 2020-01-24 北京百度网讯科技有限公司 Touch interaction method and device based on small program, electronic equipment and storage medium
CN110827119A (en) * 2019-10-18 2020-02-21 用友网络科技股份有限公司 Information interaction system based on WeChat applet
CN111580879A (en) * 2020-04-30 2020-08-25 北京字节跳动网络技术有限公司 Applet running method and device, electronic equipment and computer storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7565671B1 (en) * 2000-02-01 2009-07-21 Swisscom Mobile Ag System and method for diffusing image objects
US20110016378A1 (en) * 2004-11-29 2011-01-20 Ariel Inventions, Llc System and method of automatically identifying and marking hyperimages when displayed
CN102663056A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for displaying picture elements
CN110069734A (en) * 2017-08-16 2019-07-30 阿里巴巴集团控股有限公司 A kind of page assembly shows method and apparatus
CN110362248A (en) * 2019-06-19 2019-10-22 北京字节跳动网络技术有限公司 Control method, device, equipment and the medium of small routine side menu bar
CN110727383A (en) * 2019-09-18 2020-01-24 北京百度网讯科技有限公司 Touch interaction method and device based on small program, electronic equipment and storage medium
CN110827119A (en) * 2019-10-18 2020-02-21 用友网络科技股份有限公司 Information interaction system based on WeChat applet
CN111580879A (en) * 2020-04-30 2020-08-25 北京字节跳动网络技术有限公司 Applet running method and device, electronic equipment and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHANWOO KIM ET AL.: "Robust DTW-based recognition algorithm for hand-held consumer devices [speech recognition]", 《2005 DIGEST OF TECHNICAL PAPERS. INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS, 2005. ICCE.》 *
没_有_人: "小程序-长按保存图片", 《HTTPS://WWW.JIANSHU.COM/P/E592E9B28192》 *

Also Published As

Publication number Publication date
CN111857488B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN111586128B (en) Method, device, equipment and storage medium for acquiring applet data
CN111475259B (en) Applet loading method and device and electronic equipment
US11175823B2 (en) Method and apparatus for controlling terminal device using gesture control function, and non-transitory computer-readable storage medium
CN111158799A (en) Page rendering method and device, electronic equipment and storage medium
CN110992112B (en) Advertisement information processing method and device
US20180284951A1 (en) Gui configuration
CN113158098A (en) Page generation method, device, equipment and medium
US11361453B2 (en) Method and apparatus for detecting and tracking target, electronic device and storage media
CN110727383A (en) Touch interaction method and device based on small program, electronic equipment and storage medium
CN111966471B (en) Access method, device, electronic equipment and computer storage medium
CN111985760B (en) Data content evaluation method and device, electronic equipment and storage medium
CN111596897B (en) Code multiplexing processing method and device and electronic equipment
CN111708653B (en) Memory fault processing method and device, electronic equipment and storage medium
CN112163143A (en) Page switching method, device, equipment and storage medium
CN112162800A (en) Page display method and device, electronic equipment and computer readable storage medium
CN111857488B (en) Method and device for popping up menu in applet, electronic equipment and storage medium
CN113655906A (en) Folding screen control method and device
CN111506499B (en) Method and device for detecting availability of parameters in applet and electronic equipment
CN111651229A (en) Font changing method, device and equipment
CN111352685A (en) Input method keyboard display method, device, equipment and storage medium
CN112379954A (en) Data processing method, device and equipment of application program and storage medium
CN112346512A (en) Time synchronization method and device
CN112836153A (en) Page processing method and device for hosted application, electronic device and readable storage medium
CN111290912A (en) Single-page application performance monitoring method and device and electronic equipment
CN115145730B (en) Operation monitoring method and device, electronic equipment and storage medium

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