Disclosure of Invention
The invention aims to solve the technical problem of how to facilitate the user to operate the electronic equipment.
In order to solve the above problem, the present invention provides a display method applied to an electronic device, the electronic device at least including a touch screen; the method comprises the following steps:
when the touch screen displays a first interface, detecting an input operation on the touch screen;
when the input operation is matched with a first preset gesture, acquiring a position parameter corresponding to the input operation, and indicating the touch screen to display a second interface;
determining the position of a first area in the second interface according to the position parameter;
and displaying the display object meeting the preset condition in the first area.
Optionally, the first predetermined gesture is that the operation body slides on the touch screen to a predetermined direction; the position parameter corresponding to the input operation comprises any one or any combination of the following: the touch screen comprises a position where the operation body starts to slide on the touch screen, a position where the operation body stops sliding on the touch screen, and a position where the operation body passes through the touch screen in a sliding manner.
Optionally, the step of determining the position of the first area in the second interface according to the position parameter includes:
using one or more positions represented by the position parameters as reference points of a first area in the second interface;
or a region formed by a plurality of continuous positions represented by the position parameter is used as the first region in the second interface.
Optionally, the step of displaying the display object satisfying the predetermined condition in the first region includes:
displaying all display objects satisfying a predetermined condition in the first region when the number of display objects satisfying the predetermined condition is equal to or less than N; when the number of the display objects meeting the preset condition is more than N, sorting the display objects meeting the preset condition according to a preset rule, displaying the sorted display objects positioned at the top N in the first area, and displaying other display objects meeting the preset condition at the part outside the first area in the second interface; and N is the maximum number of the display objects which can be displayed in the first area.
Optionally, the predetermined condition comprises any one or any combination of the following:
the number of clicks is higher than a predetermined number threshold;
the frequency of being clicked is higher than a predetermined frequency threshold;
belonging to one of the M display objects which are clicked recently, wherein M is a positive integer.
Optionally, the first interface is a main interface, and the second interface is an interface of a pull-down menu; the first preset gesture is that the operation body slides downwards on the touch screen.
The invention also provides an electronic device, which at least comprises a touch screen; further comprising:
the detection unit is used for detecting input operation on the touch screen when the touch screen displays a first interface;
the control unit is used for acquiring a position parameter corresponding to the input operation and indicating the touch screen to display a second interface when the input operation is matched with a first preset gesture;
the positioning unit is used for determining the position of the first area in the second interface according to the position parameter;
a display unit for displaying a display object satisfying a predetermined condition in the first region.
Optionally, the first predetermined gesture is that the operation body slides on the touch screen to a predetermined direction; the position parameter corresponding to the input operation comprises any one or any combination of the following: the touch screen comprises a position where the operation body starts to slide on the touch screen, a position where the operation body stops sliding on the touch screen, and a position where the operation body passes through the touch screen in a sliding manner.
Optionally, the determining, by the positioning unit, the position of the first area in the second interface according to the position parameter includes:
the positioning unit takes one or more positions represented by the position parameters as reference points of a first area in the second interface;
or the positioning unit takes an area formed by a plurality of continuous positions represented by the position parameter as the first area in the second interface.
Optionally, the displaying, by the display unit, the display object satisfying a predetermined condition in the first area refers to:
the display unit displays all display objects satisfying a predetermined condition in the first region when the number of display objects satisfying the predetermined condition is equal to or less than N; when the number of the display objects meeting the preset condition is more than N, sorting the display objects meeting the preset condition according to a preset rule, displaying the sorted display objects positioned at the top N in the first area, and displaying other display objects meeting the preset condition at the part outside the first area in the second interface; and N is the maximum number of the display objects which can be displayed in the first area.
Optionally, the predetermined condition comprises any one or any combination of the following:
the number of clicks is higher than a predetermined number threshold;
the frequency of being clicked is higher than a predetermined frequency threshold;
belonging to one of the M display objects which are clicked recently, wherein M is a positive integer.
Optionally, the first interface is a main interface, and the second interface is an interface of a pull-down menu; the first preset gesture is that the operation body slides downwards on the touch screen.
At least one embodiment of the invention can enable a user to conveniently trigger the interface containing the operation object and operate the content in the interface.
Detailed Description
The technical solution of the present invention will be described in more detail with reference to the accompanying drawings and examples.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The display method is applied to electronic equipment, and the electronic equipment at least comprises a touch screen; as shown in fig. 1, the method includes:
when the touch screen displays a first interface, detecting an input operation on the touch screen;
when the input operation is matched with a first preset gesture, acquiring a position parameter corresponding to the input operation, and displaying a second interface on the touch screen;
determining the position of a first area in the second interface according to the position parameter;
and displaying the display object meeting the preset condition in the first area.
In this embodiment, the electronic device may be a mobile phone, a tablet, or other electronic device; the operation body for performing the input operation may be a finger of a person or another tool such as an operation pen.
In this embodiment, the user can trigger the display of the second interface as long as the user inputs a specific gesture on the touch screen, and the specific gesture does not require the user to touch a specific position on the touch screen, so that the method is very convenient. When the second interface is displayed, the first interface can be closed, or can be only completely or partially covered by the second interface; after the user inputs a specific gesture or presses a specific key on the electronic device, the second interface can be hidden and the first interface is returned.
In this embodiment, since there is no special requirement for the position for triggering the second interface, the user usually performs the triggering at a position convenient for operation, and the first area in the second interface is determined according to the position for triggering the second interface by the user, so the first area may be an area on the touch screen that is convenient or used for the user to perform operation; for example, when the user holds the mobile phone with one hand in the right hand and operates the mobile phone with the thumb of the right hand, if the position of the mobile phone matched with the first preset gesture is a position lower than the middle of the touch screen, the user is in the position of the area which is more accustomed to and convenient to operate; determining the position of the first area according to the position facilitates the operation of the first area by the user.
In this embodiment, the display object meeting the predetermined condition is displayed in the first area, and by setting the predetermined condition, the display object most needed or most frequently clicked by the user can be placed at a position convenient for operation, thereby facilitating the use of the user. The display object comprises a notice, such as 'a new short message', and the like, and a user can enter a corresponding interface after clicking; the display object also includes operation buttons, such as GPS, WLAN, mute/vibrate switch, etc., and the user may change the setting of the corresponding parameter after clicking.
In this embodiment, the plurality of display objects included in the second interface are default or user-set, where the display object that meets the predetermined condition is displayed in the first area, and the display object that does not meet the predetermined condition is displayed in the second interface outside the first area; in the step of displaying the display objects satisfying the predetermined condition in the first region, the display objects included in the second interface may be acquired first, and then the second interface may be regenerated according to the display positions of the display objects.
In an implementation manner of this embodiment, the first predetermined gesture may be, but is not limited to, sliding an operation body on the touch screen to a predetermined direction; the position parameter corresponding to the input operation may include any one of or any combination of the following: the touch screen comprises a position where the operation body starts to slide on the touch screen, a position where the operation body stops sliding on the touch screen, and a position where the operation body passes through the touch screen in a sliding manner.
In this embodiment, the first predetermined gesture may be preset or set by a user; the first predetermined gesture may be one or more; when the number of the first gestures is multiple, different first preset gestures correspond to different second interfaces; for example, when the first predetermined gesture is a downward sliding, the corresponding second interface is a pull-down menu; to slide to the right, the corresponding second interface is a menu hidden on the left.
In this embodiment, the position parameter may be, but is not limited to, represented in the form of coordinates on the touch screen; for example, if the lower left corner of the touch screen is used as the origin, the horizontal direction is the X axis, and the vertical direction is the Y axis, the coordinate value can be used to uniquely represent the position of any point on the touch screen. The arbitrary combination also includes a case where the position parameter is calculated from the above-mentioned positions, for example, a midpoint between a position (X1, Y1) where the operator starts sliding on the touch screen and a position (X2, Y2) where the operator stops sliding is taken as the position parameter, that is, the position parameter is ((X1+ X2)/2, (Y1+ Y2)/2).
In this embodiment, which position or positions the position parameters are specific to can be set as required; the position parameter may be set to a position at which the operator starts to slide on the touch screen, for example, considering that at the moment the user starts to input, the current position of the operator is likely to be the most comfortable position for the user to operate. The user can modify the position corresponding to the position parameter according to the own operation habit, so that the first area appears on the part of the touch screen more suitable for operation.
In other embodiments, the first predetermined gesture may be other types of gestures; the location parameter is also not limited to the above three locations, but may be represented in other ways, such as by a distance relative to a particular point on the touch screen.
In an implementation manner of this embodiment, the step of determining the position of the first area in the second interface according to the position parameter includes:
using one or more positions represented by the position parameters as reference points of a first area in the second interface;
or a region formed by a plurality of continuous positions represented by the position parameter is used as the first region in the second interface.
In this embodiment, as shown in fig. 2a, when one position is used as thereference point 21, an inner area of acircle 22 on the touch screen, which has thereference point 21 as a center and a predetermined length as a radius, may be used as the first area; or as shown in fig. 2b, anarea 23 surrounded by extending a predetermined length from thereference point 21 to the left (or to the right) and extending a predetermined length to the upper (or to the lower) on the touch screen is used as the first area. When a plurality of positions are used as reference points, such as two reference points, as shown in fig. 2c, aregion 33 surrounded by the plurality ofreference points 31, 32 and the connecting line or the extension line may be used as the first region. The region formed by the plurality of continuous positions may be a region obtained by widening a connection line between the continuous positions by a predetermined width.
The present embodiment can accurately correspond the position and the position parameter of the first region. In other embodiments, the determination of the position of the first area according to the position parameter may be implemented in other manners, and is not limited to the above description.
In an implementation manner of this embodiment, the step of displaying the display object satisfying the predetermined condition in the first area includes:
displaying all display objects satisfying a predetermined condition in the first region when the number of display objects satisfying the predetermined condition is equal to or less than N; when the number of the display objects meeting the preset condition is more than N, sorting the display objects meeting the preset condition according to a preset rule, displaying the sorted display objects positioned at the top N in the first area, and displaying other display objects meeting the preset condition at the part outside the first area in the second interface; and N is the maximum number of the display objects which can be displayed in the first area.
In this embodiment, the predetermined rule may be set by itself to select a display object that better meets the user's requirement, and the display object is preferentially displayed in the first region; in addition, when the number of display objects satisfying the predetermined condition is more than N, the display objects ranked further back may be set to be displayed around the first region while the display objects not satisfying the predetermined condition are placed at a farther position from the first region even if the display objects cannot be displayed in the first region.
In an implementation manner of this embodiment, the predetermined condition includes any one of or any combination of the following:
the number of clicks is higher than a predetermined number threshold;
the frequency of being clicked is higher than a predetermined frequency threshold;
belonging to one of the M display objects which are clicked recently, wherein M is a positive integer.
In the present embodiment, the arbitrary combination means a combination of the above three conditions, or a combination of any two of the conditions; the combination mode can be an and combination mode, and can also be an or combination mode, for example, in the and combination mode, the number of times that the user needs to be clicked is higher than a preset number threshold, and the frequency of clicking is higher than a preset frequency threshold; in the "or" combination, it is sufficient that one of the two conditions, that is, the number of clicks is higher than a predetermined number threshold and the frequency of clicks is higher than a predetermined frequency threshold, is satisfied.
In other embodiments, the predetermined condition may further include other conditions or any combination thereof, or any combination of other conditions and the above three conditions. In addition, the user may set a set of display objects displayed in the first region by himself/herself, in which case the predetermined condition is that "the display objects belong to a preset set".
In an implementation manner of this embodiment, the first interface is a main interface, and the second interface is an interface of a pull-down menu; the first preset gesture is that the operation body slides downwards on the touch screen.
In this embodiment, the user slides the operation body downward at any position on the main interface, and the display of the pull-down menu is triggered; the position of the main operation area (namely the first area) in the pull-down menu depends on the position of the pull-down menu triggered by the user; and which display objects are placed in the main operation area can be determined by the operation habits of the user.
An electronic device includes at least a touch screen; as shown in fig. 3, the method further includes:
the detection unit is used for detecting input operation on the touch screen when the touch screen displays a first interface;
the control unit is used for acquiring a position parameter corresponding to the input operation and indicating the touch screen to display a second interface when the input operation is matched with a first preset gesture;
the positioning unit is used for determining the position of the first area in the second interface according to the position parameter;
a display unit for displaying a display object satisfying a predetermined condition in the first region.
In this embodiment, the electronic device may be a mobile phone, a tablet, or other electronic device; the operation body for performing the input operation may be a finger of a person or another tool such as an operation pen.
In this embodiment, the user can trigger the display of the second interface as long as the user inputs a specific gesture on the touch screen, and the specific gesture does not require the user to touch a specific position on the touch screen, so that the method is very convenient. When the second interface is displayed, the first interface can be closed, or can be only completely or partially covered by the second interface; after the user inputs a specific gesture or presses a specific key on the electronic device, the second interface can be hidden and the first interface is returned.
In this embodiment, since there is no special requirement for the position for triggering the second interface, the user usually performs the triggering at a position convenient for operation, and the first area in the second interface is determined according to the position for triggering the second interface by the user, so the first area may be an area on the touch screen that is convenient or used for the user to perform operation; for example, when the user holds the mobile phone with one hand in the right hand and operates the mobile phone with the thumb of the right hand, if the position of the mobile phone matched with the first preset gesture is a position lower than the middle of the touch screen, the user is in the position of the area which is more accustomed to and convenient to operate; determining the position of the first area according to the position facilitates the operation of the first area by the user.
In this embodiment, the display object meeting the predetermined condition is displayed in the first area, and by setting the predetermined condition, the display object most needed or most frequently clicked by the user can be placed at a position convenient for operation, thereby facilitating the use of the user. The display object comprises a notice, such as 'a new short message', and the like, and a user can enter a corresponding interface after clicking; the display object also includes operation buttons, such as GPS, WLAN, mute/vibrate switch, etc., and the user may change the setting of the corresponding parameter after clicking.
In this embodiment, the plurality of display objects included in the second interface are default or user-set, where the display object that meets the predetermined condition is displayed in the first area, and the display object that does not meet the predetermined condition is displayed in the second interface outside the first area; when the display unit displays the display object satisfying the predetermined condition in the first region, the display object included in the second interface may be acquired first, and then the second interface may be regenerated according to the display position of each display object.
In an implementation manner of this embodiment, the first predetermined gesture may be, but is not limited to, sliding an operation body on the touch screen to a predetermined direction; the position parameter corresponding to the input operation comprises any one or any combination of the following: the touch screen comprises a position where the operation body starts to slide on the touch screen, a position where the operation body stops sliding on the touch screen, and a position where the operation body passes through the touch screen in a sliding manner.
In this embodiment, the first predetermined gesture may be preset or set by a user; the first predetermined gesture may be one or more; when the number of the first gestures is multiple, different first preset gestures correspond to different second interfaces; for example, when the first predetermined gesture is a downward sliding, the corresponding second interface is a pull-down menu; to slide to the right, the corresponding second interface is a menu hidden on the left.
In this embodiment, the position parameter may be, but is not limited to, represented in the form of coordinates on the touch screen; for example, if the lower left corner of the touch screen is used as the origin, the horizontal direction is the X axis, and the vertical direction is the Y axis, the coordinate value can be used to uniquely represent the position of any point on the touch screen. The arbitrary combination also includes a case where the position parameter is calculated from the above-mentioned positions, for example, a midpoint between a position (X1, Y1) where the operator starts sliding on the touch screen and a position (X2, Y2) where the operator stops sliding is taken as the position parameter, that is, the position parameter is ((X1+ X2)/2, (Y1+ Y2)/2).
In this embodiment, which position or positions the position parameters are specific to can be set as required; the position parameter may be set to a position at which the operator starts to slide on the touch screen, for example, considering that at the moment the user starts to input, the current position of the operator is likely to be the most comfortable position for the user to operate. The user can modify the position corresponding to the position parameter according to the own operation habit, so that the first area appears on the part of the touch screen more suitable for operation.
In other embodiments, the first predetermined gesture may be other types of gestures; the location parameter is also not limited to the above three locations, but may be represented in other ways, such as by a distance relative to a particular point on the touch screen.
In an implementation manner of this embodiment, the determining, by the positioning unit, the position of the first area in the second interface according to the position parameter includes:
the positioning unit takes one or more positions represented by the position parameters as reference points of a first area in the second interface;
or the positioning unit takes an area formed by a plurality of continuous positions represented by the position parameter as the first area in the second interface.
In this embodiment, when a position is used as a reference point, an inner area of a circle on the touch screen, which uses the reference point as a center of the circle and a predetermined length as a radius, may be used as the first area; or a region surrounded by the touch screen which extends leftwards/rightwards from the reference point by a preset length and extends upwards/downwards by the preset length is used as the first region. When a plurality of positions are used as reference points, a region surrounded by the plurality of reference points and the connecting line or the extending line may be used as the first region. The region formed by the plurality of continuous positions may be a region obtained by widening a connection line between the continuous positions by a predetermined width.
The present embodiment can accurately correspond the position and the position parameter of the first region. In other embodiments, the determination of the position of the first area according to the position parameter may be implemented in other manners, and is not limited to the above description.
In an implementation manner of this embodiment, the displaying, by the display unit, the display object that meets the predetermined condition in the first area includes:
the display unit displays all display objects satisfying a predetermined condition in the first region when the number of display objects satisfying the predetermined condition is equal to or less than N; when the number of the display objects meeting the preset condition is more than N, sorting the display objects meeting the preset condition according to a preset rule, displaying the sorted display objects positioned at the top N in the first area, and displaying other display objects meeting the preset condition at the part outside the first area in the second interface; and N is the maximum number of the display objects which can be displayed in the first area.
In this embodiment, the predetermined rule may be set by itself to select a display object that better meets the user's requirement, and the display object is preferentially displayed in the first region; in addition, when the number of display objects satisfying the predetermined condition is more than N, the display objects ranked further back may be set to be displayed around the first region while the display objects not satisfying the predetermined condition are placed at a farther position from the first region even if the display objects cannot be displayed in the first region.
In an implementation manner of this embodiment, the predetermined condition includes any one of or any combination of the following:
the number of clicks is higher than a predetermined number threshold;
the frequency of being clicked is higher than a predetermined frequency threshold;
belonging to one of the M display objects which are clicked recently, wherein M is a positive integer.
In the present embodiment, the arbitrary combination means a combination of the above three conditions, or a combination of any two of the conditions; the combination mode can be an and combination mode, and can also be an or combination mode, for example, in the and combination mode, the number of times that the user needs to be clicked is higher than a preset number threshold, and the frequency of clicking is higher than a preset frequency threshold; in the "or" combination, it is sufficient that one of the two conditions, that is, the number of clicks is higher than a predetermined number threshold and the frequency of clicks is higher than a predetermined frequency threshold, is satisfied.
In other embodiments, the predetermined condition may further include other conditions or any combination thereof, or any combination of other conditions and the above three conditions. In addition, the user may set a set of display objects displayed in the first region by himself/herself, in which case the predetermined condition is that "the display objects belong to a preset set".
In an implementation manner of this embodiment, the first interface is a main interface, and the second interface is an interface of a pull-down menu; the first preset gesture is that the operation body slides downwards on the touch screen.
In this embodiment, the user slides the operation body downward at any position on the main interface, and the display of the pull-down menu is triggered; the position of the main operation area (namely the first area) in the pull-down menu depends on the position of the pull-down menu triggered by the user; and which display objects are placed in the main operation area can be determined by the operation habits of the user.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.