WO2015085868A1 - Method for processing user interface of electronic device and electronic device - Google Patents

Method for processing user interface of electronic device and electronic device Download PDF

Info

Publication number
WO2015085868A1
WO2015085868A1 PCT/CN2014/092493 CN2014092493W WO2015085868A1 WO 2015085868 A1 WO2015085868 A1 WO 2015085868A1 CN 2014092493 W CN2014092493 W CN 2014092493W WO 2015085868 A1 WO2015085868 A1 WO 2015085868A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
sub
boundary line
point
common boundary
Prior art date
Application number
PCT/CN2014/092493
Other languages
French (fr)
Chinese (zh)
Inventor
郝华奇
王红军
吴雷
甘元莉
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2015085868A1 publication Critical patent/WO2015085868A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • the present invention relates to the field of information technology, and in particular, to a method for processing a user interface of an electronic device and an electronic device.
  • the prior art provides a solution for realizing left-right switching of certain interfaces through specific buttons of the touch screen to facilitate one-handed operation.
  • the user opens the one-hand operation option, and some interfaces (such as a short message input interface, the upper half of the interface is a short message content input box, and the lower half of the interface is a keyboard area) A change has taken place.
  • the user can click the specific button to realize the operation interface (such as the entire keyboard area) to reduce the display to the left or right, which is convenient for the user to operate.
  • the invention provides a method for processing a user interface of an electronic device and an electronic device, which are used to solve the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device.
  • the present invention provides an embodiment of a method of processing a user interface of an electronic device.
  • the method includes:
  • the electronic device acquires an operation input by the user, and determines an operation trajectory corresponding to the operation; the operation trajectory is a trajectory formed by an action point of the operation corresponding to the operation information on the output device;
  • the first interface is an interface presented by the output device of the electronic device when the electronic device acquires the operation information
  • the common boundary line and the operation track have at least one intersection point; wherein the operation track is an operation corresponding to the operation information a track formed by a point of action on the output device; or
  • the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold
  • the distance from the first point to the common boundary line is less than a predetermined threshold operation trajectory; wherein the first point is a point on the operation trajectory that is closest to the common boundary.
  • the determining, according to the operation trajectory, the common boundary line of the at least two sub-interfaces of the first interface is specifically:
  • the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold Wherein the first point is a point on the operation track that is closest to the common boundary;
  • the first sub-interface of the at least two sub-interfaces is:
  • the determining, according to the operation trajectory, the common boundary line of the at least two sub-interfaces of the first interface is specifically:
  • the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold
  • the first sub-interface of the at least two sub-interfaces is:
  • Determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is:
  • An angle formed by a straight line formed at a starting point of the operation track and an end point of the operation track and a lateral direction of the output device is greater than a first threshold, and an angle with a longitudinal direction of the output device is greater than the first a threshold value, a second point on a boundary between the first point on the operation track and a presentation area of the output device is determined, and the first line segment and the second line segment respectively formed by the third point are the common boundary line;
  • the first line segment and the second line segment are perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is a point in the presentation area of the output device that is furthest from the first point;
  • the first sub-interface of the at least two sub-interfaces is:
  • determining a common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically:
  • the first sub-interface of the at least two sub-interfaces acquiring the at least two initial sub-menets according to a boundary line of the at least two initial sub-interfaces preset by the system Any subinterface in the interface.
  • the adjusting a presentation area of the first sub-interface on the output device is specifically:
  • the first interface includes only the first sub-interface and the second sub-interface;
  • the presentation area of the first sub-interface on the output device is specifically:
  • the area of the first sub-interface and the second sub-interface of the presentation area on the output device are different;
  • the adjusting the presentation area of the first sub-interface on the output device is specifically:
  • the method further includes:
  • Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
  • the operation trajectory is a straight line between the operation start point and the operation termination point.
  • the method further includes:
  • the electronic device acquires a second operation input by the user, and restores the first interface
  • the electronic device restores the first interface after a preset time of presenting the second interface.
  • the invention provides an electronic device.
  • the electronic device includes:
  • An input device for obtaining an operation input by a user An input device for obtaining an operation input by a user
  • a processor configured to determine an operation trajectory corresponding to the operation according to an operation of the user input acquired by the input device; and determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; a boundary line, the first sub-interface of the at least two sub-interfaces is obtained; a presentation area of the first sub-interface on the output device is adjusted, and a second interface is generated; the operation trajectory is corresponding to the operation information a trajectory formed by an action point on the output device; the first interface is an interface presented by an output device of the electronic device when the electronic device acquires the operation information; the first sub-interface The displayed content is a part of the content displayed by the first interface;
  • the processor determines, according to the operation trajectory, that a common boundary line of the at least two sub-interfaces of the first interface is:
  • the processor determines a common boundary line of at least two sub-interfaces of the first interface, the common boundary line having at least one intersection with the operation track; or
  • the processor determines a common boundary line of at least two sub-interfaces of the first interface, the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold;
  • the processor determines a common boundary line of at least two sub-interfaces of the first interface, where the distance between the common boundary line and the first point is less than a preset threshold operation trajectory; the first point is the operation trajectory The point at which the public boundary is closest to the point.
  • the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
  • Determining when the processor determines that an angle formed by a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is less than or equal to a first threshold, determining a lateral direction with the output device a common boundary line parallel to the direction; the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the first point and the common boundary line The distance is less than a predetermined threshold; wherein the first point is a point on the operation track that is closest to the common boundary;
  • the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
  • the processor acquires two sub-interfaces that are bounded by the common boundary line, and determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute The first interface.
  • the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
  • Determining a longitudinal direction of the output device when the processor determines that an angle formed by a starting point of the operation track and an ending point of the operation track and a longitudinal direction of the output device is less than or equal to a first threshold a common boundary line parallel to the direction; the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the first point and the common boundary line The distance is less than a predetermined threshold; wherein the first point is a point on the operation track that is closest to the common boundary;
  • the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
  • the processor acquires two sub-interfaces that are bounded by the common boundary line, and determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute The first interface.
  • the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
  • the processor determines that an angle formed by a line formed by a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is greater than a first threshold, and is clipped with a longitudinal direction of the output device
  • determining a second point on a boundary between the first point on the operation track and the presentation area of the output device, the first line segment and the second line segment respectively formed by the third point are a common boundary line; the first line segment and the second line segment are perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point;
  • Four points are points within the presentation area of the output device that are furthest from the first point;
  • the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
  • the processor acquires the rectangular coverage area in the first interface as the first sub-interface.
  • determining a common boundary line of at least two sub-interfaces of the first interface is specifically:
  • the first sub-interface of the at least two sub-interfaces is:
  • the processor acquires any one of the at least two initial sub-interfaces according to a boundary line of the at least two initial sub-interfaces preset by the system.
  • the processor adjusts a presentation area of the first sub-interface on the output device to be specifically :
  • the processor adjusts a presentation area of the first sub-interface as a presentation area of an unreserved initial sub-interface in the initial interface; the unreserved initial sub-interface is in the at least two initial sub-interfaces At least one initial sub-interface in addition to the first sub-interface.
  • the processor determines that the first interface includes only the first sub-interface and the second sub-interface;
  • the processor adjusts a presentation area of the first sub-interface on the output device to be specifically:
  • the processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device.
  • the area of the first sub-interface and the second sub-interface of the presentation area on the output device are different;
  • the processor adjusts a presentation area of the first sub-interface on the output device to be specifically:
  • the processor reduces a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface;
  • the processor enlarges a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface.
  • the processor adjusts a presentation area of the first sub-interface on the output device, Before generating the second interface, the processor is further configured to
  • Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
  • the processor determines that the operation trajectory is between the operation start point and the operation termination point Straight line.
  • the input device is further configured to acquire a second operation input by the user
  • the output device is further configured to restore the first interface according to the second operation of the user input.
  • the output device is further configured to restore the first interface after a preset time of the second interface is presented.
  • the electronic device determines a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, acquires a first sub-interface of the at least two sub-interfaces, and adjusts the first
  • the sub-interface generates a second interface in the presentation area on the output device, which solves the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device, and improves the interaction capability between the electronic device and the user.
  • FIG. 1 is a flowchart of an embodiment of a method for processing a user interface of an electronic device according to the present invention
  • FIG. 2 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 3 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 4 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 5 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 6 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 7 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 8 is a schematic diagram of an embodiment of a user interface process provided by the present invention.
  • FIG. 9 is a schematic structural diagram of an embodiment of an electronic device according to an embodiment of the present invention.
  • the touch screen device includes, but is not limited to, a mobile communication device such as a mobile phone, a personal digital assistant (PDA), a tablet computer, a portable device (for example, a portable computer), and an automatic teller machine (Automatic Teller).
  • a mobile communication device such as a mobile phone, a personal digital assistant (PDA), a tablet computer, a portable device (for example, a portable computer), and an automatic teller machine (Automatic Teller).
  • PDA personal digital assistant
  • a tablet computer for example, a portable computer
  • Autoteller machine Automatic Teller
  • FIG. 1 is a flowchart of a method for processing a user interface of an electronic device according to Embodiment 1 of the present invention. As shown in FIG. 1, the processing method of the user interface of the electronic device may include:
  • the electronic device acquires an operation input by a user, and determines an operation trajectory corresponding to the operation;
  • the operation trajectory is a trajectory formed by an action point of the operation corresponding to the operation information on the output device;
  • the electronic device acquires an operation of the user's input on the touch screen of the electronic device, receives an operation signal of the user, and determines an operation trajectory corresponding to the operation.
  • the operation of the user input obtained by the electronic device may be a touch operation of the user on the touch screen of the electronic device; or may be a floating operation of the user on the touch screen of the electronic device.
  • the operation of the electronic device to obtain a user input may be a sliding operation on the input device of the user; the operation trajectory corresponding to the operation is a touch trajectory corresponding to the sliding operation of the user on the input device; a trajectory is a trajectory formed by a point of action of the sliding operation on the output device; or
  • the operation of the electronic device to obtain a user input may be a click operation on the input device of the user; the operation track corresponding to the operation is a preset track of the electronic device corresponding to the click operation of the user on the input device .
  • S102 Determine, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface.
  • the first interface is displayed by the output device of the electronic device when the electronic device acquires the operation information. interface;
  • the electronic device determines an operation trajectory corresponding to the operation input by the user, determining a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory.
  • a common boundary line of at least two sub-interfaces of the first interface has at least one intersection with the operation track;
  • the common boundary line of the at least two sub-interfaces of the first interface is parallel to the operation trajectory and the distance is less than a predetermined threshold;
  • the distance between the common boundary line of the at least two sub-interfaces of the first interface and the first point on the operation track is less than a preset threshold; wherein the first point is the distance from the common boundary on the operation track The most recent point.
  • the first interface is an interface presented by an output device of the electronic device when the electronic device acquires the operation information.
  • the first interface may be an application interface of a specific application presented by the output device of the electronic device, or an application interface displayed by the output device of the electronic device to display a plurality of application icons.
  • the electronic device determines a common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory, acquiring at least two sub-interfaces that are bounded by the common boundary line, and determining that any one of the sub-interfaces is the The first sub-interface.
  • the electronic device determines a common boundary line of the two sub-interfaces of the first interface according to the operation trajectory, acquiring two sub-interfaces that are bounded by the common boundary line, determining that any of the The first sub-interface and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the content displayed by the first sub-interface is a part of the content displayed by the first interface.
  • the electronic device After the electronic device acquires the first sub-interface, the electronic device adjusts the first sub-interface in a presentation area of the output device to generate a second interface.
  • the adjusting the first sub-interface in the presentation area of the output device is specifically: exchanging the presentation area of the first sub-interface with the presentation area of the second sub-interface; the at least two initial sub-portions
  • the interface includes only the first sub-interface and the second sub-interface.
  • the adjusting the first sub-interface in the presentation area of the output device is specifically: adjusting a presentation area of the first sub-interface as an unreserved initial sub-interface in the first interface a presentation area; the unreserved initial sub-interface is at least one initial sub-interface of the at least two sub-interfaces except the first sub-interface.
  • the electronic device After the electronic device adjusts the first sub-interface to display area of the output device to generate a second interface, the electronic device presents a second interface.
  • the second interface has at least the same display content as the first interface.
  • the electronic device determines a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, acquires a first sub-interface of the at least two sub-interfaces, and adjusts the first Subinterface
  • a second interface is generated in the presentation area on the output device, which solves the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device, and improves the interaction capability between the electronic device and the user.
  • determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is specifically: forming a starting point of the operation trajectory and a termination point of the operation trajectory Determining a common boundary line parallel to the lateral direction of the output device when the angle between the straight line and the lateral direction of the output device is less than or equal to the first threshold; the common boundary line intersects the operation track; The common boundary line is parallel to the operation track and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a preset threshold; wherein the first point is on the operation track The closest distance to the common boundary.
  • the electronic device recognizes an operation input by the user, and determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen.
  • the electronic device may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle formed by a line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a lateral direction of the touch screen.
  • a common boundary line parallel to the lateral direction of the output device may be determined when an angle formed by a straight line formed by the start point of the touch screen sliding track and the end point of the sliding track and the lateral direction of the touch screen is less than or equal to the first threshold.
  • the first threshold may be a specific angular value (eg, 5°) or a specific angular range (eg, [-5° 5°]).
  • the common boundary line intersects the touch screen sliding track.
  • the common boundary line has at least one intersection with the touch screen sliding track.
  • the common boundary line may coincide with the touch screen sliding track.
  • the common boundary line is parallel to the touch screen sliding track and the distance is less than a predetermined threshold.
  • the relative position of the common boundary line and the touch screen sliding track is not limited, and the common boundary line may be above the touch screen sliding track or below the touch screen sliding track.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the distance between the first point on the sliding track of the touch screen and the common boundary line is less than a preset threshold; wherein the first point is on the operation track
  • the common boundary is the closest point.
  • the common boundary line and the touch screen sliding track are neither parallel nor intersect.
  • the common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the electronic device may define that when the user slides from the left edge of the touch screen to the right edge, or the user is touching When the sliding distance of the screen is greater than or equal to the preset distance threshold, the touch screen sliding operation is regarded as a touch screen sliding operation for adjusting the first interface display area.
  • the acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: acquiring two sub-interfaces that are bounded by the common boundary line, and determining any one of the sub-interfaces
  • the first sub-interface is another second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the electronic device acquires two sub-interfaces arranged up and down with the common boundary line as a boundary.
  • the electronic device may acquire two sub-interfaces arranged up and down with the sliding touch track as a boundary. .
  • the electronic device determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the electronic device acquires the upper and lower boundaries bounded by the common boundary line. Arranging the two sub-interfaces, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the electronic device acquires the common boundary line as Two sub-interfaces of the upper and lower boundaries are defined, and any one of the first sub-interfaces is determined, and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is specifically: forming a starting point of the operation trajectory and a termination point of the operation trajectory Determining a common boundary line parallel to the longitudinal direction of the output device when the angle between the straight line and the longitudinal direction of the output device is less than or equal to the first threshold; the common boundary line intersects the operation track; The common boundary line is parallel to the operation track and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a preset threshold; wherein the first point is on the operation track The closest distance to the common boundary.
  • the electronic device recognizes an operation input by the user, and determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen.
  • the electronic device may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle between a straight line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a longitudinal direction of the touch screen.
  • a common boundary line parallel to the longitudinal direction of the output device may be determined when an angle formed by a line formed by the start point of the touch screen sliding track and the end point of the sliding track and the longitudinal direction of the touch screen is less than or equal to the first threshold.
  • the first threshold may be a specific angle value (eg, 5°), It can also be a specific range of angles (eg [-5° 5°]).
  • the common boundary line intersects the touch screen sliding track.
  • the common boundary line has at least one intersection with the touch screen sliding track.
  • the common boundary line may coincide with the touch screen sliding track.
  • the common boundary line is parallel to the touch screen sliding track and the distance is less than a predetermined threshold.
  • the relative position of the common boundary line and the touch screen sliding track is not limited, and the common boundary line may be on the left side of the touch screen sliding track or on the right side of the touch screen sliding track.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the distance between the first point on the sliding track of the touch screen and the common boundary line is less than a preset threshold; wherein the first point is on the operation track
  • the common boundary is the closest point.
  • the common boundary line and the touch screen sliding track are neither parallel nor intersect.
  • the common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the electronic device may define a sliding distance when the user slides from the upper edge to the lower edge of the touch screen or the user on the touch screen.
  • the preset distance threshold is greater than or equal to the touch screen sliding operation
  • the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
  • the acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: acquiring two sub-interfaces that are bounded by the common boundary line, and determining any one of the sub-interfaces
  • the first sub-interface is another second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the electronic device acquires two sub-interfaces arranged side by side with the common boundary line as a boundary.
  • the electronic device may acquire two sub-interfaces arranged side by side with the sliding touch track as a boundary .
  • the electronic device determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the electronic device acquires a left and right boundary with the common boundary line as a boundary Aligning the two sub-interfaces, and determining that any of the first sub-interfaces, and the second sub-interface; the first sub-interface and the second sub-interface Forming the first interface.
  • the electronic device acquires the common boundary line as Two sub-interfaces arranged on the left and right of the boundary line, and determining that any of the first sub-interfaces is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is specifically: forming a starting point of the operation trajectory and a termination point of the operation trajectory Determining a first point on the operational trajectory and the output when an angle between a straight line and a lateral direction of the output device is greater than a first threshold and an angle with a longitudinal direction of the output device is greater than a first threshold a second point on a boundary of the presentation area of the device, wherein the first line segment and the second line segment respectively formed by the third point are the common boundary line; the first line segment and the second line segment are perpendicular, and the first line is The end points of the diagonals of the rectangles in which the segments and the second line segments are borders are the first point and the fourth point; the fourth point is within the presentation area of the output device, the farthest from the first point point;
  • the electronic device recognizes an operation input by the user, and determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. An angle formed by a line formed by the electronic device at a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is greater than a first threshold, and is clipped with a longitudinal direction of the output device When the angle is greater than the first threshold, the electronic device determines a coordinate position of the first point on the operation trajectory, and determines a second point on a boundary of the presentation area of the output device according to the coordinate position of the first point The coordinate position of the third point.
  • first line segment and a second line segment respectively formed by the first point and the second point and the third point, wherein the first line segment and the second line segment are common boundary lines of the at least two sub-interfaces.
  • the first line segment and the second line segment are perpendicular. Determining, by the electronic device, a fourth point in a presentation area of the output device according to a coordinate position of the first point, where the fourth point is within a presentation area of the output device, farthest from the first point Point.
  • the endpoints of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point.
  • the acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: acquiring the rectangular coverage area in the first interface as the first sub-interface.
  • the electronic device acquires coordinate positions of the second point, the third point, and the fourth point according to the first point on the operation trajectory. Taking the first point and the fourth point as the end points of the diagonal line, the first line segment and the second line segment respectively formed by the first point and the second point and the third point are adjacent sides to form a rectangle a sub-interface, the first line segment being perpendicular to the second line segment. The electronic device acquires the rectangular coverage area in the first interface as the first sub-interface.
  • determining a common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically: determining, according to the operation trajectory, at least two sub-interfaces of the first interface preset by the system of Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces: acquiring the at least two according to a boundary line of the at least two initial sub-interfaces preset by the system Any of the sub-interfaces in the initial sub-interface.
  • the electronic device may also acquire operation information input by the user by a click operation of the input device by the user.
  • the user can implement the above-mentioned slave to obtain the first sub-interface by operating the “application interface switching” button.
  • the “application interface switching button” may be a click icon provided by the electronic device in the first user interface, or may be an application interface switching option provided by the electronic device in the setting option.
  • the electronic device identifies a boundary line of the at least two sub-interfaces of the first interface preset by the system after the user clicks the touch operation of the touch screen, and obtains the boundary line of the at least two sub-interfaces according to the common boundary line.
  • the first sub-interface is specifically configured to: acquire any one of the at least two initial sub-interfaces according to a boundary line of the at least two initial sub-interfaces preset by the system.
  • the adjusting the presentation area of the first sub-interface on the output device is specifically:
  • the display content of the presentation area of the first sub-interface is retained, and the at least two sub-interfaces of the first interface are not retained.
  • the electronic device adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface.
  • the processor acquires at least two sub-interfaces arranged up and down with the common boundary line as a boundary, and after determining that any one of the first sub-interfaces, the electronic device retains the first sub-interface
  • the display content of the presentation area does not retain the display content of the presentation area of at least one of the at least two sub-interfaces of the at least two sub-interfaces arranged above and below the first interface.
  • the electronic device adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface. As shown in FIG. 2(c) or FIG. 3(c) or FIG.
  • the first interface includes only two sub-interfaces arranged in an upper and lower direction, that is, The first sub-interface and the second sub-interface.
  • the electronic device determines that any of the first sub-interfaces is the second sub-interface, the display content of the presentation area of the first sub-interface is retained, and the display content of the presentation area of the second sub-interface is not retained.
  • the electronic device adjusts a presentation area of the first sub-interface to a presentation area of the second sub-interface in the first interface to generate a second interface.
  • the processor acquires at least two sub-interfaces arranged side by side with the common boundary line as a boundary, After determining that any of the first sub-interfaces is used, the electronic device retains display content of the presentation area of the first sub-interface, and does not retain at least two sub-interfaces arranged to the left and right of the first interface. Display content of a presentation area of at least one sub-interface other than a sub-interface. The electronic device adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface. As shown in FIG. 5(c) or FIG. 6(c) or FIG.
  • the first interface includes only two sub-interfaces arranged side by side, ie The first sub-interface and the second sub-interface.
  • the electronic device determines that any of the first sub-interfaces is the second sub-interface, the display content of the presentation area of the first sub-interface is retained, and the display content of the presentation area of the second sub-interface is not retained.
  • the electronic device adjusts a presentation area of the first sub-interface to a presentation area of the second sub-interface in the first interface to generate a second interface.
  • the processor determines that a line formed by a starting point of the operation track and an ending point of the operation track is larger than a horizontal direction of the output device.
  • a threshold value, and an angle with the longitudinal direction of the output device is greater than a first threshold, and after determining the rectangular sub-interface coverage area in the first interface as the first sub-interface, retaining the first sub-
  • the display content of the interface does not retain the display content of at least one of the at least two sub-interfaces of the first interface except the first sub-interface.
  • the presentation area of the first sub-interface of the electronic device is adjusted to a presentation area of an unreserved sub-interface in the first interface, and a second interface is generated.
  • the method further includes:
  • Portions of the output device other than the first sub-interface are populated with a predefined color or picture.
  • the output device has a presentation area other than the first sub-interface, for example, the first interface A portion of the output device corresponding to the position of the sub-interface can be filled with a predefined color or picture.
  • the method further includes:
  • Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
  • the output device is divided by the first sub- a presentation area outside the interface, for example, a portion corresponding to the output device before the first sub-interface position adjustment of the first interface may be filled with the display content of the un-reserved sub-interface presentation area, or may be the first Display content not included in the interface, such as weather plugins, calendar plugins, etc.
  • the first interface includes only the first sub-interface and the second sub-interface;
  • the presentation area of the first sub-interface on the output device is specifically:
  • the processor acquires two sub-interfaces arranged up and down with the common boundary line as a boundary, and determines any one of them.
  • the electronic device exchanges the two sub-interfaces arranged up and down in the presentation area of the output device to generate a second interface.
  • the processor acquires two sub-interfaces arranged side by side with the common boundary line as a boundary, and determines any one of them.
  • the electronic device exchanges the two sub-interfaces arranged in the left and right at the presentation area of the output device to generate a second interface.
  • the first interface includes only the first sub-interface and the second sub-interface; the electronic device interchanges the first sub-interface and the second sub-interface in the output device
  • the presentation area on the top The area of the area of the first sub-interface and the second sub-interface on the output device is different; the display area of the first sub-interface on the output device is specifically:
  • the electronic device may further display the presented content of the first sub-interface.
  • the method further includes:
  • the electronic device acquires a second operation input by the user, and restores the first interface
  • the electronic device acquires a second operation input by the user, such as a sliding operation or a click operation of the user on the touch screen, and the second operation is used to instruct the electronic device to restore the second interface presented by the output device to the first An interface.
  • the electronic device restores the first interface after acquiring a second operation input by the user.
  • the method further includes:
  • the electronic device restores the first interface after a preset time of presenting the second interface.
  • the electronic device may provide a setting option for the user to set a preset dwell time of the second interface, or the system may default to a preset dwell time of the second interface, for example, 5 seconds.
  • a preset dwell time of the second interface for example, 5 seconds.
  • the electronic device may be a handheld computer system, such as a smart phone, a tablet personal computer, or a personal digital assistant.
  • PDA mobile Internet Device
  • MID Mobile Internet Device
  • FIG. 9 it generally includes at least one processor (e.g., a CPU), an input device, an output device, and at least one communication bus.
  • processor e.g., a CPU
  • the structure of the electronic device shown in FIG. 9 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those illustrated, or combine some components, or Different parts are arranged.
  • the communication bus 910 is used to implement connection communication between the processor, the input device, and the output device.
  • the input device is used to implement user interaction with the electronic device and/or information input into the electronic device.
  • the input unit can receive numeric or character information input by the user to generate a signal input related to user settings or function control.
  • the input device may be a touch panel or other human-computer interaction interface, such as a physical input key, a microphone, etc., and may be other external information capturing devices, such as a camera.
  • a touch panel also known as a touch screen or touch screen, collects operational actions that the user touches or approaches on.
  • the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program.
  • the touch panel may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller;
  • the touch controller receives the electrical signal from the touch detection device, and Convert it to the contact coordinates and send it to the processor.
  • the touch controller can also receive commands from the processor and execute.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the physical input keys used by the input device may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. Or a variety.
  • An input device in the form of a microphone can collect the voice input by the user or the environment and convert it into a processor-executable command in the form of an electrical signal.
  • the input device may also be various types of sensor devices, such as Hall devices, for detecting physical quantities of the electronic device, such as force, moment, pressure, stress, position, displacement, speed. , acceleration, angle, angular velocity, number of revolutions, speed, and time when the working state changes, etc., are converted into electricity for detection and control.
  • sensor components may also include gravity sensors, three-axis accelerometers, gyroscopes, and the like.
  • Output devices include, but are not limited to, image output devices and sound output devices.
  • the image output device is used to output text, pictures, and/or video.
  • the image output device may include a display panel, such as an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitt ing Diode), or a field emissive display (FED). To configure the display panel.
  • the image output device may comprise a reflective display, such as an electrophoretic display, or utilized Display of Interferometric Modulation of Light.
  • the image output device can include a single display or multiple displays of different sizes.
  • the touch panel used by the input device can also serve as a display panel of the output device.
  • the touch panel detects a touch or proximity gesture operation thereon, it is transmitted to the processor to determine the type of touch event, and then the processor provides a corresponding visual output on the display panel according to the type of touch event.
  • the input device and the output device function as two independent components to realize the input and output functions of the electronic device, but the touch panel and the display panel can also be integrated to realize the input and output functions of the electronic device.
  • the image output device may display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch. The way to operate.
  • GUIs graphical user interfaces
  • the processor is the control center of the electronic device, and connects various parts of the entire computer by using various interfaces and lines, and executes the site by running or executing software programs and/or application units stored in the memory, and calling data stored in the memory.
  • the electronic device includes:
  • An input device 930 configured to acquire an operation input by a user
  • the input device 930 acquires an operation of the user's input on the touch screen of the electronic device, and receives an operation signal of the user.
  • the operation of the user input acquired by the input device 930 may be a touch operation of the user on the touch screen; or may be a floating operation of the user on the touch screen.
  • the input device 930 acquires an operation input by the user, and may be a sliding operation of the user on the input device 930; or
  • the input device 930 acquires an operation input by the user, which may be a click operation of the user on the input device 930.
  • the processor 920 is configured to determine an operation trajectory corresponding to the operation according to an operation of the user input acquired by the input device 930, and determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; And obtaining a first sub-interface of the at least two sub-interfaces; adjusting a presentation area of the first sub-interface on the output device 940 to generate a second interface; the operation trajectory is the operation a trajectory formed by the action point of the operation on the output device 940; the first interface is an interface presented by the output device 940 of the electronic device when the electronic device acquires the operation information; The content displayed by the first sub-interface is a part of the content displayed by the first interface.
  • the processor 920 determines that the operation trajectory corresponding to the operation is a touch trajectory corresponding to the sliding operation of the user on the input device 930;
  • the touch track is a trajectory formed by the action point of the sliding operation on the output device 940; or
  • the processor 920 determines that the operation trajectory corresponding to the operation is the electronic device preset corresponding to the click operation of the user on the input device 930, when the input device 930 obtains the user input operation as the user's click operation. traces of.
  • the processor 920 determines an operation trajectory corresponding to the operation input by the user, determining a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory.
  • the common boundary line of the at least two sub-interfaces of the first interface has at least one intersection with the operation trajectory; or the common boundary line of at least two sub-interfaces of the first interface is parallel to the operation trajectory and the distance is less than one a preset threshold; or, a distance between a common boundary line of the at least two sub-interfaces of the first interface and a first point on the operation track is less than a preset threshold; wherein the first point is on the operation track The closest distance to the common boundary.
  • the first interface is an interface presented by the output device 940 of the electronic device when the processor 920 obtains the operation information.
  • the first interface may be an application interface of a specific application presented by the output device 940, or may be an application interface of the output device 940 displaying multiple application icons.
  • the processor 920 After the processor 920 determines a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, the processor 920 acquires at least two sub-interfaces that are bounded by the common boundary line, and determines which of the sub-interfaces A sub-interface is the first sub-interface.
  • the processor 920 determines a common boundary line of the two sub-interfaces of the first interface according to the operation trajectory, acquiring two sub-interfaces that are bounded by the common boundary line, and determining any one of the sub-interfaces
  • the first sub-interface is described, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the content displayed by the first sub-interface is a part of the content displayed by the first interface.
  • the processor 920 adjusts the presentation area of the first sub-interface in the output device 940 to generate a second interface.
  • the processor 920 adjusts the presentation area of the first sub-interface in the output device 940 to specifically exchange the presentation area of the first sub-interface with the presentation area of the second sub-interface; the at least two The initial sub-interface includes only the first sub-interface and the second sub-interface; or the processor 920 adjusts the presentation area of the first sub-interface in the output device 940, specifically, adjusting the first
  • the presentation area of the sub-interface is an unreserved presentation area of the initial sub-interface in the first interface; the unreserved initial sub-interface is the one of the at least two sub-interfaces except the first sub-interface At least one initial sub-interface outside.
  • the output device 940 is configured to present the second interface.
  • the output device 940 presents a second interface.
  • the second interface has at least the same display content as the first interface.
  • the processor 920 determines at least two of the first interfaces according to the operation trajectory. A common boundary line of the sub-interfaces is obtained, and a first sub-interface of the at least two sub-interfaces is obtained, and a presentation area of the first sub-interface on the output device is adjusted to generate a second interface. Output device 940 presents the second interface. In this way, the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device is solved, and the interaction capability between the electronic device and the user is improved.
  • the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is: determining, by the processor, a starting point and a location of the operation trajectory The processor determines a common boundary line parallel to the lateral direction of the output device when the angle formed by the end point of the operation track and the lateral direction of the output device is less than or equal to the first threshold; the common The boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold; The first point is a point on the operation track that is closest to the common boundary.
  • the input device recognizes an operation input by a user, and the processor determines an operation trajectory corresponding to the operation.
  • the electronic device acquires an operation input by a user through a touch screen.
  • the processor may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle formed by a line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a lateral direction of the touch screen.
  • the processor may determine a direction parallel to the lateral direction of the output device when an angle formed by a line formed by the start point of the touch screen sliding track and the end point of the sliding track and the lateral direction of the touch screen is less than or equal to a first threshold Common boundary line.
  • the first threshold may be a specific angular value (eg, 5°) or a specific angular range (eg, [-5° 5°]).
  • the common boundary line determined by the processor intersects the touch screen sliding track.
  • the common boundary line has at least one intersection with the touch screen sliding track.
  • the common boundary line may coincide with the touch screen sliding track.
  • the common boundary line determined by the processor is parallel to the touch screen sliding track and the distance is less than a preset threshold.
  • the common boundary line and the relative position of the touch screen sliding track on the output device are not limited, and the common boundary line may be above the touch screen sliding track or below the touch screen sliding track.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the distance between the first point on the sliding track of the touch screen and the common boundary line determined by the processor is less than a preset threshold; wherein the first point is on the operation track and the public The closest point to the boundary.
  • the common boundary line and the touch screen sliding track are neither parallel nor intersect.
  • the common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold.
  • the preset threshold It may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, one tenth of the longitudinal distance of the touch screen).
  • the electronic device may define a sliding distance when the user slides from the left edge to the right edge of the touch screen or the user on the touch screen.
  • the preset distance threshold is greater than or equal to the touch screen sliding operation
  • the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
  • the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is: the processor acquiring two sub-sub-items that are bounded by the common boundary line
  • the interface determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor acquires two sub-interfaces arranged up and down with the common boundary line as a boundary.
  • the processor may acquire, by using the sliding touch track as a boundary Two sub-interfaces arranged up and down. The processor determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor acquires two upper and lower rows that are bounded by the common boundary line. a sub-interface, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor acquires the upper and lower boundaries bounded by the common boundary line. Arranging the two sub-interfaces, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor adjusts a presentation area of the first sub-interface on the output device as follows:
  • the processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device.
  • the first interface includes two sub-interfaces of the first sub-interface and the second sub-interface, and the first sub-interface and the second initial-word interface are interchanged with a presentation area on the output device to generate a second interface.
  • the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is: determining, by the processor, a starting point and a location of the operation trajectory Operating track The processor determines a common boundary line parallel to the longitudinal direction of the output device when the angle formed by the end point of the trace and the longitudinal direction of the output device is less than or equal to the first threshold; the common boundary line Intersecting with the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold; wherein The first point is the point on the operational trajectory that is closest to the common boundary.
  • the input device recognizes an operation input by a user, and the processor determines an operation trajectory corresponding to the operation.
  • the electronic device acquires an operation input by a user through a touch screen.
  • the processor may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle formed by a line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a longitudinal direction of the touch screen.
  • the processor may determine a parallel to the longitudinal direction of the output device when an angle formed by a line formed by the start point of the touch screen sliding track and the end point of the sliding track and the longitudinal direction of the touch screen is less than or equal to a first threshold Common boundary line.
  • the first threshold may be a specific angular value (eg, 5°) or a specific angular range (eg, [-5° 5°]).
  • the common boundary line determined by the processor intersects the touch screen sliding track.
  • the common boundary line has at least one intersection with the touch screen sliding track.
  • the common boundary line may coincide with the touch screen sliding track.
  • the common boundary line determined by the processor is parallel to the touch screen sliding track and the distance is less than a preset threshold.
  • the common boundary line and the relative position of the touch screen sliding track on the output device are not limited, and the common boundary line may be on the left side of the touch screen sliding track or on the right side of the touch screen sliding track.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the distance between the first point on the sliding track of the touch screen and the common boundary line determined by the processor is less than a preset threshold; wherein the first point is on the operation track and the public The closest point to the boundary.
  • the common boundary line and the touch screen sliding track are neither parallel nor intersect.
  • the common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold.
  • the preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
  • the electronic device may define a sliding distance when the user slides from the upper edge of the touch screen to the lower edge or the touch screen of the user.
  • the preset distance threshold is greater than or equal to the touch screen sliding operation
  • the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
  • the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is: the processor acquiring an arrangement that is bounded by the common boundary line The two sub-interfaces determine that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor acquires two sub-interfaces arranged side by side with the common boundary line as a boundary.
  • the processor may acquire, by using the sliding touch track as a boundary Two sub-interfaces arranged side by side. The processor determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor acquires two left and right arranged by the common boundary line a sub-interface, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor acquires a left and right boundary with the common boundary line as a boundary Arranging the two sub-interfaces, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  • the processor adjusts a presentation area of the first sub-interface on the output device as follows:
  • the processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device.
  • the first interface includes two sub-interfaces of the first sub-interface and the second sub-interface, and the first sub-interface and the second initial-word interface are interchanged with a presentation area on the output device to generate a second interface.
  • the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is: determining, by the processor, a starting point and a location of the operation trajectory The processor determines that the angle formed by the end point of the operation trajectory is greater than a first threshold value and the angle between the longitudinal direction of the output device is greater than a first threshold a second point on a boundary between the first point on the operation track and the presentation area of the output device, the first line segment and the second line segment respectively formed by the third point being the common boundary line; the first line segment And the second line segment is perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is a presentation area of the output device Inside, the point farthest from the first point;
  • the input device recognizes an operation input by a user, and the processor determines an operation trajectory corresponding to the operation.
  • the electronic device acquires an operation input by a user through a touch screen.
  • the processor determines that an angle formed by the operation track at a starting point of the operation track and an end point of the operation track and a lateral direction of the output device is greater than a first threshold, and is related to the output device.
  • the processor determines a coordinate position of the first point on the operation trajectory when the angle of the longitudinal direction is greater than the first threshold, and determines a boundary of the presentation area of the output device according to the coordinate position of the first point The coordinate position of the second and third points.
  • the electronic device may define a sliding distance when the user slides from the upper edge of the touch screen to the lower edge or the touch screen of the user.
  • the preset distance threshold is greater than or equal to the touch screen sliding operation
  • the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
  • the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is: acquiring the rectangular coverage area in the first interface as the The first sub-interface.
  • the processor acquires coordinate positions of the second point, the third point, and the fourth point according to the first point on the operation trajectory. Taking the first point and the fourth point as diagonal end points, the first line segment and the second line segment respectively formed by the first point, the second point, and the third point are adjacent sides to form a rectangular shape. An interface, the first line segment being perpendicular to the second line segment. The processor acquires the rectangular sub-interface coverage area in the first interface as the first sub-interface.
  • the processor adjusts a presentation area of the first sub-interface on the output device as follows:
  • the processor adjusts a presentation area of the first sub-interface as a presentation area of an unreserved sub-interface in the first interface; the un-reserved sub-interface is at least two sub-interfaces of the first interface At least one sub-interface in addition to the first sub-interface.
  • the processor determines the rectangular sub-interface coverage area in the first interface as the first sub-interface, the display content of the first sub-interface is retained, and the first interface is not retained. Display content of at least one sub-interface other than the first sub-interface among the two sub-interfaces.
  • the processor adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface.
  • the processor determines, according to the operation trajectory, a boundary line of at least two sub-interfaces of the first interface preset by the system; the processor is configured according to the system preset A boundary line of the two initial sub-interfaces acquires any one of the at least two initial sub-interfaces.
  • the processor adjusts a presentation area of the first sub-interface on the output device, where the processor adjusts a presentation area of the first sub-interface to an unreserved
  • the initial sub-interface is a presentation area in the initial interface; the unreserved initial sub-interface is at least one initial sub-interface of the at least two initial sub-interfaces except the first sub-interface.
  • the processor determines that the first interface includes only a first sub-interface and a second sub-interface; and the processor adjusts the presentation of the first sub-interface on the output device
  • the area is specifically: the processor exchanges the presentation areas of the first sub-interface and the second initial word interface on the output device.
  • the processor is further configured to use a predefined color. Or a picture fills a portion of the output device other than the first sub-interface; or, the portion of the output device other than the first sub-interface is filled with display content of an unreserved sub-interface.
  • the input device is further configured to: after the output device presents the second interface, acquire a second operation input by the user; the output device is further configured to: according to the user The second operation of input restores the first interface.
  • the input device acquires a second operation input by the user, such as a sliding operation or a click operation of the user on the touch screen, and the second operation is used to instruct the electronic device to restore the second interface presented by the output device to the first An interface.
  • the output device restores the first interface.
  • the output device is further configured to restore the first interface after the preset time of the second interface is presented after the output device presents the second interface.
  • the output device may provide a setting option for the user to set a preset dwell time of the second interface, and the processor may also default to a preset dwell time of the second interface, for example, 5 seconds.
  • the output device restores the second interface to the first interface when the input device does not acquire the second operation input by the user during the preset stay time.

Landscapes

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

Abstract

Disclosed in embodiments of the present invention are a method for processing a user interface of an electronic device and the electronic device, relating to the technical field of information. The method includes that the electronic device obtains an operation input by a user and an operation track corresponding to the operation is determined; according to the operation track, public boundaries of at least two sub-interfaces of a first interface are determined; according to the public boundaries, the first sub-interface of the two sub-interfaces is obtained; the content displayed by the first sub-interface is a part of the content displayed by the first interface; the displaying zone of the first sub-interface on the output device is adjusted to generate a second interface; the second interface is displayed. According to the present invention, the problem that a user can not conveniently operate a large-screen electronic device with a single hand is solved and the interaction capacity between the electronic device and the user is improved.

Description

一种电子设备的用户界面的处理方法及电子设备User interface processing method and electronic device of electronic device 技术领域Technical field
本发明涉及信息技术领域,尤其涉及一种电子设备的用户界面的处理方法及电子设备。The present invention relates to the field of information technology, and in particular, to a method for processing a user interface of an electronic device and an electronic device.
背景技术Background technique
智能化时代引领的大屏化趋势越来越明显,市面上的大屏电子设备越来越多,用户使用大屏电子设备已然成为一种潮流。与此同时,大屏设计却给用户操作带来了难题。例如对于屏幕在3.5寸以上的触摸屏电子设备,用户往往需要用一只手托住设备,用另外一只手点击完成对触摸屏的触控操作。The trend of large screens led by the intelligent era is becoming more and more obvious. There are more and more large-screen electronic devices on the market, and users have become a trend by using large-screen electronic devices. At the same time, the large screen design has brought problems to the user operation. For example, for a touch screen electronic device with a screen of more than 3.5 inches, the user often needs to hold the device with one hand and click to complete the touch operation on the touch screen with another hand.
针对此单手操作不便的问题,现有技术提供了如下解决方案:通过触摸屏的特定按钮实现某些界面的左右切换,以方便单手操作。例如在手机设置选项中设有单手操作开关选项,用户打开单手操作选项,某些界面(如短信输入界面,界面上半部为短信内容输入框,界面下半部为键盘区)的布局发生了变化。用户在这些界面(如键盘区)可通过点击特定的按钮实现操作界面(例如整个键盘区)靠左或靠右缩小显示,方便用户左右手操作。In view of the problem of inconvenient one-hand operation, the prior art provides a solution for realizing left-right switching of certain interfaces through specific buttons of the touch screen to facilitate one-handed operation. For example, in the mobile phone setting option, there is a one-hand operation switch option, the user opens the one-hand operation option, and some interfaces (such as a short message input interface, the upper half of the interface is a short message content input box, and the lower half of the interface is a keyboard area) A change has taken place. In these interfaces (such as the keyboard area), the user can click the specific button to realize the operation interface (such as the entire keyboard area) to reduce the display to the left or right, which is convenient for the user to operate.
本发明人在实现本发明的过程中发现,用户在靠边缩小的键盘区操作,点击难度更大,现有技术并没有根本解决大屏电子单手操作不便的问题。In the process of implementing the present invention, the inventors have found that the user operates in the keyboard area which is reduced by the side, and the click is more difficult. The prior art does not fundamentally solve the problem of inconvenient operation of the large-screen electronic one-handed operation.
发明内容Summary of the invention
本发明提供了一种电子设备的用户界面的处理方法及电子设备,用以解决用户使用大屏电子设备时单手操作不方便的问题。The invention provides a method for processing a user interface of an electronic device and an electronic device, which are used to solve the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device.
第一方面,本发明提供了一种电子设备的用户界面的处理方法的一个实施例。In a first aspect, the present invention provides an embodiment of a method of processing a user interface of an electronic device.
在第一种可能的实现方式中,所述方法包括:In a first possible implementation manner, the method includes:
所述电子设备获取用户输入的操作,确定所述操作对应的操作轨迹;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;The electronic device acquires an operation input by the user, and determines an operation trajectory corresponding to the operation; the operation trajectory is a trajectory formed by an action point of the operation corresponding to the operation information on the output device;
根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;Determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface; the first interface is an interface presented by the output device of the electronic device when the electronic device acquires the operation information;
根据所述公共边界线,获取所述至少两个子界面中的第一子界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分; Obtaining, according to the common boundary line, a first sub-interface of the at least two sub-interfaces; the content displayed by the first sub-interface is a part of content displayed by the first interface;
调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;Adjusting a presentation area of the first sub-interface on the output device to generate a second interface;
呈现所述第二界面。Presenting the second interface.
结合第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述公共边界线与操作轨迹至少具有一个交点;其中,所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;或者,With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the common boundary line and the operation track have at least one intersection point; wherein the operation track is an operation corresponding to the operation information a track formed by a point of action on the output device; or
所述公共边界线,与所述操作轨迹平行且距离小于一预设阈值;或者,The common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or
第一点与所述公共边界线的距离小于一预设阈值操作轨迹;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The distance from the first point to the common boundary line is less than a predetermined threshold operation trajectory; wherein the first point is a point on the operation trajectory that is closest to the common boundary.
结合第一方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the first aspect, in a third possible implementation, the determining, according to the operation trajectory, the common boundary line of the at least two sub-interfaces of the first interface is specifically:
在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;Determining a common parallel to the lateral direction of the output device when an angle formed by a line formed by the starting point of the operation track and the end point of the operation track and the lateral direction of the output device is less than or equal to a first threshold borderline;
所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;The common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold Wherein the first point is a point on the operation track that is closest to the common boundary;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Obtaining two sub-interfaces that are bounded by the common boundary line, determining that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
结合第一方面第一种或第二种可能的实现方式,在第四种可能的实现方式中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the first aspect, in a fourth possible implementation, the determining, according to the operation trajectory, the common boundary line of the at least two sub-interfaces of the first interface is specifically:
在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共边界线;Determining a common parallel to the longitudinal direction of the output device when an angle formed by a line formed by the starting point of the operation track and the end point of the operation track and the longitudinal direction of the output device is less than or equal to a first threshold borderline;
所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值操作轨迹;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;The common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold An operation track; wherein the first point is a point on the operation track that is closest to the common boundary;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Obtaining two sub-interfaces that are bounded by the common boundary line, determining that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
结合第一方面第一种或第二种可能的实现方式,在第五种可能的实现方式中,所述 根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:In conjunction with the first or second possible implementation of the first aspect, in a fifth possible implementation, Determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is:
在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;An angle formed by a straight line formed at a starting point of the operation track and an end point of the operation track and a lateral direction of the output device is greater than a first threshold, and an angle with a longitudinal direction of the output device is greater than the first a threshold value, a second point on a boundary between the first point on the operation track and a presentation area of the output device is determined, and the first line segment and the second line segment respectively formed by the third point are the common boundary line; The first line segment and the second line segment are perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is a point in the presentation area of the output device that is furthest from the first point;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。Obtaining the rectangular coverage area in the first interface as the first sub-interface.
结合第一方面第一种的实现方式,在第六种可能的实现方式中,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first implementation manner of the first aspect, in a sixth possible implementation manner, determining a common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically:
根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;Determining, according to the operation trajectory, a boundary line of at least two sub-interfaces of the first interface preset by the system;
根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces: acquiring the at least two initial sub-menets according to a boundary line of the at least two initial sub-interfaces preset by the system Any subinterface in the interface.
结合第一方面第一种至第六种任一可能的实现方式,在第七种可能的实现方式中,所述调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to any one of the first to sixth possible implementations of the first aspect, in a seventh possible implementation, the adjusting a presentation area of the first sub-interface on the output device is specifically:
调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。Adjusting a presentation area of the first sub-interface as a presentation area of an unreserved sub-interface in the first interface; the unreserved sub-interface is at least two sub-interfaces of the first interface except the At least one sub-interface outside of a sub-interface.
结合第一方面第一种至第六种任一可能的实现方式,在第八种可能的实现方式中,所述第一界面仅包括第一子界面和第二子界面;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to any one of the first to sixth possible implementations of the first aspect, in the eighth possible implementation, the first interface includes only the first sub-interface and the second sub-interface; The presentation area of the first sub-interface on the output device is specifically:
互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。Interchanging the presentation area of the first sub-interface and the second sub-interface on the output device.
结合第一方面第八种可能的实现方式,在第九种可能的实现方式中,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to the eighth possible implementation manner of the first aspect, in a ninth possible implementation, the area of the first sub-interface and the second sub-interface of the presentation area on the output device are different; The adjusting the presentation area of the first sub-interface on the output device is specifically:
缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,Reducing a presentation area of the first sub-interface, and adjusting the reduced first sub-interface to a presentation area of the second sub-interface; or
放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。 Enlarging the presentation area of the first sub-interface and adjusting the reduced first sub-interface to the presentation area of the second sub-interface.
结合第一方面第一种至第七种任一可能的实现方式,在第十种可能的实现方式中,在调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述方法还包括:With reference to any one of the first to seventh possible implementations of the first aspect, in a tenth possible implementation, after adjusting a presentation area of the first sub-interface on the output device, generating a second Before the interface, the method further includes:
以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者,Filling a portion of the output device other than the first sub-interface with a predefined color or picture; or
以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
结合第一方面第一种至第五种任一可能的实现方式,在第十一种可能的实现方式中,所述操作轨迹为所述操作起始点与操作终止点之间的直线。With reference to any one of the first to fifth possible implementations of the first aspect, in an eleventh possible implementation, the operation trajectory is a straight line between the operation start point and the operation termination point.
结合第一方面第一种至第十一种任一可能的实现方式,在第十二种可能的实现方式中,在呈现所述第二界面后,所述方法还包括:With reference to any one of the first to eleventh possible implementations of the first aspect, in a twelfth possible implementation, after the second interface is presented, the method further includes:
所述电子设备获取用户输入的第二操作,恢复所述第一界面;或者,The electronic device acquires a second operation input by the user, and restores the first interface; or
所述电子设备在呈现所述第二界面的预设时间后,恢复所述第一界面。The electronic device restores the first interface after a preset time of presenting the second interface.
第二方面,本发明提供了一种电子设备。In a second aspect, the invention provides an electronic device.
在第一种可能的实现方式中,所述电子设备包括:In a first possible implementation manner, the electronic device includes:
输入设备,用于获取用户输入的操作;An input device for obtaining an operation input by a user;
处理器,用于根据所述输入设备获取的用户输入的操作,确定所述操作对应的操作轨迹;根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面;调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;a processor, configured to determine an operation trajectory corresponding to the operation according to an operation of the user input acquired by the input device; and determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; a boundary line, the first sub-interface of the at least two sub-interfaces is obtained; a presentation area of the first sub-interface on the output device is adjusted, and a second interface is generated; the operation trajectory is corresponding to the operation information a trajectory formed by an action point on the output device; the first interface is an interface presented by an output device of the electronic device when the electronic device acquires the operation information; the first sub-interface The displayed content is a part of the content displayed by the first interface;
输出设备,用于呈现所述第二界面。And an output device, configured to present the second interface.
结合第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the processor determines, according to the operation trajectory, that a common boundary line of the at least two sub-interfaces of the first interface is:
所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与操作轨迹至少具有一个交点;或者,The processor determines a common boundary line of at least two sub-interfaces of the first interface, the common boundary line having at least one intersection with the operation track; or
所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,The processor determines a common boundary line of at least two sub-interfaces of the first interface, the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or
所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与第一点的距离小于一预设阈值操作轨迹;所述第一点为所述操作轨迹上与所述公共边界距离最近的点。 The processor determines a common boundary line of at least two sub-interfaces of the first interface, where the distance between the common boundary line and the first point is less than a preset threshold operation trajectory; the first point is the operation trajectory The point at which the public boundary is closest to the point.
结合第二方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the second aspect, in a third possible implementation, the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;Determining, when the processor determines that an angle formed by a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is less than or equal to a first threshold, determining a lateral direction with the output device a common boundary line parallel to the direction; the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the first point and the common boundary line The distance is less than a predetermined threshold; wherein the first point is a point on the operation track that is closest to the common boundary;
所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:The acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
所述处理器获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。The processor acquires two sub-interfaces that are bounded by the common boundary line, and determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute The first interface.
结合第二方面第一种或第二种可能的实现方式,在第四种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the second aspect, in a fourth possible implementation, the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;Determining a longitudinal direction of the output device when the processor determines that an angle formed by a starting point of the operation track and an ending point of the operation track and a longitudinal direction of the output device is less than or equal to a first threshold a common boundary line parallel to the direction; the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the first point and the common boundary line The distance is less than a predetermined threshold; wherein the first point is a point on the operation track that is closest to the common boundary;
所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:The acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
所述处理器获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。The processor acquires two sub-interfaces that are bounded by the common boundary line, and determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute The first interface.
结合第二方面第一种或第二种可能的实现方式,在第五种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the second aspect, in a fifth possible implementation, the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;The processor determines that an angle formed by a line formed by a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is greater than a first threshold, and is clipped with a longitudinal direction of the output device When the angle is greater than the first threshold, determining a second point on a boundary between the first point on the operation track and the presentation area of the output device, the first line segment and the second line segment respectively formed by the third point are a common boundary line; the first line segment and the second line segment are perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; Four points are points within the presentation area of the output device that are furthest from the first point;
所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:The acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
所述处理器获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。The processor acquires the rectangular coverage area in the first interface as the first sub-interface.
结合第二方面第一种可能的实现方式,在第六种可能的实现方式中,所述处理器根 据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:In conjunction with the first possible implementation of the second aspect, in a sixth possible implementation, the processor root According to the operation trajectory, determining a common boundary line of at least two sub-interfaces of the first interface is specifically:
所述处理器根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;Determining, by the processor, a boundary line of at least two sub-interfaces of the first interface preset by the system according to the operation trajectory;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
所述处理器根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。The processor acquires any one of the at least two initial sub-interfaces according to a boundary line of the at least two initial sub-interfaces preset by the system.
结合第二方面第一种至第六种任一可能的实现方式,在第七种可能的实现方式中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to any one of the first to sixth possible implementations of the second aspect, in a seventh possible implementation, the processor adjusts a presentation area of the first sub-interface on the output device to be specifically :
所述处理器调整所述第一子界面的呈现区域为一未保留的初始子界面在所述初始界面中的呈现区域;所述未保留的初始子界面为所述至少两个初始子界面中除所述第一子界面之外的至少一个初始子界面。The processor adjusts a presentation area of the first sub-interface as a presentation area of an unreserved initial sub-interface in the initial interface; the unreserved initial sub-interface is in the at least two initial sub-interfaces At least one initial sub-interface in addition to the first sub-interface.
结合第二方面第一种至第六种任一可能的实现方式,在第八种可能的实现方式中,所述处理器确定所述第一界面仅包括第一子界面和第二子界面;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to any one of the first to sixth possible implementations of the second aspect, in an eighth possible implementation, the processor determines that the first interface includes only the first sub-interface and the second sub-interface; The processor adjusts a presentation area of the first sub-interface on the output device to be specifically:
所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。The processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device.
结合第二方面第八种可能的实现方式,在第九种可能的实现方式中,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to the eighth possible implementation manner of the second aspect, in a ninth possible implementation manner, the area of the first sub-interface and the second sub-interface of the presentation area on the output device are different; The processor adjusts a presentation area of the first sub-interface on the output device to be specifically:
所述处理器缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,The processor reduces a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface; or
所述处理器放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。The processor enlarges a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface.
结合第二方面第一种至第七种任一可能的实现方式,在第十种可能的实现方式中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述处理器还用于,With reference to any one of the first to seventh possible implementations of the second aspect, in a tenth possible implementation, after the processor adjusts a presentation area of the first sub-interface on the output device, Before generating the second interface, the processor is further configured to
以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者,Filling a portion of the output device other than the first sub-interface with a predefined color or picture; or
以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
结合第二方面第一种至第五种任一可能的实现方式,在第十一种可能的实现方式中,所述处理器确定所述操作轨迹为所述操作起始点与操作终止点之间的直线。With reference to any one of the first to fifth possible implementations of the second aspect, in an eleventh possible implementation, the processor determines that the operation trajectory is between the operation start point and the operation termination point Straight line.
结合第二方面第一种至第十一种任一可能的实现方式,在第十二种可能的实现方式 中,所述输出设备呈现所述第二界面后,In conjunction with any of the possible implementations of the first to eleventh aspects of the second aspect, in a twelfth possible implementation After the output device presents the second interface,
所述输入设备还用于,获取用户输入的第二操作;The input device is further configured to acquire a second operation input by the user;
所述输出设备还用于,根据所述用户输入的第二操作,恢复所述第一界面。The output device is further configured to restore the first interface according to the second operation of the user input.
结合第二方面第一种至第十一种任一可能的实现方式,在第十三种可能的实现方式中,所述输出设备呈现所述第二界面后,With reference to any one of the first to eleventh possible implementation manners of the second aspect, in the thirteenth possible implementation manner, after the output device presents the second interface,
所述输出设备还用于,在呈现所述第二界面的预设时间后,恢复所述第一界面。The output device is further configured to restore the first interface after a preset time of the second interface is presented.
在本发明提供的实施例中,电子设备根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线,获取所述至少两个子界面中的第一子界面,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面,解决了用户使用大屏电子设备时单手操作不方便的问题,提高了电子设备与用户的交互能力。In an embodiment of the present invention, the electronic device determines a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, acquires a first sub-interface of the at least two sub-interfaces, and adjusts the first The sub-interface generates a second interface in the presentation area on the output device, which solves the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device, and improves the interaction capability between the electronic device and the user.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明提供的一种电子设备的用户界面的处理方法一个实施例的流程图;1 is a flowchart of an embodiment of a method for processing a user interface of an electronic device according to the present invention;
图2是本发明提供的一种用户界面处理的一个实施例的示意图;2 is a schematic diagram of an embodiment of a user interface process provided by the present invention;
图3是本发明提供的一种用户界面处理的一个实施例的示意图;3 is a schematic diagram of an embodiment of a user interface process provided by the present invention;
图4是本发明提供的一种用户界面处理的一个实施例的示意图;4 is a schematic diagram of an embodiment of a user interface process provided by the present invention;
图5是本发明提供的一种用户界面处理的一个实施例的示意图;FIG. 5 is a schematic diagram of an embodiment of a user interface process provided by the present invention; FIG.
图6是本发明提供的一种用户界面处理的一个实施例的示意图;6 is a schematic diagram of an embodiment of a user interface process provided by the present invention;
图7是本发明提供的一种用户界面处理的一个实施例的示意图;7 is a schematic diagram of an embodiment of a user interface process provided by the present invention;
图8是本发明提供的一种用户界面处理的一个实施例的示意图;FIG. 8 is a schematic diagram of an embodiment of a user interface process provided by the present invention; FIG.
图9是本发明实施例提供的一个电子设备的一个实施例的结构示意图。FIG. 9 is a schematic structural diagram of an embodiment of an electronic device 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 in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. Wai.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。进一步应当理解,本文中采用的术语“包括”规定了所述的特征、整体、步骤、操作、元件和/或部件的存在,而不排除一个或多个其他特征、整体、步骤、操作、元件、部件和/或它们的组的存在或附加。The terms used in the embodiments of the present invention are for the purpose of describing particular embodiments only and are not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It is further understood that the term "comprising", used herein, is intended to mean the presence of the features, the whole, the steps, the operation, the elements and / The presence or addition of components, and/or their groups.
在本发明实施例中,触屏装置包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、平板电脑、便携设备(例如,便携式计算机)等移动通讯设备,也包括自动柜员机(Automatic Teller Machine,ATM)等具有触摸屏的设备,本发明实施例并不限定。In the embodiment of the present invention, the touch screen device includes, but is not limited to, a mobile communication device such as a mobile phone, a personal digital assistant (PDA), a tablet computer, a portable device (for example, a portable computer), and an automatic teller machine (Automatic Teller). A device having a touch screen, such as a machine or an ATM, is not limited in the embodiment of the present invention.
图1为本发明实施例1提供的电子设备的用户界面的处理方法的流程图。如图1所示,所述电子设备的用户界面的处理方法可以包括:FIG. 1 is a flowchart of a method for processing a user interface of an electronic device according to Embodiment 1 of the present invention. As shown in FIG. 1, the processing method of the user interface of the electronic device may include:
S101,所述电子设备获取用户输入的操作,确定所述操作对应的操作轨迹;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;S101, the electronic device acquires an operation input by a user, and determines an operation trajectory corresponding to the operation; the operation trajectory is a trajectory formed by an action point of the operation corresponding to the operation information on the output device;
具体地,所述电子设备获取用户在该电子设备触摸屏的输入的操作,接收用户的操作信号,确定所述操作对应的操作轨迹。所述电子设备获取的用户输入的操作,可以是用户在该电子设备触摸屏的触摸操作;或者,也可以是用户在该电子设备触摸屏的悬浮操作。Specifically, the electronic device acquires an operation of the user's input on the touch screen of the electronic device, receives an operation signal of the user, and determines an operation trajectory corresponding to the operation. The operation of the user input obtained by the electronic device may be a touch operation of the user on the touch screen of the electronic device; or may be a floating operation of the user on the touch screen of the electronic device.
所述电子设备获取用户输入的操作,可以是用户该输入设备上的滑动操作;所述所述操作对应的操作轨迹为所述用户在所述输入设备上滑动操作对应的触摸轨迹;所述触摸轨迹为所述滑动操作在所述输出设备上的作用点形成的轨迹;或者The operation of the electronic device to obtain a user input may be a sliding operation on the input device of the user; the operation trajectory corresponding to the operation is a touch trajectory corresponding to the sliding operation of the user on the input device; a trajectory is a trajectory formed by a point of action of the sliding operation on the output device; or
所述电子设备获取用户输入的操作,可以是用户该输入设备上的点击操作;所述操作对应的操作轨迹为所述用户在所述输入设备上点击操作对应的所述电子设备预设的轨迹。The operation of the electronic device to obtain a user input may be a click operation on the input device of the user; the operation track corresponding to the operation is a preset track of the electronic device corresponding to the click operation of the user on the input device .
S102,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;S102. Determine, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. The first interface is displayed by the output device of the electronic device when the electronic device acquires the operation information. interface;
具体地,在所述电子设备确定所述用户输入的操作对应的操作轨迹后,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线。Specifically, after the electronic device determines an operation trajectory corresponding to the operation input by the user, determining a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory.
所述第一界面的至少两个子界面的公共边界线与所述操作轨迹至少具有一个交点; 或者,a common boundary line of at least two sub-interfaces of the first interface has at least one intersection with the operation track; or,
所述第一界面的至少两个子界面的公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,The common boundary line of the at least two sub-interfaces of the first interface is parallel to the operation trajectory and the distance is less than a predetermined threshold; or
所述第一界面的至少两个子界面的公共边界线与所述操作轨迹上第一点的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The distance between the common boundary line of the at least two sub-interfaces of the first interface and the first point on the operation track is less than a preset threshold; wherein the first point is the distance from the common boundary on the operation track The most recent point.
所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面。所述第一界面可以为所述电子设备的输出设备呈现的一特定应用程序的应用界面,也可以为所述电子设备的输出设备呈现的显示多个应用程序图标的应用界面。The first interface is an interface presented by an output device of the electronic device when the electronic device acquires the operation information. The first interface may be an application interface of a specific application presented by the output device of the electronic device, or an application interface displayed by the output device of the electronic device to display a plurality of application icons.
S103,根据所述公共边界线,获取所述至少两个子界面中的第一子界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;S103. Acquire, according to the common boundary line, a first sub-interface of the at least two sub-interfaces; the content displayed by the first sub-interface is a part of content displayed by the first interface;
在所述电子设备根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线后,获取以所述公共边界线为界线的至少两个子界面,确定其中任一子界面为所述第一子界面。After the electronic device determines a common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory, acquiring at least two sub-interfaces that are bounded by the common boundary line, and determining that any one of the sub-interfaces is the The first sub-interface.
可选地,在所述电子设备根据所述操作轨迹,确定第一界面的两个子界面的公共边界线后,获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, after the electronic device determines a common boundary line of the two sub-interfaces of the first interface according to the operation trajectory, acquiring two sub-interfaces that are bounded by the common boundary line, determining that any of the The first sub-interface and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
所述第一子界面显示的内容为所述第一界面显示的内容的一部分。The content displayed by the first sub-interface is a part of the content displayed by the first interface.
S104,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;S104. Adjust a presentation area of the first sub-interface on the output device to generate a second interface.
在所述电子设备获取所述第一子界面后,所述电子设备调整所述第一子界面在所述输出设备的呈现区域,生成第二界面。After the electronic device acquires the first sub-interface, the electronic device adjusts the first sub-interface in a presentation area of the output device to generate a second interface.
可选地,所述调整第一子界面在所述输出设备的呈现区域具体为,将所述第一子界面的呈现区域与第二子界面的呈现区域互换;所述至少两个初始子界面仅包括所述第一子界面和所述第二子界面。Optionally, the adjusting the first sub-interface in the presentation area of the output device is specifically: exchanging the presentation area of the first sub-interface with the presentation area of the second sub-interface; the at least two initial sub-portions The interface includes only the first sub-interface and the second sub-interface.
可选地,所述调整第一子界面在所述输出设备的呈现区域具体为,调整所述第一子界面的呈现区域为一未保留的所述初始子界面在所述第一界面中的呈现区域;所述未保留的初始子界面为所述至少两个子界面中除所述第一子界面之外的至少一个初始子界面。Optionally, the adjusting the first sub-interface in the presentation area of the output device is specifically: adjusting a presentation area of the first sub-interface as an unreserved initial sub-interface in the first interface a presentation area; the unreserved initial sub-interface is at least one initial sub-interface of the at least two sub-interfaces except the first sub-interface.
S105,呈现所述第二界面。S105. Present the second interface.
在所述电子设备调整所述第一子界面在所述输出设备的显示区域,生成第二界面后,所述电子设备呈现第二界面。所述第二界面与所述第一界面至少具有相同的显示内容。After the electronic device adjusts the first sub-interface to display area of the output device to generate a second interface, the electronic device presents a second interface. The second interface has at least the same display content as the first interface.
在本发明提供的实施例中,电子设备根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线,获取所述至少两个子界面中的第一子界面,调整所述第一子界面 在所述输出设备上的呈现区域,生成第二界面,解决了用户使用大屏电子设备时单手操作不方便的问题,提高了电子设备与用户的交互能力。In an embodiment of the present invention, the electronic device determines a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, acquires a first sub-interface of the at least two sub-interfaces, and adjusts the first Subinterface A second interface is generated in the presentation area on the output device, which solves the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device, and improves the interaction capability between the electronic device and the user.
在本发明的一个实施例中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is specifically: forming a starting point of the operation trajectory and a termination point of the operation trajectory Determining a common boundary line parallel to the lateral direction of the output device when the angle between the straight line and the lateral direction of the output device is less than or equal to the first threshold; the common boundary line intersects the operation track; The common boundary line is parallel to the operation track and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a preset threshold; wherein the first point is on the operation track The closest distance to the common boundary.
具体地,电子设备识别用户输入的操作,确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述电子设备可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角小于或等于第一阈值时,可确定一条与所述输出设备横向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5° 5°])。Specifically, the electronic device recognizes an operation input by the user, and determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. The electronic device may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle formed by a line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a lateral direction of the touch screen. A common boundary line parallel to the lateral direction of the output device may be determined when an angle formed by a straight line formed by the start point of the touch screen sliding track and the end point of the sliding track and the lateral direction of the touch screen is less than or equal to the first threshold. The first threshold may be a specific angular value (eg, 5°) or a specific angular range (eg, [-5° 5°]).
可选地,如图2(a)所示,所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, as shown in FIG. 2( a ), the common boundary line intersects the touch screen sliding track. The common boundary line has at least one intersection with the touch screen sliding track. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the touch screen sliding track.
可选地,如图3(a)所示,所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的上方,也可在所述触摸屏滑动轨迹的下方。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, as shown in FIG. 3( a ), the common boundary line is parallel to the touch screen sliding track and the distance is less than a predetermined threshold. The relative position of the common boundary line and the touch screen sliding track is not limited, and the common boundary line may be above the touch screen sliding track or below the touch screen sliding track. The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
可选地,如图4(a)所示,所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, as shown in FIG. 4( a ), the distance between the first point on the sliding track of the touch screen and the common boundary line is less than a preset threshold; wherein the first point is on the operation track The common boundary is the closest point. The common boundary line and the touch screen sliding track are neither parallel nor intersect. The common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold. The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
具体地,为避免所述电子设备将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的左边缘滑动到右边缘,或者用户在触摸 屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the electronic device from treating the sliding operation of the user as a touch screen sliding operation of adjusting the current interface, the electronic device may define that when the user slides from the left edge of the touch screen to the right edge, or the user is touching When the sliding distance of the screen is greater than or equal to the preset distance threshold, the touch screen sliding operation is regarded as a touch screen sliding operation for adjusting the first interface display area.
在本发明实施例中,所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In the embodiment of the present invention, the acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: acquiring two sub-interfaces that are bounded by the common boundary line, and determining any one of the sub-interfaces The first sub-interface is another second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,如图2(a)所示,当所述公共边界线与所述触摸屏滑动轨迹相交时,所述电子设备获取以所述公共边界线为界线的上下排列的两个子界面。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合时,所述电子设备可获取以所述滑动触摸轨迹为界线的上下排列的两个子界面。所述电子设备确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 2( a ), when the common boundary line intersects the touch screen sliding track, the electronic device acquires two sub-interfaces arranged up and down with the common boundary line as a boundary. In a possible implementation manner of the embodiment of the present invention, when the common boundary line is coincident with the touch screen sliding track, the electronic device may acquire two sub-interfaces arranged up and down with the sliding touch track as a boundary. . The electronic device determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,如图3(a)所示,当所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述电子设备获取以所述公共边界线为界线的上下排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 3( a ), when the common boundary line is parallel to the touch screen sliding track and the distance is less than a predetermined threshold, the electronic device acquires the upper and lower boundaries bounded by the common boundary line. Arranging the two sub-interfaces, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,如图4(a)所示,当所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值时,所述电子设备获取以所述公共边界线为界线的上下排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 4( a ), when the distance between the first point on the sliding track of the touch screen and the common boundary line is less than a predetermined threshold, the electronic device acquires the common boundary line as Two sub-interfaces of the upper and lower boundaries are defined, and any one of the first sub-interfaces is determined, and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
在本发明的一个实施例中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is specifically: forming a starting point of the operation trajectory and a termination point of the operation trajectory Determining a common boundary line parallel to the longitudinal direction of the output device when the angle between the straight line and the longitudinal direction of the output device is less than or equal to the first threshold; the common boundary line intersects the operation track; The common boundary line is parallel to the operation track and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a preset threshold; wherein the first point is on the operation track The closest distance to the common boundary.
具体地,电子设备识别用户输入的操作,确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述电子设备可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角小于或等于第一阈值时,可确定一条与所述输出设备纵向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°), 也可以是具体的角度范围(例如[-5° 5°])。Specifically, the electronic device recognizes an operation input by the user, and determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. The electronic device may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle between a straight line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a longitudinal direction of the touch screen. A common boundary line parallel to the longitudinal direction of the output device may be determined when an angle formed by a line formed by the start point of the touch screen sliding track and the end point of the sliding track and the longitudinal direction of the touch screen is less than or equal to the first threshold. The first threshold may be a specific angle value (eg, 5°), It can also be a specific range of angles (eg [-5° 5°]).
可选地,如5(a)所示,所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, as shown in FIG. 5(a), the common boundary line intersects the touch screen sliding track. The common boundary line has at least one intersection with the touch screen sliding track. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the touch screen sliding track.
可选地,如6(a)所示,所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的左边,也可在所述触摸屏滑动轨迹的右边。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, as shown in FIG. 6( a ), the common boundary line is parallel to the touch screen sliding track and the distance is less than a predetermined threshold. The relative position of the common boundary line and the touch screen sliding track is not limited, and the common boundary line may be on the left side of the touch screen sliding track or on the right side of the touch screen sliding track. The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
可选地,如图7(a)所示,所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, as shown in FIG. 7( a ), the distance between the first point on the sliding track of the touch screen and the common boundary line is less than a preset threshold; wherein the first point is on the operation track The common boundary is the closest point. The common boundary line and the touch screen sliding track are neither parallel nor intersect. The common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold. The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
具体地,为避免所述电子设备将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的上边缘滑动到下边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the electronic device from treating the sliding operation of the user as a touch screen sliding operation of adjusting the current interface, the electronic device may define a sliding distance when the user slides from the upper edge to the lower edge of the touch screen or the user on the touch screen. When the preset distance threshold is greater than or equal to the touch screen sliding operation, the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
在本发明实施例中,所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In the embodiment of the present invention, the acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: acquiring two sub-interfaces that are bounded by the common boundary line, and determining any one of the sub-interfaces The first sub-interface is another second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,如5(a)所示,当所述公共边界线与所述触摸屏滑动轨迹相交时,所述电子设备获取以所述公共边界线为界线的左右排列的两个子界面。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合时,所述电子设备可获取以所述滑动触摸轨迹为界线的左右排列的两个子界面。所述电子设备确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 5( a ), when the common boundary line intersects the touch screen sliding track, the electronic device acquires two sub-interfaces arranged side by side with the common boundary line as a boundary. In a possible implementation manner of the embodiment of the present invention, when the common boundary line is coincident with the touch screen sliding track, the electronic device may acquire two sub-interfaces arranged side by side with the sliding touch track as a boundary . The electronic device determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,如图6(a)所示,当所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述电子设备获取以所述公共边界线为界线的左右排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面 构成所述第一界面。Optionally, as shown in FIG. 6( a ), when the common boundary line is parallel to the touch screen sliding trajectory and the distance is less than a predetermined threshold, the electronic device acquires a left and right boundary with the common boundary line as a boundary Aligning the two sub-interfaces, and determining that any of the first sub-interfaces, and the second sub-interface; the first sub-interface and the second sub-interface Forming the first interface.
可选地,如图7(a)所示,当所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值时,所述电子设备获取以所述公共边界线为界线的左右排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 7( a ), when the distance between the first point on the sliding track of the touch screen and the common boundary line is less than a predetermined threshold, the electronic device acquires the common boundary line as Two sub-interfaces arranged on the left and right of the boundary line, and determining that any of the first sub-interfaces is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
在本发明的一个实施例中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;In an embodiment of the present invention, determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is specifically: forming a starting point of the operation trajectory and a termination point of the operation trajectory Determining a first point on the operational trajectory and the output when an angle between a straight line and a lateral direction of the output device is greater than a first threshold and an angle with a longitudinal direction of the output device is greater than a first threshold a second point on a boundary of the presentation area of the device, wherein the first line segment and the second line segment respectively formed by the third point are the common boundary line; the first line segment and the second line segment are perpendicular, and the first line is The end points of the diagonals of the rectangles in which the segments and the second line segments are borders are the first point and the fourth point; the fourth point is within the presentation area of the output device, the farthest from the first point point;
具体地,电子设备识别用户输入的操作,确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述电子设备在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,所述电子设备确定所述操作轨迹上的第一点的坐标位置,并根据所述第一点的坐标位置确定所述输出设备的呈现区域的边界上第二点和第三点的坐标位置。所述第一点与所述第二点、第三点分别形成的第一线段和第二线段,所述第一线段和第二线段为所述至少两个子界面的公共边界线。所述第一线段和第二线段垂直。所述电子设备根据所述第一点的坐标位置确定所述输出设备的呈现区域内的第四点,所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点。以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点。Specifically, the electronic device recognizes an operation input by the user, and determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. An angle formed by a line formed by the electronic device at a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is greater than a first threshold, and is clipped with a longitudinal direction of the output device When the angle is greater than the first threshold, the electronic device determines a coordinate position of the first point on the operation trajectory, and determines a second point on a boundary of the presentation area of the output device according to the coordinate position of the first point The coordinate position of the third point. a first line segment and a second line segment respectively formed by the first point and the second point and the third point, wherein the first line segment and the second line segment are common boundary lines of the at least two sub-interfaces. The first line segment and the second line segment are perpendicular. Determining, by the electronic device, a fourth point in a presentation area of the output device according to a coordinate position of the first point, where the fourth point is within a presentation area of the output device, farthest from the first point Point. The endpoints of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point.
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。The acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: acquiring the rectangular coverage area in the first interface as the first sub-interface.
具体地,所述电子设备根据所述操作轨迹上的第一点,获取所述第二点、第三点和第四点的坐标位置。以所述第一点和第四点为对角线的端点,以所述第一点与第二点、第三点分别形成的第一线段和第二线段为相邻两边,形成一个矩形子界面,所述第一线段与所述第二线段垂直。所述电子设备获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。Specifically, the electronic device acquires coordinate positions of the second point, the third point, and the fourth point according to the first point on the operation trajectory. Taking the first point and the fourth point as the end points of the diagonal line, the first line segment and the second line segment respectively formed by the first point and the second point and the third point are adjacent sides to form a rectangle a sub-interface, the first line segment being perpendicular to the second line segment. The electronic device acquires the rectangular coverage area in the first interface as the first sub-interface.
在本发明的一个实施例中,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的 边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。In an embodiment of the present invention, determining a common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically: determining, according to the operation trajectory, at least two sub-interfaces of the first interface preset by the system of Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces: acquiring the at least two according to a boundary line of the at least two initial sub-interfaces preset by the system Any of the sub-interfaces in the initial sub-interface.
具体地,所述电子设备也可以通过用户在所述输入设备的点击操作获取用户输入的操作信息。例如,用户可以通过操作“应用界面切换”按钮实现上述从获取第一子界面。所述“应用界面切换按钮”可以是电子设备在第一用户界面提供的点击图标,也可以是电子设备在设置选项中提供的应用界面切换选项。电子设备识别用户在触摸屏的点击操作获取用户输入的触摸信息后,确定系统预设的第一界面的至少两个子界面的边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。Specifically, the electronic device may also acquire operation information input by the user by a click operation of the input device by the user. For example, the user can implement the above-mentioned slave to obtain the first sub-interface by operating the “application interface switching” button. The “application interface switching button” may be a click icon provided by the electronic device in the first user interface, or may be an application interface switching option provided by the electronic device in the setting option. The electronic device identifies a boundary line of the at least two sub-interfaces of the first interface preset by the system after the user clicks the touch operation of the touch screen, and obtains the boundary line of the at least two sub-interfaces according to the common boundary line. The first sub-interface is specifically configured to: acquire any one of the at least two initial sub-interfaces according to a boundary line of the at least two initial sub-interfaces preset by the system.
在本发明的上述实施例中,所述调整所述第一子界面在所述输出设备上的呈现区域具体为:In the above embodiment of the present invention, the adjusting the presentation area of the first sub-interface on the output device is specifically:
调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。Adjusting a presentation area of the first sub-interface as a presentation area of an unreserved sub-interface in the first interface; the unreserved sub-interface is at least two sub-interfaces of the first interface except the At least one sub-interface outside of a sub-interface.
具体地,所述电子设备获取所述至少两个子界面中的第一子界面后,保留所述第一子界面的呈现区域的显示内容,不保留所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面的呈现区域的显示内容。所述电子设备将所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。Specifically, after the electronic device acquires the first sub-interface of the at least two sub-interfaces, the display content of the presentation area of the first sub-interface is retained, and the at least two sub-interfaces of the first interface are not retained. The display content of the presentation area of at least one sub-interface other than the first sub-interface. The electronic device adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface.
可选地,所述处理器获取以所述公共边界线为界线的上下排列的至少两个子界面,确定其中任一为所述第一子界面后,所述电子设备保留所述第一子界面的呈现区域的显示内容,不保留所述第一界面上下排列的至少两个子界面中除所述第一子界面之外的至少一个子界面的呈现区域的显示内容。所述电子设备将所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。如图2(c)或图3(c)或图4(c)所示,在本发明实施例的一种可能的实现方式中,所述第一界面仅包括上下排列的两个子界面,即第一子界面和第二子界面。所述电子设备确定其中任一为所述第一子界面,另一为第二子界面后,保留第一子界面的呈现区域的显示内容,不保留第二子界面的呈现区域的显示内容。所述电子设备将所述第一子界面的呈现区域调整至第二子界面在所述第一界面中的呈现区域,生成第二界面。Optionally, the processor acquires at least two sub-interfaces arranged up and down with the common boundary line as a boundary, and after determining that any one of the first sub-interfaces, the electronic device retains the first sub-interface The display content of the presentation area does not retain the display content of the presentation area of at least one of the at least two sub-interfaces of the at least two sub-interfaces arranged above and below the first interface. The electronic device adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface. As shown in FIG. 2(c) or FIG. 3(c) or FIG. 4(c), in a possible implementation manner of the embodiment of the present invention, the first interface includes only two sub-interfaces arranged in an upper and lower direction, that is, The first sub-interface and the second sub-interface. After the electronic device determines that any of the first sub-interfaces is the second sub-interface, the display content of the presentation area of the first sub-interface is retained, and the display content of the presentation area of the second sub-interface is not retained. The electronic device adjusts a presentation area of the first sub-interface to a presentation area of the second sub-interface in the first interface to generate a second interface.
可选地,所述处理器获取以所述公共边界线为界线的左右排列的至少两个子界面, 确定其中任一为所述第一子界面后,所述电子设备保留所述第一子界面的呈现区域的显示内容,不保留所述第一界面左右排列的至少两个子界面中除所述第一子界面之外的至少一个子界面的呈现区域的显示内容。所述电子设备将所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。如图5(c)或图6(c)或图7(c)所示,在本发明实施例的一种可能的实现方式中,所述第一界面仅包括左右排列的两个子界面,即第一子界面和第二子界面。所述电子设备确定其中任一为所述第一子界面,另一为第二子界面后,保留第一子界面的呈现区域的显示内容,不保留第二子界面的呈现区域的显示内容。所述电子设备将所述第一子界面的呈现区域调整至第二子界面在所述第一界面中的呈现区域,生成第二界面。Optionally, the processor acquires at least two sub-interfaces arranged side by side with the common boundary line as a boundary, After determining that any of the first sub-interfaces is used, the electronic device retains display content of the presentation area of the first sub-interface, and does not retain at least two sub-interfaces arranged to the left and right of the first interface. Display content of a presentation area of at least one sub-interface other than a sub-interface. The electronic device adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface. As shown in FIG. 5(c) or FIG. 6(c) or FIG. 7(c), in a possible implementation manner of the embodiment of the present invention, the first interface includes only two sub-interfaces arranged side by side, ie The first sub-interface and the second sub-interface. After the electronic device determines that any of the first sub-interfaces is the second sub-interface, the display content of the presentation area of the first sub-interface is retained, and the display content of the presentation area of the second sub-interface is not retained. The electronic device adjusts a presentation area of the first sub-interface to a presentation area of the second sub-interface in the first interface to generate a second interface.
可选地,如图8(c)所示,在所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值,确定所述第一界面中的所述矩形子界面覆盖区域作为所述第一子界面后,保留所述第一子界面的显示内容,不保留所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面的显示内容。所述电子设备所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。Optionally, as shown in FIG. 8(c), the processor determines that a line formed by a starting point of the operation track and an ending point of the operation track is larger than a horizontal direction of the output device. a threshold value, and an angle with the longitudinal direction of the output device is greater than a first threshold, and after determining the rectangular sub-interface coverage area in the first interface as the first sub-interface, retaining the first sub- The display content of the interface does not retain the display content of at least one of the at least two sub-interfaces of the first interface except the first sub-interface. The presentation area of the first sub-interface of the electronic device is adjusted to a presentation area of an unreserved sub-interface in the first interface, and a second interface is generated.
在本发明的上述实施例中,在所述电子设备调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述方法还包括:In the above embodiment of the present invention, after the electronic device adjusts the presentation area of the first sub-interface on the output device, before the second interface is generated, the method further includes:
以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分。Portions of the output device other than the first sub-interface are populated with a predefined color or picture.
具体地,在所述电子设备调整所述第一子界面在所述输出设备上的呈现区域后,所述输出设备除所述第一子界面之外的呈现区域,例如所述第一界面第一子界面位置调整前在所述输出设备所对应的部分,可以预定义的颜色或图片填充。Specifically, after the electronic device adjusts the presentation area of the first sub-interface on the output device, the output device has a presentation area other than the first sub-interface, for example, the first interface A portion of the output device corresponding to the position of the sub-interface can be filled with a predefined color or picture.
在本发明的上述实施例中,在所述电子设备调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述方法还包括:In the above embodiment of the present invention, after the electronic device adjusts the presentation area of the first sub-interface on the output device, before the second interface is generated, the method further includes:
以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
具体地,在所述电子设备保留所述第一子界面的呈现区域的显示内容,调整所述第一子界面在所述输出设备上的呈现区域后,所述输出设备除所述第一子界面之外的呈现区域,例如所述第一界面第一子界面位置调整前在所述输出设备所对应的部分,可以未保留的子界面呈现区域的显示内容填充,也可以以所述第一界面中没有的显示内容填充,例如天气插件、日历插件等。Specifically, after the electronic device retains the display content of the presentation area of the first sub-interface, and adjusts the presentation area of the first sub-interface on the output device, the output device is divided by the first sub- a presentation area outside the interface, for example, a portion corresponding to the output device before the first sub-interface position adjustment of the first interface may be filled with the display content of the un-reserved sub-interface presentation area, or may be the first Display content not included in the interface, such as weather plugins, calendar plugins, etc.
在本发明的上述实施例中,所述第一界面仅包括第一子界面和第二子界面;所述调 整所述第一子界面在所述输出设备上的呈现区域具体为:In the above embodiment of the present invention, the first interface includes only the first sub-interface and the second sub-interface; The presentation area of the first sub-interface on the output device is specifically:
互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。Interchanging the presentation area of the first sub-interface and the second sub-interface on the output device.
可选地,如图2(c)或图3(c)或图4(c)所示,所述处理器获取以所述公共边界线为界线的上下排列的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面后,所述电子设备互换所述上下排列的两个子界面在所述输出设备的呈现区域,生成第二界面。Optionally, as shown in FIG. 2(c) or FIG. 3(c) or FIG. 4(c), the processor acquires two sub-interfaces arranged up and down with the common boundary line as a boundary, and determines any one of them. After the second sub-interface is the first sub-interface, the electronic device exchanges the two sub-interfaces arranged up and down in the presentation area of the output device to generate a second interface.
可选地,如图5(c)或图6(c)或图7(c)所示,所述处理器获取以所述公共边界线为界线的左右排列的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面后,所述电子设备互换所述左右排列的两个子界面在所述输出设备的呈现区域,生成第二界面。Optionally, as shown in FIG. 5(c) or FIG. 6(c) or FIG. 7(c), the processor acquires two sub-interfaces arranged side by side with the common boundary line as a boundary, and determines any one of them. After the second sub-interface is the first sub-interface, the electronic device exchanges the two sub-interfaces arranged in the left and right at the presentation area of the output device to generate a second interface.
在本发明的上述实施例中,所述第一界面仅包括第一子界面和第二子界面;所述电子设备互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:In the above embodiment of the present invention, the first interface includes only the first sub-interface and the second sub-interface; the electronic device interchanges the first sub-interface and the second sub-interface in the output device The presentation area on the top. The area of the area of the first sub-interface and the second sub-interface on the output device is different; the display area of the first sub-interface on the output device is specifically:
缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,Reducing a presentation area of the first sub-interface, and adjusting the reduced first sub-interface to a presentation area of the second sub-interface; or
放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。Enlarging the presentation area of the first sub-interface and adjusting the reduced first sub-interface to the presentation area of the second sub-interface.
在本发明实施例中,所述电子设备还可以将部分显示第一子界面的呈现内容。In the embodiment of the present invention, the electronic device may further display the presented content of the first sub-interface.
在本发明的上述实施例中,在所述电子设备呈现所述第二界面后,所述方法还包括:In the above embodiment of the present invention, after the electronic device presents the second interface, the method further includes:
所述电子设备获取用户输入的第二操作,恢复所述第一界面;The electronic device acquires a second operation input by the user, and restores the first interface;
所述电子设备获取用户输入的第二操作,例如用户在所述触摸屏的滑动操作或点击操作,所述第二操作用于指示所述电子设备将所述输出设备呈现的第二界面恢复为第一界面。所述电子设备在获取用户输入的第二操作后,恢复所述第一界面。The electronic device acquires a second operation input by the user, such as a sliding operation or a click operation of the user on the touch screen, and the second operation is used to instruct the electronic device to restore the second interface presented by the output device to the first An interface. The electronic device restores the first interface after acquiring a second operation input by the user.
在本发明的上述实施例中,在所述电子设备呈现所述第二界面后,所述方法还包括:In the above embodiment of the present invention, after the electronic device presents the second interface, the method further includes:
所述电子设备在呈现所述第二界面的预设时间后,恢复所述第一界面。The electronic device restores the first interface after a preset time of presenting the second interface.
所述电子设备可通过提供设置选项以供用户设置所述第二界面的预设停留时间,也可系统默认所述第二界面的预设停留时间,例如5秒。在所述预设停留时间内,所述电子设备没有获取用户输入的第二操作时,将所述第二界面恢复为第一界面。The electronic device may provide a setting option for the user to set a preset dwell time of the second interface, or the system may default to a preset dwell time of the second interface, for example, 5 seconds. During the preset stay time, when the electronic device does not acquire the second operation input by the user, the second interface is restored to the first interface.
本发明实施例中,所述电子设备可以是一种手持形式的计算机系统,如智能手机、平板电脑(Tablet Personal Computer)、个人数字助理(personal digital assistant, 简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。如图9所示,其一般包括至少一个处理器(例如CPU)、输入设备、输出设备、和至少一个通信总线。本领域的技术人员可以理解,图9中示出的电子设备的结构不构成对电子设备的限定,所述电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。In the embodiment of the present invention, the electronic device may be a handheld computer system, such as a smart phone, a tablet personal computer, or a personal digital assistant. Referred to as PDA), Mobile Internet Device (MID) or Wearable Device. As shown in FIG. 9, it generally includes at least one processor (e.g., a CPU), an input device, an output device, and at least one communication bus. It will be understood by those skilled in the art that the structure of the electronic device shown in FIG. 9 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those illustrated, or combine some components, or Different parts are arranged.
下面结合图9对电子设备的各个构成部件进行具体的介绍:The specific components of the electronic device will be specifically described below with reference to FIG. 9:
通信总线910用于实现处理器、输入设备、输出设备之间的连接通信。The communication bus 910 is used to implement connection communication between the processor, the input device, and the output device.
输入设备用于实现用户与电子设备的交互和/或信息输入到电子设备中。例如,输入单元可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明具体实施方式中,输入设备可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。触控面板,也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将所述电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收所述电信号,并将它转换成触点坐标,再送给处理器。所述触摸控制器还可以接收处理器发来的命令并执行。此外,可以采用电阻式、电容式、红外线(Infrared)以及表面声波等多种类型实现触控面板。在本发明的其他实施方式中,输入设备所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。麦克风形式的输入设备可以收集用户或环境输入的语音并将其转换成电信号形式的、处理器可执行的命令。The input device is used to implement user interaction with the electronic device and/or information input into the electronic device. For example, the input unit can receive numeric or character information input by the user to generate a signal input related to user settings or function control. In an embodiment of the present invention, the input device may be a touch panel or other human-computer interaction interface, such as a physical input key, a microphone, etc., and may be other external information capturing devices, such as a camera. A touch panel, also known as a touch screen or touch screen, collects operational actions that the user touches or approaches on. For example, the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Wherein the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device, and Convert it to the contact coordinates and send it to the processor. The touch controller can also receive commands from the processor and execute. In addition, touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In other embodiments of the present invention, the physical input keys used by the input device may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. Or a variety. An input device in the form of a microphone can collect the voice input by the user or the environment and convert it into a processor-executable command in the form of an electrical signal.
在本发明的其他一些实施方式中,所述输入设备还可以是各类传感器件,例如霍尔器件,用于侦测电子设备的物理量,例如力、力矩、压力、应力、位置、位移、速度、加速度、角度、角速度、转数、转速以及工作状态发生变化的时间等,转变成电量来进行检测和控制。其他的一些传感器件还可以包括重力感应计、三轴加速计、陀螺仪等。In other embodiments of the present invention, the input device may also be various types of sensor devices, such as Hall devices, for detecting physical quantities of the electronic device, such as force, moment, pressure, stress, position, displacement, speed. , acceleration, angle, angular velocity, number of revolutions, speed, and time when the working state changes, etc., are converted into electricity for detection and control. Other sensor components may also include gravity sensors, three-axis accelerometers, gyroscopes, and the like.
输出设备包括但不限于影像输出设备和声音输出设备。影像输出设备用于输出文字、图片和/或视频。所述影像输出设备可包括显示面板,例如采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitt ing Diode,有机发光二极管)、场发射显示器(field emiss ion display,简称FED)等形式来配置的显示面板。或者所述影像输出设备可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用 光干涉调变技术(Interferometric Modulation of Light)的显示器。所述影像输出设备可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,输入设备所采用的触控面板亦可同时作为输出设备的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理器以确定触摸事件的类型,随后处理器根据触摸事件的类型在显示面板上提供相应的视觉输出。输入设备与输出设备是作为两个独立的部件来实现电子设备的输入和输出功能,但也可以将触控面板与显示面板集成一体而实现电子设备的输入和输出功能。例如,所述影像输出设备可以显示各种图形化用户接口(Graphical User Interface,简称GUI)以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。Output devices include, but are not limited to, image output devices and sound output devices. The image output device is used to output text, pictures, and/or video. The image output device may include a display panel, such as an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitt ing Diode), or a field emissive display (FED). To configure the display panel. Or the image output device may comprise a reflective display, such as an electrophoretic display, or utilized Display of Interferometric Modulation of Light. The image output device can include a single display or multiple displays of different sizes. In a specific embodiment of the present invention, the touch panel used by the input device can also serve as a display panel of the output device. For example, when the touch panel detects a touch or proximity gesture operation thereon, it is transmitted to the processor to determine the type of touch event, and then the processor provides a corresponding visual output on the display panel according to the type of touch event. The input device and the output device function as two independent components to realize the input and output functions of the electronic device, but the touch panel and the display panel can also be integrated to realize the input and output functions of the electronic device. For example, the image output device may display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch. The way to operate.
处理器是电子设备的控制中心,利用各种接口和线路连接整个计算机的各个部分,通过运行或执行存储在存储器内的软件程序和/或应用单元,以及调用存储在存储器内的数据,执行站点的各种功能和处理数据,从而对站点进行整体监控。The processor is the control center of the electronic device, and connects various parts of the entire computer by using various interfaces and lines, and executes the site by running or executing software programs and/or application units stored in the memory, and calling data stored in the memory. The various functions and processing data to monitor the site as a whole.
具体地,在本发明的一种实施例中,如图9所示,所述电子设备包括:Specifically, in an embodiment of the present invention, as shown in FIG. 9, the electronic device includes:
输入设备930,用于获取用户输入的操作;An input device 930, configured to acquire an operation input by a user;
具体地,所述输入设备930获取用户在该电子设备触摸屏的输入的操作,接收用户的操作信号。所述输入设备930获取的用户输入的操作,可以是用户在该触摸屏的触摸操作;或者,也可以是用户在触摸屏的悬浮操作。Specifically, the input device 930 acquires an operation of the user's input on the touch screen of the electronic device, and receives an operation signal of the user. The operation of the user input acquired by the input device 930 may be a touch operation of the user on the touch screen; or may be a floating operation of the user on the touch screen.
所述输入设备930获取用户输入的操作,可以是用户在该输入设备930上的滑动操作;或者,The input device 930 acquires an operation input by the user, and may be a sliding operation of the user on the input device 930; or
所述输入设备930获取用户输入的操作,可以是用户在该输入设备930上的点击操作。The input device 930 acquires an operation input by the user, which may be a click operation of the user on the input device 930.
处理器920,用于根据所述输入设备930获取的用户输入的操作,确定所述操作对应的操作轨迹;根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面;调整所述第一子界面在所述输出设备940上的呈现区域,生成第二界面;所述操作轨迹为所述操作信息对应的操作在所述输出设备940上的作用点形成的轨迹;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备940所呈现的界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分。The processor 920 is configured to determine an operation trajectory corresponding to the operation according to an operation of the user input acquired by the input device 930, and determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; And obtaining a first sub-interface of the at least two sub-interfaces; adjusting a presentation area of the first sub-interface on the output device 940 to generate a second interface; the operation trajectory is the operation a trajectory formed by the action point of the operation on the output device 940; the first interface is an interface presented by the output device 940 of the electronic device when the electronic device acquires the operation information; The content displayed by the first sub-interface is a part of the content displayed by the first interface.
在所述输入设备930获取用户输入的操作为用户的滑动操作时,所述处理器920确定所述操作对应的操作轨迹为所述用户在所述输入设备930上滑动操作对应的触摸轨迹;所述触摸轨迹为所述滑动操作在所述输出设备940上的作用点形成的轨迹;或者,在所 述输入设备930获取用户输入的操作为用户的点击操作时,所述处理器920确定所述操作对应的操作轨迹为所述用户在所述输入设备930上点击操作对应的所述电子设备预设的轨迹。When the input device 930 acquires the operation of the user input as the sliding operation of the user, the processor 920 determines that the operation trajectory corresponding to the operation is a touch trajectory corresponding to the sliding operation of the user on the input device 930; The touch track is a trajectory formed by the action point of the sliding operation on the output device 940; or The processor 920 determines that the operation trajectory corresponding to the operation is the electronic device preset corresponding to the click operation of the user on the input device 930, when the input device 930 obtains the user input operation as the user's click operation. traces of.
在所述处理器920确定所述用户输入的操作对应的操作轨迹后,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线。所述第一界面的至少两个子界面的公共边界线与所述操作轨迹至少具有一个交点;或者,所述第一界面的至少两个子界面的公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,所述第一界面的至少两个子界面的公共边界线与所述操作轨迹上第一点的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述第一界面为所述处理器920获取到所述操作信息时,所述电子设备的输出设备940所呈现的界面。所述第一界面可以为所述输出设备940呈现的一特定应用程序的应用界面,也可以为所述输出设备940呈现的显示多个应用程序图标的应用界面。After the processor 920 determines an operation trajectory corresponding to the operation input by the user, determining a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory. The common boundary line of the at least two sub-interfaces of the first interface has at least one intersection with the operation trajectory; or the common boundary line of at least two sub-interfaces of the first interface is parallel to the operation trajectory and the distance is less than one a preset threshold; or, a distance between a common boundary line of the at least two sub-interfaces of the first interface and a first point on the operation track is less than a preset threshold; wherein the first point is on the operation track The closest distance to the common boundary. The first interface is an interface presented by the output device 940 of the electronic device when the processor 920 obtains the operation information. The first interface may be an application interface of a specific application presented by the output device 940, or may be an application interface of the output device 940 displaying multiple application icons.
在所述处理器920根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线后,所述处理器920获取以所述公共边界线为界线的至少两个子界面,确定其中任一子界面为所述第一子界面。可选地,在所述处理器920根据所述操作轨迹,确定第一界面的两个子界面的公共边界线后,获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。所述第一子界面显示的内容为所述第一界面显示的内容的一部分。After the processor 920 determines a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, the processor 920 acquires at least two sub-interfaces that are bounded by the common boundary line, and determines which of the sub-interfaces A sub-interface is the first sub-interface. Optionally, after the processor 920 determines a common boundary line of the two sub-interfaces of the first interface according to the operation trajectory, acquiring two sub-interfaces that are bounded by the common boundary line, and determining any one of the sub-interfaces The first sub-interface is described, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface. The content displayed by the first sub-interface is a part of the content displayed by the first interface.
在所述处理器920获取所述第一子界面后,所述处理器920调整所述第一子界面在所述输出设备940的呈现区域,生成第二界面。所述处理器920调整所述第一子界面在所述输出设备940的呈现区域具体为,将所述第一子界面的呈现区域与第二子界面的呈现区域互换;所述至少两个初始子界面仅包括所述第一子界面和所述第二子界面;或者,所述处理器920调整所述第一子界面在所述输出设备940的呈现区域具体为,调整所述第一子界面的呈现区域为一未保留的所述初始子界面在所述第一界面中的呈现区域;所述未保留的初始子界面为所述至少两个子界面中除所述第一子界面之外的至少一个初始子界面。After the processor 920 acquires the first sub-interface, the processor 920 adjusts the presentation area of the first sub-interface in the output device 940 to generate a second interface. The processor 920 adjusts the presentation area of the first sub-interface in the output device 940 to specifically exchange the presentation area of the first sub-interface with the presentation area of the second sub-interface; the at least two The initial sub-interface includes only the first sub-interface and the second sub-interface; or the processor 920 adjusts the presentation area of the first sub-interface in the output device 940, specifically, adjusting the first The presentation area of the sub-interface is an unreserved presentation area of the initial sub-interface in the first interface; the unreserved initial sub-interface is the one of the at least two sub-interfaces except the first sub-interface At least one initial sub-interface outside.
输出设备940,用于呈现所述第二界面。The output device 940 is configured to present the second interface.
在所述处理器920调整所述第一子界面在所述输出设备940的显示区域,生成第二界面后,所述输出设备940呈现第二界面。所述第二界面与所述第一界面至少具有相同的显示内容。After the processor 920 adjusts the first sub-interface to the display area of the output device 940 to generate a second interface, the output device 940 presents a second interface. The second interface has at least the same display content as the first interface.
在本发明提供的实施例中,处理器920根据所述操作轨迹,确定第一界面的至少两 个子界面的公共边界线,获取所述至少两个子界面中的第一子界面,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面。输出设备940呈现所述第二界面。如此,解决了用户使用大屏电子设备时单手操作不方便的问题,提高了电子设备与用户的交互能力。In an embodiment provided by the present invention, the processor 920 determines at least two of the first interfaces according to the operation trajectory. A common boundary line of the sub-interfaces is obtained, and a first sub-interface of the at least two sub-interfaces is obtained, and a presentation area of the first sub-interface on the output device is adjusted to generate a second interface. Output device 940 presents the second interface. In this way, the problem that the one-hand operation is inconvenient when the user uses the large-screen electronic device is solved, and the interaction capability between the electronic device and the user is improved.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,所述处理器确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is: determining, by the processor, a starting point and a location of the operation trajectory The processor determines a common boundary line parallel to the lateral direction of the output device when the angle formed by the end point of the operation track and the lateral direction of the output device is less than or equal to the first threshold; the common The boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold; The first point is a point on the operation track that is closest to the common boundary.
具体地,所述输入设备识别用户输入的操作,所述处理器确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述处理器可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角小于或等于第一阈值时,所述处理器可确定一条与所述输出设备横向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5° 5°])。Specifically, the input device recognizes an operation input by a user, and the processor determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. The processor may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle formed by a line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a lateral direction of the touch screen. The processor may determine a direction parallel to the lateral direction of the output device when an angle formed by a line formed by the start point of the touch screen sliding track and the end point of the sliding track and the lateral direction of the touch screen is less than or equal to a first threshold Common boundary line. The first threshold may be a specific angular value (eg, 5°) or a specific angular range (eg, [-5° 5°]).
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, the common boundary line determined by the processor intersects the touch screen sliding track. The common boundary line has at least one intersection with the touch screen sliding track. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the touch screen sliding track.
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹在所述输出设备上呈现的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的上方,也可在所述触摸屏滑动轨迹的下方。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the common boundary line determined by the processor is parallel to the touch screen sliding track and the distance is less than a preset threshold. The common boundary line and the relative position of the touch screen sliding track on the output device are not limited, and the common boundary line may be above the touch screen sliding track or below the touch screen sliding track. . The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
可选地,所述处理器确定的所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值 可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the distance between the first point on the sliding track of the touch screen and the common boundary line determined by the processor is less than a preset threshold; wherein the first point is on the operation track and the public The closest point to the boundary. The common boundary line and the touch screen sliding track are neither parallel nor intersect. The common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold. The preset threshold It may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, one tenth of the longitudinal distance of the touch screen).
具体地,为避免所述处理器将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的左边缘滑动到右边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the processor from treating the sliding operation of the user as a touch screen sliding operation of adjusting the current interface, the electronic device may define a sliding distance when the user slides from the left edge to the right edge of the touch screen or the user on the touch screen. When the preset distance threshold is greater than or equal to the touch screen sliding operation, the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
在本发明实施例中,所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:所述处理器获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In the embodiment of the present invention, the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is: the processor acquiring two sub-sub-items that are bounded by the common boundary line The interface determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交时,所述处理器获取以所述公共边界线为界线的上下排列的两个子界面。在本发明实施例的一种可能的实现方式中,所述处理器确定的所述公共边界线可与所述触摸屏滑动轨迹重合时,所述处理器可获取以所述滑动触摸轨迹为界线的上下排列的两个子界面。所述处理器确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor intersects the touch screen sliding track, the processor acquires two sub-interfaces arranged up and down with the common boundary line as a boundary. In a possible implementation manner of the embodiment of the present invention, when the common boundary line determined by the processor is coincident with the touch screen sliding track, the processor may acquire, by using the sliding touch track as a boundary Two sub-interfaces arranged up and down. The processor determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述处理器获取以所述公共边界线为界线的上下排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor is parallel to the touch screen sliding trajectory and the distance is less than a predetermined threshold, the processor acquires two upper and lower rows that are bounded by the common boundary line. a sub-interface, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,当所述触摸屏滑动轨迹上第一点与所述处理器确定的所述公共边界线的距离小于一预设阈值时,所述处理器获取以所述公共边界线为界线的上下排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the distance between the first point on the sliding track of the touch screen and the common boundary line determined by the processor is less than a predetermined threshold, the processor acquires the upper and lower boundaries bounded by the common boundary line. Arranging the two sub-interfaces, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
在本发明实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:In the embodiment of the present invention, the processor adjusts a presentation area of the first sub-interface on the output device as follows:
所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。所述第一界面包含所述第一子界面和第二子界面两个子界面,所述第一子界面和所述第二初始字界面互换在所述输出设备上的呈现区域,生成第二界面。The processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device. The first interface includes two sub-interfaces of the first sub-interface and the second sub-interface, and the first sub-interface and the second initial-word interface are interchanged with a presentation area on the output device to generate a second interface.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述处理器确定所述操作轨迹的起始点和所述操作轨 迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,所述处理器确定一条与所述输出设备纵向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is: determining, by the processor, a starting point and a location of the operation trajectory Operating track The processor determines a common boundary line parallel to the longitudinal direction of the output device when the angle formed by the end point of the trace and the longitudinal direction of the output device is less than or equal to the first threshold; the common boundary line Intersecting with the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold; wherein The first point is the point on the operational trajectory that is closest to the common boundary.
具体地,所述输入设备识别用户输入的操作,所述处理器确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述处理器可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角小于或等于第一阈值时,所述处理器可确定一条与所述输出设备纵向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5° 5°])。Specifically, the input device recognizes an operation input by a user, and the processor determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. The processor may determine a common boundary line of at least two sub-interfaces of the first interface according to an angle formed by a line formed by a user at a starting point of the touch screen sliding track and an ending point of the sliding track and a longitudinal direction of the touch screen. The processor may determine a parallel to the longitudinal direction of the output device when an angle formed by a line formed by the start point of the touch screen sliding track and the end point of the sliding track and the longitudinal direction of the touch screen is less than or equal to a first threshold Common boundary line. The first threshold may be a specific angular value (eg, 5°) or a specific angular range (eg, [-5° 5°]).
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, the common boundary line determined by the processor intersects the touch screen sliding track. The common boundary line has at least one intersection with the touch screen sliding track. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the touch screen sliding track.
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹在所述输出设备上呈现的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的左边,也可在所述触摸屏滑动轨迹的右边。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the common boundary line determined by the processor is parallel to the touch screen sliding track and the distance is less than a preset threshold. The common boundary line and the relative position of the touch screen sliding track on the output device are not limited, and the common boundary line may be on the left side of the touch screen sliding track or on the right side of the touch screen sliding track. . The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
可选地,所述处理器确定的所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm 5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the distance between the first point on the sliding track of the touch screen and the common boundary line determined by the processor is less than a preset threshold; wherein the first point is on the operation track and the public The closest point to the boundary. The common boundary line and the touch screen sliding track are neither parallel nor intersect. The common boundary line has a distance from a point on the sliding track of the touch screen that is the shortest distance from the common boundary line is less than a predetermined threshold. The preset threshold may be a specific distance value (for example, 5 mm), or may be a specific distance range (for example, [1 mm 5 mm]), and may be proportionally determined according to the size of the touch screen (for example, a vertical distance of the touch screen) one).
具体地,为避免所述处理器将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的上边缘滑动到下边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。 Specifically, in order to prevent the processor from treating the sliding operation of the user as a touch screen sliding operation of adjusting the current interface, the electronic device may define a sliding distance when the user slides from the upper edge of the touch screen to the lower edge or the touch screen of the user. When the preset distance threshold is greater than or equal to the touch screen sliding operation, the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
在本发明实施例中,所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:所述处理器获取以所述公共边界线为界线的排列的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In the embodiment of the present invention, the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is: the processor acquiring an arrangement that is bounded by the common boundary line The two sub-interfaces determine that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交时,所述处理器获取以所述公共边界线为界线的左右排列的两个子界面。在本发明实施例的一种可能的实现方式中,所述处理器确定的所述公共边界线可与所述触摸屏滑动轨迹重合时,所述处理器可获取以所述滑动触摸轨迹为界线的左右排列的两个子界面。所述处理器确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor intersects the touch screen sliding track, the processor acquires two sub-interfaces arranged side by side with the common boundary line as a boundary. In a possible implementation manner of the embodiment of the present invention, when the common boundary line determined by the processor is coincident with the touch screen sliding track, the processor may acquire, by using the sliding touch track as a boundary Two sub-interfaces arranged side by side. The processor determines that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述处理器获取以所述公共边界线为界线的左右排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor is parallel to the touch screen sliding trajectory and the distance is less than a predetermined threshold, the processor acquires two left and right arranged by the common boundary line a sub-interface, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,当所述触摸屏滑动轨迹上第一点与所述处理器确定的所述公共边界线的距离小于一预设阈值时,所述处理器获取以所述公共边界线为界线的左右排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the distance between the first point on the sliding track of the touch screen and the common boundary line determined by the processor is less than a predetermined threshold, the processor acquires a left and right boundary with the common boundary line as a boundary Arranging the two sub-interfaces, and determining that any of the first sub-interfaces and the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
在本发明实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:In the embodiment of the present invention, the processor adjusts a presentation area of the first sub-interface on the output device as follows:
所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。所述第一界面包含所述第一子界面和第二子界面两个子界面,所述第一子界面和所述第二初始字界面互换在所述输出设备上的呈现区域,生成第二界面。The processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device. The first interface includes two sub-interfaces of the first sub-interface and the second sub-interface, and the first sub-interface and the second initial-word interface are interchanged with a presentation area on the output device to generate a second interface.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,所述处理器确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点; In an embodiment of the present invention, the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is: determining, by the processor, a starting point and a location of the operation trajectory The processor determines that the angle formed by the end point of the operation trajectory is greater than a first threshold value and the angle between the longitudinal direction of the output device is greater than a first threshold a second point on a boundary between the first point on the operation track and the presentation area of the output device, the first line segment and the second line segment respectively formed by the third point being the common boundary line; the first line segment And the second line segment is perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is a presentation area of the output device Inside, the point farthest from the first point;
具体地,所述输入设备识别用户输入的操作,所述处理器确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述处理器确定所述操作轨迹在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,所述处理器确定所述操作轨迹上的第一点的坐标位置,并根据所述第一点的坐标位置确定所述输出设备的呈现区域的边界上第二点和第三点的坐标位置。所述处理器确定所述第一点与所述第二点、第三点分别形成的第一线段和第二线段,确定所述第一线段和第二线段为所述至少两个子界面的公共边界线,所述第一线段和第二线段垂直。所述处理器根据所述第一点的坐标位置确定所述输出设备的呈现区域内的第四点,所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点。所述处理器确定以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点。Specifically, the input device recognizes an operation input by a user, and the processor determines an operation trajectory corresponding to the operation. For example, the electronic device acquires an operation input by a user through a touch screen. The processor determines that an angle formed by the operation track at a starting point of the operation track and an end point of the operation track and a lateral direction of the output device is greater than a first threshold, and is related to the output device The processor determines a coordinate position of the first point on the operation trajectory when the angle of the longitudinal direction is greater than the first threshold, and determines a boundary of the presentation area of the output device according to the coordinate position of the first point The coordinate position of the second and third points. Determining, by the processor, the first line segment and the second line segment formed by the first point and the second point and the third point respectively, determining that the first line segment and the second line segment are the at least two sub-interfaces a common boundary line, the first line segment and the second line segment being perpendicular. Determining, by the processor, a fourth point in a presentation area of the output device according to a coordinate position of the first point, where the fourth point is within a presentation area of the output device, farthest from the first point Point. The processor determines an endpoint of a diagonal of a rectangle bounded by the first line segment and the second line segment as the first point and the fourth point.
具体地,为避免所述处理器将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的上边缘滑动到下边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the processor from treating the sliding operation of the user as a touch screen sliding operation of adjusting the current interface, the electronic device may define a sliding distance when the user slides from the upper edge of the touch screen to the lower edge or the touch screen of the user. When the preset distance threshold is greater than or equal to the touch screen sliding operation, the touch screen sliding operation is regarded as adjusting the touch screen sliding operation of the first interface display area.
在本发明实施例中,所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。In the embodiment of the present invention, the acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is: acquiring the rectangular coverage area in the first interface as the The first sub-interface.
具体地,所述处理器根据所述操作轨迹上的第一点,获取所述第二点、第三点和第四点的坐标位置。以所述第一点和第四点为对角线端点,以所述第一点与第二点、第三点分别形成的第一线段和第二线段为相邻两边,形成一个矩形子界面,所述第一线段与所述第二线段垂直。所述处理器获取所述第一界面中的所述矩形子界面覆盖区域作为所述第一子界面。Specifically, the processor acquires coordinate positions of the second point, the third point, and the fourth point according to the first point on the operation trajectory. Taking the first point and the fourth point as diagonal end points, the first line segment and the second line segment respectively formed by the first point, the second point, and the third point are adjacent sides to form a rectangular shape. An interface, the first line segment being perpendicular to the second line segment. The processor acquires the rectangular sub-interface coverage area in the first interface as the first sub-interface.
在本发明实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:In the embodiment of the present invention, the processor adjusts a presentation area of the first sub-interface on the output device as follows:
所述处理器调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。The processor adjusts a presentation area of the first sub-interface as a presentation area of an unreserved sub-interface in the first interface; the un-reserved sub-interface is at least two sub-interfaces of the first interface At least one sub-interface in addition to the first sub-interface.
具体地,所述处理器确定所述第一界面中的所述矩形子界面覆盖区域作为所述第一子界面后,保留所述第一子界面的显示内容,不保留所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面的显示内容。所述处理器将所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。 Specifically, after the processor determines the rectangular sub-interface coverage area in the first interface as the first sub-interface, the display content of the first sub-interface is retained, and the first interface is not retained. Display content of at least one sub-interface other than the first sub-interface among the two sub-interfaces. The processor adjusts a presentation area of the first sub-interface to a presentation area of an unreserved sub-interface in the first interface to generate a second interface.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;所述处理器根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。In an embodiment of the present invention, the processor determines, according to the operation trajectory, a boundary line of at least two sub-interfaces of the first interface preset by the system; the processor is configured according to the system preset A boundary line of the two initial sub-interfaces acquires any one of the at least two initial sub-interfaces.
在本发明的上述实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:所述处理器调整所述第一子界面的呈现区域为一未保留的初始子界面在所述初始界面中的呈现区域;所述未保留的初始子界面为所述至少两个初始子界面中除所述第一子界面之外的至少一个初始子界面。In the foregoing embodiment of the present invention, the processor adjusts a presentation area of the first sub-interface on the output device, where the processor adjusts a presentation area of the first sub-interface to an unreserved The initial sub-interface is a presentation area in the initial interface; the unreserved initial sub-interface is at least one initial sub-interface of the at least two initial sub-interfaces except the first sub-interface.
在本发明的上述实施例中,所述处理器确定所述第一界面仅包括第一子界面和第二子界面;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。In the above embodiment of the present invention, the processor determines that the first interface includes only a first sub-interface and a second sub-interface; and the processor adjusts the presentation of the first sub-interface on the output device The area is specifically: the processor exchanges the presentation areas of the first sub-interface and the second initial word interface on the output device.
进一步地,在本发明实施例中,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:所述处理器缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,所述处理器放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。Further, in the embodiment of the present invention, the area of the presentation area of the first sub-interface and the second sub-interface on the output device is different; the processor adjusts the first sub-interface at The presentation area on the output device is specifically: the processor reduces the presentation area of the first sub-interface, and adjusts the reduced first sub-interface to the presentation area of the second sub-interface; or And the processor enlarges a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface.
在本发明的上述实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述处理器还用于,以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者,以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。In the above embodiment of the present invention, after the processor adjusts the presentation area of the first sub-interface on the output device, before the second interface is generated, the processor is further configured to use a predefined color. Or a picture fills a portion of the output device other than the first sub-interface; or, the portion of the output device other than the first sub-interface is filled with display content of an unreserved sub-interface.
在本发明的上述实施例中,所述输入设备还用于,在所述输出设备呈现所述第二界面后,获取用户输入的第二操作;所述输出设备还用于,根据所述用户输入的第二操作,恢复所述第一界面。In the above embodiment of the present invention, the input device is further configured to: after the output device presents the second interface, acquire a second operation input by the user; the output device is further configured to: according to the user The second operation of input restores the first interface.
所述输入设备获取用户输入的第二操作,例如用户在所述触摸屏的滑动操作或点击操作,所述第二操作用于指示所述电子设备将所述输出设备呈现的第二界面恢复为第一界面。所述输入设备在获取用户输入的第二操作后,所述输出设备恢复所述第一界面。The input device acquires a second operation input by the user, such as a sliding operation or a click operation of the user on the touch screen, and the second operation is used to instruct the electronic device to restore the second interface presented by the output device to the first An interface. After the input device acquires the second operation input by the user, the output device restores the first interface.
在本发明的上述实施例中,所述输出设备还用于,在所述输出设备呈现所述第二界面后,在呈现所述第二界面的预设时间后,恢复所述第一界面。In the above embodiment of the present invention, the output device is further configured to restore the first interface after the preset time of the second interface is presented after the output device presents the second interface.
所述输出设备可通过提供设置选项以供用户设置所述第二界面的预设停留时间,所述处理器也可系统默认所述第二界面的预设停留时间,例如5秒。在所述预设停留时间内,所述输入设备没有获取用户输入的第二操作时,所述输出设备将所述第二界面恢复为第一界面。 The output device may provide a setting option for the user to set a preset dwell time of the second interface, and the processor may also default to a preset dwell time of the second interface, for example, 5 seconds. The output device restores the second interface to the first interface when the input device does not acquire the second operation input by the user during the preset stay time.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明实施例可以用硬件实现,或软件实现,或它们的组合方式来实现。上面的组合也应当包括在触屏装置可读介质的保护范围之内。总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments of the present invention can be implemented by hardware, software implementation, or a combination thereof. Combinations of the above should also be included within the scope of protection of the readable medium of the touch screen device. In summary, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (25)

  1. 一种电子设备的用户界面的处理方法,其特征在于,所述方法包括:A method for processing a user interface of an electronic device, the method comprising:
    所述电子设备获取用户输入的操作,确定所述操作对应的操作轨迹;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;The electronic device acquires an operation input by the user, and determines an operation trajectory corresponding to the operation; the operation trajectory is a trajectory formed by an action point of the operation corresponding to the operation information on the output device;
    根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;Determining, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface; the first interface is an interface presented by the output device of the electronic device when the electronic device acquires the operation information;
    根据所述公共边界线,获取所述至少两个子界面中的第一子界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;Obtaining, according to the common boundary line, a first sub-interface of the at least two sub-interfaces; the content displayed by the first sub-interface is a part of content displayed by the first interface;
    调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;Adjusting a presentation area of the first sub-interface on the output device to generate a second interface;
    呈现所述第二界面。Presenting the second interface.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述公共边界线与操作轨迹至少具有一个交点;其中,所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;或者,The common boundary line has at least one intersection with the operation track; wherein the operation track is a track formed by the action point of the operation corresponding to the operation information on the output device; or
    所述公共边界线,与所述操作轨迹平行且距离小于一预设阈值;或者,The common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or
    第一点与所述公共边界线的距离小于一预设阈值操作轨迹;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The distance from the first point to the common boundary line is less than a predetermined threshold operation trajectory; wherein the first point is a point on the operation trajectory that is closest to the common boundary.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The method according to claim 1 or 2, wherein the determining the common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically:
    在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;Determining a common parallel to the lateral direction of the output device when an angle formed by a line formed by the starting point of the operation track and the end point of the operation track and the lateral direction of the output device is less than or equal to a first threshold borderline;
    所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;The common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold Wherein the first point is a point on the operation track that is closest to the common boundary;
    所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
    获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Obtaining two sub-interfaces that are bounded by the common boundary line, determining that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  4. 根据权利要求1或2所述的方法,其特征在于,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The method according to claim 1 or 2, wherein the determining the common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically:
    在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共 边界线;Determining a common parallel to the longitudinal direction of the output device when an angle formed by a line formed by the starting point of the operation track and the end point of the operation track and the longitudinal direction of the output device is less than or equal to a first threshold borderline;
    所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值操作轨迹;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;The common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the distance between the first point and the common boundary line is less than a predetermined threshold An operation track; wherein the first point is a point on the operation track that is closest to the common boundary;
    所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
    获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Obtaining two sub-interfaces that are bounded by the common boundary line, determining that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
  5. 根据权利要求1或2所述的方法,其特征在于,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The method according to claim 1 or 2, wherein the determining the common boundary line of the at least two sub-interfaces of the first interface according to the operation trajectory is specifically:
    在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;An angle formed by a straight line formed at a starting point of the operation track and an end point of the operation track and a lateral direction of the output device is greater than a first threshold, and an angle with a longitudinal direction of the output device is greater than the first a threshold value, a second point on a boundary between the first point on the operation track and a presentation area of the output device is determined, and the first line segment and the second line segment respectively formed by the third point are the common boundary line; The first line segment and the second line segment are perpendicular, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is a point in the presentation area of the output device that is furthest from the first point;
    所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
    获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。Obtaining the rectangular coverage area in the first interface as the first sub-interface.
  6. 根据权利要求1所述的方法,其特征在于,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The method according to claim 1, wherein the common boundary line of the at least two sub-interfaces of the first interface is determined according to the operation trajectory:
    根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;Determining, according to the operation trajectory, a boundary line of at least two sub-interfaces of the first interface preset by the system;
    根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces: acquiring the at least two initial sub-menets according to a boundary line of the at least two initial sub-interfaces preset by the system Any subinterface in the interface.
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述调整所述第一子界面在所述输出设备上的呈现区域具体为:The method according to any one of claims 1-6, wherein the adjusting the presentation area of the first sub-interface on the output device is:
    调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。Adjusting a presentation area of the first sub-interface as a presentation area of an unreserved sub-interface in the first interface; the unreserved sub-interface is at least two sub-interfaces of the first interface except the At least one sub-interface outside of a sub-interface.
  8. 根据权利要求1-6任一所述的方法,其特征在于,所述第一界面仅包括第一子界面和第二子界面;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:The method according to any one of claims 1 to 6, wherein the first interface includes only a first sub-interface and a second sub-interface; and the adjusting the first sub-interface on the output device The presentation area is specifically:
    互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。 Interchanging the presentation area of the first sub-interface and the second sub-interface on the output device.
  9. 根据权利要求8所述的方法,其特征在于,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:The method according to claim 8, wherein the area of the first sub-interface and the second sub-interface of the presentation area on the output device are different; the adjusting the first sub-interface The presentation area on the output device is specifically:
    缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,Reducing a presentation area of the first sub-interface, and adjusting the reduced first sub-interface to a presentation area of the second sub-interface; or
    放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。Enlarging the presentation area of the first sub-interface and adjusting the reduced first sub-interface to the presentation area of the second sub-interface.
  10. 根据权利要求1-7任一所述的方法,其特征在于,在调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述方法还包括:The method according to any one of claims 1-7, wherein, after the second sub-interface is generated after the first sub-interface is displayed on the output device, the method further includes:
    以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者,Filling a portion of the output device other than the first sub-interface with a predefined color or picture; or
    以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
  11. 根据权利要求1-5任一所述的方法,其特在于,所述操作轨迹为所述操作起始点与操作终止点之间的直线。A method according to any one of claims 1 to 5, wherein the operation trajectory is a straight line between the operation start point and the operation termination point.
  12. 根据权利要求1-11任一所述的方法,其特征在于,在呈现所述第二界面后,所述方法还包括:The method according to any one of claims 1 to 11, wherein after the presenting the second interface, the method further comprises:
    所述电子设备获取用户输入的第二操作,恢复所述第一界面;或者,The electronic device acquires a second operation input by the user, and restores the first interface; or
    所述电子设备在呈现所述第二界面的预设时间后,恢复所述第一界面。The electronic device restores the first interface after a preset time of presenting the second interface.
  13. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, comprising:
    输入设备,用于获取用户输入的操作;An input device for obtaining an operation input by a user;
    处理器,用于根据所述输入设备获取的用户输入的操作,确定所述操作对应的操作轨迹;根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面;调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;a processor, configured to determine an operation trajectory corresponding to the operation according to an operation of the user input acquired by the input device; and determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; a boundary line, the first sub-interface of the at least two sub-interfaces is obtained; a presentation area of the first sub-interface on the output device is adjusted, and a second interface is generated; the operation trajectory is corresponding to the operation information a trajectory formed by an action point on the output device; the first interface is an interface presented by an output device of the electronic device when the electronic device acquires the operation information; the first sub-interface The displayed content is a part of the content displayed by the first interface;
    输出设备,用于呈现所述第二界面。And an output device, configured to present the second interface.
  14. 根据权利要求13所述的电子设备,其特征在于,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The electronic device according to claim 13, wherein the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is:
    所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与操作轨迹至少具有一个交点;或者, The processor determines a common boundary line of at least two sub-interfaces of the first interface, the common boundary line having at least one intersection with the operation track; or
    所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,The processor determines a common boundary line of at least two sub-interfaces of the first interface, the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or
    所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与第一点的距离小于一预设阈值操作轨迹;所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The processor determines a common boundary line of at least two sub-interfaces of the first interface, where the distance between the common boundary line and the first point is less than a preset threshold operation trajectory; the first point is the operation trajectory The point at which the public boundary is closest to the point.
  15. 根据权利要求13或14所述的电子设备,其特征在于,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The electronic device according to claim 13 or 14, wherein the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is:
    所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;Determining, when the processor determines that an angle formed by a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is less than or equal to a first threshold, determining a lateral direction with the output device a common boundary line parallel to the direction; the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the first point and the common boundary line The distance is less than a predetermined threshold; wherein the first point is a point on the operation track that is closest to the common boundary;
    所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:The acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
    所述处理器获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面;The processor acquires two sub-interfaces that are bounded by the common boundary line, and determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute The first interface;
  16. 根据权利要求13或14所述的电子设备,其特征在于,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The electronic device according to claim 13 or 14, wherein the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is:
    所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;Determining a longitudinal direction of the output device when the processor determines that an angle formed by a starting point of the operation track and an ending point of the operation track and a longitudinal direction of the output device is less than or equal to a first threshold a common boundary line parallel to the direction; the common boundary line intersects the operation trajectory; or the common boundary line is parallel to the operation trajectory and the distance is less than a predetermined threshold; or the first point and the common boundary line The distance is less than a predetermined threshold; wherein the first point is a point on the operation track that is closest to the common boundary;
    所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:The acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
    所述处理器获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面;The processor acquires two sub-interfaces that are bounded by the common boundary line, and determines that any one of the first sub-interfaces and the other is a second sub-interface; the first sub-interface and the second sub-interface constitute The first interface;
  17. 根据权利要求13或14所述的电子设备,其特征在于,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The electronic device according to claim 13 or 14, wherein the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is:
    所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二 线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;The processor determines that an angle formed by a line formed by a starting point of the operation track and an ending point of the operation track and a lateral direction of the output device is greater than a first threshold, and is clipped with a longitudinal direction of the output device When the angle is greater than the first threshold, determining a second point on a boundary between the first point on the operation track and the presentation area of the output device, the first line segment and the second line segment respectively formed by the third point are Common boundary line; the first line segment and the second line The line segment is vertical, and the end points of the diagonal of the rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is within the presentation area of the output device, the distance The farthest point of the first point;
    所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:The acquiring, by the processor, the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically:
    所述处理器获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。The processor acquires the rectangular coverage area in the first interface as the first sub-interface.
  18. 根据权利要求13所述的电子设备,其特征在于,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:The electronic device according to claim 13, wherein the processor determines, according to the operation trajectory, that a common boundary line of at least two sub-interfaces of the first interface is:
    所述处理器根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;Determining, by the processor, a boundary line of at least two sub-interfaces of the first interface preset by the system according to the operation trajectory;
    所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:Obtaining, according to the common boundary line, the first sub-interface of the at least two sub-interfaces is:
    所述处理器根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。The processor acquires any one of the at least two initial sub-interfaces according to a boundary line of the at least two initial sub-interfaces preset by the system.
  19. 根据权利要求13-18任一所述的电子设备,其特征在于,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:The electronic device according to any one of claims 13 to 18, wherein the processor adjusts a presentation area of the first sub-interface on the output device to be:
    所述处理器调整所述第一子界面的呈现区域为一未保留的初始子界面在所述初始界面中的呈现区域;所述未保留的初始子界面为所述至少两个初始子界面中除所述第一子界面之外的至少一个初始子界面。The processor adjusts a presentation area of the first sub-interface as a presentation area of an unreserved initial sub-interface in the initial interface; the unreserved initial sub-interface is in the at least two initial sub-interfaces At least one initial sub-interface in addition to the first sub-interface.
  20. 根据权利要求13-18任一所述的电子设备,其特征在于,所述处理器确定所述第一界面仅包括第一子界面和第二子界面;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:The electronic device according to any one of claims 13 to 18, wherein the processor determines that the first interface includes only a first sub-interface and a second sub-interface; and the processor adjusts the first sub- The presentation area of the interface on the output device is specifically:
    所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。The processor interchanges a presentation area of the first sub-interface and the second initial word interface on the output device.
  21. 根据权利要求20所述的电子设备,其特征在于,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:The electronic device according to claim 20, wherein area of the first sub-interface and the second sub-interface of the presentation area on the output device are different; the processor adjusts the The presentation area of a sub-interface on the output device is specifically:
    所述处理器缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,The processor reduces a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface; or
    所述处理器放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。The processor enlarges a presentation area of the first sub-interface, and adjusts the reduced first sub-interface to a presentation area of the second sub-interface.
  22. 根据权利要求13-19任一所述的电子设备,其特征在于,所述处理器调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述处理器还用于,The electronic device according to any one of claims 13 to 19, wherein the processor adjusts a presentation area of the first sub-interface on the output device, and generates a second interface, the processor Also used,
    以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者, Filling a portion of the output device other than the first sub-interface with a predefined color or picture; or
    以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。Portion of the output device other than the first sub-interface is filled with the display content of the unreserved sub-interface.
  23. 根据权利要求13-17任一所述的电子设备,其特征在于,所述处理器确定所述操作轨迹为所述操作起始点与操作终止点之间的直线。The electronic device according to any one of claims 13-17, wherein the processor determines that the operation trajectory is a straight line between the operation start point and the operation termination point.
  24. 根据权利要求13-23任一所述的电子设备,其特征在于,,The electronic device according to any one of claims 13 to 23, wherein
    所述输入设备还用于,在所述输出设备呈现所述第二界面后,获取用户输入的第二操作;The input device is further configured to: after the output device presents the second interface, acquire a second operation input by the user;
    所述输出设备还用于,根据所述用户输入的第二操作,恢复所述第一界面。The output device is further configured to restore the first interface according to the second operation of the user input.
  25. 根据权利要求13-23任一所述的电子设备,其特征在于,所述输出设备呈现所述第二界面后,The electronic device according to any one of claims 13 to 23, wherein after the output device presents the second interface,
    所述输出设备还用于,在呈现所述第二界面的预设时间后,恢复所述第一界面。 The output device is further configured to restore the first interface after a preset time of the second interface is presented.
PCT/CN2014/092493 2013-12-10 2014-11-28 Method for processing user interface of electronic device and electronic device WO2015085868A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310673809.6 2013-12-10
CN201310673809.6A CN103677569B (en) 2013-12-10 2013-12-10 Method for processing user interface of electronic device and electronic device

Publications (1)

Publication Number Publication Date
WO2015085868A1 true WO2015085868A1 (en) 2015-06-18

Family

ID=50315308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/092493 WO2015085868A1 (en) 2013-12-10 2014-11-28 Method for processing user interface of electronic device and electronic device

Country Status (2)

Country Link
CN (2) CN103677569B (en)
WO (1) WO2015085868A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677569B (en) * 2013-12-10 2017-04-12 华为终端有限公司 Method for processing user interface of electronic device and electronic device
RU2677595C2 (en) * 2014-06-20 2019-01-17 Хуавэй Текнолоджиз Ко., Лтд. Application interface presentation method and apparatus and electronic device
CN106527915B (en) * 2015-09-11 2019-11-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105824545B (en) * 2016-02-26 2017-08-15 维沃移动通信有限公司 The vision-control method and mobile terminal of a kind of display interface
WO2017197636A1 (en) * 2016-05-20 2017-11-23 华为技术有限公司 Method for identifying palm rejection operation and electronic device
CN106686423B (en) 2016-12-30 2018-03-20 惠科股份有限公司 Multi-picture display method and display device
CN109067968B (en) * 2018-06-25 2020-12-25 苏州行而致信息科技有限公司 Input control method of intelligent equipment
CN110780799B (en) * 2019-10-21 2021-04-30 湖南新云网科技有限公司 Information display control method and device and storage medium
CN111078114A (en) * 2019-12-26 2020-04-28 上海传英信息技术有限公司 Single-hand control method, control device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314288A (en) * 2010-07-02 2012-01-11 英业达股份有限公司 Track type window splitting system and method thereof
CN103019564A (en) * 2012-12-14 2013-04-03 东莞宇龙通信科技有限公司 Terminal and terminal operation method
CN103279303A (en) * 2013-05-31 2013-09-04 东莞宇龙通信科技有限公司 Method and device for processing event message
CN103677569A (en) * 2013-12-10 2014-03-26 华为终端有限公司 Method for processing user interface of electronic device and electronic device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993531B1 (en) * 1999-02-04 2006-01-31 Naas Aaron J System and method of routine navigation
FR2882439B1 (en) * 2005-02-18 2007-04-20 Thales Sa ONBOARD DEVICE FOR MANAGING DATA EXCHANGED BY AN AIRCRAFT WITH THE SOIL OR OTHER AIRCRAFT
KR101007045B1 (en) * 2008-03-12 2011-01-12 주식회사 애트랩 Touch sensor device and the method of determining coordinates of pointing thereof
EP2721467A4 (en) * 2011-06-20 2015-01-14 Alexander Buening System and method for application management on device having a touch screen display
CN102566929A (en) * 2011-12-30 2012-07-11 汉王科技股份有限公司 Method and device for split screen switching
KR20130081593A (en) * 2012-01-09 2013-07-17 삼성전자주식회사 Display apparatus and item selecting method using the same
CN102799356B (en) * 2012-06-19 2018-07-17 中兴通讯股份有限公司 Optimize system, method and the mobile terminal of mobile terminal large-size screen monitors touch screen one-handed performance
CN102750107A (en) * 2012-08-02 2012-10-24 深圳市经纬科技有限公司 Single-hand operation method of large-screen handheld electronic device and device
CN102915176A (en) * 2012-09-19 2013-02-06 东莞宇龙通信科技有限公司 Method and device for split-screen display
CN103324435B (en) * 2013-05-24 2017-02-08 华为技术有限公司 Multi-screen display method and device and electronic device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314288A (en) * 2010-07-02 2012-01-11 英业达股份有限公司 Track type window splitting system and method thereof
CN103019564A (en) * 2012-12-14 2013-04-03 东莞宇龙通信科技有限公司 Terminal and terminal operation method
CN103279303A (en) * 2013-05-31 2013-09-04 东莞宇龙通信科技有限公司 Method and device for processing event message
CN103677569A (en) * 2013-12-10 2014-03-26 华为终端有限公司 Method for processing user interface of electronic device and electronic device

Also Published As

Publication number Publication date
CN103677569A (en) 2014-03-26
CN107168632A (en) 2017-09-15
CN103677569B (en) 2017-04-12
CN107168632B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
WO2015085868A1 (en) Method for processing user interface of electronic device and electronic device
US11287970B2 (en) Application display method and terminal
JP5759660B2 (en) Portable information terminal having touch screen and input method
CN105335001B (en) Electronic device having curved display and method for controlling the same
KR102063952B1 (en) Multi display apparatus and multi display method
US8436832B2 (en) Multi-touch system and driving method thereof
WO2016138661A1 (en) Processing method for user interface of terminal, user interface and terminal
US20150199125A1 (en) Displaying an application image on two or more displays
US20120299846A1 (en) Electronic apparatus and operation support method
WO2015161653A1 (en) Terminal operation method and terminal device
TWI511026B (en) Portable apparatus and method for adjusting window size thereof
WO2015070590A1 (en) Touch system and display device
KR102325339B1 (en) Method for receving a user input by detecting a movement of a user and apparatus thereof
JP6235349B2 (en) Display device with touch operation function
JP6246882B1 (en) Information processing apparatus, image display method, and image display program
WO2017050274A1 (en) Character input method and electronic device
KR20100136289A (en) A display controlling method for a mobile terminal
JP2014123288A (en) Electronic apparatus, control method and program
JP2014059722A (en) Portable information device, software keyboard display method, software keyboard display program and program recording medium
CN104020956A (en) Method and system for holding mobile terminal with one hand to take pictures
JP2013246658A (en) Display control device and display control method
JP2013003748A (en) Information processor
CN111026303A (en) Interface display method and terminal equipment
JP2018032428A (en) Display device with touch operation function and method for identifying touch input
TWI686742B (en) Control method, electronic device and non-transitory computer readable storage medium device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14869398

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14869398

Country of ref document: EP

Kind code of ref document: A1