CN115344151A - Display method and device of suspension control and storage medium - Google Patents

Display method and device of suspension control and storage medium Download PDF

Info

Publication number
CN115344151A
CN115344151A CN202210787345.0A CN202210787345A CN115344151A CN 115344151 A CN115344151 A CN 115344151A CN 202210787345 A CN202210787345 A CN 202210787345A CN 115344151 A CN115344151 A CN 115344151A
Authority
CN
China
Prior art keywords
target
control
information
display
display position
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.)
Pending
Application number
CN202210787345.0A
Other languages
Chinese (zh)
Inventor
唐思远
刘沛
黄烈锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202210787345.0A priority Critical patent/CN115344151A/en
Publication of CN115344151A publication Critical patent/CN115344151A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

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

Abstract

The embodiment of the disclosure relates to a display method, a device and a storage medium of a suspension control, wherein the method comprises the following steps: acquiring operation habit information of a target user; determining a target display position of the suspension control based on the operation habit information; and displaying the suspension control at the target display position. According to the method, the display position of the suspended control can be determined based on the operation habit information of the user, and then the suspended control is displayed, so that the display mode of the suspended control is enriched, the display position of the suspended control can be determined individually for different users, and the operation efficiency of the user on the suspended control is improved.

Description

Display method and device of suspension control and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a display method and device of a suspension control and a storage medium.
Background
A large number of controls are often required during user interaction with a page. For example, a hover control such as a drop down menu, a hover toolbar, a paragraph's menu of operations, and the like. The suspension control can be operated by a user after the page pops up. Currently, the floating control usually needs to calculate its boundary position, and then render it to be displayed at a suitable position for the user to operate.
However, in the prior art, the same logic is usually adopted to determine the position of the floating control displayed to different users, so that the display positions of the floating controls determined for different users are the same under the condition that other factors are the same, and a scheme for determining the display positions of the floating controls individually for different users is lacked.
Disclosure of Invention
In view of this, in order to solve some or all of the above technical problems, embodiments of the present disclosure provide a display method and apparatus for a floating control, and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a display method of a floating control, where the method includes:
acquiring operation habit information of a target user;
determining a target display position of the suspension control based on the operation habit information;
and displaying the suspension control at the target display position.
Optionally, in the method according to any embodiment of the present disclosure, the operation habit information includes moving direction information of a target operation, where the target operation includes an operation performed by the target user in a target period, a start time of the target period is an execution time of a display operation for the floating control, and an end time of the target period is an operation time of a content object in the floating control.
Optionally, in the method according to any embodiment of the present disclosure, the obtaining operation habit information of the target user includes:
and under the condition that the display operation aiming at the floating control is detected, taking an executing user of the display operation as a target user, and acquiring the moving direction information of the target operation of the target user.
Optionally, in a method according to any embodiment of the present disclosure, the determining a target display position of the floating control based on the operation habit information includes:
determining the expected azimuth information of the target user for the floating control relative to the target control based on the moving direction information;
and determining the target display position of the floating control based on the expected azimuth information.
Optionally, in a method according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the floating control with respect to the target control includes:
and determining the moving direction information as the expected azimuth information of the target user for the floating control relative to the target control under the condition that the moving direction information meets the preset condition.
Optionally, in the method of any embodiment of the present disclosure, the preset condition includes: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
Optionally, in a method according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the floating control with respect to the target control includes:
clustering movement direction information of a plurality of target operations of the target user to obtain a heat map of the target user, wherein the heat map represents the number of times of movement in a direction indicated by each piece of the movement direction information;
and determining the expected azimuth information of the target user for the floating control relative to the target control based on the hot spot diagram.
Optionally, in the method according to any embodiment of the present disclosure, the expected azimuth information includes a direction array; the direction representation in the direction array is as follows: a direction in which the target user desires to display the hover control relative to the target control; and
the determining a target display position of the hovering control based on the desired orientation information includes:
sequentially determining a candidate region corresponding to each direction in the direction array, wherein the candidate region is used for displaying the suspension control, and an intersection region of the candidate region and a region where an operation object of the display operation is located is an empty set; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control, wherein the target area is used for displaying the parent objects of the operation object and the floating control.
Optionally, in the method of any embodiment of the present disclosure, the method further includes:
and under the condition that each candidate region corresponding to each direction in the direction array exceeds the target region, determining the candidate region with the largest area in each candidate region as the target display position of the suspension control.
Optionally, in the method according to any embodiment of the present disclosure, in a case that each candidate region corresponding to each direction in the direction array exceeds the target region, the displaying the floating control at the target display position includes:
adjusting the size of the suspension control by adjusting the arrangement mode of the content objects of the suspension control, so that the suspension control after size adjustment is integrally positioned at the target display position; or
And displaying a partial area of the floating control comprising the scroll bar at the target display position.
Optionally, in the method according to any embodiment of the present disclosure, it is determined whether the candidate region corresponding to the direction exceeds the target region in the following manner:
acquiring first position information and first size information of the target control, second size information of the floating control, and second position information and third size information of the target area;
and determining whether the candidate area corresponding to the direction exceeds the target area based on the first position information, the first size information, the second position information, and the third size information.
Optionally, in the method according to any embodiment of the present disclosure, the order of each direction in the direction array is determined based on the number of times that the target user performs the target operation in each direction.
Optionally, in a method according to any embodiment of the present disclosure, the operation habit information is set via the target user.
Optionally, in the method according to any embodiment of the present disclosure, the target control is an operation object of the display operation.
In a second aspect, an embodiment of the present disclosure provides a display apparatus for a floating control, where the apparatus includes:
an acquisition unit configured to acquire operation habit information of a target user;
a first determination unit configured to determine a target display position of the floating control based on the operation habit information;
and the display unit is configured to display the floating control at the target display position.
Optionally, in the apparatus according to any embodiment of the present disclosure, the operation habit information includes moving direction information of a target operation, where the target operation includes an operation performed by the target user in a target period, a start time of the target period is an execution time of a display operation for the floating control, and an end time of the target period is an operation time of a content object in the floating control.
Optionally, in an apparatus according to any embodiment of the present disclosure, the obtaining unit is specifically configured to include:
and taking an executing user of the display operation as a target user and acquiring moving direction information of the target operation of the target user when the display operation aiming at the floating control is detected.
Optionally, in an apparatus according to any embodiment of the present disclosure, the first determining unit is specifically configured to:
determining the expected azimuth information of the target user for the floating control relative to the target control based on the moving direction information;
and determining the target display position of the floating control based on the expected azimuth information.
Optionally, in an apparatus according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the hovering control relative to the target control includes:
and determining the moving direction information as the expected azimuth information of the target user for the floating control relative to the target control under the condition that the moving direction information meets the preset condition.
Optionally, in the apparatus according to any embodiment of the present disclosure, the preset condition includes: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
Optionally, in an apparatus according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the hovering control relative to the target control includes:
clustering movement direction information of a plurality of target operations of the target user to obtain a heat point diagram of the target user, wherein the heat point diagram represents the times of movement in the direction indicated by each piece of movement direction information;
and determining the expected azimuth information of the target user for the floating control relative to the target control based on the hotspot graph.
Optionally, in an apparatus according to any embodiment of the present disclosure, the expected azimuth information includes a direction array; the direction representation in the direction array is as follows: a direction in which the target user desires to display the hover control relative to the target control; and
the first determining unit is specifically configured to:
sequentially determining a candidate region corresponding to each direction in the direction array, wherein the candidate region is used for displaying the suspension control, and an intersection region of the candidate region and a region where an operation object of the display operation is located is an empty set; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control, wherein the target area is used for displaying the parent objects of the operation object and the floating control.
Optionally, in an apparatus according to any embodiment of the present disclosure, the apparatus further includes:
and a second determining unit, configured to determine, as the target display position of the floating control, a candidate region with a largest area among the candidate regions when each candidate region corresponding to each direction in the direction array exceeds the target region.
Optionally, in the apparatus according to any embodiment of the present disclosure, in a case that each candidate region corresponding to each direction in the direction array exceeds the target region, the display unit is specifically configured to:
adjusting the size of the suspension control by adjusting the arrangement mode of the content objects of the suspension control, so that the suspension control after size adjustment is integrally positioned at the target display position; or
And displaying a partial area of the floating control comprising the scroll bar at the target display position.
Optionally, in the apparatus according to any embodiment of the present disclosure, it is determined whether the candidate region corresponding to the direction exceeds the target region in the following manner:
acquiring first position information and first size information of the target control, second size information of the floating control, and second position information and third size information of the target area;
and determining whether the candidate area corresponding to the direction exceeds the target area based on the first position information, the first size information, the second position information, and the third size information.
Optionally, in the apparatus according to any embodiment of the present disclosure, the order of each direction in the direction array is determined based on the number of times the target user performs the target operation in each direction.
Optionally, in an apparatus according to any embodiment of the present disclosure, the operation habit information is set via the target user.
Optionally, in an apparatus according to any embodiment of the present disclosure, the target control is an operation object of the display operation.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory for storing a computer program;
and a processor, configured to execute the computer program stored in the memory, and when the computer program is executed, implement the method according to any embodiment of the display method of the floating control in the first aspect of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium, and when being executed by a processor, the computer program implements the method in any embodiment of the display method of the floating control in the first aspect.
In a fifth aspect, the disclosed embodiments provide a computer program, which includes computer readable code, when the computer readable code is run on a device, causes a processor in the device to execute instructions for implementing the steps in the method according to any one of the embodiments of the display method of a hovering control as described in the first aspect above.
According to the display method of the floating control, the operation habit information of the target user is obtained, then the target display position of the floating control is determined based on the operation habit information, and then the floating control is displayed at the target display position. According to the method, the display position of the suspended control can be determined based on the operation habit information of the user, and then the suspended control is displayed, so that the display mode of the suspended control is enriched, the display position of the suspended control can be determined individually for different users, and the operation efficiency of the user on the suspended control is improved.
Drawings
Fig. 1A is a schematic flowchart of a display method of a floating control according to an embodiment of the present disclosure;
fig. 1B is a schematic diagram illustrating a determining manner of a parent object in a display method of a floating control according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another display method of a floating control according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a display method of another floating control according to an embodiment of the present disclosure;
4A-4G are schematic diagrams of an application scenario for FIG. 3;
fig. 5 is a schematic structural diagram of a display device of a floating control according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions, and values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those within the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used only for distinguishing between different steps, devices, or modules, and do not denote any particular technical meaning or order therebetween.
It is also understood that in the present embodiment, "a plurality" may mean two or more, and "at least one" may mean one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the present disclosure may be generally understood as one or more, unless explicitly defined otherwise or indicated to the contrary hereinafter.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. For the purpose of facilitating an understanding of the embodiments of the present disclosure, the present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments. It is to be understood that the described embodiments are only a few, and not all, of the disclosed embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Further, it should be noted that the users (including the target user) described in the present disclosure may be distinguished by using the user identifier. For example, the user identifier may be a login account, and in this scenario, if different people use the same account to log in, the different people may be considered as the same user; if the same person respectively adopts different account numbers to log in, the same person who logs in different account numbers can be considered as different users.
Fig. 1A is a schematic flowchart of a display method of a floating control according to an embodiment of the present disclosure, and as shown in fig. 1A, the method specifically includes:
101. and acquiring the operation habit information of the target user.
In this embodiment, an execution body (e.g., a terminal device, a display device of the floating control, etc.) of the display method of the floating control may obtain operation habit information of a target user.
The target user may be any user. By way of example, the target user may be a user of a website (e.g., a website having document editing functionality) or an application (e.g., an application having document editing functionality).
The operation habit information can represent the operation habits of the target user. As an example, in the case where the user performs an operation by a mouse, the operation habit information may include: the target user moves the mouse from the first direction to the second direction more times than the second direction to the first direction, or moves the mouse from the first direction to the second direction less times than the second direction to the first direction. The first direction and the second direction may be one or more sets of opposite directions. For example, where the first direction comprises "left", the second direction may comprise "right"; where the first direction comprises "up", the second direction may comprise "down"; in the case where the first direction includes "upper left", the second direction may include "lower right".
Here, the operation habit information may be obtained based on a mouse, a virtual reality handle, or the like, for example, the operation habit information may include a direction in which a target user moves the mouse or the virtual reality handle; alternatively, the operation habit information may be obtained based on a touch screen, a touch pad, or the like, for example, the operation habit information may include a moving direction of a contact point during contact of the target user with the touch screen or the touch pad; still alternatively, the operation habit information may be obtained based on a camera, for example, the operation habit information may include a moving direction of an operation part such as a finger of the target user when the target user does not contact the touch screen or the touch pad, which is collected via the camera.
In some optional implementations of the embodiment, the operation habit information includes moving direction information of the target operation.
Wherein the target operation comprises: the operation performed by the target user during the target period. The start time of the target period is: and the execution time of the display operation of the floating control. The end time of the target period is: and operating the content object in the floating control.
Wherein the target period may be one or more time periods.
In some cases, the display position of the floating control (including the position relative to the display screen, the display position relative to the preset reference control, etc.) is not generally fixed.
Here, it should be noted that, in the process of determining the target operation, the involved hover control may not be limited to the single hover control described in the subsequent step 103, and the number of involved target periods may also be multiple.
Illustratively, if the target users respectively perform the following operations in turn:
in the first step, a display operation for the hover control 1 is performed.
Second, the mouse is moved to the right.
In a third step, an operation (e.g., a click operation) for the content object in hover control 1 is performed.
In the fourth step, a display operation for the floating control 2 is performed.
And fifthly, moving the mouse upwards.
In the sixth step, the operation for the content object in the floating control 2 is executed.
In the seventh step, a display operation for the levitation control 3 is performed.
And eighthly, moving the mouse downwards.
In the ninth step, the operation for the content object in the floating control 3 is executed.
Then, in determining the target display position of the hover control 4, the target operations may include: moving the mouse to the right, moving the mouse up, and moving the mouse down.
Here, an operation performed between a display operation for the same hover control and an operation for a content object in the same hover control may be referred to as a target operation. For multiple hover controls, multiple target operations may be determined. In the process of determining the target position information of the floating control a, the target position information of the floating control a may be determined based on all or part of the target operations performed by the target user in the historical time.
It can be understood that, in the above optional implementation manner, the display position of the floating control may be determined based on the moving direction of the target operation, and then the floating control is displayed, so that the consistency between the display position of the floating control and the moving direction of the target user executing the target operation is improved, the display position of the floating control is more in line with the expectation of the target user, and the user experience is improved.
In some optional implementations of the embodiment, the operation habit information is set by the target user.
It can be understood that, in the above alternative implementation manner, the operation habit information may be set through the setting of the target user, so that the operation habit of the target user may be obtained more accurately.
102. And determining the target display position of the floating control based on the operation habit information.
In this embodiment, the executing body may determine the target display position of the floating control based on the operation habit information acquired in step 101.
The target display position may be an actual display position of the floating control.
In some optional implementations of this embodiment, the executing main body may execute the step 102 in the following manner:
first, desired orientation information of the target user with respect to the hover control with respect to the target control is determined based on the movement direction information.
For example, the execution body may determine the moving direction information as desired orientation information of the target user with respect to the hover control with respect to the target control.
The desired orientation information may include a direction and/or a position where the target user desires to display the hovering control.
And then, determining the target display position of the floating control based on the expected azimuth information.
As an example, in a case where the desired orientation information includes position information, the execution subject may determine a position indicated by the position information as a target display position of the floating control.
As another example, in a case where the desired direction information includes direction information, the execution subject may determine a blank area in a direction indicated by the direction information, and determine a position of the blank area as the target display position of the floating control. The blank area may be an area in which only a background color is displayed. As an example, if the floating control is displayed on the target page, only the area of the target page with the background color is displayed, which may be referred to as a blank area. In the blank area, content objects belonging to the document, such as characters, pictures, tables, menus, panels, and directories, are not usually included.
As another example, in a case where the desired orientation information includes direction information, the execution subject may determine a region that does not overlap with the operation object in the direction indicated by the direction information, and determine a position where the region is located as the target display position of the floating control.
It can be understood that, in the above alternative implementation manner, the target display position of the floating control may be determined based on the desired orientation information of the target user, so that the display position of the floating control may be more in line with the expectation of the target user, thereby improving the user experience.
103. And displaying the suspension control at the target display position.
In this embodiment, the execution body may render the floating control at the target display position, so as to display the floating control at the target display position.
The floating control can be displayed in the target area, or at least a partial area of the floating control can be displayed outside the target area. In addition, the floating control can shield an operation object operated by the target, or not shield the operation object operated by the target. The target area is used for displaying a parent object of the operation object and the floating control. The parent object may be an object for accommodating both the operation object and the floating control.
In practice, the parent objects of both the above-described operation object and the above-described hover control may be determined based on program code for displaying the above-described operation object and the above-described hover control.
For example, please refer to fig. 1B. Fig. 1B is a schematic diagram of a determining manner of a parent object in a display method of a floating control according to an embodiment of the present disclosure. If the program code includes the program code shown in fig. 1B. The operation object corresponds to the program code shown by reference numeral 110, and the floating control corresponds to the program code shown by reference numeral 120. Then, in the above scenario, the program code corresponding to the parent object may be as shown by reference numeral 130 in fig. 1B.
Alternatively, the program code corresponding to the parent object may also be the program code between the tags "< body > </body >" in fig. 1B.
It is to be understood that since the program code for displaying the above operation object and the above hovering control generally has a hierarchical relationship between the respective tabs, here, an upper-level tab (including an upper-level tab, an upper-N-level tab, etc., where N is a positive integer) may be used as a parent tab of a lower-level tab. Correspondingly, in the page, the upper label corresponds to the upper object, the lower label corresponds to the lower object, and the parent label corresponds to the parent object. Therefore, parent objects of the operation object and the floating control can be determined, and further, the target area can be determined.
According to the display method of the floating control, the operation habit information of the target user is obtained, then the target display position of the floating control is determined based on the operation habit information, and then the floating control is displayed at the target display position. According to the method, the display position of the suspended control can be determined based on the operation habit information of the user, and then the suspended control is displayed, so that the display mode of the suspended control is enriched, the display position of the suspended control can be determined individually for different users, and the operation efficiency of the user on the suspended control is improved.
Fig. 2 is a schematic flowchart of a display method of another floating control provided in the embodiment of the present disclosure, and as shown in fig. 2, the method specifically includes:
201. and under the condition that the display operation aiming at the floating control is detected, taking an executing user of the display operation as a target user, and acquiring the moving direction information of the target operation of the target user.
In this embodiment, when a display operation for the floating control is detected, an execution main body (e.g., a terminal device, a display device of the floating control, etc.) of a display method of the floating control may take an execution user of the display operation as a target user and acquire movement direction information of the target operation of the target user.
Wherein the target operation includes an operation performed by the target user during a target period. The start time of the target period is an execution time of a display operation for the floating control. The end time of the target period is an operation time of the content object in the floating control.
202. And determining the target display position of the floating control based on the moving direction information.
In this embodiment, the execution body may determine the target display position of the floating control based on the moving direction information.
In some optional implementations of this embodiment, the executing main body may execute the step 202 in the following manner:
step one, based on the moving direction information, determining the expected azimuth information of the target user for the floating control relative to the target control.
For example, the execution body may determine the moving direction information as desired orientation information of the target user with respect to the hover control with respect to the target control.
The desired orientation information may include a direction and/or a position where the target user desires to display the hovering control.
And secondly, determining the target display position of the floating control based on the expected azimuth information.
As an example, in a case where the desired orientation information includes position information, the execution subject may determine a position indicated by the position information as a target display position of the floating control.
As another example, in a case that the desired orientation information includes the direction information, the execution main body may determine a blank area in the direction indicated by the direction information, and determine a position where the blank area is located as the target display position of the floating control. The blank area may be an area in which only a background color is present. As an example, if the floating control is displayed on the target page, only the area of the target page in which the background color of the target page appears may be referred to as a blank area. In the blank area, content objects belonging to the document, such as characters, pictures, tables, menus, panels, and directories, are not usually included.
As another example, in a case where the desired orientation information includes direction information, the execution subject may determine a region that does not overlap with the operation object in the direction indicated by the direction information, and determine a position where the region is located as the target display position of the floating control.
It can be understood that, in the above alternative implementation manner, the target display position of the floating control may be determined based on the desired orientation information of the target user, so that the display position of the floating control may be more in line with the expectation of the target user, thereby improving the user experience.
In some application scenarios in the above-described alternative implementation, the target control is an operation object of the display operation.
As an example, if the execution body displays a floating control after the target user clicks the operation object 1, in this scenario, the operation object 1 may be used as a target control.
In some application scenarios in the above optional implementation manners, the executing entity may execute the step one as follows:
and determining the moving direction information as the expected azimuth information of the target user for the floating control relative to the target control under the condition that the moving direction information meets the preset condition.
In some cases in the application scenario, the preset condition includes: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
Optionally, the preset condition may further include: and the frequency of the movement to the direction indicated by the movement direction information is greater than or equal to a preset frequency threshold value.
It can be understood that, in the application scenario, the moving direction information meeting the preset condition may be directly used as the expected direction information of the target user. Thereby, the speed of obtaining desired orientation information can be increased.
In some application scenarios in the above optional implementation manners, the executing main body may also execute the step one as follows:
firstly, clustering moving direction information of a plurality of target operations of the target user to obtain a hot spot map of the target user.
Wherein the heat map indicates the number of times of movement in the direction indicated by each of the movement direction information. In the hotspot graph, each point may represent a piece of moving direction information, so that the more densely points in the hotspot graph are, the more times the corresponding target user moves to the direction indicated by the corresponding moving direction information. Or, the darker the area in the hotspot graph, the more times the corresponding target user moves in the direction indicated by the corresponding movement direction information.
And then, based on the heat point diagram, determining the expected orientation information of the target user relative to the target control for the floating control.
As an example, the execution subject may determine, as the desired orientation information of the target user with respect to the floating control with respect to the target control, moving direction information corresponding to an area in which a color depth is greater than a preset depth threshold or a density of points is greater than a preset density threshold.
Here, if the number of pieces of movement direction information corresponding to the above-mentioned area is greater than 1, the average direction of the directions indicated by the pieces of movement direction information corresponding to the area, respectively, may be determined as the direction corresponding to the desired azimuth information.
It can be understood that, in the above application scenario, the expected location information of the target user may be determined based on the hotspot graph, so that the probability that the determined expected location information meets the expectation of the target user may be improved.
203. And displaying the suspension control at the target display position.
In this embodiment, the execution body may display the floating control at the target display position.
In this embodiment, step 203 is substantially the same as step 103 in the corresponding embodiment of fig. 1A, and is not described herein again.
It should be noted that, in addition to the above-mentioned contents, the present embodiment may further include technical features described in the embodiment corresponding to fig. 1A, so as to achieve the technical effect of the display method of the floating control shown in fig. 1A, and for brevity, please refer to the description related to fig. 1A, which is not repeated herein.
According to the display method of the floating control provided by the embodiment of the disclosure, under the condition that the display operation for the floating control is detected, the execution user of the display operation is taken as the target user, the moving direction information of the target operation of the target user is obtained, and the display position of the floating control is further determined for the target user, so that the position of the floating control displayed each time is more in line with the expectation of the user.
Fig. 3 is a flowchart illustrating a display method of a floating control according to an embodiment of the present disclosure, where the method may be applied to electronic devices such as a smart phone, a notebook computer, a desktop computer, and a portable computer.
Specifically, as shown in fig. 3, the method specifically includes:
301. and taking an executing user of the display operation as a target user and acquiring moving direction information of the target operation of the target user when the display operation aiming at the floating control is detected.
In this embodiment, when a display operation for a floating control is detected, an execution subject (e.g., a terminal device, a display device of the floating control, etc.) of a display method of the floating control may take an execution user of the display operation as a target user and acquire movement direction information of the target operation of the target user.
The target operation includes an operation performed by the target user in a target period, a start time of the target period is an execution time of a display operation for the hover control, and an end time of the target period is an operation time of a content object in the hover control.
In this embodiment, step 301 is substantially the same as step 201 in the embodiment corresponding to fig. 2, and is not described herein again.
302. And determining the expected azimuth information of the target user for the floating control relative to the target control based on the moving direction information.
In this embodiment, the execution body may determine, based on the movement direction information, desired orientation information of the target user with respect to the hover control with respect to the target control.
Wherein the desired orientation information comprises a direction array. The direction representation in the direction array is as follows: the target user desires to display the direction of the hover control relative to the target control.
In this embodiment, step 302 is substantially the same as step one in the corresponding embodiment of fig. 2, and is not described herein again.
303. Sequentially determining a candidate area corresponding to each direction in the direction array; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control.
In this embodiment, the execution subject may sequentially determine, for each direction in the direction array, a candidate region corresponding to the direction. And determining the candidate area corresponding to the direction as the target display position of the floating control under the condition that the candidate area corresponding to the direction does not exceed the target area.
The candidate area is used for displaying the floating control, and an intersection area of the candidate area and an area where the operation object of the display operation is located is an empty set. The target area is used for displaying a parent object of the operation object and the floating control.
Here, an intersection region of the candidate region and the region where the operation object of the display operation is located is an empty set, so that the subsequently presented floating control and the operation object are not occluded with each other.
304. And displaying the suspension control at the target display position.
In this embodiment, the execution body may display the floating control at the target display position.
In this embodiment, step 304 is substantially the same as step 103 in the corresponding embodiment of fig. 1A, and is not described herein again.
In some optional implementation manners of this embodiment, the executing main body may further perform the following steps:
and under the condition that each candidate region corresponding to each direction in the direction array exceeds the target region, determining the candidate region with the largest area in each candidate region as the target display position of the suspension control.
It is to be understood that, in the above alternative implementation manner, the candidate region with the largest area may be determined as the target display position of the floating control, so that a smaller portion of the finally displayed floating control beyond the target region may be ensured.
In some application scenarios in the above-described optional implementation manner, in a case that each candidate region corresponding to each direction in the direction array exceeds the target region, the executing book block may execute step 304 in one of the following manners:
in a first mode, the size of the floating control is adjusted by adjusting the arrangement mode of the content objects of the floating control, so that the floating control after size adjustment is integrally located at the target display position.
In a second mode, a partial region of the floating control including the scroll bar is displayed at the target display position.
It can be understood that, in the application scenario, the size of the floating control may be adjusted or a scroll bar may be added to avoid that the finally displayed floating control does not exceed the target area when each candidate area corresponding to each direction in the direction array exceeds the target area.
In some optional implementation manners of this embodiment, it may be determined whether the candidate region corresponding to the direction exceeds the target region in the following manner:
first, first position information and first size information of the target control, second size information of the floating control, and second position information and third size information of the target area are obtained.
Then, it is determined whether or not the candidate area corresponding to the direction exceeds the target area based on the first position information, the first size information, the second position information, and the third size information.
As an example, taking this direction as the right and the left of the operation object as an example:
first, it is calculated whether there is enough space to render right of the operation object.
Specifically, the calculation result may be obtained by subtracting the distance of the right side of the operation target from the target region (which may be determined based on the first position information, the first size information, the second position information, and the third size information) by using the width of the target region (which may be included in the third size information). Then, whether the calculation result is larger than or equal to the width of the floating control (can be contained in the second size information) is determined
Thereafter, if sufficient, calculation of the target display position may be performed.
Specifically, the abscissa of the target display position is: distance of the right side of the object of operation with respect to the target area. The ordinate of the target display position is: distance of the upper side of the operation object with respect to the target area.
If there is not enough space rendering in that direction, the next direction of the direction array will be calculated.
It is understood that, in the above alternative implementation manner, whether the candidate region corresponding to each direction exceeds the target region may be sequentially determined according to the sequence of each direction in the direction array, so as to obtain the target display position that does not exceed the target region.
In some optional implementations of the embodiment, an order of each direction in the direction array is determined based on a number of times the target user performs the target operation in each direction.
As an example, the directions in the direction array may be arranged in descending order of the number of times that the target user performs the target operation in each of the directions. For example, if the target user performs the target operation "move mouse left" 2 times and performs the target operation "move mouse up" 1 times, the first direction in the direction array may be "left" and the second direction may be "up".
As yet another example, the directions contained in the direction array may also be predetermined. For example, the above directions may include: up and down. And then, performing statistical analysis on the target operation executed by the target user. For example, the number of times the target user performs the target operation "move the mouse from top left to bottom right" is 10, the number of times the target user performs the target operation "move the mouse from top right to bottom left" is 1, the number of times the target user performs the target operation "move the mouse from bottom left to top right" is 5, and the number of times the target user performs the target operation "move the mouse from bottom right to top left" is 3. Then, the direction indicated by the moving direction information of each target operation may be calculated, the similarity with each of the above directions may be calculated, and the direction having the greatest similarity with the direction indicated by the moving direction information of the target operation (i.e., the direction closest to the direction) may be taken as the target direction corresponding to the target operation. Thereby obtaining the target direction corresponding to each target operation. And then, determining the number of target operations corresponding to each direction respectively, and sequencing each direction according to the sequence from large to small to obtain a direction array.
It is to be understood that, in the above alternative implementation manner, the order of each direction in the direction array may be determined based on the number of times that the target user performs the target operation in each direction, so that the direction corresponding to the target operation performed by the target user with the larger number of times is located at a position closer to the front in the direction array, and it is preferentially determined whether the candidate region corresponding to the direction closer to the front exceeds the target region, thereby increasing the speed of determining the target display position.
It should be noted that, in addition to the above-mentioned contents, the present embodiment may further include technical features described in the embodiment corresponding to fig. 1A or fig. 2, so as to achieve the technical effect of the display method of the floating control shown in fig. 1A or fig. 2, and please refer to the description related to fig. 1A or fig. 2 for brevity, which is not repeated herein.
According to the display method of the floating control, the target display position of the floating control can be determined based on the candidate area corresponding to the direction in the direction array, so that the shielding of the display of the floating space on an operation object can be avoided.
With continuing reference to fig. 4A-4G, fig. 4A-4G are schematic diagrams of an application scenario for fig. 3.
The embodiments of the present disclosure will be exemplified with reference to fig. 4A to 4G, but it should be noted that the embodiments of the present disclosure may have the features described below, but the following description does not constitute a limitation to the scope of the embodiments of the present disclosure.
In this embodiment, as shown in fig. 4A, the interaction habits (i.e., the above operation habit information) of the user may be recorded in an artificial intelligence manner, the tendency (e.g., upper left, upper right, etc.) of the user to the position of the floating-type panel (i.e., the above target position information) is identified, a plurality of directions that can be rendered (with enough space) are obtained through collision detection, and finally, the rendering direction is determined by identifying the tendency of the user in an artificial intelligence manner.
The renderable position information is intelligently calculated through user habits, the rendering position (namely the target position information) can be customized by a caller (namely the target user), and the rendering position can also be determined based on the direction array. Wherein, the user habit may be: the moving direction of the mouse after the user clicks the menu (i.e. the above-mentioned operation object), or the moving direction of the corresponding finger in the touch screen.
Specifically, by means of artificial intelligence, interaction habits (i.e., the operation habit information) of a user (e.g., the target user) are recorded, a desired rendering position (i.e., the desired orientation information) of the user on the floating type panel (i.e., the floating control) is identified, appropriate orientation information (i.e., the target position information) is calculated, and then the panel (i.e., the floating control) is rendered according to the result, so that a code for calculating the panel position (i.e., the target display position) does not need to be written repeatedly, and the positions of all the panels are consistent in expression.
Since the rendered position (i.e., the target display position) of the floating type panel (i.e., the floating control) is a position of the reference object (i.e., the target control), for example, the rendered position is a regular position such as the position on the upper left, right, or above the reference object, the information required for calculating the position (i.e., the target position information) includes: the position (i.e. the desired position information) that the user desires to render, and the position size information (i.e. the first position information and the first size information) of the reference object, such as the width and the height of the reference object, and the positions of the upper, lower, left and right boundaries of the reference object from the screen; the width and height of the floating panel (i.e. the second size information of the floating control); and the width and height of the boundary container (i.e., the target area) (i.e., the third size information), and the position of the upper, lower, left, and right boundaries of the boundary container from the screen (i.e., the second position information).
After obtaining the above information (i.e., the above first position information, first size information, second position information, and third size information), the user may expect whether a rendering direction (e.g., each direction in the direction array) collides with the boundary container contact (when the rendering position exceeds the width and height of the boundary container), and finally obtain a position and position information that can be rendered (i.e., the above target position information). Here, it may be determined whether the user desires to collide with the bounding container in the rendering direction with reference to fig. 4B.
Wherein, the direction array may include: several directions the user desires to render, such as rendering to the right above, directly to the right of, etc., the reference target (referrRect). Here, the determination method of the direction array may refer to fig. 4C.
The calculation function may be used for rendering positions in a certain direction.
Here, referring to fig. 4D, a calculation method is explained: take the rendering directly to the right of the reference object (referrRect) as an example: first, whether enough space is rendered right and left of the reference object is calculated (determined by calculating whether the difference between the width of the contact Rect and the distance between the right side of the transfer Rect and the contact Rect is larger than the width of the rendering panel), and if so, the rendering position is calculated (the abscissa of the rendering position is the distance between the right side of the transfer Rect and the contact Rect, and the ordinate of the rendering position is the distance between the upper side of the transfer Rect and the contact Rect). If there is insufficient space, the next direction of the direction array is calculated.
In addition, when the space corresponding to all directions in the direction array is not enough (that is, each candidate area corresponding to each direction in the direction array exceeds the target area), one direction with a larger space may be selected as the direction for rendering the menu, and the rendering manner may include two types:
first, as shown in fig. 4E, a partial region of the hover control including a scroll bar may be displayed at the target display position. By dragging the scroll bar, other content objects in the hover space, not shown in FIG. 4E, may be displayed.
And in the second mode, the menu is rearranged. That is, the size of the floating control is adjusted by adjusting the arrangement of the content objects of the floating control, so that the floating control after size adjustment is entirely located at the target display position. For example, a menu such as that shown in FIG. 4F (i.e., the hover control described above) may have insufficient space down, but sufficient space to the right, and the menu may be expanded to the right. Such as: the content objects in the menu shown in fig. 4F are adjusted from 3 lines to 2 lines. The arrangement of the content objects in the adjusted menu may be as shown in fig. 4G.
The display method of the floating control, provided by the embodiment of the disclosure, can solve the problems that the rendering position of the floating panel is not in line with the expectation of a user and the redundant codes are calculated by the rendering position of the floating panel of a developer, thereby improving the readability and maintenance efficiency of the codes and reducing the generation of the redundant codes. The code readability and the maintenance efficiency of the similar functions of the floating panel are improved.
Fig. 5 is a schematic structural diagram of a display device of a floating control according to an embodiment of the present disclosure, which specifically includes:
an obtaining unit 501 configured to obtain operation habit information of a target user;
a first determining unit 502 configured to determine a target display position of the floating control based on the operation habit information;
a display unit 503 configured to display the floating control at the target display position.
Optionally, in the apparatus according to any embodiment of the present disclosure, the operation habit information includes moving direction information of a target operation, where the target operation includes an operation performed by the target user in a target period, a start time of the target period is an execution time of a display operation for the floating control, and an end time of the target period is an operation time of a content object in the floating control.
Optionally, in an apparatus according to any embodiment of the present disclosure, the obtaining unit 501 is specifically configured to include:
and taking an executing user of the display operation as a target user and acquiring moving direction information of the target operation of the target user when the display operation aiming at the floating control is detected.
Optionally, in an apparatus according to any embodiment of the present disclosure, the first determining unit 502 is specifically configured to:
determining the expected azimuth information of the target user for the floating control relative to the target control based on the moving direction information;
and determining the target display position of the floating control based on the expected azimuth information.
Optionally, in an apparatus according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user with respect to the floating control with respect to the target control includes:
and determining the moving direction information as the expected azimuth information of the target user for the floating control relative to the target control under the condition that the moving direction information meets the preset condition.
Optionally, in the apparatus according to any embodiment of the present disclosure, the preset condition includes: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
Optionally, in an apparatus according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the hovering control relative to the target control includes:
clustering movement direction information of a plurality of target operations of the target user to obtain a heat map of the target user, wherein the heat map represents the number of times of movement in a direction indicated by each piece of the movement direction information;
and determining the expected azimuth information of the target user for the floating control relative to the target control based on the hot spot diagram.
Optionally, in the apparatus according to any embodiment of the present disclosure, the expected orientation information includes a direction array; the direction representation in the direction array is as follows: a direction in which the target user desires to display the hover control relative to the target control; and
the first determining unit 502 is specifically configured to:
sequentially determining a candidate region corresponding to each direction in the direction array, wherein the candidate region is used for displaying the suspension control, and an intersection region of the candidate region and a region where an operation object of the display operation is located is an empty set; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control, wherein the target area is used for displaying the parent objects of the operation object and the floating control.
Optionally, in an apparatus according to any embodiment of the present disclosure, the apparatus further includes:
the second determining unit (not shown in the figure) is specifically configured to determine, as the target display position of the floating control, a candidate region with a largest area among the candidate regions when each candidate region corresponding to each direction in the direction array exceeds the target region.
Optionally, in the apparatus according to any embodiment of the present disclosure, in a case that each candidate area corresponding to each direction in the direction array exceeds the target area, the display unit is specifically configured to:
adjusting the size of the suspension control by adjusting the arrangement mode of the content objects of the suspension control, so that the suspension control with the adjusted size is integrally positioned at the target display position; or
And displaying a partial area of the floating control comprising the scroll bar at the target display position.
Optionally, in the apparatus according to any embodiment of the present disclosure, it is determined whether the candidate region corresponding to the direction exceeds the target region in the following manner:
acquiring first position information and first size information of the target control, second size information of the floating control, and second position information and third size information of the target area;
and determining whether the candidate area corresponding to the direction exceeds the target area based on the first position information, the first size information, the second position information, and the third size information.
Optionally, in an apparatus according to any embodiment of the present disclosure, an order of each direction in the direction array is determined based on a number of times that the target user performs the target operation in each direction.
Optionally, in an apparatus according to any embodiment of the present disclosure, the operation habit information is set via the target user.
Optionally, in an apparatus according to any embodiment of the present disclosure, the target control is an operation object of the display operation. The display device of the floating control provided in this embodiment may be the display device of the floating control shown in fig. 5, and may perform all the steps of the display method of the floating control shown in fig. 1A to 4G, so as to achieve the technical effect of the display method of the floating control shown in fig. 1A to 4G, which is described with reference to fig. 1A to 4G specifically, and for brevity, no further description is provided here.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the electronic device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the disclosure may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. Programs that implement methods of embodiments of the disclosure can be included in the application program 6022.
In this embodiment, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
acquiring operation habit information of a target user;
determining a target display position of the suspension control based on the operation habit information;
and displaying the suspension control at the target display position.
Optionally, in the method according to any embodiment of the present disclosure, the operation habit information includes moving direction information of a target operation, where the target operation includes an operation performed by the target user in a target period, a start time of the target period is an execution time of a display operation for the floating control, and an end time of the target period is an operation time of a content object in the floating control.
Optionally, in a method according to any embodiment of the present disclosure, the obtaining operation habit information of the target user includes:
and taking an executing user of the display operation as a target user and acquiring moving direction information of the target operation of the target user when the display operation aiming at the floating control is detected.
Optionally, in a method according to any embodiment of the present disclosure, the determining a target display position of the floating control based on the operation habit information includes:
determining the expected azimuth information of the target user for the floating control relative to the target control based on the moving direction information;
and determining the target display position of the floating control based on the expected azimuth information.
Optionally, in a method according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired azimuth information of the target user with respect to the floating control with respect to the target control includes:
and determining the moving direction information as the expected azimuth information of the target user for the floating control relative to the target control under the condition that the moving direction information meets the preset condition.
Optionally, in a method according to any embodiment of the present disclosure, the preset condition includes: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
Optionally, in a method according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the floating control with respect to the target control includes:
clustering movement direction information of a plurality of target operations of the target user to obtain a heat map of the target user, wherein the heat map represents the number of times of movement in a direction indicated by each piece of the movement direction information;
and determining the expected azimuth information of the target user for the floating control relative to the target control based on the hot spot diagram.
Optionally, in the method according to any embodiment of the present disclosure, the expected azimuth information includes a direction array; the direction representation in the direction array is as follows: relative to the target control, the target user desires to display the direction of the hover control; and
the determining a target display position of the hovering control based on the desired orientation information includes:
sequentially determining a candidate region corresponding to each direction in the direction array, wherein the candidate region is used for displaying the suspension control, and an intersection region of the candidate region and a region where an operation object of the display operation is located is an empty set; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control, wherein the target area is used for displaying the parent objects of the operation object and the floating control.
Optionally, in the method of any embodiment of the present disclosure, the method further includes:
and under the condition that each candidate region corresponding to each direction in the direction array exceeds the target region, determining the candidate region with the largest area in each candidate region as the target display position of the suspension control.
Optionally, in the method according to any embodiment of the present disclosure, in a case that each candidate region corresponding to each direction in the direction array exceeds the target region, the displaying the floating control at the target display position includes:
adjusting the size of the suspension control by adjusting the arrangement mode of the content objects of the suspension control, so that the suspension control after size adjustment is integrally positioned at the target display position; or alternatively
And displaying a partial area of the floating control comprising the scroll bar at the target display position.
Optionally, in the method according to any embodiment of the present disclosure, it is determined whether the candidate region corresponding to the direction exceeds the target region in the following manner:
acquiring first position information and first size information of the target control, second size information of the floating control, and second position information and third size information of the target area;
and determining whether the candidate area corresponding to the direction exceeds the target area based on the first position information, the first size information, the second position information, and the third size information.
Optionally, in the method according to any embodiment of the present disclosure, the order of each direction in the direction array is determined based on the number of times that the target user performs the target operation in each direction.
Optionally, in the method according to any embodiment of the present disclosure, the operation habit information is set via the target user.
Optionally, in the method according to any embodiment of the present disclosure, the target control is an operation object of the display operation.
The method disclosed by the embodiment of the present disclosure can be applied to the processor 601 or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented in 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), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the above-described functions of the present disclosure, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 5, and may execute all the steps of the display method of the floating control shown in fig. 1A to 4G, so as to achieve the technical effect of the display method of the floating control shown in fig. 1A to 4G.
The disclosed embodiments also provide a storage medium (computer-readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When the one or more programs in the storage medium are executable by the one or more processors, the method for displaying the floating control executed on the electronic device side is realized.
The processor is configured to execute a display program of the floating control stored in the memory, so as to implement the following steps of the display method of the floating control executed on the electronic device side:
acquiring operation habit information of a target user;
determining a target display position of the suspension control based on the operation habit information;
and displaying the suspension control at the target display position.
Optionally, in the method according to any embodiment of the present disclosure, the operation habit information includes moving direction information of a target operation, where the target operation includes an operation performed by the target user in a target period, a start time of the target period is an execution time of a display operation for the floating control, and an end time of the target period is an operation time of a content object in the floating control.
Optionally, in the method according to any embodiment of the present disclosure, the obtaining operation habit information of the target user includes:
and taking an executing user of the display operation as a target user and acquiring moving direction information of the target operation of the target user when the display operation aiming at the floating control is detected.
Optionally, in a method according to any embodiment of the present disclosure, the determining a target display position of the floating control based on the operation habit information includes:
determining the expected azimuth information of the target user for the floating control relative to the target control based on the moving direction information;
and determining the target display position of the floating control based on the expected azimuth information.
Optionally, in a method according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the floating control with respect to the target control includes:
and determining the moving direction information as the expected azimuth information of the target user for the floating control relative to the target control under the condition that the moving direction information meets the preset condition.
Optionally, in the method of any embodiment of the present disclosure, the preset condition includes: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
Optionally, in a method according to any embodiment of the present disclosure, the determining, based on the moving direction information, desired orientation information of the target user for the floating control with respect to the target control includes:
clustering movement direction information of a plurality of target operations of the target user to obtain a heat map of the target user, wherein the heat map represents the number of times of movement in a direction indicated by each piece of the movement direction information;
and determining the expected azimuth information of the target user for the floating control relative to the target control based on the hot spot diagram.
Optionally, in the method according to any embodiment of the present disclosure, the expected azimuth information includes a direction array; the direction representation in the direction array is as follows: a direction in which the target user desires to display the hover control relative to the target control; and
the determining a target display position of the hovering control based on the desired orientation information includes:
sequentially determining a candidate area corresponding to each direction in the direction array, wherein the candidate area is used for displaying the suspension control, and an intersection area of the candidate area and an area where an operation object of the display operation is located is an empty set; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control, wherein the target area is used for displaying the parent objects of the operation object and the floating control.
Optionally, in the method of any embodiment of the present disclosure, the method further includes:
and under the condition that each candidate region corresponding to each direction in the direction array exceeds the target region, determining the candidate region with the largest area in each candidate region as the target display position of the suspension control.
Optionally, in the method according to any embodiment of the present disclosure, in a case that each candidate region corresponding to each direction in the direction array exceeds the target region, the displaying the floating control at the target display position includes:
adjusting the size of the suspension control by adjusting the arrangement mode of the content objects of the suspension control, so that the suspension control after size adjustment is integrally positioned at the target display position; or
And displaying a partial area of the floating control comprising the scroll bar at the target display position.
Optionally, in the method of any embodiment of the present disclosure, it is determined whether the candidate region corresponding to the direction exceeds the target region in the following manner:
acquiring first position information and first size information of the target control, second size information of the floating control, and second position information and third size information of the target area;
and determining whether the candidate area corresponding to the direction exceeds the target area based on the first position information, the first size information, the second position information and the third size information.
Optionally, in the method according to any embodiment of the present disclosure, the order of each direction in the direction array is determined based on the number of times that the target user performs the target operation in each direction.
Optionally, in the method according to any embodiment of the present disclosure, the operation habit information is set via the target user.
Optionally, in a method according to any embodiment of the present disclosure, the target control is an operation object of the display operation.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present disclosure are described in further detail, it should be understood that the above-mentioned embodiments are merely illustrative of the present disclosure and are not intended to limit the scope of the present disclosure, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. A display method of a floating control, the method comprising:
acquiring operation habit information of a target user;
determining a target display position of the suspension control based on the operation habit information;
and displaying the suspension control at the target display position.
2. The method according to claim 1, wherein the operation habit information comprises moving direction information of a target operation, wherein the target operation comprises an operation performed by the target user in a target period, a starting time of the target period is an execution time of a display operation for the hovering control, and an ending time of the target period is an operation time of a content object in the hovering control.
3. The method according to claim 2, wherein the obtaining operation habit information of the target user comprises:
the method comprises the steps of taking an executing user of a display operation as a target user and obtaining moving direction information of the target operation of the target user under the condition that the display operation aiming at a floating control is detected.
4. The method of claim 3, wherein determining the target display position of the hovering control based on the operation habit information comprises:
determining desired orientation information of the target user for the hover control relative to a target control based on the movement direction information;
determining a target display position of the hovering control based on the desired orientation information.
5. The method of claim 4, wherein determining desired orientation information of the target user for the hover control relative to a target control based on the movement direction information comprises:
and under the condition that the moving direction information meets a preset condition, determining the moving direction information as expected azimuth information of the target user for the floating control relative to the target control.
6. The method according to claim 5, wherein the preset conditions include: the number of times of moving to the direction indicated by the moving direction information is greater than or equal to a preset number threshold.
7. The method of claim 4, wherein the determining desired orientation information of the target user for the hover control relative to a target control based on the movement direction information comprises:
clustering moving direction information of a plurality of target operations of the target user to obtain a heat point diagram of the target user, wherein the heat point diagram represents the number of times of moving to the direction indicated by each piece of moving direction information;
based on the hotspot graph, determining desired orientation information of the target user for the hover control relative to a target control.
8. The method of any of claims 4-7, wherein the desired orientation information comprises a direction array; the direction representation in the direction array: an orientation of the target user desiring to display the hover control relative to the target control; and
the determining a target display position of the hovering control based on the desired orientation information comprises:
sequentially determining a candidate region corresponding to each direction in the direction array, wherein the candidate region is used for displaying the suspension control, and an intersection region of the candidate region and a region where an operation object of the display operation is located is an empty set; and under the condition that the candidate area corresponding to the direction does not exceed the target area, determining the candidate area corresponding to the direction as the target display position of the floating control, wherein the target area is used for displaying the parent objects of the operation object and the floating control.
9. The method of claim 8, further comprising:
and under the condition that each candidate region corresponding to each direction in the direction array exceeds the target region, determining the candidate region with the largest area in each candidate region as the target display position of the suspension control.
10. The method of claim 9, wherein displaying the hover control at the target display position if each candidate region corresponding to each direction in the direction array exceeds the target region comprises:
adjusting the size of the suspension control by adjusting the arrangement mode of the content objects of the suspension control, so that the suspension control with the adjusted size is integrally positioned at the target display position; or
And displaying a partial area of the floating control comprising a scroll bar at the target display position.
11. The method of claim 8, wherein the order of the directions in the array of directions is determined based on a number of times the target user performs the target operation in each of the directions.
12. The method according to any one of claims 4 to 7, wherein the target control is an operation object of the display operation.
13. A display apparatus for hovering controls, the apparatus comprising:
an acquisition unit configured to acquire operation habit information of a target user;
a first determination unit configured to determine a target display position of the floating control based on the operation habit information;
a display unit configured to display the floating control at the target display position.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 12.
CN202210787345.0A 2022-07-04 2022-07-04 Display method and device of suspension control and storage medium Pending CN115344151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210787345.0A CN115344151A (en) 2022-07-04 2022-07-04 Display method and device of suspension control and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210787345.0A CN115344151A (en) 2022-07-04 2022-07-04 Display method and device of suspension control and storage medium

Publications (1)

Publication Number Publication Date
CN115344151A true CN115344151A (en) 2022-11-15

Family

ID=83948185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210787345.0A Pending CN115344151A (en) 2022-07-04 2022-07-04 Display method and device of suspension control and storage medium

Country Status (1)

Country Link
CN (1) CN115344151A (en)

Similar Documents

Publication Publication Date Title
US10691331B2 (en) Native overlay for rapid editing of web content
US9262076B2 (en) Soft keyboard interface
US7571393B2 (en) Method for navigation between elements on a page of content in a handheld device
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
KR20100135281A (en) Method and tool for recognizing a hand-drawn table
KR20120060763A (en) Haptic feedback assisted text manipulation
EP2828733A1 (en) Gestural input at a virtual keyboard
CN109960448B (en) Scene special effect display method, electronic device and computer storage medium
CN103257735A (en) Stroke presentation method for handwriting input and electronic device
US20130346893A1 (en) Electronic device and method for editing document using the electronic device
US20130057554A1 (en) Consolidating glyphs of a font
US10990256B2 (en) Modifying default display configurations for objects in a user interface
CN110658976B (en) Touch track display method and electronic equipment
CN109298809A (en) A kind of touch action recognition methods, device and terminal device
CN105653145A (en) Method and device for processing display object
CN109992182B (en) Electronic book batch page turning method, electronic equipment and computer storage medium
CN111744181A (en) In-game information display method and device, game client and medium
CN115344151A (en) Display method and device of suspension control and storage medium
CN108062298A (en) Chart data generation method, device and readable storage medium storing program for executing
CN113360072A (en) Information processing method, information processing device, electronic equipment and storage medium
US8810580B2 (en) Method and tool for creating irregular-shaped tables
CN111190530A (en) Human-computer interaction method based on virtual character in mobile terminal and mobile terminal
CN111679778A (en) Interactive display method of electronic book comment information, electronic equipment and storage medium
CN116205208A (en) Method and device for rapidly generating electronic whiteboard intelligent form
CN115080175B (en) Display method, display device, computing equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination