CN107124508B - Position adjusting method and device of suspension control, terminal and readable storage medium - Google Patents

Position adjusting method and device of suspension control, terminal and readable storage medium Download PDF

Info

Publication number
CN107124508B
CN107124508B CN201710254407.0A CN201710254407A CN107124508B CN 107124508 B CN107124508 B CN 107124508B CN 201710254407 A CN201710254407 A CN 201710254407A CN 107124508 B CN107124508 B CN 107124508B
Authority
CN
China
Prior art keywords
user operation
operation event
display
touch screen
area
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.)
Active
Application number
CN201710254407.0A
Other languages
Chinese (zh)
Other versions
CN107124508A (en
Inventor
庞成林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710254407.0A priority Critical patent/CN107124508B/en
Publication of CN107124508A publication Critical patent/CN107124508A/en
Application granted granted Critical
Publication of CN107124508B publication Critical patent/CN107124508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a position adjusting method and device of a suspension control, a terminal and a readable storage medium. The position adjusting method comprises the steps of detecting a user operation event occurring on the touch screen; when the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to a correlation area corresponding to the occurrence position of the user operation event. According to the suspension control display method and device, the display position of the suspension control is adjusted by detecting the user operation event, the display position of the suspension control can be quickly adjusted, and the suspension control after the position is adjusted is convenient for the user to operate.

Description

Position adjusting method and device of suspension control, terminal and readable storage medium
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a position adjustment method and apparatus for a suspension control, a terminal, and a readable storage medium.
Background
In the related art, the screen of the mobile phone is larger and larger, and then the thumb of a user cannot cover all areas of the mobile phone when the user holds the mobile phone with one hand, so that the hand posture needs to be adjusted or the two hands need to be used for operation together, and the use difficulty is caused for the user. To solve this problem, a floating control (floating control) function is provided on the mobile phone. The hover control floats on top of the screen content, generally at the edges of the screen on both sides. Different floating control functions are combined, so that a user can conveniently operate the mobile phone by one hand.
Currently the user is left handed, with the hover control docked to the left side of the screen. When the user switches to right-handed use, it is difficult to reach the left side of the screen with one hand to drag the hover control back. At this time, two-handed operation is required, or the hand posture is adjusted and then the user needs to press and drag the finger with great effort. Because the large-screen mobile phone is heavy, the wrist fatigue of a user is easily caused, and the hand using the mobile phone is more easily and frequently replaced. If the user needs to laboriously adjust the position of the floating control piece every time to change hands, the use experience of the user can be greatly reduced, and the use convenience of the floating control piece can be greatly reduced.
Disclosure of Invention
The disclosure provides a position adjusting method, a position adjusting device, a position adjusting terminal and a readable storage medium of a suspension control, so as to solve the defects in the related art.
According to a first aspect of the embodiments of the present disclosure, a method for adjusting a position of a floating control is provided, where the method includes:
detecting a user operation event occurring on the touch screen;
when the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to a correlation area corresponding to the occurrence position of the user operation event.
Optionally, the association area includes: the occurrence position of the user operation event is in a display area on the touch screen and/or a peripheral area of the display area.
Optionally, when the user operation event matches a predefined position adjustment event for the hovering control, adjusting the display position of the hovering control from an initial position to an associated area corresponding to the occurrence position of the user operation event, including:
determining a display area where the occurrence position is located on the touch screen;
when the display area is close to the edge of the touch screen and the user operation event is matched with the predefined position adjusting event aiming at the floating control, adjusting the display position of the floating control from the initial position to the associated area corresponding to the occurrence position of the user operation event.
Optionally, when the user operation event matches a predefined position adjustment event for the hovering control, adjusting the display position of the hovering control from an initial position to an associated area corresponding to the occurrence position of the user operation event, including:
when triggerable display content is displayed in a display area where the occurrence position is located on the touch screen, determining an area value of the display area overlapped with the triggerable display content;
when the area value of the display area overlapped with the triggerable display content is smaller than a preset overlap value and the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to an associated area corresponding to the occurrence position of the user operation event.
Optionally, adjusting the display position of the floating control from the initial position to the associated region corresponding to the occurrence position of the user operation event includes:
and acquiring a final position coordinate of the occurrence position of the user operation event, and adjusting the display position of the suspension control from an initial position to a display area of the touch screen corresponding to the final position coordinate.
According to a second aspect of the embodiments of the present disclosure, a position adjustment apparatus for a levitation control is provided. The adjusting device comprises:
a detection module configured to detect a user operation event occurring on the touch screen;
the adjusting module is configured to adjust the display position of the floating control from the initial position to the associated area corresponding to the occurrence position of the user operation event when the user operation event is matched with the predefined position adjusting event for the floating control.
Optionally, the association area includes:
the occurrence position of the user operation event is in a display area on the touch screen and/or a peripheral area of the display area.
Optionally, the adjusting module includes:
a position determination unit configured to determine a display area on the touch screen where the occurrence position is located;
the first adjusting subunit is configured to adjust the display position of the floating control from an initial position to an associated area corresponding to the occurrence position of the user operation event when the display area is close to the edge of the touch screen and the user operation event is matched with a predefined position adjusting event for the floating control.
Optionally, the adjusting module further includes:
an overlap value determination unit configured to determine an area value of a display area where triggerable display content is displayed in a display area where the triggerable display content is located on the touch screen;
and the second adjusting subunit is configured to adjust the display position of the floating control from the initial position to the associated region corresponding to the occurrence position of the user operation event when the area value of the display region overlapping the triggerable display content is smaller than a preset overlapping value and the user operation event is matched with the predefined position adjusting event for the floating control.
Optionally, the adjusting module further includes:
and the third adjusting subunit is configured to acquire a final position coordinate of the occurrence position of the user operation event, and adjust the display position of the floating control from an initial position to a display area of the touch screen corresponding to the final position coordinate.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device. The terminal device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting a user operation event occurring on the touch screen;
when the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to a correlation area corresponding to the occurrence position of the user operation event.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the position adjustment method of the levitation control described above.
According to the method and the device, the display position of the suspension control is adjusted by detecting and matching the user operation event with the predefined position adjustment event aiming at the suspension control, so that the display position of the suspension control can be quickly adjusted. Meanwhile, the suspension control after the position is adjusted is convenient for a user to operate, wrist fatigue is not easy to cause, and the falling risk of the terminal device is reduced when the user operates with one hand.
Drawings
Fig. 1 is a flowchart illustrating an adjusting method of a floating control according to an exemplary embodiment of the present disclosure.
Fig. 2 is a schematic diagram of an associated area in an adjustment method of a floating control according to an exemplary embodiment of the present disclosure.
Fig. 3 is an application scenario diagram of an adjustment method of a floating control according to an exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating an adjustment method of a floating control according to another exemplary embodiment of the present disclosure.
Fig. 5 is a schematic diagram of an edge of a touch screen in an adjustment method of a floating control according to an exemplary embodiment of the present disclosure.
Fig. 6 is a diagram of another application scenario illustrating an adjustment method of a floating control according to an exemplary embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating an adjustment method of a floating control according to another exemplary embodiment of the present disclosure.
Fig. 8 is a flowchart illustrating an adjustment method of a floating control according to a specific embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating an adjusting apparatus of a floating control according to an exemplary embodiment of the present disclosure.
Fig. 10 is a block diagram of an adjustment module of the adjustment apparatus of the levitation control of fig. 9.
FIG. 11 is another block diagram of an adjustment module of the adjustment apparatus of the levitation control of FIG. 9.
Fig. 12 is another block diagram of an adjustment module of the adjustment apparatus of the levitation control of fig. 9.
Fig. 13 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, the present disclosure provides a position adjustment method for a floating control, which may be applied to a terminal device, where the terminal device includes a touch screen, the floating control is displayed on the touch screen together with display content, and the floating control may integrate one or more functions, such as returning to a desktop, screenshot, and the like. The terminal device may be a mobile phone, a tablet computer, or the like, which is not limited in this disclosure. The position adjusting method of the suspension control can comprise the following steps:
in step S101, a user operation event occurring on the touch screen is detected.
In this embodiment, a user operation event occurring on the touch screen is detected and obtained, where the user operation event is used to match with a preset predefined position adjustment event for the floating control, that is, it is determined whether the obtained user operation event is a user operation event for adjusting the display position of the floating control.
In step S102, when the user operation event matches a predefined position adjustment event for the hovering control, adjusting the display position of the hovering control from an initial position to an associated area corresponding to the occurrence position of the user operation event.
The predefined position adjustment event for the levitation control can be preset in various ways according to different requirements. For example, the adjustment event may be: the user operation event of sliding up and down, or the user operation event of sliding left and right, or the user operation event of circling clockwise, or the user operation event of circling counterclockwise, or the user operation event of single or double click, or the user operation event of pressing the touch screen, or the user operation event of sliding according to a fixed shape (for example, drawing an N-shape), which is not specifically limited by the present disclosure.
The associated area is a display area where the occurrence position of the user operation event is located on the touch screen and/or a peripheral area of the display area. As shown in fig. 2, a display area 1 of the touch screen is divided into a left half and a right half. When the occurrence position of the user operation event is on the left half of the display area, the area 2 in the figure is the display area (e.g., the area where the finger touches the touch screen) where the occurrence position of the user operation event is located on the touch screen, the areas 3 and 4 are peripheral areas of the area 2, and the areas 3 and 4 can be understood as areas that are easily operated by the user finger, including the upper, lower, left, and right sides of the area 2. In some embodiments, the association region may be: the position region overlapping with the region 2 is either a region 3 around the region 2, a region 4 around the region 2, or the region 2, the region 3, and the region 4. When the occurrence position of the user operation event is on the right half of the display area, the occurrence position is similar to that on the left half of the display area, and the description is omitted. Of course, the associated area may also be another display area on the touch screen, and the other display area is convenient for the user to operate with one hand, that is, the associated area corresponding to the occurrence position of the user operation event, which is not limited in this disclosure.
In this embodiment, the hover control is positionally adjusted upon detecting a user operation event occurring on the touch screen that matches a predefined position adjustment event for the hover control. When the user operation event is the user operation event used for adjusting the display position of the floating control, adjusting the display position of the floating control to enable the floating control to be adjusted from the initial position to another position of the display area on the touch screen, wherein the position is an associated area corresponding to the occurrence position of the user operation event on the display screen.
As shown in fig. 3, the predefined position adjustment event for the hovering control is set as a user operation event (a gesture track along the direction of an N-shaped arrow) that slides in a fixed shape, and when the user operation event is an N-shaped gesture track drawn on the touch screen, the user operation event is matched with the predefined position adjustment event for the hovering control, and an associated region corresponding to the occurrence position of the user operation event is obtained. Then, the display position of the floating control is adjusted from the initial position to the display area of the touch screen corresponding to the occurrence position of the user operation event, as shown in fig. 3, the floating control 21 at the initial position is adjusted to the position of the floating control 22.
In the embodiment, the display position of the floating control is adjusted by matching the user operation event with the predefined position adjustment event aiming at the floating control, so that the single-hand operation of the user is realized, the display position of the floating control can be quickly adjusted, and the defects in the related technology are overcome. The suspension control after the position is adjusted is convenient for user operation, wrist fatigue is not easy to cause, meanwhile, a new function is added for the mobile terminal, and user experience is improved.
The operating environments of the user for operating the touch screen are different, and the user operating events are correspondingly various, so that the position of the floating control can be adjusted due to misoperation of the user. For example, when a user is fast browsing a web page, a fast up and down swipe of the user's finger on the touch screen may generate an operational event that matches a predefined position adjustment event for the hover control. Therefore, to solve the above problem, on the basis of the embodiment described in fig. 1, step 102 may further include the following steps, as specifically shown in fig. 4:
in step S1021, a display area where the occurrence position is located on the touch screen is determined.
Different user operation events, the display area of the touch screen where the occurrence position of the user operation event is located is different. For example, when the user operation event is a single-click operation and a double-click operation, the display area corresponding to the occurrence position of the user operation event is a quasi-circular fixed area range; when the user operation event is a circle drawing operation, the display area corresponding to the occurrence position of the user operation event is a position coordinate set of the gesture track.
In this embodiment, the position coordinate of the occurrence of the user operation event is determined according to the position of the occurrence of the user operation event on the touch screen, and then the display area of the user operation event on the touch screen is determined according to the position coordinate.
In step S1022, when the display area is close to the edge of the touch screen and the user operation event matches with the predefined position adjustment event for the hovering control, the display position of the hovering control is adjusted from the initial position to the associated area corresponding to the occurrence position of the user operation event.
The area close to the edge of the touch screen is a convenient area for a user to operate with one hand, the fact that the user operation event is close to the edge of the touch screen indicates that the user needs to adjust the position of the floating control, and the user operation event may be a conventional operation when the user operation event is in other areas of the touch screen. Whether the user operation event is a predefined position adjustment event for adjusting the suspension control is judged by setting the verification area range (the edge area of the touch screen) as a condition, so that misoperation of the user can be prevented. For example, as shown in fig. 5, a left area of a display area 1 on the touch screen is an edge area 5 of the touch screen, and if a user operation event occurs in the area, it is determined whether the user operation event is a predefined position adjustment event for the hovering control; if the user operation event occurs in other areas (the right side of the edge area 5) of the display area 1, it is not necessary to continuously determine whether the user operation event is a predefined position adjustment event for the hovering control. Of course, if the user operation event occurs on the right side of the display area 1, the extent of the border area 5 is also adapted to the right side of the touch screen.
In this embodiment, after determining whether the occurrence position of the user operation event is close to the edge of the touch screen, it is determined whether the user operation event matches the predefined position adjustment event for the floating control, so that not only can the user be prevented from misoperation, but also the matching times of the user operation event and the predefined position adjustment event can be reduced, the calculation pressure is reduced, and thus the internal resources of the device are saved.
The triggerable display content and the non-triggerable display content exist in the display area of the touch screen where the occurrence position of the user operation event is located. For example, the text display area shown in fig. 3 does not have triggerable display content, or the display area shown in fig. 6 displays an APP icon, or a link on a web page, or the like. If the position of the floating control is operated and adjusted in the display area where the display content can be triggered, feedback or page jump of the display content can be triggered. Therefore, on the basis of the embodiment described in fig. 1, step 102 may further include the following steps, as shown in fig. 7 in detail:
in step S1023, when there is triggerable display content displayed in a display area where the occurrence position is located on the touch screen, an area value of the display area overlapping with the triggerable display content is determined.
As shown in fig. 6, the user finger clicks a display area on the touch screen, and the display area displays the APP icon 6, that is, the user finger touches the APP icon 6, and the two have an overlapping area. An area value may be calculated where the display area where the occurrence position of the user operation event is overlapped with the triggerable display content.
In step S1024, when the area value of the display area overlapping the triggerable display content is smaller than a preset overlap value and the user operation event matches with a predefined position adjustment event for the floating control, adjusting the display position of the floating control from an initial position to an associated area corresponding to the occurrence position of the user operation event.
In this embodiment, the preset overlap value can be set as required. For example, the preset overlap value is set to be one third of the area of the APP icon 6, but may be one half, one quarter, and so on. As shown in fig. 6, the overlapping area of the display area where the user operation event occurs on the touch screen and the APP icon 6 is smaller than one third of the area of the APP icon 6, and the occurrence position of the user operation event is mostly located at the gap between adjacent APP icons 6, so that the user operation event may be an operation event for adjusting the hovering control, and the user operation event is matched with a predefined position adjustment event for the hovering control. For example, the predefined position adjustment event for the floating control is a single-click operation, and the user can adjust the floating control by clicking the touch screen, so that the display position of the floating control is adjusted from the initial position to the associated area corresponding to the occurrence position of the user operation event. I.e., the hover control 23 in the initial position is adjusted to the hover control 24 in the associated region as shown in fig. 6. When the area value of the display area overlapped with the APP icon is larger than or equal to one third of the APP, the position of the floating control is not adjusted, and a user operation event is correspondingly fed back, for example, the APP is opened.
In this embodiment, the preset overlap value is set as a condition for determining whether the user operation event is matched with the predefined position adjustment event for the suspension control, so that on one hand, the user misoperation can be prevented, on the other hand, the number of times of matching the user operation event with the predefined position adjustment event can be reduced, the calculation pressure is reduced, and therefore the internal resources of the device are saved.
The position adjustment method of the levitation control of the present disclosure is further described below with a specific embodiment. As shown in fig. 8, the position adjustment method of the levitation control may include the following steps:
in step S301, a user operation event on the touch screen is detected.
In step S302, it is determined whether the touch screen is close to the edge of the touch screen, if yes, step S303 is executed, and if not, the process returns to step S301.
In an embodiment, an area range of the edge of the touch screen is preset as a determination condition for determining whether the user operation event is close to the edge of the touch screen, for example, an edge area 5 shown in fig. 5. And determining the position coordinate of the occurrence of the user operation event according to the position of the user operation event on the touch screen, and determining the display area of the user operation event on the touch screen according to the position coordinate. For example, when the occurrence position of the user operation event is close to the edge of the touch screen, step S303 is executed to match the user operation event with the predefined position adjustment event; when the occurrence position of the user operation event is not close to the edge of the touch screen, the previous step S301 is fed back.
Depending on the different settings of the predefined position adjustment event, it may be necessary to consider whether the predefined position adjustment event will cause other triggerable display content feedback. For example, when the predefined position adjustment event is a single-click operation, feedback of APP or a link displayed in the display area of the touch screen may be caused, and it is necessary to further determine the actual intention of the user operation event, that is, whether the display position of the floating control needs to be adjusted or another operation is required, in which case step S303 is required to be further determined.
In step S303, it is determined whether or not there is any triggerable display content, if yes, step S304 is performed, and if no, step S305 is performed.
In this step, when determining whether there is triggerable display content, it may be determined whether there is triggerable display content at the edge of the touch screen in the above embodiment, or it may be determined whether there is triggerable display content in a display area where the occurrence position of the user operation event is located on the touch screen.
For example, based on the above steps, when the occurrence position of the user operation event is close to the edge area 5 of the touch screen, whether the triggerable display content exists on the edge of the touch screen is detected. When it is detected that the triggerable display content does not exist on the edge of the touch screen, step S305 may be directly performed. When the APP icon as shown in fig. 6 exists in the display area of the touch screen and the predefined position adjustment event is a click operation, the click operation causes feedback of the APP. At this time, the actual intention of the user to operate the event needs to be further judged, that is, the next step S304 is performed to judge whether the user needs to adjust the display position of the floating control or click the APP icon.
In step S304, it is determined whether the overlapping area is smaller than the preset overlapping value, if so, step S305 is executed, otherwise, the process returns to step S301.
As shown in fig. 6, when the user operation event is a single-click operation, the overlapping area of the APP icon 6 and the display area (which may be the contact area between the user finger and the touch screen in fig. 6, or the area where the user draws an N-shaped gesture trajectory in fig. 3) where the user operation event occurs on the touch screen may be calculated. For example, the preset overlap value is set to be one half of the area of the APP icon 6, but may be other values, which is not limited in the present disclosure. If the overlap area is larger than the preset overlap value, the process returns to step S301, and the user operation event is fed back to other display contents. If the overlapping area of the contact area of the finger of the user and the touch screen and the APP icon 6 is smaller than one half of the area of the APP icon 6, and the most of the position where the user operation event occurs is located at the gap between the adjacent APP icons 6, the user operation event is an operation event for adjusting the floating control, and step S305 is executed.
In step S305, a predefined position adjustment event is matched.
In this embodiment, the predefined position adjustment event may be preset in various ways according to different requirements, for example, a single-double click, a sliding operation in a fixed shape, and the like. Taking the single-click operation as an example in this embodiment, when the detected user operation event on the touch screen is a single-click operation event, the single-click operation event may be matched with the single-click event in the stored predefined position adjustment event, and then step S306 may be continuously performed.
In step S306, the display position of the floating control is adjusted.
When the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to a correlation area corresponding to the occurrence position of the user operation event. For example, as shown in fig. 6, the hover control 23 at the initial position is adjusted to the position of the hover control 24 for display (the user operation event is a single-click operation, and the display area has a triggerable display content APP icon).
For example, a final position coordinate of the occurrence position of the user operation event is acquired, and the display position of the floating control is adjusted from an initial position to a display area of the touch screen corresponding to the final position coordinate. As shown in fig. 6, the final position coordinates of the occurrence position of the user's one-click operation, which is located in the middle of the two APP icons, are acquired, and then the hover control 23 of the initial position is displayed on the hover control 24 at the final position coordinates.
Of course, the scene graph shown in fig. 3 is also suitable for obtaining the final position coordinate of the occurrence position of the user operation event, and adjusting the display position of the floating control from the initial position to the display area of the touch screen corresponding to the final position coordinate. The user operation event is that an N-shaped gesture track is drawn, the display area has no triggerable display content, the position of an arrow of the N shape is the final position coordinate of the occurrence position of the user operation event, and when the suspension control is adjusted, the suspension control 21 at the initial position in fig. 3 is adjusted to the position of the suspension control 22 for display.
In other embodiments, the above step S301 may be directly followed by performing step S303, and then determining whether the overlapping area is smaller than the preset overlapping value, and then matching the predefined position adjustment event, so as to adjust the position of the hovering control, i.e. the sequence steps are S301 → S303 → S304 → S305 → S306. In the embodiment, whether the occurrence position of the user operation event is close to the edge of the touch screen or not is judged without detection, and whether triggerable display content exists in a display area where the occurrence position of the user operation event is located on the touch screen or not can be directly judged. Of course, step S301 → S302 → S305 → S306 is also possible. According to the embodiment, whether the user operation event is the operation event for adjusting the floating control is directly judged according to whether the occurrence position of the user operation event is close to the edge of the touch screen, and then the position of the floating control is adjusted according to the user operation event.
According to the technical scheme, the display position of the suspension control is adjusted by detecting and matching the user operation event with the predefined position adjustment event aiming at the suspension control, so that the display position of the suspension control is quickly adjusted. The user can the display position of one-hand operation quick adjustment suspension controlling part, and the suspension controlling part behind the adjustment position is convenient for user operation, is difficult for causing wrist fatigue, has increased new function for mobile terminal simultaneously, improves user experience. Furthermore, on one hand, misoperation of the user can be prevented, on the other hand, the number of detection of user operation events can be reduced, and the calculation pressure of the terminal equipment is reduced, so that internal resources are saved.
Referring to fig. 9, the present disclosure further provides a position adjustment device for a suspension control. This position adjustment device of suspension controlling part includes:
a detection module 71 configured to detect a user operation event occurring on the touch screen;
an adjusting module 72 configured to adjust the display position of the hovering control from an initial position to an associated area corresponding to the occurrence position of the user operation event when the user operation event matches a predefined position adjusting event for the hovering control.
Optionally, the association area includes:
the occurrence position of the user operation event is in a display area on the touch screen and/or a peripheral area of the display area.
Optionally, as shown in fig. 10, the adjusting module 72 includes:
a position determination unit 721 configured to determine a display area where the occurrence position is located on the touch screen;
a first adjusting subunit 722 configured to, when the display area is close to an edge of the touch screen and the user operation event matches with a predefined position adjusting event for the hovering control, adjust the display position of the hovering control from an initial position to an associated area corresponding to an occurrence position of the user operation event.
Optionally, as shown in fig. 11, the adjusting module 72 further includes:
an overlap value determination unit 723 configured to determine an area value at which a triggerable display content is overlapped with a display area where the triggerable display content is displayed on the touch screen when the triggerable display content is displayed in the display area;
a second adjusting subunit 724, configured to, when the area value of the display area overlapping with the triggerable display content is smaller than a preset overlap value and the user operation event matches with a predefined position adjustment event for the floating control, adjust the display position of the floating control from the initial position to the associated area corresponding to the occurrence position of the user operation event.
Optionally, as shown in fig. 12, the adjusting module 72 further includes:
a third adjusting subunit 725, configured to acquire a final position coordinate of the occurrence position of the user operation event, and adjust the display position of the floating control from the initial position to a display area of the touch screen corresponding to the final position coordinate.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, this disclosure still provides a suspension control's adjusting device, includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: detecting a user operation event occurring on the touch screen; when the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to a correlation area corresponding to the occurrence position of the user operation event.
Accordingly, the present disclosure also provides a terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for: detecting a user operation event occurring on the touch screen; when the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to a correlation area corresponding to the occurrence position of the user operation event.
Fig. 13 is a block diagram illustrating a terminal device 1000 according to an example embodiment. For example, the terminal device 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 13, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, the change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration/deceleration of device 1000, and the change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1004 comprising instructions, that may be executed by the processor 1020 of the apparatus 1000 to perform the methods described below, is also provided. The non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc., for enabling the mobile terminal to perform a hover control position adjustment method when instructions in the storage medium are executed by a processor 1020 of the mobile terminal, the method comprising:
acquiring an operation event on a touch screen, and detecting a position coordinate of the operation event;
judging whether the operation event is an adjustment operation event for controlling the position of the suspended control;
and when the operation event is an adjusting operation event for controlling the position of the floating control to be changed, displaying the floating control in the area range near the position coordinate where the adjusting operation event occurs.
In the above method, the association area includes: the occurrence position of the user operation event is in a display area on the touch screen and/or a peripheral area of the display area.
Optionally, in some embodiments, when the user operation event matches a predefined position adjustment event for the hover control, adjusting the display position of the hover control from an initial position to within an associated region corresponding to the occurrence position of the user operation event includes:
determining a display area where the occurrence position is located on the touch screen;
when the display area is close to the edge of the touch screen and the user operation event is matched with the predefined position adjusting event aiming at the floating control, adjusting the display position of the floating control from the initial position to the associated area corresponding to the occurrence position of the user operation event.
Optionally, in some embodiments, when the user operation event matches a predefined position adjustment event for the hover control, adjusting the display position of the hover control from an initial position to within an associated region corresponding to the occurrence position of the user operation event includes:
when triggerable display content is displayed in a display area where the occurrence position is located on the touch screen, determining an area value of the display area overlapped with the triggerable display content;
when the area value of the display area overlapped with the triggerable display content is smaller than a preset overlap value and the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to an associated area corresponding to the occurrence position of the user operation event.
Optionally, in some embodiments, adjusting the display position of the hovering control from the initial position to the associated region corresponding to the occurrence position of the user operation event includes:
and acquiring a final position coordinate of the occurrence position of the user operation event, and adjusting the display position of the suspension control from an initial position to a display area of the touch screen corresponding to the final position coordinate.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A position adjusting method of a suspension control is characterized by comprising the following steps:
detecting a user operation event occurring on the touch screen;
determining a display area where the occurrence position of the user operation event is located on the touch screen;
when the display area is close to the edge of the touch screen and the user operation event is matched with a predefined position adjustment event aiming at the floating control, adjusting the display position of the floating control from an initial position to a correlation area corresponding to the occurrence position of the user operation event.
2. The method for adjusting the position of the levitation control according to claim 1, wherein the association area comprises: the occurrence position of the user operation event is in a display area on the touch screen and/or a peripheral area of the display area.
3. The method for adjusting the position of the hovering control according to claim 1, wherein when the user operation event matches a predefined position adjustment event for the hovering control, adjusting the display position of the hovering control from an initial position to an associated area corresponding to an occurrence position of the user operation event, includes:
when triggerable display content is displayed in a display area where the occurrence position is located on the touch screen, determining an area value of the display area overlapped with the triggerable display content;
when the area value of the display area overlapped with the triggerable display content is smaller than a preset overlap value and the user operation event is matched with a predefined position adjusting event aiming at the suspension control, adjusting the display position of the suspension control from an initial position to an associated area corresponding to the occurrence position of the user operation event.
4. The method for adjusting the position of the hovering control according to claim 1, wherein adjusting the display position of the hovering control from an initial position to an associated area corresponding to the occurrence position of the user operation event comprises:
and acquiring a final position coordinate of the occurrence position of the user operation event, and adjusting the display position of the suspension control from an initial position to a display area of the touch screen corresponding to the final position coordinate.
5. A position adjustment device of a suspension control, comprising:
a detection module configured to detect a user operation event occurring on the touch screen;
an adjustment module configured to adjust a display position of the hover control from an initial position to within an associated region corresponding to an occurrence position of the user operation event when the user operation event matches a predefined position adjustment event for the hover control, the adjustment module comprising: a position determination unit configured to determine a display area on the touch screen where the occurrence position is located; the first adjusting subunit is configured to adjust the display position of the floating control from an initial position to an associated area corresponding to the occurrence position of the user operation event when the display area is close to the edge of the touch screen and the user operation event is matched with a predefined position adjusting event for the floating control.
6. The apparatus of claim 5, wherein the association area comprises:
the occurrence position of the user operation event is in a display area on the touch screen and/or a peripheral area of the display area.
7. The apparatus of claim 5, wherein the adjustment module further comprises:
an overlap value determination unit configured to determine an area value of a display area where triggerable display content is displayed in a display area where the triggerable display content is located on the touch screen;
and the second adjusting subunit is configured to adjust the display position of the floating control from the initial position to the associated region corresponding to the occurrence position of the user operation event when the area value of the display region overlapping the triggerable display content is smaller than a preset overlapping value and the user operation event is matched with the predefined position adjusting event for the floating control.
8. The apparatus of claim 5, wherein the adjustment module further comprises:
and the third adjusting subunit is configured to acquire a final position coordinate of the occurrence position of the user operation event, and adjust the display position of the floating control from an initial position to a display area of the touch screen corresponding to the final position coordinate.
9. A terminal device, characterized in that the terminal device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting a user operation event occurring on the touch screen;
determining a display area where the occurrence position of the user operation event is located on the touch screen;
when the display area is close to the edge of the touch screen and the user operation event is matched with a predefined position adjustment event aiming at the floating control, adjusting the display position of the floating control from an initial position to a correlation area corresponding to the occurrence position of the user operation event.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method for adjusting the position of a levitation control according to any one of claims 1 to 4.
CN201710254407.0A 2017-04-18 2017-04-18 Position adjusting method and device of suspension control, terminal and readable storage medium Active CN107124508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710254407.0A CN107124508B (en) 2017-04-18 2017-04-18 Position adjusting method and device of suspension control, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710254407.0A CN107124508B (en) 2017-04-18 2017-04-18 Position adjusting method and device of suspension control, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN107124508A CN107124508A (en) 2017-09-01
CN107124508B true CN107124508B (en) 2020-02-07

Family

ID=59726287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710254407.0A Active CN107124508B (en) 2017-04-18 2017-04-18 Position adjusting method and device of suspension control, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN107124508B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678645A (en) * 2017-09-21 2018-02-09 咪咕音乐有限公司 A kind of presentation of information processing method and processing device and storage medium
CN107957836B (en) * 2017-12-05 2020-12-29 Oppo广东移动通信有限公司 Screen recording method and device and terminal
CN108737656B (en) * 2018-05-17 2021-02-02 Oppo广东移动通信有限公司 Processing method and device of floating button, storage medium and electronic equipment
CN108845734A (en) * 2018-06-08 2018-11-20 Oppo广东移动通信有限公司 icon display method, device and terminal
CN108762619B (en) * 2018-06-08 2021-02-23 Oppo广东移动通信有限公司 Buoy display method, device, terminal and storage medium
CN108920081A (en) * 2018-06-28 2018-11-30 努比亚技术有限公司 A kind of interaction regulation method, equipment and computer readable storage medium
CN111273838B (en) * 2018-12-19 2022-07-22 深圳市鸿合创新信息技术有限责任公司 Moving method of suspended toolbar in touch display device and touch display device
CN110502166B (en) * 2019-08-27 2021-03-23 网易(杭州)网络有限公司 Interactive control deployment method and device
CN112987988A (en) * 2019-12-16 2021-06-18 北京沃东天骏信息技术有限公司 Method and device for displaying popup frame
CN111338554A (en) * 2020-02-14 2020-06-26 深圳小佳科技有限公司 Suspension ball operating system and method based on large-screen touch
CN112099689A (en) * 2020-09-14 2020-12-18 Oppo广东移动通信有限公司 Interface display method and device, electronic equipment and computer readable storage medium
CN113434068A (en) * 2021-05-28 2021-09-24 北京信和时代科技有限公司 Control method and device for suspension shortcut menu, electronic equipment and storage medium
CN113986106A (en) * 2021-10-15 2022-01-28 深圳集智数字科技有限公司 Double-hand operation method and device of touch screen, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929535A (en) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 Method for controlling position of floating window, and terminal
CN105302408A (en) * 2014-06-24 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for adjusting position of hover button and terminal
CN106412237A (en) * 2016-08-30 2017-02-15 竞技世界(北京)网络技术有限公司 Control method and device for suspension button of intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929535A (en) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 Method for controlling position of floating window, and terminal
CN105302408A (en) * 2014-06-24 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for adjusting position of hover button and terminal
CN106412237A (en) * 2016-08-30 2017-02-15 竞技世界(北京)网络技术有限公司 Control method and device for suspension button of intelligent terminal

Also Published As

Publication number Publication date
CN107124508A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107124508B (en) Position adjusting method and device of suspension control, terminal and readable storage medium
US11635810B2 (en) Managing and mapping multi-sided touch
EP3316112B1 (en) Split screen display method and apparatus, computer program and recording medium
US10642476B2 (en) Method and apparatus for single-hand operation on full screen
EP3208704B1 (en) Application control method and device
CN105975166B (en) Application control method and device
EP3163404B1 (en) Method and device for preventing accidental touch of terminal with touch screen
US20180039403A1 (en) Terminal control method, terminal, and storage medium
EP3109772A1 (en) Text input method and device
CN104317402B (en) Description information display method and device and electronic equipment
CN105487805B (en) Object operation method and device
EP3232301B1 (en) Mobile terminal and virtual key processing method
US20180032243A1 (en) Methods and devices for moving icons between different pages
WO2020238647A1 (en) Hand gesture interaction method and terminal
CN107694087B (en) Information processing method and terminal equipment
EP3133482A1 (en) Method and device for displaying a target object
CN112433693B (en) Split screen display method and device and electronic equipment
JP2017525076A (en) Character identification method, apparatus, program, and recording medium
CN107168566B (en) Operation mode control method and device and terminal electronic equipment
EP2677413B1 (en) Method for improving touch recognition and electronic device thereof
CN111488098B (en) Method and device for adjusting parameters of touch screen, electronic equipment and storage medium
CN111522498A (en) Touch response method and device and storage medium
CN106325712B (en) Terminal display control method and device and terminal
CN107979701B (en) Method and device for controlling terminal display
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area

Legal Events

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