Control method, apparatus, and electronic device
By detecting page interaction operations and switching the display state of the floating button, the problem of low utilization of the floating button is solved, and the frequency of user use of the floating button is increased.
Patent Information
- Application Number
- CN202310730786.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-08-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2038-08-07
AI Technical Summary
Floating buttons are small and difficult for users to find, resulting in low utilization.
By detecting page interaction operations, it can determine whether the trigger conditions for using the floating button are met, and switch its display state to prompt the user when the conditions are met.
This improved the utilization rate of the floating button and enhanced users' awareness of its use.
Smart Images

Figure CN116700559B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer application technology, and in particular to a control method, device and electronic device. Background Technology
[0002] A floating action button (FAB) is one of the most common interface controls on mobile devices. It typically represents the most important function of an application or a page, and allows for quick navigation to that function.
[0003] Floating buttons follow the page output but are displayed independently of the page. In order not to affect the normal use of the page, they are usually designed to be small in size. Therefore, users often do not easily find floating buttons on the page and do not use them frequently, resulting in low utilization of floating buttons. Summary of the Invention
[0004] This application provides a control method, device, and electronic device to solve the technical problem of low utilization rate of floating buttons in the prior art.
[0005] Firstly, this application provides a control method, including:
[0006] Based on the page output request, display the target page and the floating button in the first display state;
[0007] Detect the first interactive operation on the target page;
[0008] Determine whether the first interactive operation meets the triggering condition for the use of the floating button;
[0009] In response to the determination result that the first interactive operation satisfies the use trigger condition, the floating button is switched from the first display state to the second display state to prompt the user about the floating button.
[0010] Secondly, this application provides a control device, including:
[0011] The first display module is used to display the target page and the floating button in the first display state based on the page output request;
[0012] The first detection module is used to detect the first interactive operation on the target page;
[0013] The first judgment module is used to determine whether the first interactive operation meets the triggering condition for the use of the floating button;
[0014] The first switching module is used to switch the floating button from the first display state to the second display state in response to the judgment result that the first interactive operation meets the use trigger condition, so as to prompt the user about the floating button.
[0015] Thirdly, this application provides an information display device, which provides a display interface for displaying a target page and a floating button in a first display state based on a page output request;
[0016] The display interface is also used to switch the floating button from the first display state to the second display state if the first interactive operation on the target page meets the triggering condition for the use of the floating button, so as to prompt the user about the floating button.
[0017] Fourthly, this application provides an electronic device, including a storage component, a display component, and a processing component; the storage component stores one or more computer program instructions; the one or more computer program instructions are invoked and executed by the processing component.
[0018] The processing component is used for:
[0019] The display component provides a display interface;
[0020] Based on the page output request, the target page and the floating button in the first display state are displayed in the display interface;
[0021] Detect the first interactive operation on the target page;
[0022] Determine whether the first interactive operation meets the triggering condition for the use of the floating button;
[0023] In response to the determination result that the first interactive operation satisfies the use trigger condition, the floating button in the display interface is switched from the first display state to the second display state to prompt the user about the floating button.
[0024] In this embodiment, based on the page output request, the target page and a floating button in the first display state are displayed. By detecting the first interactive operation on the target page, it is determined whether the first interactive operation meets the trigger condition for the use of the floating button. If so, the floating button can be switched to the second display state. By changing the display state of the floating button, the purpose of reminding the user of the floating button is achieved, thereby increasing the probability of the user using the floating button and improving the utilization rate of the floating button.
[0025] These or other aspects of this application will become more apparent in the following description of the embodiments. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 A flowchart of one embodiment of the control method provided in this application is shown;
[0028] Figure 2 A flowchart of yet another embodiment of the control method provided in this application is shown;
[0029] Figures 3a-3c The following are schematic diagrams illustrating the interface display of an embodiment of this application in a practical application;
[0030] Figures 4a to 4f The following are schematic diagrams illustrating the interface display of an embodiment of this application in a practical application;
[0031] Figure 5 A schematic diagram of one embodiment of the control device provided in this application is shown;
[0032] Figure 6 A schematic diagram of the structure of an embodiment of an electronic device provided in this application is shown. Detailed Implementation
[0033] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0034] In some of the processes described in the specification, claims, and accompanying drawings of this application, multiple operations appearing in a specific order are included. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or may be executed in parallel. The operation numbers, such as 101, 102, etc., are merely used to distinguish different operations and do not themselves represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions such as "first," "second," etc., in this document are used to distinguish different messages, devices, modules, etc., and do not represent a chronological order, nor do they limit "first" and "second" to different types.
[0035] The floating action button (FAB) in this embodiment is a common interface control that allows users to perform specific functions on an electronic device. FABs can be included in desktop applications or other applications on electronic devices. The specific function performed by the FAB can be a key operation within an application or a page provided by an application, enabling quick access and potentially attracting more user traffic to that key operation.
[0036] Because floating buttons are small, they are usually guided by specific icons to perform the functions they can. They are typically located at the edge of the display screen so as not to affect page usage. As a result, users often ignore floating buttons, rendering their display meaningless and consuming screen resources.
[0037] To improve the utilization rate of the floating button, the floating button provided in this embodiment has multiple display states. After the floating button is displayed in the first display state following the target page, the first interactive operation on the target page is detected to determine whether the first interactive operation meets the triggering condition for the use of the floating button. If so, the floating button can be switched to the second display state. By changing the display state of the floating button, the purpose of reminding the user of the floating button is achieved, thereby increasing the probability of the user using the floating button and improving the utilization rate of the floating button.
[0038] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0039] Figure 1 A flowchart of one embodiment of a control method provided in this application is shown. The method may include the following steps:
[0040] 101: Based on the page output request, display the target page and the floating button that is in the first display state.
[0041] The target page can refer to any page that is requested to be output. It can be any page output by the target application in the electronic device or a page with a corresponding floating button. The target application can refer to any application, etc.
[0042] This page output request can be triggered by the user. When using electronic devices, users often switch pages, and this page output request can be generated in response to the page switching operation.
[0043] This could include a floating button that displays the target page on the display screen and is in the first display state.
[0044] The floating button can be a specific floating button corresponding to the target page, used to perform a key operation on that target page, or a floating button corresponding to the target application, used to perform a key operation on that target application. If the floating button corresponds to the target application, it can be displayed on any page of the target application; if the floating button corresponds to the target page, it will only be displayed when that target page is displayed.
[0045] In this embodiment of the application, the floating button can have multiple display states. When a page output request is received, the floating button in the first display state can be displayed while the target page is displayed.
[0046] 102: Detect the first interactive operation on the target page.
[0047] 103: Determine whether the first interactive operation meets the trigger condition for using the floating button. If yes, proceed to step 104. Otherwise, return to step 102 to continue execution, or terminate the process.
[0048] 104: Switch the floating button from the first display state to the second display state to prompt the user about the floating button.
[0049] That is, if the first interactive operation satisfies the determination result of the use trigger condition, the floating button can be switched from the first display state to the second display state to prompt the user about the floating button.
[0050] The first display state is different from the second display state.
[0051] In this embodiment of the application, the first interactive operation on the target page is detected to determine whether it meets the triggering conditions for the use of the floating button.
[0052] If the first interactive operation on the target page meets the triggering conditions, it indicates that subsequent operations on the target page or target application may use floating buttons, etc. At this time, the display state of the floating button can be switched. By dynamically changing the display state, the purpose of prompting users to pay attention to the floating button can be achieved, thereby increasing the probability of using the floating button and improving its utilization rate.
[0053] As an optional approach, determining whether the first interactive operation satisfies the trigger condition for using the floating button may include:
[0054] Determine whether the first interactive operation is the first operation on the target page.
[0055] In other words, the floating button can be displayed by switching its state when the user performs the first action on the target page, thus prompting the user to pay attention to it and decide whether to use it for quick operations.
[0056] The trigger condition is that the interaction with the target page is the first interaction with the target page.
[0057] Alternatively, determining whether the first interactive operation satisfies the trigger condition for using the floating button may include:
[0058] Determine whether the operation type of the first interactive operation is a predetermined type.
[0059] The trigger condition is that the type of interactive operation on the target page is a predefined type.
[0060] Interactive operations on the target page can be achieved through touch operations on the display screen.
[0061] The types of interactive operations can include, for example, content switching operations, content selection operations, page zooming in or out operations, etc.
[0062] Since the content of the target page may not be fully displayed on a single screen, a content switching operation can be used to change the page content. This content switching operation can be achieved by performing touch operations such as dragging or clicking on the target page, for example, dragging the target page upwards or clicking on page numbers, which will load the undisplayed content and display it on the screen.
[0063] Content selection can be achieved by performing touch operations such as clicking or swiping to select page content.
[0064] Page zooming in or out can be achieved through touch operations such as double-tapping.
[0065] In a practical application, the predetermined type may refer to a content switching operation. That is, in some embodiments, determining whether the operation type of the first interactive operation is a predetermined type may include:
[0066] Determine whether the first interactive operation is a content switching operation for the target page.
[0067] In other words, if a content switching operation is detected after the target page is displayed, the floating button can be switched to the second display state to prompt the user about the floating button.
[0068] As another optional approach, determining whether the first interactive operation satisfies the triggering condition for the use of the floating button may include:
[0069] Determine whether the first interactive operation is the first operation on the target page and whether the operation type is a predetermined type.
[0070] That is, when the first interactive operation is the first predetermined type of interactive operation performed on the target page, the floating button is switched to the second display state to prompt the user about the floating button.
[0071] The trigger condition is that the interaction operation on the target page is the first operation on the target page and the operation type is a predefined type.
[0072] In a practical application, the predetermined type may refer to a content switching operation. That is, in some embodiments, determining whether the first interaction operation is the first operation on the target page and whether the operation type is a predetermined type includes:
[0073] Determine whether the first interactive operation is the first operation on the target page and whether the operation type is a content switching operation.
[0074] As another optional approach, determining whether the first interactive operation satisfies the triggering condition for the use of the floating button may include:
[0075] Determine whether the content of the first interactive operation is related to the function of the floating button.
[0076] That is, based on the content of the first interactive operation, it is determined whether subsequent operations on the target page or target application will execute the function operation corresponding to the floating button. If so, the display state of the floating button can be switched to prompt the user to use the floating button, etc.
[0077] The trigger condition can specifically refer to the interactive operation on the target page being executed on page content associated with the function operation of the floating button.
[0078] The content of the first interactive operation may refer to the page content corresponding to the operation position of the first interactive operation.
[0079] The first interactive operation can be achieved by performing touch operations such as clicking, dragging, swiping, or double-tapping on the display screen. For touch operations such as clicking, dragging, or double-tapping, the operation position of the first interactive operation can refer to the touch position of the touch operation, and for swiping, it can refer to the end position of the touch operation, etc.
[0080] Furthermore, in some embodiments, after switching the floating button from the first display state to the second display state, the method may further include:
[0081] After the floating button has been in the second display state for a first predetermined period of time, the floating button is switched from the second display state to the first display state.
[0082] That is, after the floating button remains in the second display state for a first predetermined time, it can switch back to the first display state.
[0083] In some embodiments, after switching the floating button from the first display state to the second display state, the method may further include:
[0084] If the first interactive operation is completed, the floating button is switched from the second display state to the first display state.
[0085] That is, the floating button is kept in the second display state only during the execution of the first interactive operation, and can be switched back to the first display state once the first interactive operation ends.
[0086] Figure 2 A flowchart illustrating yet another embodiment of a control method provided in this application is provided. The method may include the following steps:
[0087] 201: Based on the page output request, display the target page and the floating button that is in the first display state.
[0088] 202: Detect the first interactive operation on the target page.
[0089] 203: Determine whether the first interactive operation meets the trigger condition for using the floating button. If yes, proceed to step 204. Otherwise, return to step 202 to continue execution, or the process can be terminated.
[0090] 204: Switch the floating button from the first display state to the second display state to prompt the user about the floating button.
[0091] The operations for steps 201 to 204 can be found in [reference needed]. Figure 1 The steps 101 to 104 described in the illustrated embodiment will not be repeated here.
[0092] 205: Detect a second interactive operation on the target page.
[0093] 206: Determine whether the second interactive operation satisfies the hidden trigger condition of the floating button. If yes, proceed to step 207. Otherwise, return to step 205 to continue execution, or the process can be terminated.
[0094] 207: Switch the floating button from the second display state to the third display state.
[0095] In other words, if the second interactive operation satisfies the hidden trigger condition, the floating button can be switched from the second display state to the third display state.
[0096] The third display state can be different from the second display state. Compared to the first and second display states, the third display state can be the smallest display state, or a hidden state such as a transparent display state, which has a poor display effect, so that the floating button can be ignored when viewing the target page, so as not to affect the normal use or display of the target page.
[0097] Therefore, optionally, the display effect of the second display state is higher than that of the first display state, and the display effect of the first display state is higher than that of the third display state. The higher the display effect, the more eye-catching the floating button is and the easier it is for users to pay attention to it.
[0098] In other words, in this embodiment, upon receiving a page output request, while displaying the target page, the floating button in the first display state can be displayed first. Then, the first interactive operation on the target page is detected. If the first interactive operation meets the usage trigger condition, the floating button is switched from the first display state to the second display state to prompt the user. After that, the second interactive operation on the target page can continue. If the second interactive operation meets the hiding trigger condition, the floating button can be switched from the second display state to the third display state to reduce the display effect of the floating button, so as not to affect the normal use of the target page.
[0099] Furthermore, in some embodiments, after switching the floating button from the first display state to the second display state, the method may further include:
[0100] After the floating button has been in the second display state for a first predetermined period of time, the floating button is switched from the second display state to the first display state.
[0101] In some embodiments, after switching the floating button from the first display state to the second display state, the method may further include:
[0102] If the first interactive operation is completed, the floating button is switched from the second display state to the first display state.
[0103] Therefore, as another embodiment, after switching the floating button from the second display state to the first display state, the method may further include:
[0104] Detect the fourth interactive operation targeting the target page;
[0105] Determine whether the fourth interactive operation satisfies the hidden trigger condition of the floating button;
[0106] In response to the judgment result that the fourth interactive operation satisfies the hidden trigger condition, the floating button is switched from the first display state to the third display state.
[0107] It should be noted that the terms "first", "second", "third" and "fourth" in the "first interactive operation", "second interactive operation", "third interactive operation" and "fourth interactive operation" in the embodiments of this application are only used to distinguish interactive operations detected at different times or under different conditions, and they are all interactive operations targeting the target page.
[0108] Optionally, after switching the floating button from the second display state to the first display state, the method may further include:
[0109] If no trigger operation is detected for the floating button after the floating button has been in the first display state for a second predetermined period of time, the floating button will be switched from the first display state to the third display state.
[0110] Optionally, after switching the floating button from the second display state to the first display state, the method may further include:
[0111] If no trigger operation is detected for the floating button after a third predetermined period of time has elapsed in the first display state, the floating button will be switched from the second display state to the third display state.
[0112] As an optional method, determining whether the second interactive operation satisfies the hiding trigger condition of the floating button may include:
[0113] Determine whether the second interaction operation is the second operation on the target page and whether the operation type is the same as the first operation on the target page.
[0114] The hidden trigger condition means that the interaction operation on the target page is the second operation on the target page and the operation type is the same as the first operation on the target page.
[0115] At this point, determining whether the first interactive operation satisfies the trigger condition for using the floating button can be done as follows:
[0116] Determine whether the first interactive operation is the first operation on the target page;
[0117] or,
[0118] Determine whether the first interactive operation is the first operation on the target page and whether the operation type is a predefined type.
[0119] The predetermined type can be a content switching operation. When performing the first content switching operation on the target page, the floating button can be switched to the second display state to prompt the user. If the user continues to perform the second content switching operation on the target page, it means that the user does not care about the floating button and will not operate it. Instead, the user may continue to perform interactive operations on the target page. At this time, the floating button can be switched to the third display state to reduce the display effect of the floating button and not affect the normal use or display of the target page.
[0120] Alternatively, determining whether the second interactive operation satisfies the hiding trigger condition of the floating button may include:
[0121] Determine whether the content of the second interactive operation is not associated with the function of the floating button.
[0122] In other words, if the content of the second interactive operation is not related to the function of the floating button, it means that the subsequent business operation is not related to the floating button. At this time, there is no need to continue to prompt the user, and the floating button can be switched to the third display state.
[0123] In some embodiments, when the floating button is in a first display state, the method may further include:
[0124] If no trigger operation is detected for the floating button after the floating button has been in the first display state for a second predetermined period of time, the floating button will be switched from the first display state to the third display state.
[0125] In other words, if the floating button remains in the first display state for a second predetermined period of time, and there is no trigger operation on the floating button, the floating button can be switched from the first display state to the third display state.
[0126] Optionally, after the floating button has been in the first display state for a second predetermined period of time, if no first interactive operation on the target page is detected and no trigger operation on the floating button is detected, the floating button may be switched from the first display state to the third display state.
[0127] Furthermore, in some embodiments, when the floating button is in a third display state, the method may further include:
[0128] Detect a third interactive operation on the target page;
[0129] Determine whether the third interactive operation satisfies the trigger condition for the use of the floating button;
[0130] In response to the judgment result that the third interactive operation satisfies the use trigger condition, the floating button is switched from the third display state to the second display state to prompt the user about the floating button.
[0131] The triggering conditions can be found in the above embodiments, and will not be repeated here.
[0132] Optionally, after the floating button has been in the third display state for a fourth predetermined period of time, the third interactive operation on the target page may be detected to determine whether the third interactive operation meets the triggering conditions.
[0133] Furthermore, as another embodiment, when the floating button is in the second display state, the method may further include:
[0134] If no trigger operation is detected for the floating button after a third predetermined period of time has elapsed in the second display state, the floating button will be switched from the second display state to the third display state.
[0135] In other words, if the floating button remains in the second display state for a second predetermined period of time and there is still no trigger operation on the floating button, it indicates that the floating button is unlikely to be used. Therefore, the floating button can be switched to the third display state to reduce the display effect of the floating button.
[0136] In some embodiments, when the floating button is in a third display state, the method may further include:
[0137] After the floating button has been in the third display state for a fifth predetermined period of time, the floating button is switched from the third display state to the second display state. If, after the floating button has been in the second display state for a third predetermined period of time, no trigger operation is detected for the floating button, the floating button can then be switched from the second display state to the third display state. This achieves the purpose of switching the floating button to the second display state at regular intervals to prompt the user about the floating button.
[0138] Furthermore, when switching the target page based on a page output request, the floating button can also switch its display state to simultaneously prompt the user for the floating button's functionality when switching to the target page. Therefore, in some embodiments, the floating button that displays the target page based on the page output request and is in a first display state may include:
[0139] Receive page output requests;
[0140] Display the target page and the floating button in the third display state;
[0141] Switch the floating button from the third display state to the first display state.
[0142] That is, when the target page is output, the floating button in the third display state is displayed first, and then the floating button is switched from the third display state to the first display state. This presents the dynamic change of the floating button's display state when the page is output. Since the display effect of the first display state is better than that of the third display state, it is possible to remind the user of the floating button when the page is output.
[0143] Optionally, in response to a display operation of the third display state of the floating button, the floating button can be switched from the third display state to the first display state. That is, after displaying the floating button in the third display state, the floating button can be switched to the first display state immediately.
[0144] In one or more of the above embodiments, different display states of the floating button can refer to different colors, shapes, brightness, display positions, and / or icons. That is, the floating button in the first display state, the second display state, and the third display state can have different colors, shapes, brightness, display positions, and / or icons.
[0145] For example, since existing floating buttons usually use icons to indicate the function of the floating button, but icons are not easy to understand, the floating button in the first display state can be a control that displays text prompts. The text prompts the user in text form to indicate the function that the floating button can perform.
[0146] To enhance the display effect, optionally, the floating button in the second display state can refer to the control display position dynamically changing within a certain range, thereby achieving the purpose of further prompting the user about the floating button in a dynamic manner.
[0147] To avoid affecting the target page, the floating button in the third display state can be a control that displays an icon, thereby reducing the screen area it occupies.
[0148] For example, a floating button in the second display state can be a control that displays text prompts, a floating button in the first display state can be a control that displays icons, a floating button in the third display state can be a control smaller than the floating button in the first display state, or it can be a control that displays icons while in a hidden state, and so on.
[0149] For example, in a practical application, the floating button in the third display state may include a first control that displays a first icon;
[0150] The floating button in the first display state may include a first control that displays the first icon, a second control that displays text prompts, and a third control that displays the second icon;
[0151] The floating button in the second display state may include a first control displaying a first icon, a second control displaying text prompts, and a third control displaying a second icon, wherein the third control dynamically changes its display position within a predetermined range. Alternatively, the first, second, and third controls may all dynamically change their display positions to create a dynamic effect.
[0152] For ease of understanding, such as Figures 3a-3c The diagrams show the display states of the three floating buttons in different display states.
[0153] Figure 3a The diagram shows the interface display of a floating button in the first display state. It can be seen that the display interface includes a target page 301 and a floating button in the first display state. The floating button in the first display state may include a first control 30 that displays a first icon, a second control 31 that displays text prompt information, and a third control 32 that displays a second icon.
[0154] If the first interactive operation on the target page 301 meets the triggering conditions, such as the first interactive operation being a content switching operation achieved by dragging the target page 301 upwards, then the floating button switches to the second display state, such as... Figure 3b As shown, Figure 3b The floating button in the second display state may include a first control 30 displaying a first icon, a second control 31 displaying text prompts, and a third control 32 displaying the second icon. The third control 32 dynamically changes its display position within a predetermined range. Since the schematic diagram cannot show the dynamic effect, Figure 3b The example only shows the third control 32, which can change its display position, such as to achieve a dynamic effect of jumping up and down.
[0155] After the floating button is in the second display state, it can continue to detect the second interactive operation on the target page 301. If the second interactive operation meets the hiding trigger condition, such as performing a second content switching operation on the target page, that is, continuing to drag the target page 301 upwards, the floating button can be switched to the third display state. Figure 3c As shown, the floating button in the third display state can include the first control 30 that displays the first icon. It can be seen that the floating button in the third display state occupies the smallest area so as not to affect the normal use of the target page.
[0156] Among them, the floating button can remain active during the first interactive operation. Figure 3b The second display state shown can be switched back to the first display state if the first interactive operation is completed. Figure 3c In this context, the floating button can switch from the first display state to the third display state.
[0157] The switching from the first display state to the third display state can be performed dynamically. For example, it can be done by indenting from the end where the third control is located to the other end where the first control is located until the third display state is reached, including only the first control. Optionally, it can be done during the execution of the second interactive operation by indenting from the end where the third control is located to the other end where the first control is located until the third display state is reached, including only the first control.
[0158] In a practical application, suppose the target page is a page output by a target application that provides content publishing functionality. This target page can be a display page within the target application showcasing content published by different users. Therefore, a floating button that follows the target page's output can implement the content publishing function. Clicking the floating button allows users to quickly access the content publishing page, where they can input the content to be published. After submission, the content will be displayed on the target page.
[0159] like Figure 4a To display the interface diagram of target page 401 based on the page output request, while target page 401 is outputting, a floating button in the third display state can also be displayed simultaneously, such as... Figure 4a It is known that the floating button includes a first control 40 that displays the first icon.
[0160] Once the floating button is in the third display state, it can immediately switch back to the first display state, such as... Figure 4b As shown, the floating button in the first display state consists of a first control 40 that displays a first icon, a second control 41 that displays text prompts, and a third control 42 that displays a second icon.
[0161] In this process, switching from the third display state to the first display state can start from one end of the first control 40 and output the second control 41 and the third control 42 in sequence, thus presenting a dynamic change process.
[0162] If the first content switch operation for the target page is detected, for example, Figure 4c In the middle, drag the target page upwards. At this time, the floating button can be switched to the second display state to prompt the user to use the floating button. The floating button in the second display state consists of a first control 40 that displays the first icon, a second control 41 that displays text prompt information, and a third control 42 that displays the second icon. The position of the third control 42 changes dynamically, such as... Figure 4c The text can be moved up and down along the display direction of the target page.
[0163] If the initial content switching operation is completed, the floating button can switch back to the first display state, such as... Figure 4d As shown in the image.
[0164] If no trigger operation is detected for the floating button, but a second content switching operation is detected on the target page, it indicates that the user may not want to use the floating button. In this case, to avoid affecting the normal use and display of the target page, the floating button can be switched to a third display state, such as... Figure 4e As shown, the floating button in the third display state only includes the first control 40 to reduce its footprint. During the transition from the first to the third display state, the button can be indented from one end where the third control 42 is located to the other end where the first control 40 is located, until the third display state is reached, including only the first control, achieving a dynamic switching effect. Figure 4f As shown, the floating button gradually retracts towards the end where the first control 40 is located, while the second control 41 and the third control 42 gradually disappear until they appear. Figure 4e The third display state is shown.
[0165] Figure 5 This application provides a schematic diagram of the structure of a control device according to one embodiment. The device may include:
[0166] The first display module 501 is used to display the target page and the floating button in the first display state based on the page output request;
[0167] The first detection module 502 is used to detect the first interactive operation on the target page;
[0168] The first judgment module 503 is used to determine whether the first interactive operation meets the triggering condition for the use of the floating button;
[0169] The first switching module 504 is used to switch the floating button from the first display state to the second display state in response to the judgment result that the first interactive operation meets the use trigger condition, so as to prompt the user about the floating button.
[0170] In some embodiments, the device may further include:
[0171] The second detection module is used to detect the second interactive operation on the target page;
[0172] The second judgment module is used to determine whether the second interactive operation satisfies the hidden trigger condition of the floating button;
[0173] The second switching module is used to switch the floating button from the second display state to the third display state in response to the judgment result that the second interactive operation meets the hidden trigger condition.
[0174] As an alternative approach, the first determination module can be specifically used to determine whether the first interactive operation is the first operation on the target page.
[0175] As an alternative approach, the first judgment module can be specifically used to determine whether the operation content of the first interactive operation is related to the function operation of the floating button.
[0176] As another alternative, the first determination module can be specifically used to determine whether the first interactive operation is the first operation on the target page and whether the operation type is a predetermined type.
[0177] Optionally, the operation type can be a content switching operation, so the first judgment module can specifically determine whether the first interaction operation is the first content switching operation for the target page.
[0178] In some embodiments, the second determining module may be specifically used to determine whether the second interactive operation is a second operation on the target page and whether the operation type is the same as the first operation on the target page.
[0179] In some embodiments, the device may further include:
[0180] The third switching module is used to switch the floating button from the second display state to the first display state after the floating button has been in the second display state for a first predetermined period of time.
[0181] In some embodiments, the device may further include:
[0182] The fourth switching module is used to switch the floating button from the second display state to the first display state if the first interactive operation ends.
[0183] In some embodiments, the device may further include:
[0184] The fifth switching module is used to switch the floating button from the first display state to the third display state if no trigger operation is detected for the floating button after the floating button has been in the first display state for a second predetermined period of time.
[0185] In some embodiments, the device may further include:
[0186] The third detection module is used to detect a third interactive operation on the target page after the floating button is switched from the first display state to the third display state.
[0187] The third judgment module is used to determine whether the third interactive operation meets the triggering condition for the use of the floating button;
[0188] The sixth switching module is used to respond to the judgment result that the third interactive operation meets the use trigger condition, and switch the floating button from the third display state to the second display state to prompt the user about the floating button.
[0189] In some embodiments, the device may further include:
[0190] The fourth detection module is used to detect a fourth interactive operation on the target page after the floating button is switched from the second display state to the first display state;
[0191] The fourth judgment module is used to determine whether the fourth interactive operation satisfies the hidden trigger condition of the floating button;
[0192] The seventh switching module is used to switch the floating button from the first display state to the third display state in response to the judgment result that the fourth interactive operation meets the hidden trigger condition.
[0193] In some embodiments, the device may further include:
[0194] The eighth switching module is used to switch the floating button from the second display state to the third display state if no trigger operation is detected for the floating button after the floating button has been in the second display state for a third predetermined period of time.
[0195] In some embodiments, the first display module may include:
[0196] The request receiving unit is used to receive page output requests;
[0197] The display unit is used to display the target page and the floating button in the third display state;
[0198] A switching unit is used to switch the floating button from the third display state to the first display state.
[0199] In one or more of the above embodiments, the floating button in the third display state includes a first control that displays a first icon;
[0200] The floating button in the first display state includes a first control that displays the first icon, a second control that displays text prompt information, and a third control that displays the second icon;
[0201] The floating button in the second display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon, and the third control dynamically changes its display position within a predetermined range.
[0202] Figure 5 The control device can perform Figure 1 or Figure 2 The implementation principle and technical effects of the control method described in the illustrated embodiments will not be repeated here. The specific methods by which each module and unit of the control device in the above embodiments performs its operations have been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0203] In addition, this application embodiment also provides an information display device, which provides a display interface for displaying a target page and a floating button in a first display state based on a page output request;
[0204] The display interface is also used to switch the floating button from the first display state to the second display state if the first interactive operation on the target page meets the triggering condition for the use of the floating button, so as to prompt the user about the floating button.
[0205] Furthermore, embodiments of this application also provide an electronic device, such as... Figure 6 As shown, the electronic device may include a storage component 601, a display component 602, and a processing component 603; the storage component 601 stores one or more computer program instructions; the one or more computer program instructions are to be called and executed by the processing component 603.
[0206] The processing component 603 is used for:
[0207] A display interface is provided by the display component 602;
[0208] Based on the page output request, the target page and the floating button in the first display state are displayed in the display interface;
[0209] Detect the first interactive operation on the target page;
[0210] Determine whether the first interactive operation meets the triggering condition for the use of the floating button;
[0211] In response to the determination result that the first interactive operation satisfies the use trigger condition, the floating button in the display interface is switched from the first display state to the second display state to prompt the user about the floating button.
[0212] The processing component 603 may include one or more processors to execute computer instructions to complete all or part of the steps in the above-described method. Alternatively, the processing component may be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0213] Storage component 601 is configured to store various types of data to support the operation of electronic devices. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0214] Display component 602 may be an electroluminescent (EL) element, a liquid crystal display or a microdisplay with a similar structure, or a retina-direct display or a similar laser scanning display.
[0215] Of course, electronic devices may also include other components, such as input / output interfaces and communication components. Input / output interfaces provide an interface between processing components and peripheral interface modules, which can be output devices, input devices, etc. Communication components are configured to facilitate wired or wireless communication between the electronic device and other devices.
[0216] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a computer, can perform the above-described functions. Figure 1 or Figure 2 The control method of the embodiment shown.
[0217] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0218] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0219] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0220] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A control method, characterized in that, include: Display the target page and the floating button in the first display state; The target page is determined based on the page output request; Detect the first interactive operation on the target page; Determine whether the first interactive operation meets the triggering condition for the use of the floating button; When the first interactive operation satisfies the usage triggering condition, the floating button is switched from the first display state to the second display state, and the first display state is different from the second display state; The floating button in the first display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon. The floating button in the second display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon, and the third control dynamically changes its display position within a predetermined range; The floating button also supports switching from the first display state to the third display state. Switching the floating button from the first display state to the third display state includes: starting from the end where the third control is located and moving towards the other end where the first control is located until the third display state is switched.
2. The method according to claim 1, characterized in that, After switching the floating button from the first display state to the second display state, the method further includes: Detect the second interactive operation on the target page; Determine whether the second interactive operation satisfies the hidden trigger condition of the floating button; In response to the judgment result that the second interactive operation satisfies the hiding trigger condition, the floating button is switched from the second display state to the third display state.
3. The method according to claim 1, characterized in that, The determination of whether the first interactive operation meets the trigger condition for using the floating button includes one of the following: Determine whether the first interactive operation is the first operation on the target page; Determine whether the content of the first interactive operation is related to the function of the floating button; Determine whether the first interactive operation is the first operation on the target page and whether the operation type is a predetermined type; or, Determine whether the first interactive operation is the first operation on the target page and whether the operation type is a content switching operation.
4. The method according to claim 2, characterized in that, The step of determining whether the second interactive operation satisfies the hidden trigger condition of the floating button includes: Determine whether the second interaction operation is the second operation on the target page and whether the operation type is the same as the first operation on the target page.
5. The method according to claim 1, characterized in that, After switching the floating button from the first display state to the second display state, the method further includes: After the floating button has been in the second display state for a first predetermined period of time, or if the first interactive operation has ended, the floating button will be switched from the second display state to the first display state.
6. The method according to claim 5, characterized in that, After switching the floating button from the second display state to the first display state, the method further includes: Detect the fourth interactive operation targeting the target page; Determine whether the fourth interactive operation satisfies the hidden trigger condition of the floating button; In response to the judgment result that the fourth interactive operation satisfies the hidden trigger condition, the floating button is switched from the first display state to the third display state.
7. The method according to claim 1, characterized in that, Also includes: If no trigger operation is detected for the floating button after the floating button has been in the first display state for a second predetermined period of time, the floating button will be switched from the first display state to the third display state.
8. The method according to claim 7, characterized in that, After switching the floating button from the first display state to the third display state, the method further includes: Detect a third interactive operation on the target page; Determine whether the third interactive operation satisfies the trigger condition for the use of the floating button; In response to the judgment result that the third interactive operation satisfies the use trigger condition, the floating button is switched from the third display state to the second display state to prompt the user about the floating button.
9. The method according to claim 1, characterized in that, Also includes: If no trigger operation is detected for the floating button after a third predetermined period of time has elapsed in the second display state, the floating button will be switched from the second display state to the third display state.
10. The method according to claim 1, characterized in that, The floating button that displays the target page and is in the first display state includes: Receive page output requests; Display the target page and the floating button in the third display state; Switch the floating button from the third display state to the first display state.
11. The method according to claim 2 or 7, characterized in that, The floating button in the third display state includes a first control that displays a first icon.
12. A control device, characterized in that, A display interface is provided to display the target page and a floating button in a first display state; the target page is determined based on a page output request; The display interface is also used to switch the floating button from the first display state to the second display state if the first interactive operation on the target page meets the usage triggering condition of the floating button, wherein the first display state is different from the second display state. The floating button in the first display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon. The floating button in the second display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon, and the third control dynamically changes its display position within a predetermined range; The floating button also supports switching from the first display state to the third display state. When the display interface switches the floating button from the first display state to the third display state, it specifically does so by indenting from the end where the third control is located to the other end where the first control is located until the third display state is switched.
13. An electronic device, characterized in that, It includes a storage component, a display component, and a processing component; the storage component stores one or more computer program instructions; the one or more computer program instructions are invoked and executed by the processing component; The processing component is used for: The display component provides a display interface; The target page and a floating button in a first display state are displayed in the display interface; the target page is determined based on the page output request. Detect the first interactive operation on the target page; Determine whether the first interactive operation meets the triggering condition for the use of the floating button; When the first interactive operation satisfies the usage trigger condition, the floating button in the display interface is switched from the first display state to the second display state, where the first display state and the second display state are different. The floating button in the first display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon. The floating button in the second display state includes a first control that displays a first icon, a second control that displays text prompts, and a third control that displays a second icon, and the third control dynamically changes its display position within a predetermined range; The floating button also supports switching from the first display state to the third display state. Switching the floating button from the first display state to the third display state includes: starting from the end where the third control is located and moving towards the other end where the first control is located until the third display state is switched.
Citation Information
Patent Citations
Play interface display method and device as well as terminal
CN105988686A
Suspended icon control method and device and terminal
CN106873855A
Batch tidying method and device for icons, and user terminal
CN108052249A
