CN108449490B - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
CN108449490B
CN108449490B CN201810142056.9A CN201810142056A CN108449490B CN 108449490 B CN108449490 B CN 108449490B CN 201810142056 A CN201810142056 A CN 201810142056A CN 108449490 B CN108449490 B CN 108449490B
Authority
CN
China
Prior art keywords
target
preset
area
value
center point
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
CN201810142056.9A
Other languages
Chinese (zh)
Other versions
CN108449490A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810142056.9A priority Critical patent/CN108449490B/en
Publication of CN108449490A publication Critical patent/CN108449490A/en
Application granted granted Critical
Publication of CN108449490B publication Critical patent/CN108449490B/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/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • 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
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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
    • G06F3/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The embodiment of the invention discloses a terminal control method and a terminal, relates to the technical field of terminals, and can solve the problem that a user is not convenient enough to operate the terminal because a part of display content is shielded when a floating ball is displayed on a display interface of the terminal and the user can operate or check the floating ball after moving the floating ball to other areas. The specific scheme is as follows: under the condition that a first area where the touch control is located on the display interface currently does not meet a preset condition, determining a second area meeting the preset condition on the display interface, wherein the second area is used for displaying the touch control; controlling the touch control to move from the first area to the second area in a preset mode; the preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value. The embodiment of the invention is applied to the process of controlling the touch control by the terminal.

Description

Terminal control method and terminal
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a terminal control method and a terminal.
Background
With the rapid development of intelligent terminals, the display screen of the terminal tends to be a full screen. Generally, a full screen can be realized by canceling a physical key (such as a Home key, a menu key, etc.) at the bottom of a display screen of the terminal.
However, after canceling the physical keys at the bottom of the display screen, the user needs to use the shortcut function of the physical keys when using the terminal, for example, the display interface of the terminal needs to be quickly returned to the main screen. At present, the physical keys can be replaced by the floating ball displayed on the display interface of the terminal, so that some quick functions of the terminal are realized. For example, a user operates some icons in a hover ball displayed on a display interface of the terminal to trigger the terminal to execute corresponding shortcut functions, such as triggering the terminal to quickly enter a main interface, lock a screen, clear a background, and the like of the terminal on the display interface.
However, in the above method, since the floating ball is displayed on the display interface of the terminal, some contents displayed on the display interface may be blocked, and when a user needs to operate or view the contents, the user first needs to move the floating ball to another area of the display interface and then can operate or view the contents, so that the user is not convenient to operate the terminal.
Disclosure of Invention
The embodiment of the invention provides a terminal control method and a terminal, and aims to solve the problem that a user cannot operate or check a terminal conveniently because a part of display content is shielded when a floating ball is displayed on a display interface of the terminal and the floating ball needs to be moved to other areas.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect of the present invention, a terminal control method is provided, which may be applied to a terminal, where a touch control is displayed on a display interface of the terminal, and the terminal control method includes: under the condition that a first area where the touch control is located on the display interface currently does not meet a preset condition, determining a second area meeting the preset condition on the display interface, wherein the second area is used for displaying the touch control; controlling the touch control to move from the first area to the second area in a preset mode; the preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value.
In a second aspect of the present invention, a terminal is provided, where a touch control is displayed on a display interface of the terminal, and the terminal includes: a determination unit and a control unit. The determining unit is used for determining a second area meeting the preset condition on the display interface under the condition that a first area where the touch control is located on the display interface currently does not meet the preset condition, and the second area is used for displaying the touch control. And the control unit is used for controlling the touch control to move from the first area to the second area determined by the determination unit in a preset mode. The preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value.
In a third aspect of the present invention, a terminal is provided, which comprises a processor, a memory and a computer program stored on the memory and operable on the processor, and which, when executed by the processor, implements the steps of the terminal control method according to the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the terminal control method according to the first aspect.
In the embodiment of the invention, the terminal can control the touch control to move from the first area to the second area. Because the first region is the region that does not satisfy the preset condition, and the preset condition is that the color values of all pixel points in a region are all in same color value range, therefore the touch control that is in the first region may shelter from some contents that show on the display interface, and the second region is the region that satisfies the preset condition, therefore terminal control touch control moves to the second region from the first region, can make the user when needs operate or look over these contents, and need not move touch control to other regions of display interface, thereby the convenience of user operation terminal has been improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a first flowchart of a terminal control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an example of a first region and a second region provided by an embodiment of the invention;
fig. 4 is a flowchart of a terminal control method according to an embodiment of the present invention;
fig. 5 is a flowchart of a terminal control method provided in the embodiment of the present invention;
FIG. 6 is a first exemplary diagram of a target area according to an embodiment of the present invention;
FIG. 7 is a second exemplary diagram of a target area according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first region and the second region, etc. are for distinguishing different regions, and are not for describing a particular order of the regions. In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a terminal control method and a terminal, which can be applied to a process of controlling a touch control by the terminal, and can solve the problem that in the prior art, because a part of display content is shielded when a floating ball is displayed on a display interface of the terminal, a user can operate or check the floating ball only after moving the floating ball to other areas, and therefore the user is not convenient to operate the terminal.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the terminal control method provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the terminal control method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the terminal control method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal can implement the terminal control method provided by the embodiment of the invention by running the software program in the android operating system.
In a first embodiment of the present invention, fig. 2 illustrates a terminal control method provided in an embodiment of the present invention, which may be applied to a terminal having an android operating system as illustrated in fig. 1. As shown in fig. 2, the terminal control method includes steps 201 and 202:
step 201, under the condition that a first area where the touch control is located on the display interface currently does not meet a preset condition, the terminal determines a second area meeting the preset condition on the display interface.
And the second area is used for displaying the touch control.
Optionally, in the embodiment of the present invention, the preset condition is that color values of all pixel points in one region are in the same color value range.
In the embodiment of the present invention, the condition that the first area does not satisfy the preset condition may be understood as: the color value of at least one pixel point in the first area is not in the same color value range as the color values of other pixel points, and the other pixel points are pixel points except the at least one pixel point in the first area; the second region satisfying the preset condition can be understood as: and the color values of all the pixel points in the second area are in the same color value range.
Optionally, in the embodiment of the present invention, a difference between a maximum color value and a minimum color value in the same color value range is less than or equal to a first preset threshold.
For example, assume that a color value range a includes a color value 1, a color value 2, and a color value 3 (color value 1< color value 2< color value 3), and a difference between the color value 3 and the color value 1 in the color value range a is smaller than a first preset threshold.
Optionally, in the embodiment of the present invention, the touch control may be a floating window, and the floating window may be a circle, a rectangle, an irregular shape, or the like.
Optionally, in the embodiment of the present invention, the size of the first area may be equal to or larger than the size of the touch control; the size of the second area may be equal to or larger than the size of the touch control.
For example, the floating window is illustrated as being circular. The first region and the second region may each be a region of equal size to the area of the floating window. For example, the coordinates of the position where the center point of the floating window is currently located on the display interface are (x1, y1), and the radius of the floating window is R, the first region may be a region completely overlapping with the floating window, i.e., the coordinates of the center point of the first region are (x1, y1), and the radius of the first region is R, the coordinates of the center point of the second region are (x2, y2), and the radius of the second region is R.
For example, a terminal is taken as a mobile phone for explanation. As shown in (1) in fig. 3, a floating window 12 is displayed on a display interface 11 of the mobile phone 10, the first area 13 is an area completely overlapped with the floating window 12, a color value of a pixel point at a center point O of the first area 13 is Y1, the mobile phone 10 determines that Y1 belongs to a color value range b, and determines that the color value of at least one pixel point in the first area 13 does not belong to the color value range b, and the mobile phone 10 determines that the first area 13 does not satisfy the preset condition; as shown in (2) in fig. 3, the mobile phone 10 determines, on the display interface 11, the second area 14 that meets the preset condition, where the color value of the pixel point at the center point P of the second area 14 is Y2, the mobile phone 10 determines that Y2 belongs to the color value range a, determines that the color values of all the pixel points in the second area 14 are within the color value range a, and then the mobile phone 10 displays the floating window 12 in the second area 14.
Optionally, in this embodiment of the present invention, with reference to fig. 2, as shown in fig. 4, before step 201, the terminal control method provided in this embodiment of the present invention further includes step 401:
step 401, the terminal divides the preset M color values into N color value ranges.
Wherein N and M are both positive integers, and N is less than or equal to M.
In an embodiment of the present invention, a difference between a maximum color value and a minimum color value in each of the N color value ranges is less than or equal to a first preset threshold. The color values in each range of color values may be discrete or continuous.
For example, assume that M is 20. The terminal divides 20 preset color values into 15 color value ranges, and the difference value between the maximum color value and the minimum color value in each color value range in the 15 color value ranges is smaller than or equal to a first preset threshold value.
Optionally, in the embodiment of the present invention, step 201 in fig. 4 may be replaced with step 402:
step 402, under the condition that a first area where the touch control is currently located on the display interface does not meet a preset condition, if the terminal does not determine a second area meeting the preset condition on the display interface, the terminal divides the M color values into K color value ranges again.
And K is a positive integer and is less than N, the difference value between the maximum color value and the minimum color value in the same color value range is less than or equal to a second preset threshold value, and the second preset threshold value is greater than the first preset threshold value.
In this embodiment of the present invention, after performing step 402, the terminal may determine the second area satisfying the preset condition on the display interface again.
Illustratively, the terminal divides the preset 20 color values into 10 color value ranges again, and a difference value between a maximum color value and a minimum color value in each of the 10 color value ranges is smaller than or equal to a second preset threshold value.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 5, step 201 may be specifically implemented by steps 501 to 504:
step 501, under the condition that a first area where the touch control is located currently on the display interface does not meet a preset condition, the terminal determines a target area by taking the sum of a coordinate value of the center point of the first area and a first preset numerical value as a target center point and a second preset numerical value as a target radius.
In the embodiment of the present invention, when the first area does not satisfy the preset condition, the terminal may add the first preset value to the abscissa and/or add the first preset value to the ordinate of the center point of the first area to obtain a point, and determine the point as the target center point in step 501.
Optionally, in this embodiment of the present invention, the first preset value may be a positive number or a negative number.
For example, as shown in fig. 6, it is assumed that the coordinate of the center point O of the first region 13 is (x1, y1), and the first preset value is c. The mobile phone 10 adds the first preset value c to the abscissa and adds the first preset value c to the ordinate of the coordinates (x1, y1) to obtain an O ' point, where the coordinates of the O ' point are (x1+ c, y1+ c), the mobile phone 10 determines the O ' point as the target center point, and determines the target area 15 with the radius R of the first area as the target radius.
Of course, in the embodiment of the present invention, the terminal may also add a preset threshold to the abscissa of the center point of the first region, and/or add another preset value to the ordinate, to obtain the target center point.
And 502, under the condition that the target area meets the preset condition, the terminal determines the target area as a second area.
In the embodiment of the invention, under the condition that the color values of all the pixel points in the target area are in the same color value range, the terminal determines the target area as the second area.
And 503, under the condition that the target area does not meet the preset condition, the terminal re-determines the target central point.
The redetermined target center point is a point on a first circle, the circle center of the first circle is the center point of the first area, the radius of the first circle is a first distance, and the first distance is the distance between the center point of the first area and the target center point determined by the sum of the coordinate value of the center point of the first area and a first preset numerical value.
For example, as shown in fig. 7, in a case that the target area 15 does not satisfy the preset condition, the mobile phone 10 determines a first circle 16 with a center point O of the first area as a center point and a first distance between the point O and the point O' as a radius, and determines a point (e.g., a point Q) on the first circle 16 as a target center point.
And step 504, the terminal determines the target area again by taking the re-determined target center point as a target center point and a second preset value as a target radius until the target area meeting the preset conditions is determined, and then determines the target area meeting the preset conditions as a second area.
In the embodiment of the present invention, after the terminal re-determines the target area by using the re-determined target center point as the target center point and using the second preset value as the target radius, the terminal re-determines one point on the first circumference as the target center point again when the target area does not satisfy the preset condition, and re-determines the target area again by using the second preset value as the target radius until the target area satisfying the preset condition is determined.
For example, as shown in fig. 7, the mobile phone 10 may determine the target area 17 again by using the determined target center point Q as the target center point and using the second preset value as the target radius; when the target area 17 does not satisfy the preset condition, the mobile phone 10 may determine a point again on the first circumference 16 as the target center point, and determine the target area again with the second preset value as the target radius until determining the target area satisfying the preset condition.
Optionally, in the embodiment of the present invention, after step 504, the method for controlling a terminal further includes step 505:
and 505, under the condition that the target area meeting the preset condition is not determined by taking any point on the first circumference as the target center point, the terminal determines the target area again by taking the sum of the coordinate value of the re-determined target center point and a third preset numerical value as the target center point and taking the second preset numerical value as the target radius.
Optionally, in this embodiment of the present invention, when the target area determined by taking any point on the first circumference as the target center point does not satisfy the preset condition, the terminal may add a third preset value to the abscissa of the target center point determined again in step 503, and/or add a third preset value to the ordinate to obtain the target center point in step 505, and determine the target area again by taking the second preset value as the target radius.
Optionally, in this embodiment of the present invention, the third preset value may be a positive number or a negative number.
Of course, in the embodiment of the present invention, the terminal may also add a preset threshold to the abscissa of the center point of the target area re-determined in step 503, and/or add another preset value to the ordinate, to obtain the target center point in step 505.
Optionally, in this embodiment of the present invention, after the terminal performs step 505, the terminal may continue to perform steps 503 to 505 until the target area meeting the preset condition is determined, and then the target area meeting the preset condition is determined as the second area.
Optionally, in the embodiment of the present invention, step 505 may be replaced by step 506:
step 506, if the second area meeting the preset condition is not determined on the display interface, the terminal adjusts the second preset value to a fourth preset value, and the fourth preset value is smaller than the second preset value.
In the embodiment of the present invention, when the terminal does not determine the second area meeting the preset condition on the display interface, the terminal may turn down the second preset value in steps 501 to 504 to the fourth preset value, and then continue to execute steps 501 to 505 to re-determine the target area until the target area meeting the preset condition is determined, and then determine the target area meeting the preset condition as the second area.
Of course, in the embodiment of the present invention, the terminal may also adjust the size of the touch control when the second area meeting the preset condition is not determined.
Step 202, the terminal controls the touch control to move from the first area to the second area in a preset mode.
Optionally, in the embodiment of the present invention, the preset mode may be a uniform-speed moving mode, a progressive moving mode, a linear moving mode, or a curved moving mode.
It can be understood that, in the embodiment of the present invention, when a user needs to autonomously move a touch control, the user may trigger the terminal to close the function of automatically moving the touch control by performing an operation on the terminal, and then the user may move the touch control to any position on the display interface of the terminal, such as an intermediate position on the display interface.
The embodiment of the invention provides a terminal control method, and a terminal can control a touch control to move from a first area to a second area. Because the first region is the region that does not satisfy the preset condition, and the preset condition is that the color values of all pixel points in a region are all in same color value range, therefore the touch control that is in the first region may shelter from some contents that show on the display interface, and the second region is the region that satisfies the preset condition, therefore terminal control touch control moves to the second region from the first region, can make the user when needs operate or look over these contents, and need not move touch control to other regions of display interface, thereby the convenience of user operation terminal has been improved.
In a second embodiment of the present invention, fig. 8 shows a schematic diagram of a possible structure of a terminal involved in the embodiment of the present invention, and as shown in fig. 8, the terminal 80 may include: a determination unit 81 and a control unit 82.
The determining unit 81 is configured to determine, on the display interface, a second area that meets a preset condition when a first area where the touch control is currently located on the display interface does not meet the preset condition, where the second area is used for displaying the touch control. The control unit 82 is configured to control the touch control to move from the first area to the second area determined by the determination unit 81 in a preset manner. The preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value.
In a possible implementation manner, the determining unit 81 is specifically configured to: determining a target area by taking the sum of the coordinate value of the center point of the first area and a first preset value as a target center point and a second preset value as a target radius; determining the target area as a second area under the condition that the target area meets the preset condition; under the condition that the target area does not meet the preset condition, re-determining the target central point; the redetermined target center point is a point on a first circumference, the circle center of the first circumference is the center point of a first area, the radius of the first circumference is a first distance, and the first distance is the distance between the center point of the first area and the target center point determined by the sum of the coordinate value of the center point of the first area and a first preset numerical value; and re-determining the target area by taking the re-determined target central point as a target central point and a second preset numerical value as a target radius until the target area meeting the preset condition is determined, and determining the target area meeting the preset condition as a second area.
In a possible implementation manner, the determining unit 81 is further configured to, when no target area meeting the preset condition is determined by taking any point on the first circumference as the target center point, take the sum of the coordinate value of the redetermined target center point and a third preset numerical value as the target center point, and take the second preset numerical value as the target radius, and redetermine the target area.
In a possible implementation manner, the terminal 80 in the embodiment of the present invention further includes: and an adjusting unit. The adjusting unit is configured to adjust the second preset value to a fourth preset value if the second area meeting the preset condition is not determined on the display interface, where the fourth preset value is smaller than the second preset value.
In a possible implementation manner, the terminal 80 in the embodiment of the present invention further includes: and dividing the unit. The dividing unit is used for dividing preset M color values into N color value ranges before a determining unit determines a second area meeting a preset condition on a display interface under the condition that the determining unit determines that the first area where the touch control is located currently on the display interface does not meet the preset condition, wherein N and M are positive integers, and N is smaller than or equal to M.
In a possible implementation manner, the dividing unit is further configured to, if the second area meeting the preset condition is not determined on the display interface, re-divide the M color values into K color value ranges, where K is a positive integer and is smaller than N, a difference between a maximum color value and a minimum color value in the same color value range is smaller than or equal to a second preset threshold, and the second preset threshold is larger than the first preset threshold.
The terminal 80 provided in the embodiment of the present invention can implement each process implemented by the terminal in the above method embodiments, and for avoiding repetition, detailed description and beneficial effects are not repeated here.
In a third embodiment of the present invention, fig. 9 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention. As shown in fig. 9, the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 9 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to determine, on the display interface, a second area that meets a preset condition when a first area where the touch control is currently located on the display interface does not meet the preset condition, where the second area is used for displaying the touch control; controlling the touch control to move from the first area to the second area in a preset mode; the preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value.
The terminal device 100 provided in the embodiment of the present invention can implement each process implemented by the terminal device in the foregoing method embodiments, and for avoiding repetition, detailed description and beneficial effects are not repeated here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program is executed by the processor 110 to implement each process of the foregoing method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A terminal control method is applied to a terminal, a touch control is displayed on a display interface of the terminal, and the method comprises the following steps:
under the condition that a first area where the touch control is located on the display interface at present does not meet a preset condition, determining a target area on the display interface by taking the sum of a coordinate value of a center point of the first area and a first preset numerical value as a target center point and a second preset numerical value as a target radius;
determining the target area as a second area under the condition that the target area meets the preset condition;
under the condition that the target area does not meet the preset condition, re-determining the target central point; the redetermined target center point is a point on a first circumference, the circle center of the first circumference is the center point of the first area, the radius of the first circumference is a first distance, and the first distance is the distance between the center point of the first area and the target center point determined by the sum of the coordinate value of the center point of the first area and a first preset numerical value;
re-determining the target area by taking the re-determined target center point as a target center point and the second preset numerical value as a target radius until the target area meeting the preset condition is determined, and then determining the target area meeting the preset condition as the second area, wherein the second area is used for displaying the touch control;
controlling the touch control to move from the first area to the second area in a preset mode;
the preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value.
2. The method according to claim 1, wherein before determining the target area on the display interface by taking a sum of a coordinate value of a center point of the first area and a first preset numerical value as a target center point and a second preset numerical value as a target radius when a first area where the touch control is currently located on the display interface does not satisfy a preset condition, the method further comprises:
and dividing the preset M color values into N color value ranges, wherein N and M are positive integers, and N is less than or equal to M.
3. The method of claim 2, further comprising:
and under the condition that the target area meeting the preset condition is not determined by taking any point on the first circumference as a target central point, re-determining the target area by taking the sum of the coordinate value of the re-determined target central point and a third preset numerical value as the target central point and the second preset numerical value as the target radius.
4. The method according to claim 3, wherein after the re-determining the target area with the sum of the re-determined coordinate value of the target center point and a third predetermined value as a target center point and the second predetermined value as a target radius, the method further comprises:
if the target area meeting the preset condition is not determined on the display interface, adjusting the second preset numerical value to a fourth preset numerical value, wherein the fourth preset numerical value is smaller than the second preset numerical value.
5. The method according to claim 3 or 4, wherein after re-determining the target area with the sum of the re-determined coordinate value of the target center point and a third predetermined value as a target center point and the second predetermined value as a target radius, the method further comprises:
if the target area meeting the preset condition is not determined on the display interface, the M color values are divided into K color value ranges again, K is a positive integer and is smaller than N, the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a second preset threshold value, and the second preset threshold value is larger than the first preset threshold value.
6. A terminal is characterized in that a touch control is displayed on a display interface of the terminal, and the terminal comprises:
the determining unit is used for determining a target area on the display interface by taking the sum of a coordinate value of a center point of the first area and a first preset numerical value as a target center point and a second preset numerical value as a target radius under the condition that the current first area of the touch control on the display interface does not meet a preset condition;
determining the target area as a second area under the condition that the target area meets the preset condition;
under the condition that the target area does not meet the preset condition, re-determining the target central point; the redetermined target center point is a point on a first circumference, the circle center of the first circumference is the center point of the first area, the radius of the first circumference is a first distance, and the first distance is the distance between the center point of the first area and the target center point determined by the sum of the coordinate value of the center point of the first area and a first preset numerical value;
re-determining the target area by taking the re-determined target center point as a target center point and the second preset numerical value as a target radius until the target area meeting the preset condition is determined, and then determining the target area meeting the preset condition as the second area, wherein the second area is used for displaying the touch control;
the control unit is used for controlling the touch control to move from the first area to the second area determined by the determination unit in a preset mode;
the preset condition is that the color values of all pixel points in one region are in the same color value range, and the difference value between the maximum color value and the minimum color value in the same color value range is smaller than or equal to a first preset threshold value.
7. The terminal of claim 6, further comprising:
the dividing unit is used for dividing preset M color values into N color value ranges before the determining unit determines the target area on the display interface by taking the sum of the coordinate value of the center point of the first area and a first preset value as a target center point and a second preset value as a target radius under the condition that the determining unit determines that the first area where the touch control is located currently on the display interface does not meet a preset condition, wherein N and M are positive integers, and N is smaller than or equal to M.
8. The terminal according to claim 7, wherein the determining unit is further configured to, when the target area satisfying the preset condition is not determined by taking any point on the first circumference as a target center point, determine the target area again by taking a sum of a coordinate value of the newly determined target center point and a third preset numerical value as the target center point and the second preset numerical value as a target radius.
9. The terminal of claim 8, wherein the terminal further comprises:
an adjusting unit, configured to, after the determining unit determines the target area again by using the sum of the coordinate value of the target center point determined again and a third preset value as a target center point and using the second preset value as a target radius, adjust the second preset value to a fourth preset value if the target area meeting the preset condition is not determined on the display interface, where the fourth preset value is smaller than the second preset value.
10. The terminal according to claim 8 or 9, wherein the dividing unit is further configured to, after the determining unit determines the target area again by taking a sum of the coordinate value of the target center point determined again and a third preset value as a target center point and taking the second preset value as a target radius, if the target area meeting the preset condition is not determined on the display interface, divide the M color values into K color value ranges again, where K is a positive integer and is smaller than N, a difference between a maximum color value and a minimum color value in the same color value range is smaller than or equal to a second preset threshold, and the second preset threshold is greater than the first preset threshold.
CN201810142056.9A 2018-02-11 2018-02-11 Terminal control method and terminal Active CN108449490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810142056.9A CN108449490B (en) 2018-02-11 2018-02-11 Terminal control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810142056.9A CN108449490B (en) 2018-02-11 2018-02-11 Terminal control method and terminal

Publications (2)

Publication Number Publication Date
CN108449490A CN108449490A (en) 2018-08-24
CN108449490B true CN108449490B (en) 2020-11-17

Family

ID=63192467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810142056.9A Active CN108449490B (en) 2018-02-11 2018-02-11 Terminal control method and terminal

Country Status (1)

Country Link
CN (1) CN108449490B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814768A (en) * 2018-12-14 2019-05-28 中国平安财产保险股份有限公司 Method, apparatus, computer equipment and the storage medium of the position optimization of suspended frame
CN111427492A (en) * 2020-03-19 2020-07-17 青岛海信移动通信技术股份有限公司 Display position control method and terminal
CN114003123A (en) * 2020-07-28 2022-02-01 华为技术有限公司 Control moving method and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063123A (en) * 2014-05-28 2014-09-24 小米科技有限责任公司 Icon displaying method and device
CN105302408A (en) * 2014-06-24 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for adjusting position of hover button and terminal
CN104461287B (en) * 2014-11-27 2018-06-15 东莞宇龙通信科技有限公司 A kind of processing method of levitated object, device and terminal
CN105808230B (en) * 2014-12-31 2019-09-06 深圳Tcl新技术有限公司 The method and apparatus of mobile suspension icon
CN105183862B (en) * 2015-09-11 2018-12-07 百度在线网络技术(北京)有限公司 A kind of mask method and device of POI
CN106909282A (en) * 2015-12-23 2017-06-30 阿里巴巴集团控股有限公司 Information processing method and device
CN106201181A (en) * 2016-06-29 2016-12-07 努比亚技术有限公司 The display device of icon and method in a kind of application

Also Published As

Publication number Publication date
CN108449490A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN109828732B (en) Display control method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN110489029B (en) Icon display method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109828705B (en) Icon display method and terminal equipment
CN110855830A (en) Information processing method and electronic equipment
CN109871164B (en) Message sending method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN110445924B (en) Network task execution method and terminal equipment
CN108681427B (en) Access right control method and terminal equipment
CN109257505B (en) Screen control method and mobile terminal
CN109408072B (en) Application program deleting method and terminal equipment
CN109407832B (en) Terminal device control method and terminal device
CN110231972B (en) Message display method and terminal equipment
CN110874147A (en) Display method and electronic equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN110049486B (en) SIM card selection method and terminal equipment
CN110753155A (en) Proximity detection method and terminal equipment
CN111190517B (en) Split screen display method and electronic equipment
CN108449490B (en) Terminal control method and terminal
CN110058686B (en) Control method and terminal equipment

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