WO2017118329A1 - Method and apparatus for controlling tab bar - Google Patents
Method and apparatus for controlling tab bar Download PDFInfo
- Publication number
- WO2017118329A1 WO2017118329A1 PCT/CN2016/112552 CN2016112552W WO2017118329A1 WO 2017118329 A1 WO2017118329 A1 WO 2017118329A1 CN 2016112552 W CN2016112552 W CN 2016112552W WO 2017118329 A1 WO2017118329 A1 WO 2017118329A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- function
- control
- display area
- function control
- tab bar
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Definitions
- the present invention relates to the field of mobile terminal control, and in particular to a method and apparatus for controlling a tag bar.
- Tab bar Switch the tabs in the tab bar to switch between multiple functions, as shown in Figure 1.
- the display area of the tab bar is fixed, and the number of the function buttons displayed in the display area can be 2-5, and the common one is four.
- the function control that needs to be switched exceeds the screen operation, the function control to be switched needs to be displayed in the display area.
- the current similar function tab switching is triggered by sliding the tab bar plus the selection function to trigger the corresponding function control.
- the control function for example, completes the above switching function by the following two steps (levels) or above:
- the user in the shaking scene such as driving, subway, walking, can not perform precise operation of the function.
- the embodiment of the invention provides a method and a device for controlling a tab bar, so as to at least solve the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked to cause misoperation.
- a method for controlling a tab bar including: obtaining a display area of a tab bar in an application interface, wherein the tab bar includes: N function controls, i of the N function controls The function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected and dragged into the display The area obtains the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the first execution is performed.
- the task corresponding to the function control.
- a method for controlling a tab bar including: when an application interface displayed in the touch screen senses a drag event, determining whether the drag event occurs in a tab bar of the application interface.
- the display area, wherein the tab bar includes: a list of function controls, i function controls in the function control list are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; if the function control list is hidden A function control is dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs, the preset attribute is satisfied.
- the function page corresponding to the first function control is displayed in the application interface.
- a control device for a tab bar including: a first obtaining module, configured to acquire a display area of a tab bar in an application interface, where the tab bar includes: N functions
- the control, i function controls of the N function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N
- the second acquisition module is configured to detect the drag in the display area of the tab bar In the event, if it is detected that the hidden first function control is dragged into the display area, the attribute of the first function control and/or the operation attribute when the drag event occurs; the execution module is used if the attribute of the first function control and / If the operation attribute when the drag event occurs satisfies the preset trigger condition, the task corresponding to the first function control is executed.
- a control device for a tab bar including: a judging module, configured to determine whether a drag event occurs in an application when an application interface displayed in the touch screen senses a drag event
- the display area of the tab bar in the interface wherein the tab bar includes: a list of function controls, i function controls in the function control list are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; acquiring module, For if the first function control hidden in the function control list is dragged into the display area, the attribute of the first function control and/or the operation attribute when the drag event occurs; the display module is used for the attribute of the first function control And/or the operation attribute when the drag event occurs satisfies the preset trigger condition, and the function page corresponding to the first function control is displayed in the application interface.
- the display area of the tab bar in the application interface is acquired, and when the drag event is detected in the display area of the tab bar, if the hidden first function control is detected and dragged into the display area, the first is obtained.
- the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
- the solution provided by the present invention solves the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked by clicking to easily cause a misoperation.
- 1 is a logic diagram of a function switching according to the prior art
- FIG. 2(a) is a schematic diagram of a control method of a tab bar according to the prior art
- FIG. 2(b) is a schematic diagram of a control method of a tab bar according to the prior art
- 2(c) is a schematic diagram of a control method of a tab bar according to the prior art
- 2(d) is a schematic diagram of a control method of a tab bar according to the prior art
- FIG. 3 is a schematic diagram of a tab bar and a segmentation control according to the prior art
- FIG. 4 is a block diagram showing the hardware structure of a computer terminal for controlling a tab bar according to an embodiment of the present application
- FIG. 5 is a flowchart of a method for controlling a tab bar according to Embodiment 1 of the present application.
- FIG. 6(a) is a schematic diagram of a control method of a tab bar according to an embodiment of the present application.
- FIG. 6(b) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application.
- FIG. 7(a) is a schematic diagram of a control method of a tab bar according to an embodiment of the present application.
- FIG. 7(b) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application.
- FIG. 7(c) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application.
- FIG. 7(d) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application.
- FIG. 8 is a flowchart of a method for controlling a tab bar according to a second embodiment of the present application.
- FIG. 9 is a schematic diagram of a control device for a tab bar according to a third embodiment of the present application.
- FIG. 10 is a schematic diagram of an optional control device for a tab bar according to Embodiment 3 of the present application.
- FIG. 11 is a schematic diagram of an optional control device for a tab bar according to Embodiment 3 of the present application.
- FIG. 12 is a schematic diagram of an optional control device for a tab bar according to a third embodiment of the present application.
- FIG. 13 is a schematic diagram of an optional control device for a tab bar according to a third embodiment of the present application.
- FIG. 14 is a schematic diagram of a control device for a tab bar according to Embodiment 4 of the present application.
- FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present application.
- Tab bar generally located at the bottom of the phone, but does not exclude some special positions, such as: up and down, each option of the tab bar indicates different functions, here need to distinguish from segmented control (the segmentation control), the latter emphasizes The distinction between the different categories of the same function, the former is the distinction of different functions, as shown in Figure 3, box 31 in Figure 3 is segmented control, and box 32 is Tab bar. Since segmentedcontrol emphasizes the different categories of the same function, the content layout of the appearance page is usually the same. Tab bar emphasizes the distinction between different functions, usually corresponding to different views.
- the Tab bar generally has an icon or an icon plus a text title.
- the segmented control is a bit like a label, mainly a text display.
- an embodiment of a method for controlling a tab bar there is also provided an embodiment of a method for controlling a tab bar, and it should be noted that the steps shown in the flowchart of the drawing may be executed in a computer system such as a set of computer executable instructions, and Although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
- FIG. 4 is a hardware block diagram of a computer terminal of a method for controlling a tab bar according to an embodiment of the present application.
- computer terminal 40 may include one or more (only one shown) processor 402 (processor 402 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
- processor 402 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
- FIG. 4 is merely illustrative and does not limit the structure of the above electronic device.
- computer terminal 40 may also include more or fewer components than those shown in FIG. 4, or have a different configuration than that shown in FIG.
- the memory 404 can be used to store software programs and modules of the application software, such as program instructions/modules corresponding to the control method of the tab bar in the embodiment of the present invention, and the processor 402 executes by executing the software program and the module stored in the memory 404.
- Memory 404 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 404 can further include memory remotely located relative to processor 402, which can be connected to computer terminal 40 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Transmission device 406 is for receiving or transmitting data via a network.
- the above-described network specific examples may include a wireless network provided by a communication provider of the computer terminal 40.
- transmission device 406 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
- NIC Network Interface Controller
- the transmission device 406 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
- RF Radio Frequency
- FIG. 5 is a flowchart of a method for controlling a tab bar according to Embodiment 1 of the present application. As shown in FIG. 5, the foregoing method includes the following steps:
- Step S51 Obtain a display area of the tab bar in the application interface, where the tab bar includes: N function controls, and i function controls of the N function controls are displayed in the display area, and Ni function controls are hidden, and i is less than A natural number equal to N.
- the application interface may be a page displayed after the application software installed on the mobile terminal is opened, and the application software may be instant communication software, a music player or a navigation software, and the mobile terminal may be a smart phone (such as an Android mobile phone, The ios mobile phone, etc., the tablet device, the car navigation system and the like, but are not limited thereto, and are not specifically limited in the embodiment of the present application.
- the application software may be instant communication software, a music player or a navigation software
- the mobile terminal may be a smart phone (such as an Android mobile phone, The ios mobile phone, etc., the tablet device, the car navigation system and the like, but are not limited thereto, and are not specifically limited in the embodiment of the present application.
- the display area of the tab bar may be located at a lower portion of the application interface, and a fixed number of function buttons may be displayed in the display area according to the display area size of the tab bar, and the redundant function controls may be performed. Hidden, that is, not displayed in the display area.
- the label bar in the present application may include a function control list
- the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user.
- the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
- the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
- Step S53 When a drag event is detected in the display area of the tab bar, if it is detected that the hidden first function control is dragged into the display area, the attribute of the first function control and/or the operation attribute when the drag event occurs are acquired. .
- the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
- the acquisition function A enters the display area.
- the area and the duration of the user's gestures are shown in FIG. 6(b).
- Step S55 If the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the task corresponding to the first function control is executed.
- the system when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user.
- the page ie the display area above
- the page is sized to activate and run function A.
- the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar.
- the two functional controls of the control are still hidden. As shown in Figure 6 (a).
- the display area of the tab bar in the application interface is obtained, and when the drag event is detected in the display area of the tab bar, if the hidden first function control is detected, the hidden first function control is dragged into the display area.
- the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
- the solution of the first embodiment provided by the present application solves the technical problem that the display area of the tab bar layout is fixed in the prior art, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
- the above functional control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults Hide the controls used to create the new task and the controls used to close the current application function.
- the tab bar may include a function-one control for performing function one, a function two control for executing function two, and a function three control for executing function three for creating a new task.
- the create control and the close control for closing the task, and in the display state of the tab bar in the default state, the function one control, the function two control and the function three control are displayed, and the create control and the close control are hidden, and are not displayed in the tab bar. In the display area.
- step S53 before acquiring the attribute of the first function control and/or the operation attribute when the drag event occurs, the method further includes the following steps:
- Step S531 in the process of the drag event occurring in the tab bar, the coordinate position of each function control that is hidden is read in real time, wherein the coordinate position of each function control dynamically changes with the drag event.
- the setting function is performed.
- the coordinate value of the A control is X axis (-20, 0), Y axis (0, 20).
- the coordinates of the function A control start to move laterally, that is, the X axis coordinate starts to change.
- the Y-axis data remains unchanged.
- tab bar Tab bar when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X axis data remains unchanged; Drag and drop the center of the screen, and the X and Y axis coordinate data will change.
- step S533 it is determined whether the coordinate position of any one of the hidden function controls is within the range of the display area.
- Step S535 in a case where the coordinate position of the hidden first function control is within the range of the display area, it is determined that the first function control is dragged into the display area.
- the coordinate position of each hidden function control can be read, and the coordinate position of each hidden function control is determined. Entering the coordinate range of the display area of the tab bar, if the coordinate position of any hidden function control enters the coordinate range of the display area of the tab bar, it is determined that the hidden function control is dragged into the display area.
- the coordinate positions of the hidden function A control and the function B control are read in real time.
- the coordinate position of the function A control enters the coordinate range of the display area of the tab bar, and it is determined that the function A control is dragged into the display area.
- the attributes of the first function control include: a coincidence degree of the control area of the first function control and the display area, and/or a dwell time after the first function control is dragged into the display area.
- the coincidence degree of the display area of the function A control and the tab bar can be acquired, and the pause after the function A control is dragged into the display area time.
- step S55 if the attribute of the first function control satisfies the preset trigger condition, executing the task corresponding to the first function control includes the following steps:
- Step S551 reading the attribute of the first function control currently dragged into the display area.
- Step S553 determining the first function if the coincidence degree of the control area of the first function control and the display area exceeds a predetermined area, and/or the stay duration after the first function control is dragged into the display area exceeds the first predetermined time length The function of the control is triggered.
- the predetermined area may be 80% of the control area of the first functional control, and the first predetermined duration may be 5 seconds.
- Step S555 after the function of the first function control is triggered, the task corresponding to the first function control is executed by calling an execution function of the first function control.
- the function of the first function control is triggered and passed Calling the function corresponding to the first function control to execute the task corresponding to the first function control; if the coincidence degree does not exceed 80% of the control area, or the dwell time dragged into the display area does not exceed 5 seconds, the first function control is not executed.
- the function when the control area of the first function control overlaps with the display area by more than 80% of the control area, and the stay duration after being dragged into the display area exceeds 5 seconds, the function of the first function control is triggered and passed Calling the function corresponding to the first function control to execute the task corresponding to the first function control; if the coincidence degree does not exceed 80% of the control area, or the dwell time dragged into the display area does not exceed 5 seconds, the first function control is not executed. The function.
- the coordinate value of the function A control is set to the X axis (-20, 0), and the Y axis (0, 20).
- the function A control starts to move from left to right and reveals the screen, that is, the function A control enters the display area of the tab bar, and the area of the function A control exposes the screen occupies the function A control as a whole.
- the drag event triggers execution when 80% of the control area, that is, the control area of the function A control and the display area of the tab bar exceed 80% of the space area.
- the control area of the function A control can be obtained by displaying the absolute value of the coordinates: length multiplied by width.
- the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the drag event occurs.
- the duration of operation in the case where a drag event occurs in the display area by pressing the touch screen, the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the drag event occurs.
- step S55 if the operation attribute when the drag event occurs satisfies the preset trigger condition, executing the task corresponding to the first function control includes the following steps:
- Step S552 reading the currently detected pressing pressure and/or the operation duration when the drag event occurs after the first function control is dragged into the display area.
- step S554 if the currently detected pressing pressure exceeds the predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined time length, it is determined that the function of the first function control is triggered.
- the predetermined pressure value may be 5 Pa
- the second predetermined time may be 5 s.
- Step S556 after the function of the first function control is triggered, by calling the execution function of the first function control To perform the task corresponding to the first function control.
- the detected pressing pressure and the operation duration of the drag event are read, the pressing pressure exceeds 5 Pa, and the drag occurs.
- the operation time of the event is more than 5 seconds, the function of the first function control is triggered, and the task corresponding to the first function control is executed by calling a function corresponding to the first function control; if the pressing pressure does not exceed 5 Pa, or a drag occurs If the operation time of the event does not exceed 5 seconds, the task corresponding to the first function control is not executed.
- the function A control when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. That is, the function A control enters the display area of the tab bar, and when it is detected that the user presses and drags more than 5 Pa, the drag event triggers execution.
- the control area of the function A control can be obtained by displaying the absolute value of the coordinates: length multiplied by width.
- the above method further includes:
- Step S561 the list of function controls included in the tab bar is displayed horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in any position in the application interface; wherein, the first function control in the function control list When dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
- the tab bar can also be displayed on the left side of the application interface, and the function control is displayed vertically, and after the first function control is dragged into the display area, the display area is removed due to dragging.
- the second function control outside is hidden.
- the current page can be quickly closed by the above embodiment of the present application.
- a new tab page is opened; in the music player, the current play page or the like can be performed by the above embodiment of the present application; or during the driving process, the navigation page can be quickly accessed through the above embodiment of the present application.
- the initial state display function on the tab bar is a control, a function control, and a function control.
- Create control and close control hidden after the user opens webpage 1 and wants to open webpage 2, you can drag the creation control into the display area by dragging the tab bar to the right, as shown in Figure 7(a), creating the control area and label.
- the overlap of the column display area is greater than 80% of the area of the created control, the operation of quickly opening a new tab is performed, the webpage 2 is opened, and the tab bar is restored to the initial state, as shown in FIG. 7(b).
- the dragging control can be dragged into the display area by dragging the tab bar to the left. As shown in Fig.
- the overlap between the control area and the tab bar display area is greater than the closing control area.
- the operation of closing the current webpage is performed, the webpage 2 is closed to the webpage 1, and the tab bar is restored to the initial state, as shown in Fig. 7(d).
- the solution provided by the above embodiment of the present application can display functions and distinguish operations well by using the new interaction mode of dragging, which brings freshness to the user and reduces misoperation caused by small button space.
- the solution provided by the above embodiment of the present application does not require a click operation, but just press and hold the drag, and the system determines whether to trigger the function according to the exposed button area, and executes the function when the finger is released.
- the advantage of this is that when the user is unable to make precise operations on the small button under the shaking scene, such as walking, taking the subway, driving, the operation can be quickly performed according to the area by pressing and holding the sliding and returning operations. Tasks, greatly reducing the situation of misuse, bringing convenience to users.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- FIG. 8 is a flowchart of a method for controlling a tab bar according to Embodiment 2 of the present application. As shown in FIG. 8, the method includes the following steps:
- Step S81 when the application interface displayed on the touch screen senses the drag event, determine whether the drag event occurs in the display area of the tab bar in the application interface, where the tab bar includes: a function control list, and i in the function control list.
- the function controls are displayed in the display area, and Ni function controls are hidden, and i is a natural number less than or equal to N.
- the touch screen may be a touch screen installed on a smart phone (such as an Android mobile phone, an ios mobile phone, etc.), a tablet computer, a car navigation system, and the like, and the touch screen may display the application software installed on the mobile terminal after being opened.
- a smart phone such as an Android mobile phone, an ios mobile phone, etc.
- a tablet computer such as an iPad, Samsung Galaxy Tab, Samsung Galaxy Tab, etc.
- the touch screen may display the application software installed on the mobile terminal after being opened.
- the application interface is not limited to this, and is not specifically limited in the embodiment of the present application.
- the display area of the tab bar may be located at a lower portion of the application interface of the touch screen, and a fixed number of function buttons (buttons) may be displayed in the display area according to the size of the display area of the tab bar, and the redundant function control Can be hidden, that is, not displayed in the display area.
- the label bar in the present application may include a function control list
- the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user.
- the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
- the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
- Step S83 If the first function control hidden in the function control list is dragged into the display area, acquire the attribute of the first function control and/or the operation attribute when the drag event occurs.
- the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
- the acquisition function A enters the display area.
- the area and the duration of the user's gestures are shown in FIG. 6(b).
- Step S85 If the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the function page corresponding to the first function control is displayed in the application interface.
- the system when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user.
- the page ie the display area above
- the page is sized to activate and run function A.
- the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar.
- the two functional controls of the control are still hidden. As shown in Figure 6 (a).
- the application interface displayed on the touch screen senses a drag event
- the function control is dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs, if the attribute of the first function control and/or the operation attribute when the drag event occurs satisfies the preset trigger Condition, the function page corresponding to the first function control is displayed in the application interface.
- the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
- the solution of the foregoing embodiment 2 provided by the present application solves the technical problem that the display area of the tab bar layout is fixed in the prior art, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
- the function control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults The controls used to perform the creation of new tasks and the controls used to close the current application function are hidden.
- the tab bar may include a function-one control for performing the function one, a function two control for executing the function two, and a function three control for executing the function three for creating a new task.
- Create controls and use The close control of the task is closed, and the function one control, the function two control and the function three control are displayed in the display area of the tab bar by default, and the create control and the close control are hidden, and are not displayed in the display area of the tab bar.
- the display area of the tab bar is divided into a plurality of sub-areas, each of which displays an icon of a corresponding function control in the function control list, wherein the first function control in the function control list is dragged in When the area is displayed, the second function control displayed in the display area in the function control list is moved out of the display area.
- the tab bar can also be displayed on the left side of the application interface and the function controls are displayed vertically.
- the coordinate value of the function A control is set to the X axis (-20, 0), and the Y axis (0, 20).
- the coordinates of the function A control start to move laterally, that is, the X-axis coordinates start to change, and the Y-axis data remains unchanged.
- tab bar Tab bar when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X axis data remains unchanged; Drag and drop the center of the screen, and the X and Y axis coordinate data will change.
- the list of function controls included in the tab bar is displayed horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally at any position in the application interface.
- the second function control that is moved out of the display area due to dragging is hidden.
- the device includes: a first obtaining module 91, a second obtaining module 93, and executing Module 95.
- the first obtaining module 91 is configured to obtain a display area of the tab bar in the application interface, where the tab bar includes: N function controls, and i function controls of the N function controls are displayed in the display area, and Ni functions The control is hidden, and i is a natural number less than or equal to N.
- the application interface may be a page displayed after the application software installed on the mobile terminal is opened, and the application software may be instant communication software, a music player or a navigation software, and the mobile terminal may be a smart phone (such as an Android mobile phone, The ios mobile phone, etc., the tablet device, the car navigation system and the like, but are not limited thereto, and are not specifically limited in the embodiment of the present application.
- the application software may be instant communication software, a music player or a navigation software
- the mobile terminal may be a smart phone (such as an Android mobile phone, The ios mobile phone, etc., the tablet device, the car navigation system and the like, but are not limited thereto, and are not specifically limited in the embodiment of the present application.
- the display area of the tab bar may be located at a lower portion of the application interface, and a fixed number of function buttons may be displayed in the display area according to the display area size of the tab bar, and the redundant function controls may be performed. Hidden, that is, not displayed in the display area.
- the label bar in the present application may include a function control list
- the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user.
- the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
- the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
- the second obtaining module 93 is configured to: when the drag event is detected in the display area of the tab bar, if it is detected that the hidden first function control is dragged into the display area, acquire the attribute of the first function control and/or generate a drag event The operational properties of the time.
- the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
- the acquisition function A enters the display area.
- the area and the duration of the user's gestures are shown in FIG. 6(b).
- the execution module 95 is configured to execute a task corresponding to the first function control if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition.
- the task corresponding to the first function space is run.
- the system when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user.
- the page ie the display area above
- the page is sized to activate and run function A.
- the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar.
- the two functional controls of the control are still hidden. As shown in Figure 6 (a).
- the first obtaining module acquires the display area of the tab bar in the application interface, and when the drag event is detected in the display area of the tab bar, the second acquiring module detects the hidden A function control is dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs, if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset
- the execution module executes the task corresponding to the first function control.
- the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
- the solution of the foregoing embodiment 3 provided by the present application solves the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
- the above functional control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults Hide the controls used to create the new task and the controls used to close the current application function.
- the tab bar may include a function-one control for performing the function one, a function two control for executing the function two, and a function three control for executing the function three for creating a new task.
- the create control and the close control for closing the task, and in the display state of the tab bar in the default state, the function one control, the function two control and the function three control are displayed, and the create control and the close control are hidden, and are not displayed in the tab bar. In the display area.
- the foregoing apparatus further includes: a reading module 101, a determining module 103, and a determining module 105.
- the reading module 101 is configured to read the coordinate position of each hidden function control in real time during a drag event in the tab bar, wherein the coordinate position of each function control is dynamically moved along with the drag event.
- the determining module 103 is configured to determine whether the coordinate position of any one of the hidden function controls is within the range of the display area; the determining module 105 is configured to be within the range of the display area when the coordinate position of the hidden first function control is Next, make sure that the first function control is dragged into the display area.
- the modules are the same as the examples and application scenarios implemented by the corresponding steps, but not It is limited to the content disclosed in the above embodiment 1. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
- tab bar Tab bar when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X-axis data remains unchanged; Drag and drop to the center of the screen, and the X and Y axis coordinate data will change.
- the attributes of the first function control include: a coincidence degree of the control area of the first function control and the display area, and/or a dwell time after the first function control is dragged into the display area.
- the coincidence degree of the display area of the function A control and the tab bar can be acquired, and the pause after the function A control is dragged into the display area time.
- the execution module 95 includes: a first reading submodule 111, a first determining submodule 113, and a first calling submodule 115.
- the first reading sub-module 111 is configured to read the attribute of the first function control that is currently dragged into the display area; the first determining sub-module 113 is configured to exceed the overlap between the control area and the display area of the first function control. Determining that the function of the first function control is triggered if the predetermined area, and/or the length of stay after the first function control is dragged into the display area exceeds the first predetermined duration; the first calling sub-module 115 is used for the first function After the function of the control is triggered, the task corresponding to the first function control is executed by calling the execution function of the first function control.
- the predetermined area may be 80% of the control area of the first functional control, and the first predetermined duration may be 5 seconds.
- the first reading sub-module 111, the first determining sub-module 113 and the first calling sub-module 115 correspond to steps S551 to S555 in the first embodiment, and the foregoing modules and corresponding steps are implemented.
- the example is the same as the application scenario, but is not limited to the content disclosed in the first embodiment.
- the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
- the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the drag event occurs.
- the duration of operation in the case where a drag event occurs in the display area by pressing the touch screen, the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the drag event occurs.
- the execution module 95 further includes: a second reading submodule 121, a second determining submodule 123, and a second calling submodule 125.
- the second reading sub-module 121 is configured to read the currently detected pressing pressure and/or the operation duration when the drag event occurs after the first function control is dragged into the display area; the second determining sub-module 123 is configured to: In a case where the currently detected pressing pressure exceeds a predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined length of time, determining that the function of the first function control is triggered; the second calling sub-module 125 is configured to: After the function of the first function control is triggered, the task corresponding to the first function control is executed by calling the execution function of the first function control.
- the predetermined pressure value may be 5 Pa
- the second predetermined time may be 5 s.
- the second reading sub-module 121, the second determining sub-module 123, and the second calling sub-module 125 correspond to steps S552 to S556 in the first embodiment, and the foregoing modules and corresponding steps are implemented.
- the example is the same as the application scenario, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
- the device further includes: a display module 131.
- the display module 131 is configured to display the function control list included in the tab bar horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in any position in the application interface; wherein, in the function control list When the first function control is dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
- the above-mentioned display module 131 corresponds to the step S561 in the first embodiment.
- the above-mentioned module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
- the device includes: a judging module 141, an obtaining module 143, and a display module 145.
- the determining module 141 is configured to: when the application interface displayed in the touch screen senses the drag event, determine whether the drag event occurs in a display area of the tab bar in the application interface, where the tab bar includes: a function control list, a function control list
- the i function controls in the display area are displayed in the display area, Ni function controls are hidden, and i is a natural number less than or equal to N.
- the touch screen may be a touch screen installed on a smart phone (such as an Android mobile phone, an ios mobile phone, etc.), a tablet computer, a car navigation system, and the like, and the touch screen may display the application software installed on the mobile terminal after being opened.
- a smart phone such as an Android mobile phone, an ios mobile phone, etc.
- a tablet computer such as an iPad, Samsung Galaxy Tab, Samsung Galaxy Tab, etc.
- the touch screen may display the application software installed on the mobile terminal after being opened.
- the application interface is not limited to this, and is not specifically limited in the embodiment of the present application.
- the display area of the tab bar may be located at a lower portion of the application interface of the touch screen, and a fixed number of function buttons (buttons) may be displayed in the display area according to the size of the display area of the tab bar, and the redundant function control Can be hidden, that is, not displayed in the display area.
- the label bar in the present application may include a function control list
- the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user.
- the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
- the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
- the obtaining module 143 is configured to obtain an attribute of the first function control and/or an operation attribute when a drag event occurs if the first function control hidden in the function control list is dragged into the display area.
- the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
- the acquisition function A enters the display area.
- the area and the duration of the user's gestures are shown in FIG. 6(b).
- the display module 145 is configured to display the function page corresponding to the first function control in the application interface if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition.
- the system when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user.
- the page ie the display area above
- the page is sized to activate and run function A.
- the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar.
- the two functional controls of the control are still hidden. As shown in Figure 6 (a).
- the determining module 141 determines whether the drag event occurs in the display area of the tab bar in the application interface, if the function control list is hidden.
- the first function control is dragged into the display area, and the obtaining module 143 acquires the attribute of the first function control and/or the operation attribute when the drag event occurs, if the attribute of the first function control and/or the operation when the drag event occurs.
- the display module 145 displays the function page corresponding to the first function control in the application interface.
- the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
- the solution of the fourth embodiment provided by the present application solves the technical problem that the display area of the tab bar layout is fixed in the prior art, and the multiple function controls are clicked by clicking to easily cause a misoperation.
- the function control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults The controls used to perform the creation of new tasks and the controls used to close the current application function are hidden.
- the tab bar may include a function-one control for performing the function one, a function two control for executing the function two, and a function three control for executing the function three for creating a new task.
- the create control and the close control for closing the task, and in the display state of the tab bar in the default state, the function one control, the function two control and the function three control are displayed, and the create control and the close control are hidden, and are not displayed in the tab bar. In the display area.
- the display area of the tab bar is divided into a plurality of sub-areas, each of which displays an icon of a corresponding function control in the function control list, wherein the first function control in the function control list is dragged in When the area is displayed, the second function control displayed in the display area in the function control list is moved out of the display area.
- the tab bar can also be displayed on the left side of the application interface and the function controls are displayed vertically.
- the setting function is performed.
- the coordinate value of the A control is X axis (-20, 0), Y axis (0, 20).
- the coordinates of the function A control start to move laterally, that is, the X axis coordinate starts to change.
- the Y-axis data remains unchanged.
- tab bar Tab bar when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X axis data remains unchanged; Drag and drop the center of the screen, and the X and Y axis coordinate data will change.
- the list of function controls included in the tab bar is displayed horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally at any position in the application interface.
- the second function control that is moved out of the display area due to dragging is hidden.
- Embodiments of the present invention may provide a computer terminal, which may be any one of computer terminal groups.
- the foregoing computer terminal may also be replaced with a terminal device such as a mobile terminal.
- the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
- the computer terminal may execute the program code of the following steps in the vulnerability detection method of the application: acquiring a display area of the tab bar in the application interface, wherein the tab bar includes: N function controls, N function controls The i function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected Drag into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, then Execute the task corresponding to the first function control.
- FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
- the computer terminal A may include one or more (only one shown in the figure) processor 151, memory 153, and transmission device 155.
- the memory 153 can be used to store software programs and modules, such as the control method of the tab bar and the program instructions/modules corresponding to the device in the embodiment of the present invention.
- the processor 151 runs the software program stored in the memory. And modules, thereby performing various functional applications and data processing, that is, implementing the above-described control method of the tab bar.
- Memory 153 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 153 can further include memory remotely located relative to the processor, which can be connected to terminal A over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- the processor 151 can call the information and the application stored in the memory by the transmission device to perform the following steps: acquiring a display area of the tab bar in the application interface, where the tab bar includes: N function controls, and N function controls i function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected to be dragged in Display area, obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs meet the preset trigger condition, execute the first A function corresponding to a function control.
- the processor 151 may further execute the following program code: the function control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a current A control that applies a function, where the system hides the control used to create the new task and the control that closes the current application function by default.
- the processor 151 may further execute the following program code: in a process of generating a drag event in the tab bar, reading the coordinate position of each function control hidden in real time, where each function control is The coordinate position changes dynamically with the drag event; it is determined whether the coordinate position of any hidden function control is within the range of the display area; wherein the coordinate position of the hidden first function control is within the range of the display area In the case, it is determined that the first function control is dragged into the display area.
- the processor 151 may further execute the following program code: the attributes of the first function control include: a control area of the first function control and a display area, and/or the first function control is dragged into the display. The length of stay after the area.
- the processor 151 may further execute the following program code: reading an attribute of the first function control currently dragged into the display area; and a degree of coincidence between the control area of the first function control and the display area exceeds a predetermined area And/or if the stay duration after the first function control is dragged into the display area exceeds the first predetermined duration, determining that the function of the first function control is triggered; after the function of the first function control is triggered, by calling An execution function of a function control performs a task corresponding to the first function control.
- the processor 151 may further execute the following program code: triggering by pressing the touch screen
- the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the operation time when the drag event occurs.
- the processor 151 may further execute the following program code: reading the currently detected pressing pressure and/or the operation duration when the drag event occurs after the first function control is dragged into the display area; If the detected pressing pressure exceeds the predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined time length, determining that the function of the first function control is triggered; after the function of the first function control is triggered The task corresponding to the first function control is executed by calling an execution function of the first function control.
- the processor 151 may further execute the following program code: the list of function controls included in the tab bar is displayed horizontally in any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in the application interface. Position; wherein, when the first function control in the function control list is dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
- the display area of the tab bar in the application interface is obtained, and when the drag event is detected in the display area of the tab bar, if the hidden first function control is detected and dragged into the display area, the first function is obtained.
- the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
- the above solution provided by the present invention solves the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
- FIG. 15 is only an illustration, and the computer terminal can also be a smart phone (such as an Android mobile phone, an ios mobile phone, etc.), a tablet computer, a palmtop computer, and a mobile Internet device (Mobile Internet Devices, MID). ), PAD and other terminal devices.
- Fig. 15 does not limit the structure of the above electronic device.
- computer terminal A may also include more or fewer components (such as a network interface, display device, etc.) than shown in FIG. 15, or have a different configuration than that shown in FIG.
- the storage medium may include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be used to save the program code executed by the control method of the tab bar provided in the first embodiment.
- the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
- the storage medium is configured to store program code for performing the following steps: acquiring a display area of the tab bar in the application interface, wherein the tab bar includes: N function controls, N functions The i function controls in the control are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected Being dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs, the preset trigger condition is met, Then execute the task corresponding to the first function control.
- the storage medium is further configured to store program code for performing the following steps: the function control includes any one or more of the following types: a control for performing an application function, a control for executing a new task, and A control that closes the currently applied function, where the system hides the control used to create the new task and the control that closes the current application function by default.
- the function control includes any one or more of the following types: a control for performing an application function, a control for executing a new task, and A control that closes the currently applied function, where the system hides the control used to create the new task and the control that closes the current application function by default.
- the storage medium is further configured to store program code for performing the following steps: in the process of generating a drag event in the tab bar, reading the coordinate position of each function control hidden in real time, wherein each The coordinate position of the function control dynamically changes with the drag event; it is determined whether the coordinate position of any hidden function control is within the range of the display area; wherein the coordinate position of the hidden first function control is located in the display area In the case of the range, it is determined that the first function control is dragged into the display area.
- the storage medium is further configured to store program code for performing the following steps: the attributes of the first function control include: a control area of the first function control and a display area, and/or the first function control is The length of stay after dragging into the display area.
- the storage medium is further configured to store program code for performing the following steps: reading an attribute of the first function control currently dragged into the display area; and a degree of coincidence between the control area of the first function control and the display area If the predetermined area is exceeded, and/or the stay duration after the first function control is dragged into the display area exceeds the first predetermined length of time, determining that the function of the first function control is triggered; after the function of the first function control is triggered, By calling the first An execution function of a function control performs a task corresponding to the first function control.
- the storage medium is further configured to store program code for performing the following steps: in the case of triggering a drag event occurring in the display area by pressing the touch screen, the operation attribute when the drag event occurs includes: pressing the touch screen The detected pressing pressure, and/or the length of operation when a drag event occurs.
- the storage medium is further configured to store program code for performing the following steps: reading the currently detected pressing pressure and/or the operation time when the drag event occurs after the first function control is dragged into the display area Determining that the function of the first function control is triggered when the currently detected pressing pressure exceeds the predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined length; the function of the first function control After being triggered, the task corresponding to the first function control is executed by calling the execution function of the first function control.
- the storage medium is further configured to store program code for performing the following steps: the list of function controls included in the tab bar is displayed horizontally anywhere in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in the application interface. Any position in the display; wherein, when the first function control in the function control list is dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
- the serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
- the disclosed technical contents may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, It can be stored on a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
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
本申请要求2016年01月07日递交的申请号为201610009496.8、发明名称为“标签栏的控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. Serial No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
本发明涉及移动终端控制领域,具体而言,涉及一种标签栏的控制方法和装置。The present invention relates to the field of mobile terminal control, and in particular to a method and apparatus for controlling a tag bar.
随着如汽车导航系统、手机、平板等触屏式移动终端的广泛使用,人们在移动终端上使用的应用程序越来越多,每个应用程序都设置有标签栏(Tab bar),可以通过切换标签栏中的标签,进行多个功能之间的切换,如图1所示。With the widespread use of touch-screen mobile terminals such as car navigation systems, mobile phones, tablets, etc., more and more applications are used on mobile terminals, and each application is provided with a tab bar (Tab bar). Switch the tabs in the tab bar to switch between multiple functions, as shown in Figure 1.
一般标签栏(Tab bar)的显示区域固定,显示区域内显示的功能控件(button)的个数可以为2-5个,常见的为四个。当需要切换的功能控件超过当屏操作,需要先将待切换的功能控件显示在显示区域内,对于该功能,目前相似的功能Tab切换是通过滑动标签栏加选择功能来触发该功能控件对应的控制功能,例如通过如下两步(级)或以上的操作流程完成上述切换功能:Generally, the display area of the tab bar is fixed, and the number of the function buttons displayed in the display area can be 2-5, and the common one is four. When the function control that needs to be switched exceeds the screen operation, the function control to be switched needs to be displayed in the display area. For this function, the current similar function tab switching is triggered by sliding the tab bar plus the selection function to trigger the corresponding function control. The control function, for example, completes the above switching function by the following two steps (levels) or above:
1、标签栏的初始状态如图2(a),当用户需要超过当屏操作时,可以通过拖动标签栏,显示需要切换的功能;1. The initial state of the tab bar is shown in Figure 2(a). When the user needs to exceed the screen operation, the tab bar can be dragged to display the function that needs to be switched.
2、通过点击需要切换的功能控件,完成功能切换的目的,例如,需要切换功能一,则点击功能一控件,如图2(b);需要切换功能二,则点击功能二控件,如图2(c);需要切换功能三,则点击功能三控件,如图2(d)。2. Complete the function switching by clicking the function control that needs to be switched. For example, if you need to switch the function one, click the function one control, as shown in Figure 2(b); if you need to switch the function two, click the function two control, as shown in Figure 2. (c); To switch function three, click on the function three control, as shown in Figure 2(d).
但是,现有技术有以下缺点:However, the prior art has the following disadvantages:
1、Tab bar展示位个数有限,由于手机屏幕固定宽度,放不下太多button。1. The number of Tab bar display is limited. Due to the fixed width of the mobile phone screen, there are not many buttons.
2、功能较多时(≥5个),点击切换功能时,Tab bar各个操作button空间小、距离近容易引起误操作。2. When there are many functions (≥5), when clicking the switching function, the tab bar has a small space and a short distance, which may cause misoperation.
3、用户在晃动的场景下,如开车、地铁上、走路时,不能对功能进行精准的操作。3, the user in the shaking scene, such as driving, subway, walking, can not perform precise operation of the function.
针对现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题,目前尚未提出有效的解决方案。In view of the fact that the display area of the tab bar layout in the prior art is fixed, and the technical problem of erroneous operation is easily caused by clicking and switching multiple function controls, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种标签栏的控制方法和装置,以至少解决现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。The embodiment of the invention provides a method and a device for controlling a tab bar, so as to at least solve the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked to cause misoperation.
根据本发明实施例的一个方面,提供了一种标签栏的控制方法,包括:获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。According to an aspect of the embodiments of the present invention, a method for controlling a tab bar is provided, including: obtaining a display area of a tab bar in an application interface, wherein the tab bar includes: N function controls, i of the N function controls The function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected and dragged into the display The area obtains the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the first execution is performed. The task corresponding to the function control.
根据本发明实施例的另一方面,还提供了一种标签栏的控制方法,包括:当触摸屏中显示的应用界面感应到拖动事件时,判断拖动事件是否发生在应用界面中标签栏的显示区域,其中,标签栏包括:功能控件列表,功能控件列表中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;如果功能控件列表中隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则将第一功能控件对应的功能页面显示在应用界面中。According to another aspect of the embodiments of the present invention, a method for controlling a tab bar is further provided, including: when an application interface displayed in the touch screen senses a drag event, determining whether the drag event occurs in a tab bar of the application interface. The display area, wherein the tab bar includes: a list of function controls, i function controls in the function control list are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; if the function control list is hidden A function control is dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs, the preset attribute is satisfied. When the trigger condition is met, the function page corresponding to the first function control is displayed in the application interface.
根据本发明实施例的另一方面,还提供了一种标签栏的控制装置,包括:第一获取模块,用于获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;第二获取模块,用于在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;执行模块,用于如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。According to another aspect of the embodiments of the present invention, a control device for a tab bar is provided, including: a first obtaining module, configured to acquire a display area of a tab bar in an application interface, where the tab bar includes: N functions The control, i function controls of the N function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; and the second acquisition module is configured to detect the drag in the display area of the tab bar In the event, if it is detected that the hidden first function control is dragged into the display area, the attribute of the first function control and/or the operation attribute when the drag event occurs; the execution module is used if the attribute of the first function control and / If the operation attribute when the drag event occurs satisfies the preset trigger condition, the task corresponding to the first function control is executed.
根据本发明实施例的另一方面,还提供了一种标签栏的控制装置,包括:判断模块,用于当触摸屏中显示的应用界面感应到拖动事件时,判断拖动事件是否发生在应用界面中标签栏的显示区域,其中,标签栏包括:功能控件列表,功能控件列表中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;获取模块,用于如果功能控件列表中隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;显示模块,用于如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则将第一功能控件对应的功能页面显示在应用界面中。 According to another aspect of the embodiments of the present invention, a control device for a tab bar is provided, including: a judging module, configured to determine whether a drag event occurs in an application when an application interface displayed in the touch screen senses a drag event The display area of the tab bar in the interface, wherein the tab bar includes: a list of function controls, i function controls in the function control list are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; acquiring module, For if the first function control hidden in the function control list is dragged into the display area, the attribute of the first function control and/or the operation attribute when the drag event occurs; the display module is used for the attribute of the first function control And/or the operation attribute when the drag event occurs satisfies the preset trigger condition, and the function page corresponding to the first function control is displayed in the application interface.
在本发明实施例中,获取标签栏在应用界面中的显示区域,在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。In the embodiment of the present invention, the display area of the tab bar in the application interface is acquired, and when the drag event is detected in the display area of the tab bar, if the hidden first function control is detected and dragged into the display area, the first is obtained. The attribute of the function control and/or the operation attribute when the drag event occurs. If the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the task corresponding to the first function control is executed. .
容易注意到,由于标签栏包括N个功能控件,可以将N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏(不显示于显示区域),从而可以在标签栏中扩展更多的功能控件,并且可以通过在检测到被拖入显示区域的功能控件的属性和/或发生拖动事件时的操作属性满足触发条件的情况下,执行该功能控件对应的任务,从而避免显示区域内显示的功能控件过多的情况下,由于各个功能控件空间小、间距近,容易引起误操作。It is easy to notice that since the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
由此,本发明提供的方案解决了现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。Therefore, the solution provided by the present invention solves the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked by clicking to easily cause a misoperation.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据现有技术的一种功能切换的逻辑示意图;1 is a logic diagram of a function switching according to the prior art;
图2(a)是根据现有技术的一种标签栏的控制方法示意图;2(a) is a schematic diagram of a control method of a tab bar according to the prior art;
图2(b)是根据现有技术的一种标签栏的控制方法示意图;2(b) is a schematic diagram of a control method of a tab bar according to the prior art;
图2(c)是根据现有技术的一种标签栏的控制方法示意图;2(c) is a schematic diagram of a control method of a tab bar according to the prior art;
图2(d)是根据现有技术的一种标签栏的控制方法示意图;2(d) is a schematic diagram of a control method of a tab bar according to the prior art;
图3是根据现有技术的一种标签栏和分段控件的示意图;3 is a schematic diagram of a tab bar and a segmentation control according to the prior art;
图4是本申请实施例的一种标签栏的控制方法的计算机终端的硬件结构框图;4 is a block diagram showing the hardware structure of a computer terminal for controlling a tab bar according to an embodiment of the present application;
图5是根据本申请实施例一的一种标签栏的控制方法的流程图;FIG. 5 is a flowchart of a method for controlling a tab bar according to Embodiment 1 of the present application; FIG.
图6(a)是根据本申请实施例的一种标签栏的控制方法示意图;6(a) is a schematic diagram of a control method of a tab bar according to an embodiment of the present application;
图6(b)是根据本申请实施例的一种标签栏的控制方法示意图;FIG. 6(b) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application;
图7(a)是根据本申请实施例的一种标签栏的控制方法示意图;7(a) is a schematic diagram of a control method of a tab bar according to an embodiment of the present application;
图7(b)是根据本申请实施例的一种标签栏的控制方法示意图;FIG. 7(b) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application;
图7(c)是根据本申请实施例的一种标签栏的控制方法示意图;FIG. 7(c) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application;
图7(d)是根据本申请实施例的一种标签栏的控制方法示意图; FIG. 7(d) is a schematic diagram of a method for controlling a tab bar according to an embodiment of the present application;
图8是根据本申请实施例二的一种标签栏的控制方法的流程图;8 is a flowchart of a method for controlling a tab bar according to a second embodiment of the present application;
图9是根据本申请实施例三的一种标签栏的控制装置的示意图;9 is a schematic diagram of a control device for a tab bar according to a third embodiment of the present application;
图10是根据本申请实施例三的一种可选的标签栏的控制装置的示意图;10 is a schematic diagram of an optional control device for a tab bar according to Embodiment 3 of the present application;
图11是根据本申请实施例三的一种可选的标签栏的控制装置的示意图;11 is a schematic diagram of an optional control device for a tab bar according to Embodiment 3 of the present application;
图12是根据本申请实施例三的一种可选的标签栏的控制装置的示意图;12 is a schematic diagram of an optional control device for a tab bar according to a third embodiment of the present application;
图13是根据本申请实施例三的一种可选的标签栏的控制装置的示意图;13 is a schematic diagram of an optional control device for a tab bar according to a third embodiment of the present application;
图14是根据本申请实施例四的一种标签栏的控制装置的示意图;14 is a schematic diagram of a control device for a tab bar according to Embodiment 4 of the present application;
图15是根据本申请实施例的一种计算机终端的结构框图。FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present application.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First, some of the nouns or terms that appear in the process of describing the embodiments of the present application are applicable to the following explanations:
Tab bar:标签栏,一般位于手机的底部,但不排除一些特殊位置,如:上下左右,标签栏的每个选项表示不同的功能,这里需要与segmentedcontrol(分段控件)进行区分,后者强调的是同一功能的不同类别的区分,前者是不同功能的区分,如图3所示,图3中框31是segmentedcontrol,框32是Tab bar。由于segmentedcontrol强调的是同一功能的不同类别的区分,所以外观页面展示的内容版式通常一致,Tab bar强调的是不同功能的区分,通常对应不同的视图。Tab bar一般有图标或者是图标加文字标题的形式,segmentedcontrol有点像标签,主要是文字展示。
Tab bar: Tab bar, generally located at the bottom of the phone, but does not exclude some special positions, such as: up and down, each option of the tab bar indicates different functions, here need to distinguish from segmented control (the segmentation control), the latter emphasizes The distinction between the different categories of the same function, the former is the distinction of different functions, as shown in Figure 3,
实施例1Example 1
根据本发明实施例,还提供了一种标签栏的控制方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, there is also provided an embodiment of a method for controlling a tab bar, and it should be noted that the steps shown in the flowchart of the drawing may be executed in a computer system such as a set of computer executable instructions, and Although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图4是本申请实施例的一种标签栏的控制方法的计算机终端的硬件结构框图。如图4所示,计算机终端40可以包括一个或多个(图中仅示出一个)处理器402(处理器402可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器404、以及用于通信功能的传输模块406。本领域普通技术人员可以理解,图4所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端40还可包括比图4中所示更多或者更少的组件,或者具有与图4所示不同的配置。The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. Taking a computer terminal as an example, FIG. 4 is a hardware block diagram of a computer terminal of a method for controlling a tab bar according to an embodiment of the present application. As shown in FIG. 4, computer terminal 40 may include one or more (only one shown) processor 402 (
存储器404可用于存储应用软件的软件程序以及模块,如本发明实施例中的标签栏的控制方法对应的程序指令/模块,处理器402通过运行存储在存储器404内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的标签栏的控制方法。存储器404可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器404可进一步包括相对于处理器402远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端40。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 404 can be used to store software programs and modules of the application software, such as program instructions/modules corresponding to the control method of the tab bar in the embodiment of the present invention, and the
传输装置406用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端40的通信供应商提供的无线网络。在一个实例中,传输装置406包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置406可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
在上述运行环境下,本申请提供了如图5所示的标签栏的控制方法。图5是根据本申请实施例一的一种标签栏的控制方法的流程图,如图5所示,上述方法包括如下步骤:In the above operating environment, the present application provides a method of controlling the tab bar as shown in FIG. FIG. 5 is a flowchart of a method for controlling a tab bar according to Embodiment 1 of the present application. As shown in FIG. 5, the foregoing method includes the following steps:
步骤S51,获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数。 Step S51: Obtain a display area of the tab bar in the application interface, where the tab bar includes: N function controls, and i function controls of the N function controls are displayed in the display area, and Ni function controls are hidden, and i is less than A natural number equal to N.
具体地,上述应用界面可以是安装在移动终端上的应用软件打开后展示的页面,上述应用软件可以是即时通信软件,音乐播放器或导航软件,上述移动终端可以是智能手机(如Android手机、ios手机等),平板电脑,汽车导航系统等终端设备,但不仅限于此,本申请实施例中不做具体限定。Specifically, the application interface may be a page displayed after the application software installed on the mobile terminal is opened, and the application software may be instant communication software, a music player or a navigation software, and the mobile terminal may be a smart phone (such as an Android mobile phone, The ios mobile phone, etc., the tablet device, the car navigation system and the like, but are not limited thereto, and are not specifically limited in the embodiment of the present application.
可选地,标签栏的显示区域可以位于应用界面的下部,并且可以根据标签栏(Tab bar)的显示区域尺寸,在显示区域内显示固定数量的功能控件(button),多余的功能控件可以进行隐藏,即不显示在显示区域中。Optionally, the display area of the tab bar may be located at a lower portion of the application interface, and a fixed number of function buttons may be displayed in the display area according to the display area size of the tab bar, and the redundant function controls may be performed. Hidden, that is, not displayed in the display area.
在一种可选的方案中,本申请中的标签栏可以包括功能控件列表,功能控件列表中可以包括多个连续排列的功能控件,可以根据用户的需要,将功能控件列表中部分功能控件显示在标签栏的显示区域中,剩下的功能控件可以隐藏,通过用户拖动事件可以将隐藏的功能控件显示在标签栏的显示区域中。In an optional solution, the label bar in the present application may include a function control list, and the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user. In the display area of the tab bar, the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
例如,如图6(a)所示,标签栏位于界面的下部,包括5个功能控件:功能A控件,功能一控件,功能二控件,功能三控件和功能B控件,其中,功能一控件,功能二控件,功能三控件这三个功能控件显示在标签栏的显示区域中,功能A控件和功能B控件这两个功能控件进行隐藏。For example, as shown in FIG. 6(a), the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
步骤S53,在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性。Step S53: When a drag event is detected in the display area of the tab bar, if it is detected that the hidden first function control is dragged into the display area, the attribute of the first function control and/or the operation attribute when the drag event occurs are acquired. .
具体地,上述第一功能控件的属性可以是第一功能控件进入标签栏显示区域的面积大小,发生拖动事件时的操作属性可以是发生拖动事件的时长。Specifically, the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
在一种可选的方案中,在获取到标签栏的显示区域之后,如果检测到标签栏的显示区域内出现拖动事件,并且隐藏的第一功能控件被拖入标签栏的显示区域内,则获取第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长。In an optional solution, after the display area of the tab bar is acquired, if a drag event occurs in the display area of the tab bar, and the hidden first function control is dragged into the display area of the tab bar, Then, the size of the area where the first function control enters the display area of the tab bar and the duration of the drag event are obtained.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,则获取功能A进入显示区域的面积以及用户的手势操作的时长。For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, that is, the function A is exposed, the acquisition function A enters the display area. The area and the duration of the user's gestures.
步骤S55,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。Step S55: If the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the task corresponding to the first function control is executed.
在一种可选的方案中,在获取到第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长之后,如果第一功能控件进入标签栏显示区域的面积大小满足触发面积,且发生拖动事件的时长满足触发时长,则运行第一功能控件对应的任务。 In an optional solution, after obtaining the size of the area where the first function control enters the display area of the tab bar and the length of the drag event, if the area size of the display area of the first function control entering the tab bar meets the trigger area, And the duration of the drag event meets the trigger duration, and the task corresponding to the first function control is run.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,系统根据用户的手势操作和展示页面(即上述的显示区域)大小,激活并运行功能A。For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user. The page (ie the display area above) is sized to activate and run function A.
此处需要说明的是,在检测到用户的手势操作结束之后,标签栏回到初始状态,即标签栏的显示区域内显示功能一控件,功能二控件和功能三控件,功能A控件和功能B控件这两个功能控件仍旧隐藏。如图6(a)所示。It should be noted here that after detecting the end of the user's gesture operation, the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar. The two functional controls of the control are still hidden. As shown in Figure 6 (a).
本申请上述实施例一公开的方案中,获取标签栏在应用界面中的显示区域,在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。In the solution disclosed in the first embodiment of the present application, the display area of the tab bar in the application interface is obtained, and when the drag event is detected in the display area of the tab bar, if the hidden first function control is detected, the hidden first function control is dragged into the display area. Obtaining the attribute of the first function control and/or the operation attribute when the drag event occurs, and performing the first function if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition The task corresponding to the control.
容易注意到,由于标签栏包括N个功能控件,可以将N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏(不显示于显示区域),从而可以在标签栏中扩展更多的功能控件,并且可以通过在检测到被拖入显示区域的功能控件的属性和/或发生拖动事件时的操作属性满足触发条件的情况下,执行该功能控件对应的任务,从而避免显示区域内显示的功能控件过多的情况下,由于各个功能控件空间小、间距近,容易引起误操作。It is easy to notice that since the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
由此,本申请提供的上述实施例一的方案解决了现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。Therefore, the solution of the first embodiment provided by the present application solves the technical problem that the display area of the tab bar layout is fixed in the prior art, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
根据本申请上述实施例,上述功能控件包括如下任意一种或多种类型:用于执行应用功能的控件、用于执行创建新任务的控件和用于关闭当前应用功能的控件,其中,系统默认将用于执行创建新任务的控件和用于关闭当前应用功能的控件进行隐藏。According to the above embodiment of the present application, the above functional control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults Hide the controls used to create the new task and the controls used to close the current application function.
例如,如图7(a)所示,标签栏可以包括用于执行功能一的功能一控件,用于执行功能二的功能二控件,用于执行功能三的功能三控件,用于创建新任务的创建控件和用于关闭任务的关闭控件,并且默认状态下标签栏的显示区域中显示功能一控件,功能二控件和功能三控件,并将创建控件和关闭控件进行隐藏,不显示在标签栏的显示区域中。For example, as shown in FIG. 7(a), the tab bar may include a function-one control for performing function one, a function two control for executing function two, and a function three control for executing function three for creating a new task. The create control and the close control for closing the task, and in the display state of the tab bar in the default state, the function one control, the function two control and the function three control are displayed, and the create control and the close control are hidden, and are not displayed in the tab bar. In the display area.
根据本申请上述实施例,在步骤S53,获取第一功能控件的属性和/或发生拖动事件时的操作属性之前,上述方法还包括如下步骤:According to the above embodiment of the present application, in step S53, before acquiring the attribute of the first function control and/or the operation attribute when the drag event occurs, the method further includes the following steps:
步骤S531,在标签栏内发生拖动事件的过程中,实时读取被隐藏的每个功能控件的坐标位置,其中,每个功能控件的坐标位置会随着拖动事件动态变化。Step S531, in the process of the drag event occurring in the tab bar, the coordinate position of each function control that is hidden is read in real time, wherein the coordinate position of each function control dynamically changes with the drag event.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,设定功能 A控件的坐标值为X轴(-20,0),Y轴(0,20),当用户滑动拖拽标签栏时,该功能A控件的坐标开始横向移动,即X轴坐标开始发生变化,Y轴数据保持不变。For example, as shown in Fig. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, the setting function is performed. The coordinate value of the A control is X axis (-20, 0), Y axis (0, 20). When the user slides and drags the tab bar, the coordinates of the function A control start to move laterally, that is, the X axis coordinate starts to change. The Y-axis data remains unchanged.
此处需要说明的是,当标签栏Tab bar固定在应用界面左侧,可以通过纵向上下滑动拖拽完成,此时功能控件相对应的Y轴发生改变,X轴数据保持不变;还可以向屏幕中心拖拽,此时,X与Y轴坐标数据都会发生改变。It should be noted that when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X axis data remains unchanged; Drag and drop the center of the screen, and the X and Y axis coordinate data will change.
步骤S533,判断被隐藏的任意一个功能控件的坐标位置是否位于显示区域的范围内。In step S533, it is determined whether the coordinate position of any one of the hidden function controls is within the range of the display area.
步骤S535,在被隐藏的第一功能控件的坐标位置位于显示区域的范围内的情况下,确定第一功能控件被拖入显示区域。Step S535, in a case where the coordinate position of the hidden first function control is within the range of the display area, it is determined that the first function control is dragged into the display area.
在一种可选的方案中,当标签栏的显示区域内发生拖动事件时,可以通过读取每一个被隐藏的功能控件的坐标位置,并判断每一个被隐藏的功能控件的坐标位置是否进入标签栏显示区域的坐标范围内,如果任意一个被隐藏的功能控件的坐标位置进入标签栏显示区域的坐标范围内,则确定该被隐藏的功能控件被拖入显示区域。In an optional solution, when a drag event occurs in the display area of the tab bar, the coordinate position of each hidden function control can be read, and the coordinate position of each hidden function control is determined. Entering the coordinate range of the display area of the tab bar, if the coordinate position of any hidden function control enters the coordinate range of the display area of the tab bar, it is determined that the hidden function control is dragged into the display area.
例如,如图6(b)所示,当用户通过在标签栏的显示区域内进行拖动产生拖动事件的过程中,实时读取被隐藏的功能A控件和功能B控件的坐标位置,当功能A控件的坐标位置进入标签栏的显示区域的坐标范围内,确定功能A控件被拖入显示区域。For example, as shown in FIG. 6(b), when the user generates a drag event by dragging in the display area of the tab bar, the coordinate positions of the hidden function A control and the function B control are read in real time. The coordinate position of the function A control enters the coordinate range of the display area of the tab bar, and it is determined that the function A control is dragged into the display area.
根据本申请上述实施例,上述第一功能控件的属性包括:第一功能控件的控件面积与显示区域的重合度,和/或第一功能控件被拖入显示区域后的停留时长。According to the above embodiment of the present application, the attributes of the first function control include: a coincidence degree of the control area of the first function control and the display area, and/or a dwell time after the first function control is dragged into the display area.
例如,如图6(b)所示,在确定功能A控件被拖入显示区域之后,可以获取功能A控件和标签栏的显示区域的重合度,以及功能A控件被拖入显示区域之后的停留时间。For example, as shown in FIG. 6(b), after determining that the function A control is dragged into the display area, the coincidence degree of the display area of the function A control and the tab bar can be acquired, and the pause after the function A control is dragged into the display area time.
根据本申请上述实施例,步骤S55,如果第一功能控件的属性满足预设的触发条件,则执行第一功能控件对应的任务包括如下步骤:According to the above embodiment of the present application, in step S55, if the attribute of the first function control satisfies the preset trigger condition, executing the task corresponding to the first function control includes the following steps:
步骤S551,读取当前被拖入显示区域的第一功能控件的属性。Step S551, reading the attribute of the first function control currently dragged into the display area.
步骤S553,在第一功能控件的控件面积与显示区域的重合度超过预定面积,和/或第一功能控件被拖入显示区域后的停留时长超过第一预定时长的情况下,确定第一功能控件的功能被触发。Step S553, determining the first function if the coincidence degree of the control area of the first function control and the display area exceeds a predetermined area, and/or the stay duration after the first function control is dragged into the display area exceeds the first predetermined time length The function of the control is triggered.
具体地,上述预定面积可以是第一功能控件的控件面积的80%,上述第一预定时长可以是5秒。Specifically, the predetermined area may be 80% of the control area of the first functional control, and the first predetermined duration may be 5 seconds.
步骤S555,在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数来执行第一功能控件对应的任务。 Step S555, after the function of the first function control is triggered, the task corresponding to the first function control is executed by calling an execution function of the first function control.
在一种可选的方案中,当确定第一功能控件被拖入标签栏的显示区域之后,读取第一功能控件的控件面积与显示区域的重合度,和被拖入显示区域后的停留时长,在第一功能控件的控件面积与显示区域的重合度超过控件面积的80%,且被拖入显示区域后的停留时长超过5秒的情况下,触发第一功能控件的功能,并通过调用第一功能控件对应的函数执行第一功能控件对应的任务;如果重合度未超过控件面积的80%,或者被拖入显示区域的停留时间未超过5秒,则不执行第一功能控件对应的功能。In an optional solution, after determining that the first function control is dragged into the display area of the tab bar, reading the coincidence degree of the control area of the first function control and the display area, and staying after being dragged into the display area The duration, when the control area of the first function control overlaps with the display area by more than 80% of the control area, and the stay duration after being dragged into the display area exceeds 5 seconds, the function of the first function control is triggered and passed Calling the function corresponding to the first function control to execute the task corresponding to the first function control; if the coincidence degree does not exceed 80% of the control area, or the dwell time dragged into the display area does not exceed 5 seconds, the first function control is not executed. The function.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,设定功能A控件的坐标值为X轴(-20,0),Y轴(0,20),当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,在功能A控件露出屏幕的面积占功能A控件整个控件面积的80%,即功能A控件的控件面积与标签栏的显示区域的重合度超过空间面积的80%的情况下,该拖动事件触发执行。其中,功能A控件的控件面积可以通过展示出来的坐标绝对值:长乘以宽求出。For example, as shown in FIG. 6(b), when a drag event is performed on the tab bar of the horizontal direction, the coordinate value of the function A control is set to the X axis (-20, 0), and the Y axis (0, 20). When the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen, that is, the function A control enters the display area of the tab bar, and the area of the function A control exposes the screen occupies the function A control as a whole. The drag event triggers execution when 80% of the control area, that is, the control area of the function A control and the display area of the tab bar exceed 80% of the space area. Among them, the control area of the function A control can be obtained by displaying the absolute value of the coordinates: length multiplied by width.
又例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,当拖拽展示功能A控件的显示时长超过5秒,即功能控件A被拖入显示区域后的停留时长超过5秒,在用户停止操作之后,执行功能A控件对应的任务。For another example, as shown in FIG. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. , that is, the function A control enters the display area of the tab bar, and when the drag display function A control is displayed for more than 5 seconds, the duration of the function control A after being dragged into the display area exceeds 5 seconds, after the user stops the operation, the execution is performed. The task corresponding to the function A control.
根据本申请上述实施例,在通过按压触摸屏触发在显示区域内发生拖动事件的情况下,发生拖动事件时的操作属性包括:按压触摸屏时检测到的按压压力,和/或发生拖动事件时的操作时长。According to the above embodiment of the present application, in the case where a drag event occurs in the display area by pressing the touch screen, the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the drag event occurs. The duration of operation.
例如,如图6(b)所示,在用户通过按压触摸屏进行拖动标签栏的情况下,可以获取用户按压屏幕时的按压压力和拖动标签栏的操作时长,作为发生拖动事件时的操作属性。For example, as shown in FIG. 6( b ), when the user drags the tab bar by pressing the touch screen, the pressing pressure when the user presses the screen and the operation duration of dragging the tab bar can be acquired as the drag event occurs. Operational properties.
根据本申请上述实施例,步骤S55,如果发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务包括如下步骤:According to the above embodiment of the present application, in step S55, if the operation attribute when the drag event occurs satisfies the preset trigger condition, executing the task corresponding to the first function control includes the following steps:
步骤S552,读取第一功能控件被拖入显示区域之后,当前检测到的按压压力和/或发生拖动事件时的操作时长。Step S552, reading the currently detected pressing pressure and/or the operation duration when the drag event occurs after the first function control is dragged into the display area.
步骤S554,在当前检测到的按压压力超过预定压力值,和/或发生拖动事件时的操作时长超过第二预定时长的情况下,确定第一功能控件的功能被触发。In step S554, if the currently detected pressing pressure exceeds the predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined time length, it is determined that the function of the first function control is triggered.
具体地,上述预定压力值可以是5Pa,第二预定时长可以是5s。Specifically, the predetermined pressure value may be 5 Pa, and the second predetermined time may be 5 s.
步骤S556,在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数 来执行第一功能控件对应的任务。Step S556, after the function of the first function control is triggered, by calling the execution function of the first function control To perform the task corresponding to the first function control.
在一种可选的方案中,当确定第一功能控件被拖入标签栏的显示区域之后,读取检测到的按压压力和发生拖动事件的操作时长,在按压压力超过5Pa,且发生拖动事件的操作时长超过5秒的情况下,触发第一功能控件的功能,并通过调用第一功能控件对应的函数执行第一功能控件对应的任务;如果按压压力未超过5Pa,或者发生拖动事件的操作时长未超过5秒,则不执行第一功能控件对应的任务。In an optional solution, after determining that the first function control is dragged into the display area of the tab bar, the detected pressing pressure and the operation duration of the drag event are read, the pressing pressure exceeds 5 Pa, and the drag occurs. When the operation time of the event is more than 5 seconds, the function of the first function control is triggered, and the task corresponding to the first function control is executed by calling a function corresponding to the first function control; if the pressing pressure does not exceed 5 Pa, or a drag occurs If the operation time of the event does not exceed 5 seconds, the task corresponding to the first function control is not executed.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,在检测到用户按压拖拽超过5Pa的情况下,该拖动事件触发执行。其中,功能A控件的控件面积可以通过展示出来的坐标绝对值:长乘以宽求出。For example, as shown in FIG. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. That is, the function A control enters the display area of the tab bar, and when it is detected that the user presses and drags more than 5 Pa, the drag event triggers execution. Among them, the control area of the function A control can be obtained by displaying the absolute value of the coordinates: length multiplied by width.
又例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,当拖拽标签栏的拖动事件的操作时长超过5秒,在用户停止操作之后,执行功能A控件对应的任务。For another example, as shown in FIG. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. That is, the function A control enters the display area of the tab bar, and when the drag event of the drag tab is dragged for more than 5 seconds, after the user stops the operation, the task corresponding to the function A control is executed.
根据本申请上述实施例,上述方法还包括:According to the above embodiment of the present application, the above method further includes:
步骤S561,标签栏包含的功能控件列表横向显示在应用界面中的任意位置,或标签栏包含的功能控件列表纵向显示在应用界面中的任意位置;其中,当功能控件列表中的第一功能控件被拖入显示区域时,功能控件列表中显示在显示区域中的第二功能控件被隐藏。Step S561, the list of function controls included in the tab bar is displayed horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in any position in the application interface; wherein, the first function control in the function control list When dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
在一种可选的方案中,标签栏也可以显示在应用界面的左侧,并将功能控件纵向显示,并且在第一功能控件被拖入显示区域之后,则将由于拖动被移出显示区域之外的第二功能控件进行隐藏。In an optional solution, the tab bar can also be displayed on the left side of the application interface, and the function control is displayed vertically, and after the first function control is dragged into the display area, the display area is removed due to dragging. The second function control outside is hidden.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,并将原本显示在显示区域内的功能三控件进行隐藏。For example, as shown in FIG. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. That is, the function A control enters the display area of the tab bar, and the function three controls originally displayed in the display area are hidden.
此处需要说明的是,通过左右拖拽,还可以触发一些界面操作或跳转到其它的体验更深一层的沉浸界面,例如,在Safari中,可以通过本申请上述实施例快速关闭当前页面和打开新的标签页;在音乐播放器中,可以通过本申请上述实施例进行当前播放页等等;或者在行车的过程中,以通过本申请上述实施例快速进入导航页面。It should be noted here that by dragging left and right, it is also possible to trigger some interface operations or jump to other deeper immersive interfaces for experience. For example, in Safari, the current page can be quickly closed by the above embodiment of the present application. A new tab page is opened; in the music player, the current play page or the like can be performed by the above embodiment of the present application; or during the driving process, the navigation page can be quickly accessed through the above embodiment of the present application.
例如,在Safari中,标签栏上初始状态显示功能一控件,功能二控件和功能三控件,
创建控件和关闭控件隐藏,用户打开网页1之后,想打开网页2,可以通过向右拖动标签栏,将创建控件拖入显示区域,如图7(a)所示,在创建控件面积与标签栏显示区域的重合度大于创建控件面积的80%的情况下,执行快速打开新的标签页的操作,打开网页2,并将标签栏恢复初始状态,如图7(b)所示。用户想关闭当前网页2,可以通过向左拖动标签栏,将关闭控件拖入显示区域,如图7(c)所示,在关闭控件面积与标签栏显示区域的重合度大于关闭控件面积的80%的情况下,执行关闭当前网页的操作,将网页2关闭进入网页1,并将标签栏恢复初始状态,如图7(d)所示。For example, in Safari, the initial state display function on the tab bar is a control, a function control, and a function control.
Create control and close control hidden, after the user opens webpage 1 and wants to open
此处还需要说明的是,本申请上述实施例中的标签栏Tab bar包含的功能控件可以使用图标加文字标题的形式进行显示。It should be noted here that the function control included in the tab bar Tab bar in the above embodiment of the present application can be displayed in the form of an icon plus a text title.
本申请上述实施例提供的方案,使用拖拽这种新的交互方式可以很好地展示功能并区分操作,给用户带来新鲜感,减少button空间小带来的误操作。与目前通过滑动加选择的方案相比,本申请上述实施例提供的方案不需要点击操作,只是按住拖拽,系统根据露出的button面积判断是否触发此功能,当手指松开后,执行此功能。The solution provided by the above embodiment of the present application can display functions and distinguish operations well by using the new interaction mode of dragging, which brings freshness to the user and reduces misoperation caused by small button space. Compared with the current scheme of selecting by sliding, the solution provided by the above embodiment of the present application does not require a click operation, but just press and hold the drag, and the system determines whether to trigger the function according to the exposed button area, and executes the function when the finger is released. Features.
这样的优点是:当用户在晃动的场景下,如走路、乘地铁、开车时,对细小的button无法做出精准操作时,通过按住滑拽、返回的操作,根据面积便可快速执行操作任务,极大地减小误操作的情况,给用户带来便捷。The advantage of this is that when the user is unable to make precise operations on the small button under the shaking scene, such as walking, taking the subway, driving, the operation can be quickly performed according to the area by pressing and holding the sliding and returning operations. Tasks, greatly reducing the situation of misuse, bringing convenience to users.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
根据本发明实施例,还提供了一种标签栏的控制方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,
虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。图8是根据本申请实施例二的一种标签栏的控制方法的流程图,如图8所示,上述方法包括如下步骤:According to an embodiment of the present invention, there is also provided an embodiment of a method for controlling a tab bar, and it should be noted that the steps shown in the flowchart of the drawing may be executed in a computer system such as a set of computer executable instructions, and ,
Although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein. FIG. 8 is a flowchart of a method for controlling a tab bar according to
步骤S81,当触摸屏中显示的应用界面感应到拖动事件时,判断拖动事件是否发生在应用界面中标签栏的显示区域,其中,标签栏包括:功能控件列表,功能控件列表中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数。Step S81, when the application interface displayed on the touch screen senses the drag event, determine whether the drag event occurs in the display area of the tab bar in the application interface, where the tab bar includes: a function control list, and i in the function control list. The function controls are displayed in the display area, and Ni function controls are hidden, and i is a natural number less than or equal to N.
具体地,上述触摸屏可以是安装在智能手机(如Android手机、ios手机等),平板电脑,汽车导航系统等终端设备上的触摸屏,触摸屏上可以显示安装在移动终端上的应用软件打开后展示的应用界面,但不仅限于此,本申请实施例中不做具体限定。Specifically, the touch screen may be a touch screen installed on a smart phone (such as an Android mobile phone, an ios mobile phone, etc.), a tablet computer, a car navigation system, and the like, and the touch screen may display the application software installed on the mobile terminal after being opened. The application interface is not limited to this, and is not specifically limited in the embodiment of the present application.
可选地,标签栏的显示区域可以位于触摸屏中应用界面的下部,并且可以根据标签栏(Tab bar)的显示区域尺寸,在显示区域内显示固定数量的功能控件(button),多余的功能控件可以进行隐藏,即不显示在显示区域中。Optionally, the display area of the tab bar may be located at a lower portion of the application interface of the touch screen, and a fixed number of function buttons (buttons) may be displayed in the display area according to the size of the display area of the tab bar, and the redundant function control Can be hidden, that is, not displayed in the display area.
在一种可选的方案中,本申请中的标签栏可以包括功能控件列表,功能控件列表中可以包括多个连续排列的功能控件,可以根据用户的需要,将功能控件列表中部分功能控件显示在标签栏的显示区域中,剩下的功能控件可以隐藏,通过用户拖动事件可以将隐藏的功能控件显示在标签栏的显示区域中。In an optional solution, the label bar in the present application may include a function control list, and the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user. In the display area of the tab bar, the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
例如,如图6(a)所示,标签栏位于界面的下部,包括5个功能控件:功能A控件,功能一控件,功能二控件,功能三控件和功能B控件,其中,功能一控件,功能二控件,功能三控件这三个功能控件显示在标签栏的显示区域中,功能A控件和功能B控件这两个功能控件进行隐藏。For example, as shown in FIG. 6(a), the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
步骤S83,如果功能控件列表中隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性。Step S83: If the first function control hidden in the function control list is dragged into the display area, acquire the attribute of the first function control and/or the operation attribute when the drag event occurs.
具体地,上述第一功能控件的属性可以是第一功能控件进入标签栏显示区域的面积大小,发生拖动事件时的操作属性可以是发生拖动事件的时长。Specifically, the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
在一种可选的方案中,在获取到标签栏的显示区域之后,如果检测到标签栏的显示区域内出现拖动事件,并且隐藏的第一功能控件被拖入标签栏的显示区域内,则获取第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长。In an optional solution, after the display area of the tab bar is acquired, if a drag event occurs in the display area of the tab bar, and the hidden first function control is dragged into the display area of the tab bar, Then, the size of the area where the first function control enters the display area of the tab bar and the duration of the drag event are obtained.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,则获取功能A进入显示区域的面积以及用户的手势操作的时长。 For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, that is, the function A is exposed, the acquisition function A enters the display area. The area and the duration of the user's gestures.
步骤S85,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则将第一功能控件对应的功能页面显示在应用界面中。Step S85: If the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the function page corresponding to the first function control is displayed in the application interface.
在一种可选的方案中,在获取到第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长之后,如果第一功能控件进入标签栏显示区域的面积大小满足触发面积,且发生拖动事件的时长满足触发时长,则在应用界面中显示第一功能控件对应的功能页面。In an optional solution, after obtaining the size of the area where the first function control enters the display area of the tab bar and the length of the drag event, if the area size of the display area of the first function control entering the tab bar meets the trigger area, And the duration of the drag event satisfies the trigger duration, and the function page corresponding to the first function control is displayed in the application interface.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,系统根据用户的手势操作和展示页面(即上述的显示区域)大小,激活并运行功能A。For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user. The page (ie the display area above) is sized to activate and run function A.
此处需要说明的是,在检测到用户的手势操作结束之后,标签栏回到初始状态,即标签栏的显示区域内显示功能一控件,功能二控件和功能三控件,功能A控件和功能B控件这两个功能控件仍旧隐藏。如图6(a)所示。It should be noted here that after detecting the end of the user's gesture operation, the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar. The two functional controls of the control are still hidden. As shown in Figure 6 (a).
本申请上述实施例二公开的方案中,当触摸屏中显示的应用界面感应到拖动事件时,判断拖动事件是否发生在应用界面中标签栏的显示区域,如果功能控件列表中隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则将第一功能控件对应的功能页面显示在应用界面中。In the solution disclosed in the second embodiment of the present application, when the application interface displayed on the touch screen senses a drag event, it is determined whether the drag event occurs in the display area of the tab bar in the application interface, if the function control list is hidden first The function control is dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs, if the attribute of the first function control and/or the operation attribute when the drag event occurs satisfies the preset trigger Condition, the function page corresponding to the first function control is displayed in the application interface.
容易注意到,由于标签栏包括N个功能控件,可以将N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏(不显示于显示区域),从而可以在标签栏中扩展更多的功能控件,并且可以通过在检测到被拖入显示区域的功能控件的属性和/或发生拖动事件时的操作属性满足触发条件的情况下,执行该功能控件对应的任务,从而避免显示区域内显示的功能控件过多的情况下,由于各个功能控件空间小、间距近,容易引起误操作。It is easy to notice that since the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
由此,本申请提供的上述实施例二的方案解决了现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。Therefore, the solution of the foregoing
根据本申请上述实施例,功能控件包括如下任意一种或多种类型:用于执行应用功能的控件、用于执行创建新任务的控件和用于关闭当前应用功能的控件,其中,系统默认将用于执行创建新任务的控件和用于关闭当前应用功能的控件进行隐藏。According to the above embodiment of the present application, the function control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults The controls used to perform the creation of new tasks and the controls used to close the current application function are hidden.
例如,如图6(a)所示,标签栏可以包括用于执行功能一的功能一控件,用于执行功能二的功能二控件,用于执行功能三的功能三控件,用于创建新任务的创建控件和用 于关闭任务的关闭控件,并且默认状态下标签栏的显示区域中显示功能一控件,功能二控件和功能三控件,并将创建控件和关闭控件进行隐藏,不显示在标签栏的显示区域中。For example, as shown in FIG. 6(a), the tab bar may include a function-one control for performing the function one, a function two control for executing the function two, and a function three control for executing the function three for creating a new task. Create controls and use The close control of the task is closed, and the function one control, the function two control and the function three control are displayed in the display area of the tab bar by default, and the create control and the close control are hidden, and are not displayed in the display area of the tab bar.
根据本申请上述实施例,标签栏的显示区域被划分为多个子区域,每个子区域分别显示功能控件列表中对应的功能控件的图标,其中,当功能控件列表中的第一功能控件被拖入显示区域时,功能控件列表中显示在显示区域中的第二功能控件被移出显示区域。According to the above embodiment of the present application, the display area of the tab bar is divided into a plurality of sub-areas, each of which displays an icon of a corresponding function control in the function control list, wherein the first function control in the function control list is dragged in When the area is displayed, the second function control displayed in the display area in the function control list is moved out of the display area.
在一种可选的方案中,标签栏也可以显示在应用界面的左侧,并将功能控件纵向显示。In an alternative scenario, the tab bar can also be displayed on the left side of the application interface and the function controls are displayed vertically.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,设定功能A控件的坐标值为X轴(-20,0),Y轴(0,20),当用户滑动拖拽标签栏时,该功能A控件的坐标开始横向移动,即X轴坐标开始发生变化,Y轴数据保持不变。For example, as shown in FIG. 6(b), when a drag event is performed on the tab bar of the horizontal direction, the coordinate value of the function A control is set to the X axis (-20, 0), and the Y axis (0, 20). When the user slides and drags the tab bar, the coordinates of the function A control start to move laterally, that is, the X-axis coordinates start to change, and the Y-axis data remains unchanged.
此处需要说明的是,当标签栏Tab bar固定在应用界面左侧,可以通过纵向上下滑动拖拽完成,此时功能控件相对应的Y轴发生改变,X轴数据保持不变;还可以向屏幕中心拖拽,此时,X与Y轴坐标数据都会发生改变。It should be noted that when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X axis data remains unchanged; Drag and drop the center of the screen, and the X and Y axis coordinate data will change.
根据本申请上述实施例,标签栏包含的功能控件列表横向显示在应用界面中的任意位置,或标签栏包含的功能控件列表纵向显示在应用界面中的任意位置。According to the above embodiment of the present application, the list of function controls included in the tab bar is displayed horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally at any position in the application interface.
在一种可选的方案中,在第一功能控件被拖入显示区域之后,则将由于拖动被移出显示区域之外的第二功能控件进行隐藏。In an optional solution, after the first function control is dragged into the display area, the second function control that is moved out of the display area due to dragging is hidden.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,并将原本显示在显示区域内的功能三控件进行隐藏。For example, as shown in FIG. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. That is, the function A control enters the display area of the tab bar, and the function three controls originally displayed in the display area are hidden.
实施例3Example 3
根据本发明实施例,还提供了一种用于实施上述标签栏的控制方法的标签栏的控制装置,如图9所示,该装置包括:第一获取模块91,第二获取模块93和执行模块95。According to an embodiment of the present invention, there is further provided a control device for a tab bar for implementing the above control method of a tab bar. As shown in FIG. 9, the device includes: a first obtaining module 91, a second obtaining module 93, and executing Module 95.
其中,第一获取模块91用于获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数。The first obtaining module 91 is configured to obtain a display area of the tab bar in the application interface, where the tab bar includes: N function controls, and i function controls of the N function controls are displayed in the display area, and Ni functions The control is hidden, and i is a natural number less than or equal to N.
具体地,上述应用界面可以是安装在移动终端上的应用软件打开后展示的页面,上述应用软件可以是即时通信软件,音乐播放器或导航软件,上述移动终端可以是智能手机(如Android手机、ios手机等),平板电脑,汽车导航系统等终端设备,但不仅限于此,本申请实施例中不做具体限定。 Specifically, the application interface may be a page displayed after the application software installed on the mobile terminal is opened, and the application software may be instant communication software, a music player or a navigation software, and the mobile terminal may be a smart phone (such as an Android mobile phone, The ios mobile phone, etc., the tablet device, the car navigation system and the like, but are not limited thereto, and are not specifically limited in the embodiment of the present application.
可选地,标签栏的显示区域可以位于应用界面的下部,并且可以根据标签栏(Tab bar)的显示区域尺寸,在显示区域内显示固定数量的功能控件(button),多余的功能控件可以进行隐藏,即不显示在显示区域中。Optionally, the display area of the tab bar may be located at a lower portion of the application interface, and a fixed number of function buttons may be displayed in the display area according to the display area size of the tab bar, and the redundant function controls may be performed. Hidden, that is, not displayed in the display area.
在一种可选的方案中,本申请中的标签栏可以包括功能控件列表,功能控件列表中可以包括多个连续排列的功能控件,可以根据用户的需要,将功能控件列表中部分功能控件显示在标签栏的显示区域中,剩下的功能控件可以隐藏,通过用户拖动事件可以将隐藏的功能控件显示在标签栏的显示区域中。In an optional solution, the label bar in the present application may include a function control list, and the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user. In the display area of the tab bar, the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
例如,如图6(a)所示,标签栏位于界面的下部,包括5个功能控件:功能A控件,功能一控件,功能二控件,功能三控件和功能B控件,其中,功能一控件,功能二控件,功能三控件这三个功能控件显示在标签栏的显示区域中,功能A控件和功能B控件这两个功能控件进行隐藏。For example, as shown in FIG. 6(a), the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
第二获取模块93用于在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性。The second obtaining module 93 is configured to: when the drag event is detected in the display area of the tab bar, if it is detected that the hidden first function control is dragged into the display area, acquire the attribute of the first function control and/or generate a drag event The operational properties of the time.
具体地,上述第一功能控件的属性可以是第一功能控件进入标签栏显示区域的面积大小,发生拖动事件时的操作属性可以是发生拖动事件的时长。Specifically, the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
在一种可选的方案中,在获取到标签栏的显示区域之后,如果检测到标签栏的显示区域内出现拖动事件,并且隐藏的第一功能控件被拖入标签栏的显示区域内,则获取第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长。In an optional solution, after the display area of the tab bar is acquired, if a drag event occurs in the display area of the tab bar, and the hidden first function control is dragged into the display area of the tab bar, Then, the size of the area where the first function control enters the display area of the tab bar and the duration of the drag event are obtained.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,则获取功能A进入显示区域的面积以及用户的手势操作的时长。For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, that is, the function A is exposed, the acquisition function A enters the display area. The area and the duration of the user's gestures.
执行模块95用于如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。The execution module 95 is configured to execute a task corresponding to the first function control if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition.
在一种可选的方案中,在获取到第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长之后,如果第一功能控件进入标签栏显示区域的面积大小满足触发面积,且发生拖动事件的时长满足触发时长,则运行第一功能空间对应的任务。In an optional solution, after obtaining the size of the area where the first function control enters the display area of the tab bar and the length of the drag event, if the area size of the display area of the first function control entering the tab bar meets the trigger area, If the duration of the drag event meets the trigger duration, the task corresponding to the first function space is run.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,系统根据用户的手势操作和展示页面(即上述的显示区域)大小,激活并运行功能A。 For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user. The page (ie the display area above) is sized to activate and run function A.
此处需要说明的是,在检测到用户的手势操作结束之后,标签栏回到初始状态,即标签栏的显示区域内显示功能一控件,功能二控件和功能三控件,功能A控件和功能B控件这两个功能控件仍旧隐藏。如图6(a)所示。It should be noted here that after detecting the end of the user's gesture operation, the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar. The two functional controls of the control are still hidden. As shown in Figure 6 (a).
本申请上述实施例三公开的方案中,第一获取模块获取标签栏在应用界面中的显示区域,在标签栏的显示区域内检测到拖动事件时,第二获取模块如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行模块执行第一功能控件对应的任务。In the solution disclosed in the third embodiment of the present application, the first obtaining module acquires the display area of the tab bar in the application interface, and when the drag event is detected in the display area of the tab bar, the second acquiring module detects the hidden A function control is dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs, if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset When the trigger condition is met, the execution module executes the task corresponding to the first function control.
容易注意到,由于标签栏包括N个功能控件,可以将N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏(不显示于显示区域),从而可以在标签栏中扩展更多的功能控件,并且可以通过在检测到被拖入显示区域的功能控件的属性和/或发生拖动事件时的操作属性满足触发条件的情况下,执行该功能控件对应的任务,从而避免显示区域内显示的功能控件过多的情况下,由于各个功能控件空间小、间距近,容易引起误操作。It is easy to notice that since the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
由此,本申请提供的上述实施例三的方案解决了现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。Therefore, the solution of the foregoing embodiment 3 provided by the present application solves the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
根据本申请上述实施例,上述功能控件包括如下任意一种或多种类型:用于执行应用功能的控件、用于执行创建新任务的控件和用于关闭当前应用功能的控件,其中,系统默认将用于执行创建新任务的控件和用于关闭当前应用功能的控件进行隐藏。According to the above embodiment of the present application, the above functional control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults Hide the controls used to create the new task and the controls used to close the current application function.
例如,如图6(a)所示,标签栏可以包括用于执行功能一的功能一控件,用于执行功能二的功能二控件,用于执行功能三的功能三控件,用于创建新任务的创建控件和用于关闭任务的关闭控件,并且默认状态下标签栏的显示区域中显示功能一控件,功能二控件和功能三控件,并将创建控件和关闭控件进行隐藏,不显示在标签栏的显示区域中。For example, as shown in FIG. 6(a), the tab bar may include a function-one control for performing the function one, a function two control for executing the function two, and a function three control for executing the function three for creating a new task. The create control and the close control for closing the task, and in the display state of the tab bar in the default state, the function one control, the function two control and the function three control are displayed, and the create control and the close control are hidden, and are not displayed in the tab bar. In the display area.
根据本申请上述实施例,如图10所示,上述装置还包括:读取模块101,判断模块103和确定模块105。According to the above embodiment of the present application, as shown in FIG. 10, the foregoing apparatus further includes: a reading module 101, a determining module 103, and a determining module 105.
其中,读取模块101用于在标签栏内发生拖动事件的过程中,实时读取被隐藏的每个功能控件的坐标位置,其中,每个功能控件的坐标位置会随着拖动事件动态变化;判断模块103用于判断被隐藏的任意一个功能控件的坐标位置是否位于显示区域的范围内;确定模块105用于在被隐藏的第一功能控件的坐标位置位于显示区域的范围内的情况下,确定第一功能控件被拖入显示区域。 The reading module 101 is configured to read the coordinate position of each hidden function control in real time during a drag event in the tab bar, wherein the coordinate position of each function control is dynamically moved along with the drag event. The determining module 103 is configured to determine whether the coordinate position of any one of the hidden function controls is within the range of the display area; the determining module 105 is configured to be within the range of the display area when the coordinate position of the hidden first function control is Next, make sure that the first function control is dragged into the display area.
此处需要说明的是,上述读取模块101,判断模块103和确定模块105对应于实施例一中的步骤S531至步骤S535,上述模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端40中。It should be noted that, in the foregoing reading module 101, the determining module 103 and the determining module 105 correspond to the steps S531 to S535 in the first embodiment, the modules are the same as the examples and application scenarios implemented by the corresponding steps, but not It is limited to the content disclosed in the above embodiment 1. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
此处还需要说明的是,当标签栏Tab bar固定在应用界面左侧,可以通过纵向上下滑动拖拽完成,此时功能控件相对应的Y轴发生改变,X轴数据保持不变;还可以向屏幕中心拖拽,此时,X与Y轴坐标数据都会发生改变。It should also be noted that when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X-axis data remains unchanged; Drag and drop to the center of the screen, and the X and Y axis coordinate data will change.
根据本申请上述实施例,上述第一功能控件的属性包括:第一功能控件的控件面积与显示区域的重合度,和/或第一功能控件被拖入显示区域后的停留时长。According to the above embodiment of the present application, the attributes of the first function control include: a coincidence degree of the control area of the first function control and the display area, and/or a dwell time after the first function control is dragged into the display area.
例如,如图6(b)所示,在确定功能A控件被拖入显示区域之后,可以获取功能A控件和标签栏的显示区域的重合度,以及功能A控件被拖入显示区域之后的停留时间。For example, as shown in FIG. 6(b), after determining that the function A control is dragged into the display area, the coincidence degree of the display area of the function A control and the tab bar can be acquired, and the pause after the function A control is dragged into the display area time.
根据本申请上述实施例,如图11所示,执行模块95包括:第一读取子模块111,第一确定子模块113和第一调用子模块115。According to the above embodiment of the present application, as shown in FIG. 11, the execution module 95 includes: a first reading submodule 111, a first determining submodule 113, and a first calling submodule 115.
其中,第一读取子模块111用于读取当前被拖入显示区域的第一功能控件的属性;第一确定子模块113用于在第一功能控件的控件面积与显示区域的重合度超过预定面积,和/或第一功能控件被拖入显示区域后的停留时长超过第一预定时长的情况下,确定第一功能控件的功能被触发;第一调用子模块115用于在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数来执行第一功能控件对应的任务。The first reading sub-module 111 is configured to read the attribute of the first function control that is currently dragged into the display area; the first determining sub-module 113 is configured to exceed the overlap between the control area and the display area of the first function control. Determining that the function of the first function control is triggered if the predetermined area, and/or the length of stay after the first function control is dragged into the display area exceeds the first predetermined duration; the first calling sub-module 115 is used for the first function After the function of the control is triggered, the task corresponding to the first function control is executed by calling the execution function of the first function control.
具体地,上述预定面积可以是第一功能控件的控件面积的80%,上述第一预定时长可以是5秒。Specifically, the predetermined area may be 80% of the control area of the first functional control, and the first predetermined duration may be 5 seconds.
此处需要说明的是,上述第一读取子模块111,第一确定子模块113和第一调用子模块115对应于实施例一中的步骤S551至步骤S555,上述模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端40中。It should be noted that the first reading sub-module 111, the first determining sub-module 113 and the first calling sub-module 115 correspond to steps S551 to S555 in the first embodiment, and the foregoing modules and corresponding steps are implemented. The example is the same as the application scenario, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
根据本申请上述实施例,在通过按压触摸屏触发在显示区域内发生拖动事件的情况下,发生拖动事件时的操作属性包括:按压触摸屏时检测到的按压压力,和/或发生拖动事件时的操作时长。According to the above embodiment of the present application, in the case where a drag event occurs in the display area by pressing the touch screen, the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the drag event occurs. The duration of operation.
例如,如图6(b)所示,在用户通过按压触摸屏进行拖动标签栏的情况下,可以获取用户按压屏幕时的按压压力和拖动标签栏的操作时长,作为发生拖动事件时的操作属性。 For example, as shown in FIG. 6( b ), when the user drags the tab bar by pressing the touch screen, the pressing pressure when the user presses the screen and the operation duration of dragging the tab bar can be acquired as the drag event occurs. Operational properties.
根据本申请上述实施例,如图12所示,执行模块95还包括:第二读取子模块121,第二确定子模块123和第二调用子模块125。According to the above embodiment of the present application, as shown in FIG. 12, the execution module 95 further includes: a second reading submodule 121, a second determining submodule 123, and a second calling submodule 125.
其中,第二读取子模块121用于读取第一功能控件被拖入显示区域之后,当前检测到的按压压力和/或发生拖动事件时的操作时长;第二确定子模块123用于在当前检测到的按压压力超过预定压力值,和/或发生拖动事件时的操作时长超过第二预定时长的情况下,确定第一功能控件的功能被触发;第二调用子模块125用于在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数来执行第一功能控件对应的任务。The second reading sub-module 121 is configured to read the currently detected pressing pressure and/or the operation duration when the drag event occurs after the first function control is dragged into the display area; the second determining sub-module 123 is configured to: In a case where the currently detected pressing pressure exceeds a predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined length of time, determining that the function of the first function control is triggered; the second calling sub-module 125 is configured to: After the function of the first function control is triggered, the task corresponding to the first function control is executed by calling the execution function of the first function control.
具体地,上述预定压力值可以是5Pa,第二预定时长可以是5s。Specifically, the predetermined pressure value may be 5 Pa, and the second predetermined time may be 5 s.
此处需要说明的是,上述第二读取子模块121,第二确定子模块123和第二调用子模块125对应于实施例一中的步骤S552至步骤S556,上述模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端40中。It should be noted that, the second reading sub-module 121, the second determining sub-module 123, and the second calling sub-module 125 correspond to steps S552 to S556 in the first embodiment, and the foregoing modules and corresponding steps are implemented. The example is the same as the application scenario, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
根据本申请上述实施例,如图13所示,上述装置还包括:显示模块131。According to the above embodiment of the present application, as shown in FIG. 13, the device further includes: a display module 131.
其中,显示模块131用于标签栏包含的功能控件列表横向显示在应用界面中的任意位置,或标签栏包含的功能控件列表纵向显示在应用界面中的任意位置;其中,当功能控件列表中的第一功能控件被拖入显示区域时,功能控件列表中显示在显示区域中的第二功能控件被隐藏。The display module 131 is configured to display the function control list included in the tab bar horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in any position in the application interface; wherein, in the function control list When the first function control is dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
此处需要说明的是,上述显示模块131对应于实施例一中的步骤S561,上述模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端40中。It should be noted that the above-mentioned display module 131 corresponds to the step S561 in the first embodiment. The above-mentioned module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as a part of the device in the computer terminal 40 provided in the first embodiment.
实施例4Example 4
根据本发明实施例,还提供了一种用于实施上述标签栏的控制方法的标签栏的控制装置,如图14所示,该装置包括:判断模块141,获取模块143和显示模块145。According to an embodiment of the present invention, there is further provided a control device for a tab bar for implementing the control method of the tab bar. As shown in FIG. 14, the device includes: a judging module 141, an obtaining module 143, and a display module 145.
其中,判断模块141用于当触摸屏中显示的应用界面感应到拖动事件时,判断拖动事件是否发生在应用界面中标签栏的显示区域,其中,标签栏包括:功能控件列表,功能控件列表中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数。The determining module 141 is configured to: when the application interface displayed in the touch screen senses the drag event, determine whether the drag event occurs in a display area of the tab bar in the application interface, where the tab bar includes: a function control list, a function control list The i function controls in the display area are displayed in the display area, Ni function controls are hidden, and i is a natural number less than or equal to N.
具体地,上述触摸屏可以是安装在智能手机(如Android手机、ios手机等),平板电脑,汽车导航系统等终端设备上的触摸屏,触摸屏上可以显示安装在移动终端上的应用软件打开后展示的应用界面,但不仅限于此,本申请实施例中不做具体限定。 Specifically, the touch screen may be a touch screen installed on a smart phone (such as an Android mobile phone, an ios mobile phone, etc.), a tablet computer, a car navigation system, and the like, and the touch screen may display the application software installed on the mobile terminal after being opened. The application interface is not limited to this, and is not specifically limited in the embodiment of the present application.
可选地,标签栏的显示区域可以位于触摸屏中应用界面的下部,并且可以根据标签栏(Tab bar)的显示区域尺寸,在显示区域内显示固定数量的功能控件(button),多余的功能控件可以进行隐藏,即不显示在显示区域中。Optionally, the display area of the tab bar may be located at a lower portion of the application interface of the touch screen, and a fixed number of function buttons (buttons) may be displayed in the display area according to the size of the display area of the tab bar, and the redundant function control Can be hidden, that is, not displayed in the display area.
在一种可选的方案中,本申请中的标签栏可以包括功能控件列表,功能控件列表中可以包括多个连续排列的功能控件,可以根据用户的需要,将功能控件列表中部分功能控件显示在标签栏的显示区域中,剩下的功能控件可以隐藏,通过用户拖动事件可以将隐藏的功能控件显示在标签栏的显示区域中。In an optional solution, the label bar in the present application may include a function control list, and the function control list may include a plurality of consecutively arranged function controls, and some function controls in the function control list may be displayed according to the needs of the user. In the display area of the tab bar, the remaining function controls can be hidden, and the hidden function controls can be displayed in the display area of the tab bar by the user drag event.
例如,如图6(a)所示,标签栏位于界面的下部,包括5个功能控件:功能A控件,功能一控件,功能二控件,功能三控件和功能B控件,其中,功能一控件,功能二控件,功能三控件这三个功能控件显示在标签栏的显示区域中,功能A控件和功能B控件这两个功能控件进行隐藏。For example, as shown in FIG. 6(a), the tab bar is located at the lower part of the interface, and includes five function controls: a function A control, a function one control, a function two control, a function three control and a function B control, wherein, a function control, Function two control, function three control These three function controls are displayed in the display area of the tab bar, and the function control A and the function B control are hidden.
获取模块143用于如果功能控件列表中隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性。The obtaining module 143 is configured to obtain an attribute of the first function control and/or an operation attribute when a drag event occurs if the first function control hidden in the function control list is dragged into the display area.
具体地,上述第一功能控件的属性可以是第一功能控件进入标签栏显示区域的面积大小,发生拖动事件时的操作属性可以是发生拖动事件的时长。Specifically, the attribute of the first function control may be an area size of the first function control entering the display area of the tab bar, and the operation attribute when the drag event occurs may be the duration of the drag event.
在一种可选的方案中,在获取到标签栏的显示区域之后,如果检测到标签栏的显示区域内出现拖动事件,并且隐藏的第一功能控件被拖入标签栏的显示区域内,则获取第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长。In an optional solution, after the display area of the tab bar is acquired, if a drag event occurs in the display area of the tab bar, and the hidden first function control is dragged into the display area of the tab bar, Then, the size of the area where the first function control enters the display area of the tab bar and the duration of the drag event are obtained.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,则获取功能A进入显示区域的面积以及用户的手势操作的时长。For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, that is, the function A is exposed, the acquisition function A enters the display area. The area and the duration of the user's gestures.
显示模块145用于如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则将第一功能控件对应的功能页面显示在应用界面中。The display module 145 is configured to display the function page corresponding to the first function control in the application interface if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition.
在一种可选的方案中,在获取到第一功能控件进入标签栏显示区域的面积大小和发生拖动事件的时长之后,如果第一功能控件进入标签栏显示区域的面积大小满足触发面积,且发生拖动事件的时长满足触发时长,则在应用界面中显示第一功能控件对应的功能页面。In an optional solution, after obtaining the size of the area where the first function control enters the display area of the tab bar and the length of the drag event, if the area size of the display area of the first function control entering the tab bar meets the trigger area, And the duration of the drag event satisfies the trigger duration, and the function page corresponding to the first function control is displayed in the application interface.
例如,如图6(b)所示,当显示区域内检测到用户对标签栏进行拖拽操作时,如果用户拖拽功能A进入显示区域,即露出功能A,系统根据用户的手势操作和展示页面(即上述的显示区域)大小,激活并运行功能A。 For example, as shown in FIG. 6(b), when the user detects that the user drags the tab bar in the display area, if the user drags the function A into the display area, the function A is exposed, and the system operates and displays according to the gesture of the user. The page (ie the display area above) is sized to activate and run function A.
此处需要说明的是,在检测到用户的手势操作结束之后,标签栏回到初始状态,即标签栏的显示区域内显示功能一控件,功能二控件和功能三控件,功能A控件和功能B控件这两个功能控件仍旧隐藏。如图6(a)所示。It should be noted here that after detecting the end of the user's gesture operation, the tab bar returns to the initial state, that is, the function display control, the function control and the function control, the function A control and the function B are displayed in the display area of the tab bar. The two functional controls of the control are still hidden. As shown in Figure 6 (a).
本申请上述实施例四公开的方案中,当触摸屏中显示的应用界面感应到拖动事件时,判断模块141判断拖动事件是否发生在应用界面中标签栏的显示区域,如果功能控件列表中隐藏的第一功能控件被拖入显示区域,获取模块143获取第一功能控件的属性和/或发生拖动事件时的操作属性,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则显示模块145将第一功能控件对应的功能页面显示在应用界面中。In the solution disclosed in the fourth embodiment of the present application, when the application interface displayed on the touch screen senses a drag event, the determining module 141 determines whether the drag event occurs in the display area of the tab bar in the application interface, if the function control list is hidden. The first function control is dragged into the display area, and the obtaining module 143 acquires the attribute of the first function control and/or the operation attribute when the drag event occurs, if the attribute of the first function control and/or the operation when the drag event occurs When the attribute meets the preset trigger condition, the display module 145 displays the function page corresponding to the first function control in the application interface.
容易注意到,由于标签栏包括N个功能控件,可以将N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏(不显示于显示区域),从而可以在标签栏中扩展更多的功能控件,并且可以通过在检测到被拖入显示区域的功能控件的属性和/或发生拖动事件时的操作属性满足触发条件的情况下,执行该功能控件对应的任务,从而避免显示区域内显示的功能控件过多的情况下,由于各个功能控件空间小、间距近,容易引起误操作。It is easy to notice that since the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
由此,本申请提供的上述实施例四的方案解决了现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。Therefore, the solution of the fourth embodiment provided by the present application solves the technical problem that the display area of the tab bar layout is fixed in the prior art, and the multiple function controls are clicked by clicking to easily cause a misoperation.
根据本申请上述实施例,功能控件包括如下任意一种或多种类型:用于执行应用功能的控件、用于执行创建新任务的控件和用于关闭当前应用功能的控件,其中,系统默认将用于执行创建新任务的控件和用于关闭当前应用功能的控件进行隐藏。According to the above embodiment of the present application, the function control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a control for closing a current application function, wherein the system defaults The controls used to perform the creation of new tasks and the controls used to close the current application function are hidden.
例如,如图6(a)所示,标签栏可以包括用于执行功能一的功能一控件,用于执行功能二的功能二控件,用于执行功能三的功能三控件,用于创建新任务的创建控件和用于关闭任务的关闭控件,并且默认状态下标签栏的显示区域中显示功能一控件,功能二控件和功能三控件,并将创建控件和关闭控件进行隐藏,不显示在标签栏的显示区域中。For example, as shown in FIG. 6(a), the tab bar may include a function-one control for performing the function one, a function two control for executing the function two, and a function three control for executing the function three for creating a new task. The create control and the close control for closing the task, and in the display state of the tab bar in the default state, the function one control, the function two control and the function three control are displayed, and the create control and the close control are hidden, and are not displayed in the tab bar. In the display area.
根据本申请上述实施例,标签栏的显示区域被划分为多个子区域,每个子区域分别显示功能控件列表中对应的功能控件的图标,其中,当功能控件列表中的第一功能控件被拖入显示区域时,功能控件列表中显示在显示区域中的第二功能控件被移出显示区域。According to the above embodiment of the present application, the display area of the tab bar is divided into a plurality of sub-areas, each of which displays an icon of a corresponding function control in the function control list, wherein the first function control in the function control list is dragged in When the area is displayed, the second function control displayed in the display area in the function control list is moved out of the display area.
在一种可选的方案中,标签栏也可以显示在应用界面的左侧,并将功能控件纵向显示。In an alternative scenario, the tab bar can also be displayed on the left side of the application interface and the function controls are displayed vertically.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,设定功能 A控件的坐标值为X轴(-20,0),Y轴(0,20),当用户滑动拖拽标签栏时,该功能A控件的坐标开始横向移动,即X轴坐标开始发生变化,Y轴数据保持不变。For example, as shown in Fig. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, the setting function is performed. The coordinate value of the A control is X axis (-20, 0), Y axis (0, 20). When the user slides and drags the tab bar, the coordinates of the function A control start to move laterally, that is, the X axis coordinate starts to change. The Y-axis data remains unchanged.
此处需要说明的是,当标签栏Tab bar固定在应用界面左侧,可以通过纵向上下滑动拖拽完成,此时功能控件相对应的Y轴发生改变,X轴数据保持不变;还可以向屏幕中心拖拽,此时,X与Y轴坐标数据都会发生改变。It should be noted that when the tab bar Tab bar is fixed on the left side of the application interface, it can be completed by sliding up and down in the vertical direction. At this time, the corresponding Y axis of the function control changes, and the X axis data remains unchanged; Drag and drop the center of the screen, and the X and Y axis coordinate data will change.
根据本申请上述实施例,标签栏包含的功能控件列表横向显示在应用界面中的任意位置,或标签栏包含的功能控件列表纵向显示在应用界面中的任意位置。According to the above embodiment of the present application, the list of function controls included in the tab bar is displayed horizontally at any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally at any position in the application interface.
在一种可选的方案中,在第一功能控件被拖入显示区域之后,则将由于拖动被移出显示区域之外的第二功能控件进行隐藏。In an optional solution, after the first function control is dragged into the display area, the second function control that is moved out of the display area due to dragging is hidden.
例如,如图6(b)所示,当在横向的标签栏Tab bar上执行拖动事件时,当用户向右滑动标签栏时,功能A控件开始从左向右移动,并显露出屏幕,即功能A控件进入标签栏的显示区域,并将原本显示在显示区域内的功能三控件进行隐藏。For example, as shown in FIG. 6(b), when a drag event is performed on the horizontal tab bar Tab bar, when the user slides the tab bar to the right, the function A control starts to move from left to right and reveals the screen. That is, the function A control enters the display area of the tab bar, and the function three controls originally displayed in the display area are hidden.
实施例5Example 5
本发明的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。Embodiments of the present invention may provide a computer terminal, which may be any one of computer terminal groups. Optionally, in this embodiment, the foregoing computer terminal may also be replaced with a terminal device such as a mobile terminal.
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
在本实施例中,上述计算机终端可以执行应用程序的漏洞检测方法中以下步骤的程序代码:获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。In this embodiment, the computer terminal may execute the program code of the following steps in the vulnerability detection method of the application: acquiring a display area of the tab bar in the application interface, wherein the tab bar includes: N function controls, N function controls The i function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected Drag into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, then Execute the task corresponding to the first function control.
可选地,图15是根据本发明实施例的一种计算机终端的结构框图。如图15所示,该计算机终端A可以包括:一个或多个(图中仅示出一个)处理器151、存储器153、以及传输装置155。Optionally, FIG. 15 is a structural block diagram of a computer terminal according to an embodiment of the present invention. As shown in FIG. 15, the computer terminal A may include one or more (only one shown in the figure) processor 151, memory 153, and transmission device 155.
其中,存储器153可用于存储软件程序以及模块,如本发明实施例中的标签栏的控制方法和装置对应的程序指令/模块,处理器151通过运行存储在存储器内的软件程序以 及模块,从而执行各种功能应用以及数据处理,即实现上述的标签栏的控制方法。存储器153可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器153可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至终端A。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 153 can be used to store software programs and modules, such as the control method of the tab bar and the program instructions/modules corresponding to the device in the embodiment of the present invention. The processor 151 runs the software program stored in the memory. And modules, thereby performing various functional applications and data processing, that is, implementing the above-described control method of the tab bar. Memory 153 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 153 can further include memory remotely located relative to the processor, which can be connected to terminal A over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
处理器151可以通过传输装置调用存储器存储的信息及应用程序,以执行下述步骤:获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。The processor 151 can call the information and the application stored in the memory by the transmission device to perform the following steps: acquiring a display area of the tab bar in the application interface, where the tab bar includes: N function controls, and N function controls i function controls are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected to be dragged in Display area, obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs meet the preset trigger condition, execute the first A function corresponding to a function control.
可选的,上述处理器151还可以执行如下步骤的程序代码:功能控件包括如下任意一种或多种类型:用于执行应用功能的控件、用于执行创建新任务的控件和用于关闭当前应用功能的控件,其中,系统默认将用于执行创建新任务的控件和用于关闭当前应用功能的控件进行隐藏。Optionally, the processor 151 may further execute the following program code: the function control includes any one or more of the following types: a control for executing an application function, a control for executing a new task, and a current A control that applies a function, where the system hides the control used to create the new task and the control that closes the current application function by default.
可选的,上述处理器151还可以执行如下步骤的程序代码:在标签栏内发生拖动事件的过程中,实时读取被隐藏的每个功能控件的坐标位置,其中,每个功能控件的坐标位置会随着拖动事件动态变化;判断被隐藏的任意一个功能控件的坐标位置是否位于显示区域的范围内;其中,在被隐藏的第一功能控件的坐标位置位于显示区域的范围内的情况下,确定第一功能控件被拖入显示区域。Optionally, the processor 151 may further execute the following program code: in a process of generating a drag event in the tab bar, reading the coordinate position of each function control hidden in real time, where each function control is The coordinate position changes dynamically with the drag event; it is determined whether the coordinate position of any hidden function control is within the range of the display area; wherein the coordinate position of the hidden first function control is within the range of the display area In the case, it is determined that the first function control is dragged into the display area.
可选的,上述处理器151还可以执行如下步骤的程序代码:第一功能控件的属性包括:第一功能控件的控件面积与显示区域的重合度,和/或第一功能控件被拖入显示区域后的停留时长。Optionally, the processor 151 may further execute the following program code: the attributes of the first function control include: a control area of the first function control and a display area, and/or the first function control is dragged into the display. The length of stay after the area.
可选的,上述处理器151还可以执行如下步骤的程序代码:读取当前被拖入显示区域的第一功能控件的属性;在第一功能控件的控件面积与显示区域的重合度超过预定面积,和/或第一功能控件被拖入显示区域后的停留时长超过第一预定时长的情况下,确定第一功能控件的功能被触发;在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数来执行第一功能控件对应的任务。Optionally, the processor 151 may further execute the following program code: reading an attribute of the first function control currently dragged into the display area; and a degree of coincidence between the control area of the first function control and the display area exceeds a predetermined area And/or if the stay duration after the first function control is dragged into the display area exceeds the first predetermined duration, determining that the function of the first function control is triggered; after the function of the first function control is triggered, by calling An execution function of a function control performs a task corresponding to the first function control.
可选的,上述处理器151还可以执行如下步骤的程序代码:在通过按压触摸屏触发 在显示区域内发生拖动事件的情况下,发生拖动事件时的操作属性包括:按压触摸屏时检测到的按压压力,和/或发生拖动事件时的操作时长。Optionally, the processor 151 may further execute the following program code: triggering by pressing the touch screen In the case where a drag event occurs in the display area, the operation attributes when the drag event occurs include: the pressing pressure detected when the touch screen is pressed, and/or the operation time when the drag event occurs.
可选的,上述处理器151还可以执行如下步骤的程序代码:读取第一功能控件被拖入显示区域之后,当前检测到的按压压力和/或发生拖动事件时的操作时长;在当前检测到的按压压力超过预定压力值,和/或发生拖动事件时的操作时长超过第二预定时长的情况下,确定第一功能控件的功能被触发;在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数来执行第一功能控件对应的任务。Optionally, the processor 151 may further execute the following program code: reading the currently detected pressing pressure and/or the operation duration when the drag event occurs after the first function control is dragged into the display area; If the detected pressing pressure exceeds the predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined time length, determining that the function of the first function control is triggered; after the function of the first function control is triggered The task corresponding to the first function control is executed by calling an execution function of the first function control.
可选的,上述处理器151还可以执行如下步骤的程序代码:标签栏包含的功能控件列表横向显示在应用界面中的任意位置,或标签栏包含的功能控件列表纵向显示在应用界面中的任意位置;其中,当功能控件列表中的第一功能控件被拖入显示区域时,功能控件列表中显示在显示区域中的第二功能控件被隐藏。Optionally, the processor 151 may further execute the following program code: the list of function controls included in the tab bar is displayed horizontally in any position in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in the application interface. Position; wherein, when the first function control in the function control list is dragged into the display area, the second function control displayed in the display area in the function control list is hidden.
采用本发明实施例,获取标签栏在应用界面中的显示区域,在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性,如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。According to the embodiment of the present invention, the display area of the tab bar in the application interface is obtained, and when the drag event is detected in the display area of the tab bar, if the hidden first function control is detected and dragged into the display area, the first function is obtained. The attribute of the control and/or the operation attribute when the drag event occurs. If the attribute of the first function control and/or the operation attribute when the drag event occurs meets the preset trigger condition, the task corresponding to the first function control is executed.
容易注意到,由于标签栏包括N个功能控件,可以将N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏(不显示于显示区域),从而可以在标签栏中扩展更多的功能控件,并且可以通过在检测到被拖入显示区域的功能控件的属性和/或发生拖动事件时的操作属性满足触发条件的情况下,执行该功能控件对应的任务,从而避免显示区域内显示的功能控件过多的情况下,由于各个功能控件空间小、间距近,容易引起误操作。It is easy to notice that since the tab bar includes N function controls, i function controls of the N function controls can be displayed in the display area, and Ni function controls are hidden (not displayed in the display area), so that they can be in the tab bar. Extending more function controls, and performing the task corresponding to the function control by detecting the trigger condition when the attribute of the function control dragged into the display area and/or the operation attribute when the drag event occurs When there are too many function controls displayed in the display area, the space of each function control is small and the spacing is close, which may cause misoperation.
由此,本发明提供的上述方案解决了现有技术中标签栏布局的显示区域固定,通过点击切换多个功能控件容易引起误操作的技术问题。Therefore, the above solution provided by the present invention solves the technical problem that the display area of the tab bar layout in the prior art is fixed, and the multiple function controls are clicked by clicking to easily cause an erroneous operation.
本领域普通技术人员可以理解,图15所示的结构仅为示意,计算机终端也可以是智能手机(如Android手机、ios手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图15其并不对上述电子装置的结构造成限定。例如,计算机终端A还可包括比图15中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图15所示不同的配置。A person skilled in the art can understand that the structure shown in FIG. 15 is only an illustration, and the computer terminal can also be a smart phone (such as an Android mobile phone, an ios mobile phone, etc.), a tablet computer, a palmtop computer, and a mobile Internet device (Mobile Internet Devices, MID). ), PAD and other terminal devices. Fig. 15 does not limit the structure of the above electronic device. For example, computer terminal A may also include more or fewer components (such as a network interface, display device, etc.) than shown in FIG. 15, or have a different configuration than that shown in FIG.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中, 存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct terminal device related hardware, and the program may be stored in a computer readable storage medium. The storage medium may include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
实施例6Example 6
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一所提供的标签栏的控制方法所执行的程序代码。Embodiments of the present invention also provide a storage medium. Optionally, in this embodiment, the foregoing storage medium may be used to save the program code executed by the control method of the tab bar provided in the first embodiment.
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。Optionally, in this embodiment, the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:获取标签栏在应用界面中的显示区域,其中,标签栏包括:N个功能控件,N个功能控件中的i个功能控件显示在显示区域中,N-i个功能控件隐藏,i为小于等于N的自然数;在标签栏的显示区域内检测到拖动事件时,如果检测到隐藏的第一功能控件被拖入显示区域,获取第一功能控件的属性和/或发生拖动事件时的操作属性;如果第一功能控件的属性和/或发生拖动事件时的操作属性满足预设的触发条件,则执行第一功能控件对应的任务。Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring a display area of the tab bar in the application interface, wherein the tab bar includes: N function controls, N functions The i function controls in the control are displayed in the display area, Ni function controls are hidden, i is a natural number less than or equal to N; when a drag event is detected in the display area of the tab bar, if the hidden first function control is detected Being dragged into the display area to obtain the attribute of the first function control and/or the operation attribute when the drag event occurs; if the attribute of the first function control and/or the operation attribute when the drag event occurs, the preset trigger condition is met, Then execute the task corresponding to the first function control.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:功能控件包括如下任意一种或多种类型:用于执行应用功能的控件、用于执行创建新任务的控件和用于关闭当前应用功能的控件,其中,系统默认将用于执行创建新任务的控件和用于关闭当前应用功能的控件进行隐藏。Optionally, the storage medium is further configured to store program code for performing the following steps: the function control includes any one or more of the following types: a control for performing an application function, a control for executing a new task, and A control that closes the currently applied function, where the system hides the control used to create the new task and the control that closes the current application function by default.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在标签栏内发生拖动事件的过程中,实时读取被隐藏的每个功能控件的坐标位置,其中,每个功能控件的坐标位置会随着拖动事件动态变化;判断被隐藏的任意一个功能控件的坐标位置是否位于显示区域的范围内;其中,在被隐藏的第一功能控件的坐标位置位于显示区域的范围内的情况下,确定第一功能控件被拖入显示区域。Optionally, the storage medium is further configured to store program code for performing the following steps: in the process of generating a drag event in the tab bar, reading the coordinate position of each function control hidden in real time, wherein each The coordinate position of the function control dynamically changes with the drag event; it is determined whether the coordinate position of any hidden function control is within the range of the display area; wherein the coordinate position of the hidden first function control is located in the display area In the case of the range, it is determined that the first function control is dragged into the display area.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:第一功能控件的属性包括:第一功能控件的控件面积与显示区域的重合度,和/或第一功能控件被拖入显示区域后的停留时长。Optionally, the storage medium is further configured to store program code for performing the following steps: the attributes of the first function control include: a control area of the first function control and a display area, and/or the first function control is The length of stay after dragging into the display area.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:读取当前被拖入显示区域的第一功能控件的属性;在第一功能控件的控件面积与显示区域的重合度超过预定面积,和/或第一功能控件被拖入显示区域后的停留时长超过第一预定时长的情况下,确定第一功能控件的功能被触发;在第一功能控件的功能被触发之后,通过调用第 一功能控件的执行函数来执行第一功能控件对应的任务。Optionally, the storage medium is further configured to store program code for performing the following steps: reading an attribute of the first function control currently dragged into the display area; and a degree of coincidence between the control area of the first function control and the display area If the predetermined area is exceeded, and/or the stay duration after the first function control is dragged into the display area exceeds the first predetermined length of time, determining that the function of the first function control is triggered; after the function of the first function control is triggered, By calling the first An execution function of a function control performs a task corresponding to the first function control.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在通过按压触摸屏触发在显示区域内发生拖动事件的情况下,发生拖动事件时的操作属性包括:按压触摸屏时检测到的按压压力,和/或发生拖动事件时的操作时长。Optionally, the storage medium is further configured to store program code for performing the following steps: in the case of triggering a drag event occurring in the display area by pressing the touch screen, the operation attribute when the drag event occurs includes: pressing the touch screen The detected pressing pressure, and/or the length of operation when a drag event occurs.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:读取第一功能控件被拖入显示区域之后,当前检测到的按压压力和/或发生拖动事件时的操作时长;在当前检测到的按压压力超过预定压力值,和/或发生拖动事件时的操作时长超过第二预定时长的情况下,确定第一功能控件的功能被触发;在第一功能控件的功能被触发之后,通过调用第一功能控件的执行函数来执行第一功能控件对应的任务。Optionally, the storage medium is further configured to store program code for performing the following steps: reading the currently detected pressing pressure and/or the operation time when the drag event occurs after the first function control is dragged into the display area Determining that the function of the first function control is triggered when the currently detected pressing pressure exceeds the predetermined pressure value, and/or the operation duration when the drag event occurs exceeds the second predetermined length; the function of the first function control After being triggered, the task corresponding to the first function control is executed by calling the execution function of the first function control.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:标签栏包含的功能控件列表横向显示在应用界面中的任意位置,或标签栏包含的功能控件列表纵向显示在应用界面中的任意位置;其中,当功能控件列表中的第一功能控件被拖入显示区域时,功能控件列表中显示在显示区域中的第二功能控件被隐藏。上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。Optionally, the storage medium is further configured to store program code for performing the following steps: the list of function controls included in the tab bar is displayed horizontally anywhere in the application interface, or the list of function controls included in the tab bar is displayed longitudinally in the application interface. Any position in the display; wherein, when the first function control in the function control list is dragged into the display area, the second function control displayed in the display area in the function control list is hidden. The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed technical contents may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, It can be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
Claims (21)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610009496.8A CN106951152B (en) | 2016-01-07 | 2016-01-07 | Control method and device for label bar |
| CN201610009496.8 | 2016-01-07 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017118329A1 true WO2017118329A1 (en) | 2017-07-13 |
Family
ID=59273293
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/112552 Ceased WO2017118329A1 (en) | 2016-01-07 | 2016-12-28 | Method and apparatus for controlling tab bar |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106951152B (en) |
| WO (1) | WO2017118329A1 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110442510A (en) * | 2019-06-19 | 2019-11-12 | 中国平安财产保险股份有限公司 | A kind of page properties acquisition methods, device and computer equipment, storage medium |
| CN112947828A (en) * | 2021-02-26 | 2021-06-11 | 中消云(北京)物联网科技研究院有限公司 | Control display method and device |
| CN113342230A (en) * | 2021-06-29 | 2021-09-03 | 北京字跳网络技术有限公司 | Control display method, device, equipment and medium |
| CN113769399A (en) * | 2021-09-14 | 2021-12-10 | 网易(杭州)网络有限公司 | Method, device, equipment and storage medium for containing function control in game interface |
| CN114385052A (en) * | 2020-10-19 | 2022-04-22 | 聚好看科技股份有限公司 | Dynamic display method of Tab bar and three-dimensional display equipment |
| WO2023134655A1 (en) * | 2022-01-12 | 2023-07-20 | 京东方科技集团股份有限公司 | Operation method and apparatus, and electronic device and computer-readable storage medium |
Families Citing this family (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109299444B (en) * | 2017-07-25 | 2023-06-30 | 北京国双科技有限公司 | Method and device for generating rich text editor |
| CN107689030A (en) | 2017-09-18 | 2018-02-13 | 上海联影医疗科技有限公司 | A kind of method and device of image procossing |
| CN107589893A (en) | 2017-09-21 | 2018-01-16 | 上海联影医疗科技有限公司 | A kind of data load method, device and terminal |
| CN109782983B (en) * | 2017-11-13 | 2021-05-25 | 腾讯科技(深圳)有限公司 | View layout adjustment method and device for application program interface |
| CN108182029A (en) * | 2017-12-27 | 2018-06-19 | 北京传嘉科技有限公司 | Prompt operation processing method, device and mobile terminal |
| CN108509237A (en) * | 2018-01-19 | 2018-09-07 | 广州视源电子科技股份有限公司 | Operation method and device of intelligent interaction panel and intelligent interaction panel |
| CN108304114A (en) * | 2018-01-30 | 2018-07-20 | 深圳市富途网络科技有限公司 | A kind of customized list interactive system |
| CN110858856A (en) * | 2018-08-22 | 2020-03-03 | 阿里巴巴集团控股有限公司 | Multi-application display method, application group construction method and electronic equipment |
| CN112840306B (en) * | 2018-11-08 | 2024-09-13 | 深圳市欢太科技有限公司 | Data display method of terminal device and terminal device |
| CN110929054B (en) * | 2019-11-20 | 2022-08-05 | 北京小米移动软件有限公司 | Multimedia information application interface display method and device, terminal and medium |
| CN111221450B (en) * | 2020-01-02 | 2021-07-30 | 杭州网易云音乐科技有限公司 | Information display method and device, electronic equipment and storage medium |
| CN111596842A (en) * | 2020-04-28 | 2020-08-28 | 维沃移动通信有限公司 | Information display method and electronic equipment |
| CN112099694B (en) * | 2020-09-24 | 2022-06-03 | 维沃移动通信有限公司 | Desktop control processing method and device |
| CN112148176B (en) * | 2020-09-30 | 2022-11-15 | 维沃移动通信有限公司 | Pendant control method and device, electronic equipment and readable storage medium |
| CN114201085A (en) * | 2021-11-30 | 2022-03-18 | 北京城市网邻信息技术有限公司 | Information display method and device, electronic equipment and storage medium |
| CN118860222A (en) * | 2023-04-28 | 2024-10-29 | 华为技术有限公司 | Function switching method, device and electronic equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102455861A (en) * | 2010-10-20 | 2012-05-16 | 万音达有限公司 | Apparatus and method for displaying menu |
| US20130212517A1 (en) * | 2012-02-13 | 2013-08-15 | Lenovo (Beijing) Co., Ltd. | Electronic Device and Display Processing Method |
| CN104102441A (en) * | 2013-04-09 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Menuitem executing method and device |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002259003A (en) * | 2001-03-01 | 2002-09-13 | Nikko Co Ltd | Operation device |
| US8065603B2 (en) * | 2007-04-30 | 2011-11-22 | Google Inc. | Hiding portions of display content |
| KR101386473B1 (en) * | 2007-10-04 | 2014-04-18 | 엘지전자 주식회사 | Mobile terminal and its menu display method |
| CN102655548A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for realizing tab bar |
| CN102566900A (en) * | 2011-11-17 | 2012-07-11 | 珠海金山办公软件有限公司 | Scroll toolbar display control method |
| CN103186331B (en) * | 2011-12-28 | 2016-08-24 | 宇龙计算机通信科技(深圳)有限公司 | A kind of intelligent terminal's interface display method and system |
| CN103455261A (en) * | 2012-05-30 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Method for achieving display by calling tab label and mobile device |
| CN104238896B (en) * | 2013-06-18 | 2019-05-28 | 腾讯科技(深圳)有限公司 | The display methods and device of function menu |
| CN104951193B (en) * | 2015-05-19 | 2018-07-10 | 腾讯科技(深圳)有限公司 | menu display method and device |
-
2016
- 2016-01-07 CN CN201610009496.8A patent/CN106951152B/en active Active
- 2016-12-28 WO PCT/CN2016/112552 patent/WO2017118329A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102455861A (en) * | 2010-10-20 | 2012-05-16 | 万音达有限公司 | Apparatus and method for displaying menu |
| US20130212517A1 (en) * | 2012-02-13 | 2013-08-15 | Lenovo (Beijing) Co., Ltd. | Electronic Device and Display Processing Method |
| CN104102441A (en) * | 2013-04-09 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Menuitem executing method and device |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110442510A (en) * | 2019-06-19 | 2019-11-12 | 中国平安财产保险股份有限公司 | A kind of page properties acquisition methods, device and computer equipment, storage medium |
| CN114385052A (en) * | 2020-10-19 | 2022-04-22 | 聚好看科技股份有限公司 | Dynamic display method of Tab bar and three-dimensional display equipment |
| CN114385052B (en) * | 2020-10-19 | 2023-10-20 | 聚好看科技股份有限公司 | Dynamic display method of Tab column and three-dimensional display device |
| CN112947828A (en) * | 2021-02-26 | 2021-06-11 | 中消云(北京)物联网科技研究院有限公司 | Control display method and device |
| CN113342230A (en) * | 2021-06-29 | 2021-09-03 | 北京字跳网络技术有限公司 | Control display method, device, equipment and medium |
| CN113769399A (en) * | 2021-09-14 | 2021-12-10 | 网易(杭州)网络有限公司 | Method, device, equipment and storage medium for containing function control in game interface |
| WO2023134655A1 (en) * | 2022-01-12 | 2023-07-20 | 京东方科技集团股份有限公司 | Operation method and apparatus, and electronic device and computer-readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106951152B (en) | 2020-12-08 |
| CN106951152A (en) | 2017-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017118329A1 (en) | Method and apparatus for controlling tab bar | |
| US12056341B2 (en) | Method, apparatus, and terminal for processing notification information | |
| CN104267902B (en) | Application program interactive control method, device and terminal | |
| CN105278799B (en) | Interface switching method and device | |
| US20140089842A1 (en) | Method and device for interface display | |
| CN106708367A (en) | Display method of conversation interface and mobile terminal | |
| CN106780685B (en) | A kind of generation method and terminal of dynamic picture | |
| WO2015106510A1 (en) | Screen splitting method and device for applications, intelligent terminal and storage medium | |
| CN104461348B (en) | Information choosing method and device | |
| CN105589698B (en) | A kind of method and system of quick start system function | |
| CN111831205B (en) | Device control method, device, storage medium and electronic device | |
| CN108008888A (en) | It is a kind of to be switched fast application program and its method and device at interface | |
| US20170269823A1 (en) | Control Display Method and Device, and Terminal | |
| CN109491562A (en) | Interface display method of voice assistant application program and terminal equipment | |
| CN103853481A (en) | Method and system for simulating touch screen mobile terminal keys | |
| US12086395B2 (en) | Device control method, storage medium, and non-transitory computer-readable electronic device | |
| CN107566641A (en) | A kind of multimedia file broadcasting control method and mobile terminal | |
| CN104267907A (en) | Starting or switching method and system of application programs of multi-operation system and terminal | |
| HK1221308A1 (en) | Method and device for switching content panes and terminal | |
| US20170168686A1 (en) | Method and electronic device for processing list item operation | |
| CN108920266A (en) | program switching method, intelligent terminal and computer readable storage medium | |
| CN111831196B (en) | Control method of folding screen, terminal device and storage medium | |
| CN107544740B (en) | Application processing method and device, storage medium and electronic equipment | |
| CN112181228A (en) | Display method and device for displaying | |
| CN109144643A (en) | Fingerprint recognition reminding method, device, storage medium and electronic equipment |
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: 16883454 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: 16883454 Country of ref document: EP Kind code of ref document: A1 |