WO2021159950A1 - 标签显示方法、设备以及计算机可读介质 - Google Patents
标签显示方法、设备以及计算机可读介质 Download PDFInfo
- Publication number
- WO2021159950A1 WO2021159950A1 PCT/CN2021/073712 CN2021073712W WO2021159950A1 WO 2021159950 A1 WO2021159950 A1 WO 2021159950A1 CN 2021073712 W CN2021073712 W CN 2021073712W WO 2021159950 A1 WO2021159950 A1 WO 2021159950A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- label
- application
- display
- displayed
- interface
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 61
- 238000007667 floating Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 17
- 230000001960 triggered effect Effects 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 25
- 230000006870 function Effects 0.000 description 16
- 230000002452 interceptive effect Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 7
- 101100055496 Arabidopsis thaliana APP2 gene Proteins 0.000 description 3
- 101100016250 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GYL1 gene Proteins 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000670 limiting effect Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 101150053844 APP1 gene Proteins 0.000 description 2
- 101100189105 Homo sapiens PABPC4 gene Proteins 0.000 description 2
- 102100039424 Polyadenylate-binding protein 4 Human genes 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000036961 partial effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
Definitions
- This application relates to the field of information technology, and in particular to a label display method, device and computer readable medium.
- labels are usually set in the interactive interface of an application to facilitate the user to switch between the functions corresponding to different labels.
- FIG. 1 shows an interactive interface of an application program that uses a bottom label.
- a fixed area 110 is provided at the bottom of the interactive interface as a label bar, and all labels are fixedly displayed in the label bar.
- the bottom label can include "weather”, “real view”, “member”, “me”, etc., where the "weather” label is used to switch to the weather information display interface, and the "real view” label is used to switch To the display interface of the real-time scenery, the "Member” tab is used to switch to the display interface of the member function of the weather application, and the “Me” tab is used to display the display interface of the current user's personal information.
- this kind of label display method can realize fast switching between different functions in the application, because the position of the label display is fixed, users will have a lot of inconveniences in actual use, especially with the split-screen mode of smart terminal devices. Widely used, the same screen of a device may be able to display windows of multiple applications at the same time, so the label displayed in a fixed position is easily obscured by other applications, which is inconvenient to operate.
- FIG. 2 Take Figure 2 as an example.
- the window of the application APP1 will block the application APP2.
- a partial area of the window forms a shielding area 210.
- the bottom labels in the application APP2 will be in the occluded area, thereby affecting the user's normal operation of these labels.
- One purpose of this application is to provide a label display method, device and computer readable medium.
- some embodiments of the present application provide a label display method, wherein the method includes:
- the display position of the second label is updated according to the operation position information corresponding to the label movement operation.
- an embodiment of the present application also provides a label display device, which includes a memory for storing computer program instructions and a processor for executing computer program instructions, wherein when the computer program instructions are executed by the processor , Triggering the device to execute the label display method.
- the embodiments of the present application also provide a computer-readable medium on which computer program instructions are stored, and the computer-readable instructions can be executed by a processor to implement the label display method.
- Some embodiments of the present application provide a label display solution.
- the solution first displays the first label in a preset position of the application, and when the first trigger operation is detected, the first label is hidden and the second label is displayed.
- Label, and the display position of the second label can be updated according to the operation position information corresponding to the label movement operation, where the first label corresponds to the label displayed in a fixed position in the existing solution, and the second label is a
- Figure 1 is a schematic diagram of the interactive interface of an application that uses a bottom label
- Figure 2 is a schematic diagram of the window layout of two applications in split-screen mode
- FIG. 3 is a processing flowchart of a label display method provided by an embodiment of the application.
- FIG. 4 is a schematic diagram when the first label is displayed at the bottom of the interface in an embodiment of the application
- FIG. 5 is a schematic diagram of an interface when freely moving labels in an embodiment of the application.
- FIG. 6 is a schematic diagram of the second label in an embodiment of the application when it is enlarged and displayed;
- FIG. 7 is a schematic diagram when the second label moves to the edge of the display window in the embodiment of the application.
- FIG. 8 is a schematic diagram of a key frame of the switching process when the label is displayed outside the application in the embodiment of the application;
- FIG. 9 is a schematic diagram of another key frame of the switching process when the label is displayed outside the application in the embodiment of the application.
- FIG. 10 is a schematic diagram of another key frame of the switching process when the label is displayed outside the application in the embodiment of the application;
- FIG. 11 is a schematic diagram of the interface during the process of moving the label when the label is displayed outside the application of the embodiment of the application;
- FIG. 12 is a schematic diagram of the interface after the label is moved when the label is displayed outside the application of the embodiment of the application;
- FIG. 13 is a schematic diagram of an interface when a second label is dragged to a selected object through a label movement operation in an embodiment of the application;
- FIG. 14 is a schematic diagram of an interface after a second application is set to a foreground running state in an embodiment of the application
- 15 is a schematic diagram of an interface when dragging a second label to a desktop icon through a label movement operation in an embodiment of the application;
- FIG. 16 is a schematic diagram of rearranging and displaying the remaining labels after the second label is moved out of the original label display area in the application in an embodiment of the application;
- FIG. 17 is a schematic structural diagram of a computing device for implementing label display provided by an embodiment of the application.
- both the terminal and the equipment serving the network include one or more processors (CPU), input/output interfaces, network interfaces, and memory.
- processors CPU
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
- RAM random access memory
- ROM read-only memory
- flash RAM flash memory
- Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
- the information can be computer-readable instructions, data structures, program modules, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassette type Magnetic tape, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
- PRAM phase change memory
- SRAM static random access memory
- DRAM dynamic random access memory
- RAM random access memory
- ROM read-only memory
- EEPROM electrically erasable programmable read-only memory
- flash memory or other memory technologies
- the first label corresponds to a label displayed in a fixed position in the existing solution
- the second label is a movable label that replaces the first label after being triggered. Therefore, the label can be moved freely under the condition of being compatible with the existing fixed display solution, which makes the display of the label more flexible, and solves the problem that the label is easily blocked in the split screen mode.
- the execution subject of this method may be user equipment capable of interacting with the user.
- the user equipment includes, but is not limited to, various terminal devices such as computers, mobile phones, tablets, and smart watches.
- FIG. 3 shows the processing flow of a label display method provided by an embodiment of the present application, and the method includes at least the following processing steps:
- Step S301 Display the first label at the preset position of the application program.
- the preset position is the position used to fix the display label in the interactive interface of the application.
- the preset position for displaying the first label is the label bar at the bottom of the interactive interface. , So the application can realize a fixed position label in the initial state.
- Figure 4 is a schematic diagram when a first tab tab1 is displayed at the bottom of the interface in a weather application.
- Step S302 When the first trigger operation is detected, hide the first label and display the second label.
- the first trigger operation is used to trigger the display switching between the first label and the second label, so that the display position of the label in the application program is switched from fixed display to automatically movable.
- the first label and the second label are labels that display the same content.
- the first label and the second label both display the content of the same function entry or navigation label, and the difference between the first label and the second label is The display position of the first label is fixed, and the display position of the second label can be changed with the user's label movement operation, thereby realizing the free movement of the label.
- the first trigger operation may be an operation in which the user clicks a preset trigger button or a preset interaction area.
- the trigger operation may also be a preset gesture operation.
- the actual scene may include but is not limited to the following types: the user's floating operation gesture above the interactive interface, the user's contact operation gesture on the interactive interface, and the user interacting In the interface display state, it drives the movement trend of the user's equipment, etc.
- the hovering operation gesture of the user above the interactive interface may refer to the hovering sliding track of the user above the interactive interface displayed on the user equipment within the collection range of the image sensor of the user equipment.
- the image sensor may be a Charge Coupled Device (CCD) sensor, or may also be a Complementary Metal-Oxide Semiconductor (CMOS) sensor, which is not particularly limited in this embodiment.
- CMOS Complementary Metal-Oxide Semiconductor
- the suspended sliding trajectory may include, but is not limited to, a straight line or a curve of any shape composed of a number of stay points corresponding to a number of continuous sliding events, which is not particularly limited in this embodiment.
- the user's contact operation gesture on the interactive interface may refer to the user's contact sliding track on the interactive interface displayed on the user equipment.
- user equipment can be divided into two types according to whether the display device has the characteristics of touch input.
- One type is a touch-sensitive device, and the other type is a non-touch-type device.
- the user's contact operation gesture on the business card display interface displayed on the touch screen of the touch-sensitive device can be specifically detected.
- the contact sliding trajectory may include, but is not limited to, a straight line composed of a plurality of touch points corresponding to a plurality of continuous touch events or a curve of any shape, which is not particularly limited in this embodiment.
- it can be a user sliding operation in one direction on the interactive interface of the host application.
- the movement trend of the user equipment driven by the user in the interactive interface display state may refer to that the user holds the user equipment in hand, and when the user equipment displays the interactive interface, it drives the movement trajectory of the user equipment, such as shaking, flipping, and moving along a specific Trajectory movement, etc.
- Step S303 Update the display position of the second label according to the operation position information corresponding to the label movement operation.
- the operation position information can be determined according to the label movement operation subsequently input by the user, and the display position of the second label can be updated in real time based on the operation position information.
- the display position can change in real time with the user's label movement operation, so as to achieve the effect of freely moving the label.
- the tag movement operation may be a sliding operation of the user's finger on the touch screen, and the current contact position between the finger and the touch screen is the current operation position information, so that the second tag can be displayed at the position of the finger in real time.
- FIG. 5 is a schematic diagram of the interface when the first tab tab1 is hidden and the second tab tab2 is moved to the position where the user's finger touches.
- the second label Since the first label corresponds to the label displayed at a fixed position in the existing solution, and the second label is a movable label that replaces the first label after being triggered, it can be freely compatible with the existing fixed display solution. Move the label to make the display of the label more flexible.
- the second label can still be moved freely, so the solution is In the split screen mode, the label is easy to be obscured.
- the second label when a second trigger operation is detected, the second label may be hidden and the first label may be displayed.
- the second trigger operation corresponds to the first trigger operation, and is used to switch the display mode to the initial state, that is, switch from a freely movable mode to a fixed display mode.
- the specific form of the second trigger operation may be similar to the first trigger operation, and may be an operation in which the user clicks a preset trigger button or a preset interaction area, or a preset gesture operation.
- the labels in most applications will be displayed in several specific interfaces. For example, some applications will display the labels in the first interface after opening, and some applications will display the labels in the specific function.
- the label is displayed on the interface. Therefore, in the process of using the application, if the user enters another interface that does not display the label, he needs to operate the label. At this time, he must return to the interface with the label before completing the operation on the label. Very inconvenient.
- both the first label and the second label may be view components with label information.
- the first label can be recorded as the first view component
- the second label can be recorded as the second view component.
- the view component can be a View object, that is, two View objects are used to extend the label. Display method.
- the floating layer is a function provided by the operating system of the user equipment. The function of creating a floating layer can be obtained by obtaining the floating layer permission of the operating system. After an application obtains the floating layer permission, it can be displayed on the user device.
- the upper layer of the interface creates a floating layer for displaying labels. Therefore, no matter the user enters any interface of the application, the label will be displayed on the top layer of the display interface, and the user can operate it at any time, making the user's operation of the label more flexible and simple, and improving the user experience.
- the application When the application is started for the first time, it is requested to obtain the floating layer permissions of the operating system, so that the application can call the floating layer permissions of the operating system, thereby creating the floating layer, and displaying the view components with label information in the floating layer.
- the execution process of the label movement operation refers to the interval after the label movement operation starts and before the execution ends.
- the execution process of the label movement operation refers to the interval after the label movement operation starts and before the execution ends.
- the specific form of the highlight display may be an enlarged display, that is, during the execution of the label movement operation, the second label is enlarged and displayed, and after the execution of the label movement operation is completed , The second label is displayed normally.
- Fig. 6 shows a schematic diagram when the second label is enlarged and displayed.
- the specific forms highlighted above are only examples, and other existing or future forms based on similar principles that can be applied to this application should also be included in the scope of protection of this application. And included here in the form of reference. For example, it can also display the trajectory of the movement of the second label, increase the flickering effect, change the color of the second label, etc., in addition, it is also possible to combine multiple specific forms of highlighting.
- the operation of pressing and sliding a finger on the touch screen is a label movement operation that is more in line with the user's habits. Therefore, in this scenario, based on the event type of the obtained MotionEvent (touch event), it can be judged whether the current state is during the execution of the label movement operation or after the execution of the label movement operation ends. Then it is determined whether the second label needs to be highlighted.
- the user presses and slides the finger on the touch screen to move the label it will correspond to three stages: 1. Press the finger, 2. Continue to slide the finger on the touch screen, and 3. Lift the finger.
- the event types of the MotionEvent corresponding to these three stages are ACTION_DOWM, ACTION_MOVE, and ACTION_UP.
- the event type of the MotionEvent corresponding to the label movement operation can be obtained.
- the event type is judged; when the event type of MotionEvent is ACTION_MOVE, the second label is highlighted; when the event type of MotionEvent is ACTION_UP, the second label is displayed normally.
- the label display area can rearrange the display positions of the remaining 4 labels to make them evenly centered, as shown in Figure 16.
- the rearrangement display can be triggered by the user's label movement operation of the second label. After one execution of the label movement operation ends, that is, the second label returns from the highlighted state to the normal display state based on the label movement operation. After that, it is determined whether the second label has moved out of the original label display area, and if it has been moved out, the remaining labels are rearranged and displayed.
- a more flexible label display method can also be provided, that is, the label of the application program is displayed outside the application.
- the label display method provided by the embodiment of the present application, it is also possible to determine whether to trigger the out-of-app display state according to the operation position information corresponding to the label movement operation, and when the out-of-app display state is triggered, The application program is set to the background running state, and when the application program is set to the background running state, the second label is displayed.
- the interface of the application program will not be displayed on the screen, but hidden and run in the background of the system.
- the screen of the device can display the system desktop or the interface of other application programs, thereby realizing that the label of the application program is displayed on the system desktop or the interface of other application programs, realizing out-of-application display.
- the moveTaskToBack() method can be called to set the application to a background running state.
- the second label is a view component with label information, and the view component is displayed in the floating layer by adding to the WindowManager interface. Therefore, when the application is hidden and runs in the background of the system, The second label can still be displayed normally in the floating layer on the upper layer of the current interface, thereby smoothly implementing the out-of-application display of the label.
- the out-of-app display state When judging whether the out-of-app display state is triggered according to the operation position information corresponding to the label movement operation, it can be judged whether the current operation position is in the edge area of the display window of the application according to the operation position information corresponding to the label movement operation.
- the current operating position is at the edge area of the display window of the application program, and the out-of-application display state is triggered. Conversely, if the current operating position is not in the edge area of the display window of the application program, the out-of-application display state is not triggered, but the display position of the second label is updated in real time in the interface within the application program.
- Figure 11 shows the zoom in during the execution of the label movement operation in the out-of-app display state.
- a schematic diagram of displaying the second label and
- FIG. 12 is a schematic diagram of normally displaying the second label after the execution of the label moving operation is completed in the external display state.
- the processing flow may include the following steps:
- Step 1 After starting the application, check the permissions. If the floating layer permissions are not obtained, request the floating layer permissions.
- Step 2 Call the onCreate() method of the application to obtain the WindowManager interface, set the WindowManager interface, and set the flag attribute of the LayoutParams of the View class and related layout information such as width and height. Among them, set the flag attribute of LayoutParams to:
- Step 3 Create a View object with label information, add it to the WindowManager interface through the addView() method, so that it can be displayed in the floating layer above the interface.
- the display View object is the label.
- there are two labels added to the label namely the first label tab1 and the second label tab2.
- Step 4 For the form displayed in the app, press and hold the position of the fixed tab tab1 with your finger to move it. After listening to the finger sliding, hide the View object corresponding to the first tab tab1, and then display the View object corresponding to the second tab tab2, and monitor the touch event at the same time.
- the ACTION_MOVE event is monitored, the View object corresponding to tab2 is continuously updated At the same time, zoom in the View object so that the View object can move with the gesture.
- the ACTION_UP event can be monitored, and the View object corresponding to the second tab tab2 is restored to its original size. At this point, the user can operate the current interface at will, or open other interfaces through the current interface for operation.
- the second tab tab2 is still displayed at the top level of the application, and is not affected by the application interface switching.
- Step 5 For the form displayed outside the application, when the View object corresponding to the second tab tab2 is moved to the four edge areas of the current window, the application is placed in the background of the system by calling the moveTaskToBack() method. Since the View object is added to the WindowManager interface for display in the floating layer, the application can still be displayed normally after switching to the background running state. At this time, clicking on the label information contained in the View object can jump to the interface corresponding to the label. Realize the out-of-application display of the label.
- the selected object corresponding to the second application when the first application is running in the background, the selected object corresponding to the second application may also be displayed.
- the first application is the application to which the second tab belongs
- the second application is the application running in the background
- the selected object corresponding to the second application can be arbitrarily displayed on the interface, which can indicate
- the interface element of the second application program running in the background may be, for example, an interface thumbnail of the second application program.
- the second application program may include the first application program that is already running in the background.
- the display position of the second label can still be updated in real time according to the user's label movement operation, so that the selected second application can be determined according to the display position of the second label and the display position of the selected object, and then The selected second application is set to the foreground running state, and the second label is displayed on the interface of the second application.
- the selected second application When determining the selected second application according to the display position of the second label and the display position of the selected object, it can be determined whether the display position of the second label overlaps with the display position of the selected object, if Overlapping means that the user drags the second label to the selected object corresponding to a second application, which can mean that the second application is selected.
- the selected second application can be set to the foreground running state, and the second tab is displayed on the interface of the second application, so that any background running application can be reopened to the second tab through the second tab.
- the foreground while continuing to display the second label in the interface of the application running in the foreground.
- the selected objects 1310, 1320, and 1330 are respectively the interface thumbnails of the three second applications.
- the desktop of the operating system may be displayed.
- the first application is the application to which the second tab belongs, and the icon of the third application is displayed on the desktop, where the third application may be any application installed in the operating system of the user equipment, After these applications are installed, their icons will be displayed on the desktop of the operating system for users to click to start.
- the display position of the second label can still be updated in real time according to the user's label movement operation, so that the selected third label can be determined according to the display position of the second label and the display position of the icon of the third application.
- application When determining the selected third application according to the display position of the second label and the display position of the icon of the third application, the display position of the second label and the display position of the icon of the third application can be determined Whether they are overlapped, if they overlap, it means that the user drags the second label to the icon of a third application program, which may indicate the selection of the third application program. At this time, the selected third application may be started, and the second label may continue to be displayed on the interface of the third application. As shown in FIG. 14, when the user drags the second tab tab2 to one of the icons on the desktop through the tab moving operation, the application corresponding to the icon can be started, and the second tab can be displayed on the interface of the application.
- an embodiment of the present application also provides a label display device.
- the method corresponding to the device is the label display method in the foregoing embodiment, and the principle of solving the problem is similar to the method.
- the device includes a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the aforementioned label display method.
- the first label corresponds to the label displayed in a fixed position in the existing solution
- the second label is a movable label that replaces the first label after being triggered.
- the label can be moved freely under the condition of being compatible with the existing fixed display solution, which makes the display of the label more flexible and solves the problem that the label is easily blocked in the split screen mode.
- the label display device may be a user device capable of interacting with a user, and the user device includes, but is not limited to, various terminal devices such as computers, mobile phones, tablets, smart watches, and so on.
- FIG. 17 shows the structure of a device suitable for implementing the method and/or technical solution in the embodiments of the present application.
- the device 1700 includes a central processing unit (CPU, Central Processing Unit) 1701, which can be stored in a read-only The program in the memory (ROM, Read Only Memory) 1702 or the program loaded from the storage part 1708 to the random access memory (RAM, Random Access Memory) 1703 performs various appropriate actions and processing. In RAM 1703, various programs and data required for system operation are also stored.
- the CPU 1701, the ROM 1702, and the RAM 1703 are connected to each other through a bus 1704.
- An input/output (I/O, Input/Output) interface 1705 is also connected to the bus 1704.
- the following components are connected to the I/O interface 1705: the input part 1706 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; including a cathode ray tube (CRT, Cathode Ray Tube), a liquid crystal display (LCD, Liquid Crystal Display), The output part 1707 of LED display, OLED display, etc. and speakers, etc.; the storage part 1708 including one or more computer-readable media such as hard disks, optical disks, magnetic disks, semiconductor memory, etc.; and including LAN (Local Area Network, Local Area Network) cards, The communication part 1709 of a network interface card such as a modem. The communication section 1709 performs communication processing via a network such as the Internet.
- the input part 1706 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.
- CTR cathode ray tube
- LCD Liquid Crystal Display
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program is executed by the central processing unit (CPU) 1701, it executes the above-mentioned functions defined in the method of the present application.
- the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
- the computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- the computer-readable medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
- This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
- the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
- the computer program code used to perform the operations of the present application can be written in one or more programming languages or a combination thereof.
- the programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional The procedural programming language-such as "C" language or similar programming language.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
- LAN local area network
- WAN wide area network
- Internet service provider for example, using an Internet service provider to pass Internet connection.
- each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
- the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-oriented system that performs specified functions or operations. Or it can be realized by a combination of dedicated hardware and computer instructions.
- the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist alone without being assembled into the device.
- the aforementioned computer-readable medium carries one or more computer-readable instructions, which can be executed by a processor to implement the aforementioned methods and/or technical solutions of the multiple embodiments of the present application.
- some embodiments of the present application provide a label display solution.
- the solution first displays the first label in a preset position of the application, and hides the first label when the first trigger operation is detected.
- display the second label, and the display position of the second label can be updated according to the operation position information corresponding to the label movement operation, wherein the first label corresponds to the label displayed in the fixed position in the existing solution, and
- the second label is a movable label that replaces the first label after being triggered. Therefore, the label can be moved freely while being compatible with the existing fixed display solution, making the display of the label more flexible, and solving the problem that the label is easy to be displayed in the split screen mode.
- the problem of occlusion is a label display solution.
- this application can be implemented in software and/or a combination of software and hardware.
- it can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device.
- ASIC application specific integrated circuit
- the software program of the present application may be executed by a processor to realize the above steps or functions.
- the software program (including related data structure) of the present application can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drive or floppy disk and similar devices.
- some steps or functions of the present application may be implemented by hardware, for example, as a circuit that cooperates with a processor to execute each step or function.
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
Description
Claims (14)
- 一种标签显示方法,其中,该方法包括:在应用程序的预设位置显示第一标签;在检测到第一触发操作时,隐藏所述第一标签,并显示第二标签;根据标签移动操作对应的操作位置信息,更新所述第二标签的显示位置。
- 根据权利要求1所述的方法,其中,该方法还包括:在所述标签移动操作的执行过程中,突出显示所述第二标签,并在所述标签移动操作的执行结束后,正常显示所述第二标签。
- 根据权利要求2所述的方法,其中,所述突出显示为放大显示。
- 根据权利要求2所述的方法,其中,在所述标签移动操作的执行过程中,突出显示所述第二标签,并在所述标签移动操作的执行结束后,正常显示所述第二标签,包括:获取标签移动操作对应的MotionEvent的事件类型;当MotionEvent的事件类型为ACTION_MOVE时,突出显示所述第二标签;当MotionEvent的事件类型为ACTION_UP时,正常显示所述第二标签。
- 根据权利要求1所述的方法,其中,该方法还包括:根据标签移动操作对应的操作位置信息,判断是否触发应用外显示状态;当触发应用外显示状态时,将所述应用程序设置为后台运行状态,并在所述应用程序处于后台运行状态时,显示第二标签。
- 根据权利要求5所述的方法,其中,该方法还包括:在第一应用程序处于后台运行状态时,显示第二应用程序对应的选取对象,所述第一应用程序为第二标签所属的应用程序,所述第二应用程序为处于后台运行状态的应用程序;根据所述第二标签的显示位置与所述选取对象的显示位置,确定选中的第二应用程序;将选中的第二应用程序设置为前台运行状态,并在所述第二应用程序的界面中显示所述第二标签。
- 根据权利要求5所述的方法,其中,该方法还包括:在第一应用程序处于后台运行状态时,显示操作系统的桌面,所述第一应用程序为第二标签所属的应用程序,所述桌面上显示有第三应用程序的图标;根据所述第二标签的显示位置与第三应用程序的图标的显示位置,确定选中 的第三应用程序;启动选中的第三应用程序,并在所述第三应用程序的界面中显示所述第二标签。
- 根据权利要求4所述的方法,其中,根据标签移动操作对应的操作位置信息,判断是否触发应用外显示状态,包括:根据标签移动操作对应的操作位置信息,判断当前的操作位置是否处于所述应用程序的显示窗口的边缘区域;若当前的操作位置处于所述应用程序的显示窗口的边缘区域,则触发应用外显示状态。
- 根据权利要求4所述的方法,其中,当触发应用外显示状态时,将所述应用程序设置为后台运行状态,包括:当触发应用外显示状态时,调用moveTaskToBack()方法将所述应用程序设置为后台运行状态。
- 根据权利要求1所述的方法,其中,该方法还包括:在检测到第二触发操作时,隐藏所述第二标签,并显示所述第一标签。
- 根据权利要求1至10中任一项所述的方法,其中,所述第一标签为具有标签信息的第一视图组件,所述第二标签为具有视图标签的第二视图组件,所述第一视图组件和第二视图组件通过添加至WindowManager接口在浮层中进行显示。
- 根据权利要求11所述的方法,其中,该方法还包括:在首次启动应用程序时,请求获取操作系统的浮层权限。
- 一种标签显示设备,该设备包括用于存储计算机程序指令的存储器和用于执行计算机程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述设备执行权利要求1至12中任一项所述的方法。
- 一种计算机可读介质,其上存储有计算机程序指令,所述计算机可读指令可被处理器执行以实现如权利要求1至12中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010087438.3 | 2020-02-11 | ||
CN202010087438.3A CN111338520B (zh) | 2020-02-11 | 2020-02-11 | 标签显示方法、设备以及计算机可读介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021159950A1 true WO2021159950A1 (zh) | 2021-08-19 |
Family
ID=71182648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/073712 WO2021159950A1 (zh) | 2020-02-11 | 2021-01-26 | 标签显示方法、设备以及计算机可读介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111338520B (zh) |
WO (1) | WO2021159950A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111338520B (zh) * | 2020-02-11 | 2021-06-25 | 上海掌门科技有限公司 | 标签显示方法、设备以及计算机可读介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663056A (zh) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | 一种图片元素显示方法和装置 |
CN107025034A (zh) * | 2016-02-02 | 2017-08-08 | 优信拍(北京)信息科技有限公司 | 应用程序启动方法及装置 |
US20180041459A1 (en) * | 2004-03-31 | 2018-02-08 | Google Inc. | Email conversation management system |
CN111338520A (zh) * | 2020-02-11 | 2020-06-26 | 上海掌门科技有限公司 | 标签显示方法、设备以及计算机可读介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7437682B1 (en) * | 2003-08-07 | 2008-10-14 | Apple Inc. | Icon label placement in a graphical user interface |
CN103246668A (zh) * | 2012-02-08 | 2013-08-14 | 腾讯科技(深圳)有限公司 | 一种浏览器工具栏调整方法及装置 |
CN107092471A (zh) * | 2016-07-27 | 2017-08-25 | 阿里巴巴集团控股有限公司 | 一种功能按钮显示方法和装置 |
CN108810605A (zh) * | 2018-03-16 | 2018-11-13 | 青岛海信电器股份有限公司 | 系列标签中单个标签的位置调整方法及显示终端 |
CN109783748B (zh) * | 2018-12-10 | 2024-05-03 | 平安科技(深圳)有限公司 | 显示字段的显示方法、装置、设备及可读存储介质 |
-
2020
- 2020-02-11 CN CN202010087438.3A patent/CN111338520B/zh active Active
-
2021
- 2021-01-26 WO PCT/CN2021/073712 patent/WO2021159950A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180041459A1 (en) * | 2004-03-31 | 2018-02-08 | Google Inc. | Email conversation management system |
CN102663056A (zh) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | 一种图片元素显示方法和装置 |
CN107025034A (zh) * | 2016-02-02 | 2017-08-08 | 优信拍(北京)信息科技有限公司 | 应用程序启动方法及装置 |
CN111338520A (zh) * | 2020-02-11 | 2020-06-26 | 上海掌门科技有限公司 | 标签显示方法、设备以及计算机可读介质 |
Non-Patent Citations (1)
Title |
---|
BEI DAI MA YAN MO DE XIAO HUO ZI [THE GUY OVERWHELMED BY CODE]: "Imitation NetEase News Tag Selector (Draggable) - TabMoveLayout", BLOG CSDN, CN, pages 1 - 10, XP009529728, Retrieved from the Internet <URL:https://blog.csdn.net/sdfdzx/article/details/70230959> * |
Also Published As
Publication number | Publication date |
---|---|
CN111338520B (zh) | 2021-06-25 |
CN111338520A (zh) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109164964B (zh) | 内容分享方法、装置、终端及存储介质 | |
AU2017200737B2 (en) | Multi-application environment | |
US10205985B2 (en) | Management of the channel bar | |
CN108804190B (zh) | 用户界面显示方法、装置、终端及存储介质 | |
WO2021052255A1 (zh) | 热点推荐弹窗的控制方法、装置、介质及电子设备 | |
US9104440B2 (en) | Multi-application environment | |
US20170300151A1 (en) | Management of the channel bar | |
US20180024730A1 (en) | Custom widgets based on graphical user interfaces of applications | |
WO2021052256A1 (zh) | 弹窗的控制方法、装置、介质及电子设备 | |
WO2023024921A1 (zh) | 视频交互方法、装置、设备及介质 | |
WO2021073327A1 (zh) | 窗口显示方法、装置、终端及存储介质 | |
TW201617839A (zh) | 光解離管理器 | |
WO2022179409A1 (zh) | 控件显示方法、装置、设备及介质 | |
WO2021159950A1 (zh) | 标签显示方法、设备以及计算机可读介质 | |
KR20130085146A (ko) | 애플리케이션 파일 재개와 그를 위한 스크린 캡처 방법 및 장치 | |
CN111209503A (zh) | 网页中弹窗的处理方法、装置、电子设备、及存储介质 | |
US20230289051A1 (en) | Interacting method and apparatus, device and medium | |
WO2021068964A1 (zh) | 窗口排列方法、装置、终端及存储介质 | |
CN111078112A (zh) | 终端设备控制方法、装置、计算机设备及存储介质 | |
CN110990095A (zh) | 寄宿应用展示方法、设备以及计算机可读介质 | |
WO2023125052A1 (zh) | 一种显示方法及相关装置 | |
WO2024046357A1 (zh) | 一种信息展示方法、装置、电子设备、计算机可读介质 | |
US12014019B2 (en) | Display method, apparatus and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21753364 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21753364 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.03.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21753364 Country of ref document: EP Kind code of ref document: A1 |