CN103677569B - Method for processing user interface of electronic equipment and electronic equipment - Google Patents
Method for processing user interface of electronic equipment and electronic equipment Download PDFInfo
- Publication number
- CN103677569B CN103677569B CN201310673809.6A CN201310673809A CN103677569B CN 103677569 B CN103677569 B CN 103677569B CN 201310673809 A CN201310673809 A CN 201310673809A CN 103677569 B CN103677569 B CN 103677569B
- Authority
- CN
- China
- Prior art keywords
- interface
- sub
- boundary line
- common boundary
- output device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04886—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04803—Split screen, i.e. subdividing the display area or the window area into separate subareas
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
Description
技术领域technical field
本发明涉及信息技术领域,尤其涉及一种电子设备的用户界面的处理方法及电子设备。The present invention relates to the field of information technology, in particular to a method for processing a user interface of an electronic device and the electronic device.
背景技术Background technique
智能化时代引领的大屏化趋势越来越明显,市面上的大屏电子设备越来越多,用户使用大屏电子设备已然成为一种潮流。与此同时,大屏设计却给用户操作带来了难题。例如对于屏幕在3.5寸以上的触摸屏电子设备,用户往往需要用一只手托住设备,用另外一只手点击完成对触摸屏的触控操作。The large-screen trend led by the intelligent era is becoming more and more obvious. There are more and more large-screen electronic devices on the market, and it has become a trend for users to use large-screen electronic devices. At the same time, the large-screen design has brought difficulties to user operations. 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 with the other hand to complete the touch operation on the touch screen.
针对此单手操作不便的问题,现有技术提供了如下解决方案:通过触摸屏的特定按钮实现某些界面的左右切换,以方便单手操作。例如在手机设置选项中设有单手操作开关选项,用户打开单手操作选项,某些界面(如短信输入界面,界面上半部为短信内容输入框,界面下半部为键盘区)的布局发生了变化。用户在这些界面(如键盘区)可通过点击特定的按钮实现操作界面(例如整个键盘区)靠左或靠右缩小显示,方便用户左右手操作。Aiming at the problem of inconvenient one-handed operation, the prior art provides the following solution: switch some interfaces from left to right through specific buttons on the touch screen to facilitate one-handed operation. For example, if there is a one-handed operation switch option in the mobile phone setting option, the user opens the one-handed operation option, and the layout of certain interfaces (such as the SMS input interface, the upper half of the interface is the SMS content input box, and the lower half of the interface is the keyboard area) There has been a change. Users can click specific buttons on these interfaces (such as the keyboard area) to realize the display of the operation interface (such as the entire keyboard area) on the left or right, which is convenient for users to operate with left and right hands.
本发明人在实现本发明的过程中发现,用户在靠边缩小的键盘区操作,点击难度更大,现有技术并没有根本解决大屏电子单手操作不便的问题。In the process of implementing the present invention, the inventors found that it is more difficult for users to click on the narrowed keyboard area, and the prior art does not fundamentally solve the problem of inconvenient one-handed operation of large-screen electronics.
发明内容Contents of the invention
本发明提供了一种电子设备的用户界面的处理方法及电子设备,用以解决用户使用大屏电子设备时单手操作不方便的问题。The invention provides a processing method for a user interface of an electronic device and the electronic device, which are used to solve the problem of inconvenient one-handed operation when a user uses a large-screen electronic device.
第一方面,本发明提供了一种电子设备的用户界面的处理方法的一个实施例。In a first aspect, the present invention provides an embodiment of a method for 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 track corresponding to the operation; the operation track is a track formed by an action point of an operation corresponding to the operation information on the output device;
根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;Determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; the first interface is an interface presented by an output device of the electronic device when the electronic device obtains the operation information;
根据所述公共边界线,获取所述至少两个子界面中的第一子界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;Acquire a first sub-interface of the at least two sub-interfaces according to the common boundary line; the content displayed on the first sub-interface is part of the content displayed on the first interface;
调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;adjusting the presentation area of the first sub-interface on the output device to generate a second interface;
呈现所述第二界面。present 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 has at least one intersection point with the operation track; wherein the operation track is the operation corresponding to the operation information in A trajectory formed by points of action on said output device; or,
所述公共边界线,与所述操作轨迹平行且距离小于一预设阈值;或者,The common boundary line is parallel to the operation track and the distance is less than a preset threshold; or,
第一点与所述公共边界线的距离小于一预设阈值操作轨迹;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The distance between the first point and the common boundary line is smaller than a preset threshold operation trajectory; wherein, the first point is a point on the operation trajectory 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 the common boundary line of at least two sub-interfaces of the first interface according to the operation track is specifically:
在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;When the angle between the straight line formed by the start point of the operation track and the end point of the operation track and the transverse direction of the output device is less than or equal to a first threshold, determine a common line parallel to the transverse direction of the output device 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 preset threshold; or, the distance between the first point and the common boundary line is less than a preset threshold ; Wherein, the first point is the closest point on the operation trajectory to the common boundary;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:According to the common boundary line, obtaining the first sub-interface of the at least two sub-interfaces is specifically:
获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Obtaining two sub-interfaces bounded by the common boundary line, determining either one of them as the first sub-interface and the other as the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface interface.
结合第一方面第一种或第二种可能的实现方式,在第四种可能的实现方式中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the first aspect, in a fourth possible implementation, the determination of the common boundary line of at least two sub-interfaces of the first interface according to the operation track is specifically:
在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共边界线;When the angle between the straight 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, determine a common line parallel to the longitudinal direction of the output device 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 preset threshold; or, the distance between the first point and the common boundary line is less than a preset threshold An operation trajectory; wherein, the first point is a point on the operation trajectory closest to the common boundary;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:According to the common boundary line, obtaining the first sub-interface of the at least two sub-interfaces is specifically:
获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Obtaining two sub-interfaces bounded by the common boundary line, determining either one of them as the first sub-interface and the other as the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface interface.
结合第一方面第一种或第二种可能的实现方式,在第五种可能的实现方式中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation of the first aspect, in a fifth possible implementation, the determination of the common boundary line of at least two sub-interfaces of the first interface according to the operation track is specifically:
在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;The included angle between the straight 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 greater than a first threshold, and the included angle with the longitudinal direction of the output device is greater than a first threshold. When the threshold is reached, determine the first point on the operation track and the second point on the boundary of the presentation area of the output device, and the first line segment and the second line segment formed by the third point respectively are the common boundary line; The first line segment is perpendicular to the second line segment, and 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 fourth point is the The point farthest from the first point within the presentation area of the output device;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:According to the common boundary line, obtaining the first sub-interface of the at least two sub-interfaces is specifically:
获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。Obtain the rectangular coverage area in the first interface as the first sub-interface.
结合第一方面第一种的实现方式,在第六种可能的实现方式中,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first implementation of the first aspect, in a sixth possible implementation, according to the operation trajectory, determining the common boundary line of at least two sub-interfaces of the first interface is specifically:
根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;Determine the boundary lines of at least two sub-interfaces of the first interface preset by the system according to the operation trajectory;
根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。Acquiring the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: obtaining the at least two initial sub-interfaces according to the boundary lines 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 implementation manners of the first aspect, in a seventh possible implementation manner, the adjusting the presentation area of the first sub-interface on the output device specifically includes:
调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。Adjusting the presentation area of the first sub-interface to the presentation area of an unreserved sub-interface in the first interface; the unreserved sub-interface is the at least two sub-interfaces of the first interface except the first At least one sub-interface other than one sub-interface.
结合第一方面第一种至第六种任一可能的实现方式,在第八种可能的实现方式中,所述第一界面仅包括第一子界面和第二子界面;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to any of the first to sixth possible implementations of the first aspect, in an eighth possible implementation, the first interface only includes a first sub-interface and a second sub-interface; the adjusting the The presentation area of the first sub-interface on the output device is specifically:
互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。Exchanging presentation areas 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 manner, the presentation areas of the first sub-interface and the second sub-interface on the output device are different in area; The adjusting the presentation area of the first sub-interface on the output device is specifically:
缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,reducing the presentation area of the first sub-interface, and adjusting the reduced first sub-interface to the 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 the presentation area of the first sub-interface on the output device, a second sub-interface is generated. Before the interface, the method also includes:
以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者,filling the part of the output device except the first sub-interface with a predefined color or picture; or,
以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。The part of the output device except 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 implementation manners of the first aspect, in an eleventh possible implementation manner, the operation track is a straight line between the operation start point and the operation end point.
结合第一方面第一种至第十一种任一可能的实现方式,在第十二种可能的实现方式中,在呈现所述第二界面后,所述方法还包括:With reference to any one of the first to eleventh possible implementation manners of the first aspect, in a twelfth possible implementation manner, after presenting the second interface, the method further includes:
所述电子设备获取用户输入的第二操作,恢复所述第一界面;或者,The electronic device obtains the second operation input by the user, and restores the first interface; or,
所述电子设备在呈现所述第二界面的预设时间后,恢复所述第一界面。The electronic device resumes the first interface after presenting the second interface for a preset time.
第二方面,本发明提供了一种电子设备。In a second aspect, the present invention provides an electronic device.
在第一种可能的实现方式中,所述电子设备包括:In a first possible implementation manner, the electronic device includes:
输入设备,用于获取用户输入的操作;The input device is used to obtain the operation input by the user;
处理器,用于根据所述输入设备获取的用户输入的操作,确定所述操作对应的操作轨迹;根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面;调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;A processor, configured to determine an operation trajectory corresponding to the operation according to the user input operation acquired by the input device; determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; The boundary line is to obtain the first sub-interface of the at least two sub-interfaces; adjust the presentation area of the first sub-interface on the output device to generate a second interface; the operation track is the operation information corresponding The track formed by the action point of the operation on the output device; the first interface is the interface presented by the output device of the electronic device when the electronic device obtains the operation information; the first sub-interface The displayed content is part of the content displayed on the first interface;
输出设备,用于呈现所述第二界面。an output device, configured to present the second interface.
结合第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner, the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface as follows:
所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与操作轨迹至少具有一个交点;或者,The processor determines a common boundary line of at least two sub-interfaces of the first interface, and the common boundary line has at least one intersection point 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 track and the distance is less than a preset threshold; or,
所述处理器确定第一界面的至少两个子界面的公共边界线,所述公共边界线与第一点的距离小于一预设阈值操作轨迹;所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The processor determines a common boundary line of at least two sub-interfaces of the first interface, and the distance between the common boundary line and the first point is less than a preset threshold operation trajectory; the first point is on the operation trajectory and the The point closest to the common boundary.
结合第二方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first or second possible implementation manner of the second aspect, in a third possible implementation manner, the processor determines the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, specifically for:
所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;When the processor determines that the angle between the 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, determine a line that is transverse to the output device A common boundary line with parallel directions; 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 preset threshold; or, the first point and the common boundary line The distance is less than a preset threshold; wherein, the first point is the closest point on the operation trajectory to the common boundary;
所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为: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 obtains two sub-interfaces with the common boundary line as the boundary line, and determines that any one of them is the first sub-interface and the other is the 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 manner of the second aspect, in a fourth possible implementation manner, the processor determines, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface. for:
所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备纵向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点;When the processor determines that the angle 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, determine a A common boundary line with parallel directions; 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 preset threshold; or, the first point and the common boundary line The distance is less than a preset threshold; wherein, the first point is the closest point on the operation trajectory to the common boundary;
所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为: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 obtains two sub-interfaces with the common boundary line as the boundary line, and determines that any one of them is the first sub-interface and the other is the 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 track, a common boundary line of at least two sub-interfaces of the first interface, specifically for:
所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;The processor determines that the included angle between the starting point of the operation track and the end point of the operating track and the horizontal direction of the output device is greater than a first threshold, and the included angle with the longitudinal direction of the output device is When the angle is greater than the first threshold, determine the first point on the operation track and the second point on the boundary of the presentation area of the output device, and the first line segment and the second line segment formed by the third point are the A common boundary line; the first line segment is perpendicular to the second line segment, and the endpoints of the diagonal of a rectangle bounded by the first line segment and the second line segment are the first point and the fourth point; the second line segment The four points are points farthest from the first point within the presentation area of the output device;
所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为: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.
结合第二方面第一种可能的实现方式,在第六种可能的实现方式中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:With reference to the first possible implementation of the second aspect, in a sixth possible implementation, the processor determines, according to the operation track, a common boundary line of at least two sub-interfaces of the first interface as follows:
所述处理器根据所述操作轨迹,确定系统预设的第一界面的至少两个子界面的边界线;The processor determines the boundary lines of at least two sub-interfaces of the first interface preset by the system according to the operation track;
所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:According to the common boundary line, obtaining the first sub-interface of the at least two sub-interfaces is specifically:
所述处理器根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。The processor acquires any sub-interface in the at least two initial sub-interfaces according to the 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 implementation manners of the second aspect, in a seventh possible implementation manner, the processor adjusts the presentation area of the first sub-interface on the output device specifically as follows: :
所述处理器调整所述第一子界面的呈现区域为一未保留的初始子界面在所述初始界面中的呈现区域;所述未保留的初始子界面为所述至少两个初始子界面中除所述第一子界面之外的至少一个初始子界面。The processor adjusts the presentation area of the first sub-interface to be the presentation area of an unreserved initial sub-interface in the initial interface; the unreserved initial sub-interface is the presentation area of the at least two initial sub-interfaces At least one initial sub-interface other than the first sub-interface.
结合第二方面第一种至第六种任一可能的实现方式,在第八种可能的实现方式中,所述处理器确定所述第一界面仅包括第一子界面和第二子界面;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to any one of the first to sixth possible implementation manners of the second aspect, in an eighth possible implementation manner, the processor determines that the first interface only includes a first sub-interface and a second sub-interface; The processor adjusts the presentation area of the first sub-interface on the output device specifically as follows:
所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。The processor swaps presentation areas of the first sub-interface and the second initial character interface on the output device.
结合第二方面第八种可能的实现方式,在第九种可能的实现方式中,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:With reference to the eighth possible implementation manner of the second aspect, in a ninth possible implementation manner, the presentation areas of the first sub-interface and the second sub-interface on the output device are different in area; The processor adjusts the presentation area of the first sub-interface on the output device specifically as follows:
所述处理器缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,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,
所述处理器放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。The processor enlarges the presentation area of the first sub-interface, and adjusts 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 implementation manners of the second aspect, in a tenth possible implementation manner, after the processor adjusts the presentation area of the first sub-interface on the output device, Before generating the second interface, the processor is further configured to:
以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分;或者,filling the part of the output device except the first sub-interface with a predefined color or picture; or,
以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。The part of the output device except 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 implementation manners of the second aspect, in an eleventh possible implementation manner, the processor determines that the operation trajectory is between the operation start point and the operation end point straight line.
结合第二方面第一种至第十一种任一可能的实现方式,在第十二种可能的实现方式中,所述输出设备呈现所述第二界面后,With reference to any one of the first to eleventh possible implementation manners of the second aspect, in a twelfth possible implementation manner, after the output device presents the second interface,
所述输入设备还用于,获取用户输入的第二操作;The input device is also used to obtain a second operation input by the user;
所述输出设备还用于,根据所述用户输入的第二操作,恢复所述第一界面。The output device is further configured to restore the first interface according to the second operation input by the user.
结合第二方面第一种至第十一种任一可能的实现方式,在第十三种可能的实现方式中,所述输出设备呈现所述第二界面后,With reference to any one of the first to eleventh possible implementation manners of the second aspect, in a thirteenth possible implementation manner, after the output device presents the second interface,
所述输出设备还用于,在呈现所述第二界面的预设时间后,恢复所述第一界面。The output device is further configured to restore the first interface after presenting the second interface for a preset time.
在本发明提供的实施例中,电子设备根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线,获取所述至少两个子界面中的第一子界面,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面,解决了用户使用大屏电子设备时单手操作不方便的问题,提高了电子设备与用户的交互能力。In the embodiment provided by the present invention, the electronic device determines the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, acquires the first sub-interface of the at least two sub-interfaces, and adjusts the first sub-interface. The display area of the sub-interface on the output device generates the second interface, which solves the problem of inconvenient one-handed operation when the user uses the large-screen electronic device, and improves the interaction ability between the electronic device and the user.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明提供的一种电子设备的用户界面的处理方法一个实施例的流程图;FIG. 1 is a flowchart of an embodiment of a method for processing a user interface of an electronic device provided by the present invention;
图2是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 2 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图3是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 3 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图4是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 4 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图5是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 5 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图6是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 6 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图7是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 7 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图8是本发明提供的一种用户界面处理的一个实施例的示意图;Fig. 8 is a schematic diagram of an embodiment of a user interface processing provided by the present invention;
图9是本发明实施例提供的一个电子设备的一个实施例的结构示意图。Fig. 9 is a schematic structural diagram of an embodiment of an electronic device provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获取的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。进一步应当理解,本文中采用的术语“包括”规定了所述的特征、整体、步骤、操作、元件和/或部件的存在,而不排除一个或多个其他特征、整体、步骤、操作、元件、部件和/或它们的组的存在或附加。Terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items. It should be further understood that the term "comprising" used herein specifies the presence of stated features, integers, steps, operations, elements and/or parts, but does not exclude one or more other features, integers, steps, operations, elements , the presence or addition of components and/or groups thereof.
在本发明实施例中,触屏装置包括但不限于手机、个人数字助理(PersonalDigital Assistant,PDA)、平板电脑、便携设备(例如,便携式计算机)等移动通讯设备,也包括自动柜员机(Automatic Teller Machine,ATM)等具有触摸屏的设备,本发明实施例并不限定。In the embodiment of the present invention, touch screen devices include but are not limited to mobile communication devices such as mobile phones, personal digital assistants (Personal Digital Assistant, PDA), tablet computers, portable devices (for example, portable computers), and also include automatic teller machines (Automatic Teller Machines). , ATM) and other devices with touch screens are not limited in this embodiment of the present invention.
图1为本发明实施例1提供的电子设备的用户界面的处理方法的流程图。如图1所示,所述电子设备的用户界面的处理方法可以包括:FIG. 1 is a flow chart of a method for processing a user interface of an electronic device according to Embodiment 1 of the present invention. As shown in Figure 1, the processing method of the user interface of the electronic device may include:
S101,所述电子设备获取用户输入的操作,确定所述操作对应的操作轨迹;所述操作轨迹为所述操作信息对应的操作在所述输出设备上的作用点形成的轨迹;S101. The electronic device obtains an operation input by a user, and determines an operation track corresponding to the operation; the operation track is a track formed by an action point of an operation corresponding to the operation information on the output device;
具体地,所述电子设备获取用户在该电子设备触摸屏的输入的操作,接收用户的操作信号,确定所述操作对应的操作轨迹。所述电子设备获取的用户输入的操作,可以是用户在该电子设备触摸屏的触摸操作;或者,也可以是用户在该电子设备触摸屏的悬浮操作。Specifically, the electronic device acquires an operation input by the user on the touch screen of the electronic device, receives an operation signal from the user, and determines an operation track corresponding to the operation. The operation input by the user obtained by the electronic device may be a touch operation by the user on the touch screen of the electronic device; or, it may be a hover operation by the user on the touch screen of the electronic device.
所述电子设备获取用户输入的操作,可以是用户该输入设备上的滑动操作;所述所述操作对应的操作轨迹为所述用户在所述输入设备上滑动操作对应的触摸轨迹;所述触摸轨迹为所述滑动操作在所述输出设备上的作用点形成的轨迹;或者The operation for the electronic device to acquire user input may be a user's sliding operation on the input device; the operation track corresponding to the operation is a touch track corresponding to the user's sliding operation on the input device; the touch The trajectory is a trajectory formed by the action point of the sliding operation on the output device; or
所述电子设备获取用户输入的操作,可以是用户该输入设备上的点击操作;所述操作对应的操作轨迹为所述用户在所述输入设备上点击操作对应的所述电子设备预设的轨迹。The operation for the electronic device to obtain user input may be a user's click operation on the input device; the operation track corresponding to the operation is the preset track of the electronic device corresponding to the user's click operation on the input device .
S102,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线;所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面;S102. Determine the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; the first interface is presented by an output device of the electronic device when the electronic device obtains the operation information interface;
具体地,在所述电子设备确定所述用户输入的操作对应的操作轨迹后,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线。Specifically, after the electronic device determines the operation trajectory corresponding to the operation input by the user, according to the operation trajectory, a common boundary line of at least two sub-interfaces of the first interface is determined.
所述第一界面的至少两个子界面的公共边界线与所述操作轨迹至少具有一个交点;或者,The common boundary line of at least two sub-interfaces of the first interface has at least one intersection point with the operation track; or,
所述第一界面的至少两个子界面的公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,The common boundary line of at least two sub-interfaces of the first interface is parallel to the operation track and the distance is less than a preset threshold; or,
所述第一界面的至少两个子界面的公共边界线与所述操作轨迹上第一点的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。The distance between the common boundary line of 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 nearest point.
所述第一界面为所述电子设备获取到所述操作信息时,所述电子设备的输出设备所呈现的界面。所述第一界面可以为所述电子设备的输出设备呈现的一特定应用程序的应用界面,也可以为所述电子设备的输出设备呈现的显示多个应用程序图标的应用界面。The first interface is an interface presented by an output device of the electronic device when the electronic device obtains the operation information. The first interface may be an application interface of a specific application program presented by the output device of the electronic device, or may be an application interface displayed by the output device of the electronic device displaying a plurality of application program icons.
S103,根据所述公共边界线,获取所述至少两个子界面中的第一子界面;所述第一子界面显示的内容为所述第一界面显示的内容的一部分;S103. Acquire a first sub-interface of the at least two sub-interfaces according to the common boundary line; the content displayed on the first sub-interface is a part of the content displayed on the first interface;
在所述电子设备根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线后,获取以所述公共边界线为界线的至少两个子界面,确定其中任一子界面为所述第一子界面。After the electronic device determines the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, at least two sub-interfaces with the common boundary line as the boundary line are obtained, and any one of the sub-interfaces is determined to be the The first sub-interface.
可选地,在所述电子设备根据所述操作轨迹,确定第一界面的两个子界面的公共边界线后,获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, after the electronic device determines the common boundary line of the two sub-interfaces of the first interface according to the operation track, acquire the two sub-interfaces with the common boundary line as the boundary line, and determine any one of them as the The first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
所述第一子界面显示的内容为所述第一界面显示的内容的一部分。The content displayed on the first sub-interface is a part of the content displayed on the first interface.
S104,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面;S104. Adjust the 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 presentation area of the first sub-interface on the output device to generate a second interface.
可选地,所述调整第一子界面在所述输出设备的呈现区域具体为,将所述第一子界面的呈现区域与第二子界面的呈现区域互换;所述至少两个初始子界面仅包括所述第一子界面和所述第二子界面。Optionally, the adjusting the presentation area of the first sub-interface on the output device specifically includes exchanging the presentation area of the first sub-interface with the presentation area of the second sub-interface; the at least two initial sub-interfaces The interface only includes the first sub-interface and the second sub-interface.
可选地,所述调整第一子界面在所述输出设备的呈现区域具体为,调整所述第一子界面的呈现区域为一未保留的所述初始子界面在所述第一界面中的呈现区域;所述未保留的初始子界面为所述至少两个子界面中除所述第一子界面之外的至少一个初始子界面。Optionally, the adjusting the presentation area of the first sub-interface on the output device specifically includes adjusting the presentation area of the first sub-interface to an unreserved area of the initial sub-interface in the first interface Presentation area; the unreserved initial sub-interface is at least one initial sub-interface except the first sub-interface among the at least two sub-interfaces.
S105,呈现所述第二界面。S105. Present the second interface.
在所述电子设备调整所述第一子界面在所述输出设备的显示区域,生成第二界面后,所述电子设备呈现第二界面。所述第二界面与所述第一界面至少具有相同的显示内容。After the electronic device adjusts the first sub-interface in the display area of the output device to generate the second interface, the electronic device presents the second interface. The second interface has at least the same display content as the first interface.
在本发明提供的实施例中,电子设备根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线,获取所述至少两个子界面中的第一子界面,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面,解决了用户使用大屏电子设备时单手操作不方便的问题,提高了电子设备与用户的交互能力。In the embodiment provided by the present invention, the electronic device determines the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, acquires the first sub-interface of the at least two sub-interfaces, and adjusts the first sub-interface. The display area of the sub-interface on the output device generates the second interface, which solves the problem of inconvenient one-handed operation when the user uses the large-screen electronic device, and improves the interaction ability between the electronic device and the user.
在本发明的一个实施例中,所述根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, according to the operation track, determining the common boundary line of the at least two sub-interfaces of the first interface is specifically: forming at the start point of the operation track and the end point of the operation track When the angle between the straight line and the lateral direction of the output device is less than or equal to the first threshold, determine a common boundary line parallel to the lateral direction of the output device; the common boundary line intersects the operation track; or the The common boundary line is parallel to the operation trajectory and the distance is less than a preset 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 trajectory The closest point to the common boundary.
具体地,电子设备识别用户输入的操作,确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述电子设备可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角小于或等于第一阈值时,可确定一条与所述输出设备横向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5°5°])。Specifically, the electronic device identifies an operation input by the user, and determines an operation track corresponding to the operation. For example, the electronic device acquires operations input by the user through the 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 the user at the starting point of the touch screen sliding track and the ending point of the sliding track and the horizontal direction of the touch screen. When the angle between the straight line formed by the starting point of the touch screen sliding track and the ending point of the sliding track and the lateral direction of the touch screen is less than or equal to the first threshold, a common boundary line parallel to the lateral direction of the output device may be determined. The first threshold may be a specific angle value (for example, 5°), or may be a specific angle range (for example, [-5°5°]).
可选地,如图2(a)所示,所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, as shown in FIG. 2( a ), the common boundary line intersects the sliding track of the touch screen. The common boundary line has at least one intersection point with the sliding track of the touch screen. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the sliding track of the touch screen.
可选地,如图3(a)所示,所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的上方,也可在所述触摸屏滑动轨迹的下方。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, as shown in FIG. 3( a ), the common boundary line is parallel to the sliding track of the touch screen and the distance is smaller than a preset 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 may be below the touch screen sliding track. The preset threshold can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
可选地,如图4(a)所示,所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。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 smaller than a preset threshold; The closest point on the common boundary. The common boundary line is neither parallel nor intersected with the touch screen sliding track. The distance between the common boundary line and the point on the sliding track of the touch screen with the shortest distance to the common boundary line is less than a preset threshold. The preset threshold can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
具体地,为避免所述电子设备将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的左边缘滑动到右边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the electronic device from viewing the user's sliding misoperation as a touch screen sliding operation for adjusting the current interface, the electronic device can limit when the user slides from the left edge to the right edge of the touch screen, or the user's sliding distance on the touch screen When the distance 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 display area of the first interface.
在本发明实施例中,所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In this embodiment of the present invention, the acquiring the first subinterface of the at least two subinterfaces according to the common boundary line is specifically: acquiring two subinterfaces with the common boundary line as the boundary line, and determining any is the first sub-interface, and the other is the 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 of the embodiment of the present invention, when the common boundary line coincides with the sliding track of the touch screen, the electronic device can obtain two sub-interfaces arranged up and down with the sliding touch track as the boundary line . The electronic device determines that any one of them is the first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface.
可选地,如图3(a)所示,当所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述电子设备获取以所述公共边界线为界线的上下排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 3( a ), when the common boundary line is parallel to the sliding track of the touch screen and the distance is less than a preset threshold, the electronic device acquires the upper and lower values with the common boundary line as the boundary line. Two sub-interfaces are arranged, and one of them is determined as the first sub-interface, and the other is 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 preset threshold, the electronic device obtains the common boundary line as Two sub-interfaces arranged up and down the boundary line, and one of them is determined as the first sub-interface, and the other 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, according to the operation track, determining the common boundary line of the at least two sub-interfaces of the first interface is specifically: forming at the start point of the operation track and the end point of the operation track When the included angle between the straight line and the longitudinal direction of the output device is less than or equal to the first threshold, determine a common boundary line parallel to the longitudinal direction of the output device; the common boundary line intersects the operation track; or the The common boundary line is parallel to the operation trajectory and the distance is less than a preset 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 trajectory The closest point to the common boundary.
具体地,电子设备识别用户输入的操作,确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述电子设备可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角小于或等于第一阈值时,可确定一条与所述输出设备纵向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5°5°])。Specifically, the electronic device identifies an operation input by the user, and determines an operation track corresponding to the operation. For example, the electronic device acquires operations input by the user through the 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 the user at the starting point of the touchscreen sliding track and the ending point of the sliding track and the longitudinal direction of the touchscreen. When the angle between the straight line formed by the starting point of the touch screen sliding track and the ending point of the sliding track and the longitudinal direction of the touch screen is less than or equal to the first threshold, a common boundary line parallel to the longitudinal direction of the output device can be determined. The first threshold may be a specific angle value (for example, 5°), or may be a specific angle range (for example, [-5°5°]).
可选地,如5(a)所示,所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, as shown in 5(a), the common boundary line intersects the sliding track of the touch screen. The common boundary line has at least one intersection point with the sliding track of the touch screen. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the sliding track of the touch screen.
可选地,如6(a)所示,所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的左边,也可在所述触摸屏滑动轨迹的右边。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, as shown in 6(a), the common boundary line is parallel to the sliding track of the touch screen and the distance is smaller than a preset 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 can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
可选地,如图7(a)所示,所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。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 smaller than a preset threshold; The closest point on the common boundary. The common boundary line is neither parallel nor intersected with the touch screen sliding track. The distance between the common boundary line and the point on the sliding track of the touch screen with the shortest distance to the common boundary line is less than a preset threshold. The preset threshold can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
具体地,为避免所述电子设备将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的上边缘滑动到下边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the electronic device from viewing the user's sliding misoperation as a touch screen sliding operation for adjusting the current interface, the electronic device can limit when the user slides from the upper edge of the touch screen to the lower edge, or the user's sliding distance on the touch screen When the distance 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 display area of the first interface.
在本发明实施例中,所述根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In this embodiment of the present invention, the acquiring the first subinterface of the at least two subinterfaces according to the common boundary line is specifically: acquiring two subinterfaces with the common boundary line as the boundary line, and determining any is the first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface.
可选地,如5(a)所示,当所述公共边界线与所述触摸屏滑动轨迹相交时,所述电子设备获取以所述公共边界线为界线的左右排列的两个子界面。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合时,所述电子设备可获取以所述滑动触摸轨迹为界线的左右排列的两个子界面。所述电子设备确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in 5(a), when the common boundary line intersects with the touchscreen sliding track, the electronic device obtains two sub-interfaces arranged left and right with the common boundary line as a boundary. In a possible implementation of the embodiment of the present invention, when the common boundary line coincides with the sliding track of the touch screen, the electronic device can obtain two sub-interfaces arranged left and right with the sliding touch track as the boundary line . The electronic device determines that any one of them is the first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface.
可选地,如图6(a)所示,当所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述电子设备获取以所述公共边界线为界线的左右排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, as shown in FIG. 6( a ), when the common boundary line is parallel to the sliding track of the touch screen and the distance is less than a preset threshold, the electronic device obtains left and right information with the common boundary line as the boundary line. Two sub-interfaces are arranged, and one of them is determined as the first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute 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 preset threshold, the electronic device obtains the common boundary line as Two sub-interfaces arranged left and right of the boundary line, and one of them is determined as the first sub-interface, and the other 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, according to the operation track, determining the common boundary line of the at least two sub-interfaces of the first interface is specifically: forming at the start point of the operation track and the end point of the operation track When the angle between the straight line and the horizontal direction of the output device is greater than the first threshold, and the angle between the straight line and the longitudinal direction of the output device is greater than the first threshold, it is determined that the first point on the operation track and the output The second point on the boundary of the presentation area of the device, the first line segment and the second line segment 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 segment The endpoints of the diagonals of the rectangle bounded by the segment and the second line segment are the first point and the fourth point; the fourth point is the farthest point from the first point within the presentation area of the output device point;
具体地,电子设备识别用户输入的操作,确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述电子设备在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,所述电子设备确定所述操作轨迹上的第一点的坐标位置,并根据所述第一点的坐标位置确定所述输出设备的呈现区域的边界上第二点和第三点的坐标位置。所述第一点与所述第二点、第三点分别形成的第一线段和第二线段,所述第一线段和第二线段为所述至少两个子界面的公共边界线。所述第一线段和第二线段垂直。所述电子设备根据所述第一点的坐标位置确定所述输出设备的呈现区域内的第四点,所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点。以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点。Specifically, the electronic device identifies an operation input by the user, and determines an operation track corresponding to the operation. For example, the electronic device acquires operations input by the user through the touch screen. The included angle between the straight line formed by the electronic device at the starting point of the operation track and the end point of the operation track and the lateral direction of the output device is greater than a first threshold, and the included angle with the longitudinal direction of the output device is When the angle is greater than the first threshold, the electronic device determines the coordinate position of the first point on the operation track, and determines the second point and the second point on the 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 formed by the first point, the second point, and the third point respectively, and the first line segment and the second line segment are common boundary lines of the at least two sub-interfaces. The first line segment is perpendicular to the second line segment. The electronic device determines a fourth point in the presentation area of the output device according to the coordinate position of the first point, the fourth point is in the presentation area of the output device and is 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 specifically includes: acquiring the rectangular coverage area in the first interface as the first sub-interface.
具体地,所述电子设备根据所述操作轨迹上的第一点,获取所述第二点、第三点和第四点的坐标位置。以所述第一点和第四点为对角线的端点,以所述第一点与第二点、第三点分别形成的第一线段和第二线段为相邻两边,形成一个矩形子界面,所述第一线段与所述第二线段垂直。所述电子设备获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。Specifically, the electronic device acquires the coordinate positions of the second point, the third point and the fourth point according to the first point on the operation track. Take the first point and the fourth point as the endpoints of the diagonal line, and take the first line segment and the second line segment formed by the first point, the second point, and the third point as adjacent two sides to form a rectangle In the sub-interface, the first line segment is 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, according to the operation track, determining the common boundary line of at least two sub-interfaces of the first interface is specifically: according to the operation track, determining at least two sub-interfaces of the first interface preset by the system according to the common boundary line, obtaining the first sub-interface of the at least two sub-interfaces is specifically: according to the boundary line of the at least two initial sub-interfaces preset by the system, obtaining the at least Either of the two initial subinterfaces.
具体地,所述电子设备也可以通过用户在所述输入设备的点击操作获取用户输入的操作信息。例如,用户可以通过操作“应用界面切换”按钮实现上述从获取第一子界面。所述“应用界面切换按钮”可以是电子设备在第一用户界面提供的点击图标,也可以是电子设备在设置选项中提供的应用界面切换选项。电子设备识别用户在触摸屏的点击操作获取用户输入的触摸信息后,确定系统预设的第一界面的至少两个子界面的边界线;根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:根据所述系统预设的所述至少两个初始子界面的边界线,获取所述至少两个初始子界面中的任一子界面。Specifically, the electronic device may also acquire the operation information input by the user through the user's click operation on the input device. For example, the user can realize the above-mentioned acquisition of the first sub-interface by operating the "application interface switching" button. The "application interface switching button" may be a clickable icon provided by the electronic device on the first user interface, or an application interface switching option provided by the electronic device in the setting options. After the electronic device recognizes the user's click operation on the touch screen to obtain the touch information input by the user, determine the boundary line of at least two sub-interfaces of the first interface preset by the system; according to the common boundary line, obtain the at least two sub-interfaces The first sub-interface is specifically: acquiring any sub-interface in the at least two initial sub-interfaces according to the boundary line of the at least two initial sub-interfaces preset by the system.
在本发明的上述实施例中,所述调整所述第一子界面在所述输出设备上的呈现区域具体为:In the above embodiments of the present invention, the adjusting the presentation area of the first sub-interface on the output device specifically includes:
调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。Adjusting the presentation area of the first sub-interface to the presentation area of an unreserved sub-interface in the first interface; the unreserved sub-interface is the at least two sub-interfaces of the first interface except the first At least one sub-interface other than one sub-interface.
具体地,所述电子设备获取所述至少两个子界面中的第一子界面后,保留所述第一子界面的呈现区域的显示内容,不保留所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面的呈现区域的显示内容。所述电子设备将所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。Specifically, after the electronic device obtains the first sub-interface of the at least two sub-interfaces, it retains the display content of the presentation area of the first sub-interface, and does not retain the display content of the at least two sub-interfaces of the first interface except for all sub-interfaces. The display content of the presentation area of at least one sub-interface other than the first sub-interface. The electronic device adjusts the presentation area of the first sub-interface to the 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 them is the first sub-interface, the electronic device retains the first sub-interface The display content of the presentation area of the first interface does not retain the display content of the presentation area of at least one sub-interface except the first sub-interface among the at least two sub-interfaces arranged up and down in the first interface. The electronic device adjusts the presentation area of the first sub-interface to the presentation area of an unreserved sub-interface in the first interface to generate a second interface. As shown in Figure 2(c) or Figure 3(c) or Figure 4(c), in a possible implementation of the embodiment of the present invention, the first interface only includes two sub-interfaces arranged up and down, namely A first sub-interface and a second sub-interface. After the electronic device determines that one of them is the first sub-interface and the other is the second sub-interface, the display content of the presentation area of the first sub-interface is reserved, and the display content of the presentation area of the second sub-interface is not reserved. The electronic device adjusts the presentation area of the first sub-interface to the 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 left and right with the common boundary line as a boundary, and after determining that any one of them is the first sub-interface, the electronic device retains the first sub-interface The display content of the presentation area of the first interface does not retain the display content of the presentation area of at least one sub-interface except the first sub-interface among the at least two sub-interfaces arranged left and right on the first interface. The electronic device adjusts the presentation area of the first sub-interface to the presentation area of an unreserved sub-interface in the first interface to generate a second interface. As shown in Figure 5(c) or Figure 6(c) or Figure 7(c), in a possible implementation of the embodiment of the present invention, the first interface only includes two sub-interfaces arranged left and right, namely A first sub-interface and a second sub-interface. After the electronic device determines that one of them is the first sub-interface and the other is the second sub-interface, the display content of the presentation area of the first sub-interface is reserved, and the display content of the presentation area of the second sub-interface is not reserved. The electronic device adjusts the presentation area of the first sub-interface to the 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), after the processor determines that the angle between the straight 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 larger than the first a threshold, and the included angle with the longitudinal direction of the output device is greater than the first threshold, after determining the coverage area of the rectangular sub-interface in the first interface as the first sub-interface, retain the first sub-interface The display content of the interface does not retain the display content of at least one sub-interface except the first sub-interface among the at least two sub-interfaces of the first 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 to generate a second interface.
在本发明的上述实施例中,在所述电子设备调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述方法还包括:In the above embodiments of the present invention, after the electronic device adjusts the presentation area of the first sub-interface on the output device, and before generating the second interface, the method further includes:
以预定义的颜色或图片填充所述输出设备除所述第一子界面之外的部分。Filling the part of the output device except the first sub-interface 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 presentation area of the output device other than the first sub-interface, for example, the first sub-interface of the first interface The part corresponding to the output device before the position adjustment of a sub-interface can be filled with a predefined color or picture.
在本发明的上述实施例中,在所述电子设备调整所述第一子界面在所述输出设备上的呈现区域后,生成第二界面前,所述方法还包括:In the above embodiments of the present invention, after the electronic device adjusts the presentation area of the first sub-interface on the output device, and before generating the second interface, the method further includes:
以未保留的子界面的显示内容填充所述输出设备除所述第一子界面之外的部分。The part of the output device except 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 removes the first sub-interface The presentation area outside the interface, for example, the part corresponding to the output device before the position adjustment of the first sub-interface of the first interface, can be filled with the display content of the unreserved sub-interface presentation area, or can be filled with the content of the first sub-interface The display content that is not in the interface is filled, such as weather widgets, calendar widgets, etc.
在本发明的上述实施例中,所述第一界面仅包括第一子界面和第二子界面;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:In the above embodiments of the present invention, the first interface only includes the first sub-interface and the second sub-interface; the adjusting the presentation area of the first sub-interface on the output device is specifically:
互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。Exchanging presentation areas 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 obtains two sub-interfaces arranged up and down with the common boundary line as the boundary line, and determines any of them After one is the first sub-interface and the other is the second 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 obtains two sub-interfaces arranged left and right with the common boundary line as the boundary line, and determines any of them After one sub-interface is the first sub-interface and the other is the second sub-interface, the electronic device swaps the two sub-interfaces arranged left and right in the presentation area of the output device to generate a second interface.
在本发明的上述实施例中,所述第一界面仅包括第一子界面和第二子界面;所述电子设备互换所述第一子界面和所述第二子界面在所述输出设备上的呈现区域。所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述调整所述第一子界面在所述输出设备上的呈现区域具体为:In the above embodiment of the present invention, the first interface only includes the first sub-interface and the second sub-interface; the electronic device exchanges the first sub-interface and the second sub-interface in the output device on the rendering area. The area areas of the presentation areas of the first sub-interface and the second sub-interface on the output device are different; the adjustment of the presentation area of the first sub-interface on the output device is specifically:
缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,reducing the presentation area of the first sub-interface, and adjusting the reduced first sub-interface to the 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 this embodiment of the present invention, the electronic device may also partially display the presentation content of the first sub-interface.
在本发明的上述实施例中,在所述电子设备呈现所述第二界面后,所述方法还包括:In the above embodiments 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 user's sliding operation or clicking operation 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 the second operation input by the user.
在本发明的上述实施例中,在所述电子设备呈现所述第二界面后,所述方法还包括:In the above embodiments of the present invention, after the electronic device presents the second interface, the method further includes:
所述电子设备在呈现所述第二界面的预设时间后,恢复所述第一界面。The electronic device resumes the first interface after presenting the second interface for a preset time.
所述电子设备可通过提供设置选项以供用户设置所述第二界面的预设停留时间,也可系统默认所述第二界面的预设停留时间,例如5秒。在所述预设停留时间内,所述电子设备没有获取用户输入的第二操作时,将所述第二界面恢复为第一界面。The electronic device may provide setting options for the user to set the preset dwell time of the second interface, or the system may default the preset dwell time of the second interface, for example, 5 seconds. During the preset dwell time, when the electronic device does not obtain the second operation input by the user, restore the second interface to the first interface.
本发明实施例中,所述电子设备可以是一种手持形式的计算机系统,如智能手机、平板电脑(Tablet Personal Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(WearableDevice)等。如图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 computer (Tablet Personal Computer), a personal digital assistant (PDA for short), a mobile Internet device (Mobile Internet Device, MID) or wearable device (WearableDevice), etc. As shown in FIG. 9, it generally includes at least one processor (eg, CPU), input devices, output devices, and at least one communication bus. Those skilled in the art can understand 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 shown in the illustration, or combine certain components, or Different component arrangements.
下面结合图9对电子设备的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the electronic device in conjunction with FIG. 9 :
通信总线910用于实现处理器、输入设备、输出设备之间的连接通信。The communication bus 910 is used to realize connection and communication among processors, input devices, and output devices.
输入设备用于实现用户与电子设备的交互和/或信息输入到电子设备中。例如,输入单元可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明具体实施方式中,输入设备可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。触控面板,也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将所述电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收所述电信号,并将它转换成触点坐标,再送给处理器。所述触摸控制器还可以接收处理器发来的命令并执行。此外,可以采用电阻式、电容式、红外线(Infrared)以及表面声波等多种类型实现触控面板。在本发明的其他实施方式中,输入设备所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。麦克风形式的输入设备可以收集用户或环境输入的语音并将其转换成电信号形式的、处理器可执行的命令。The input device is used to realize the interaction between the user and the electronic device and/or input information into the electronic device. For example, the input unit can receive numeric or character information input by the user to generate signal input related to user settings or function control. In a specific embodiment of the present invention, the input device may be a touch panel, or other human-computer interaction interface, such as physical input keys, a microphone, etc., or other external information acquisition devices, such as a camera. A touch panel, also known as a touch screen or a touch screen, can collect operation actions that a user touches or approaches on it. For example, the user operates any suitable object or accessory such as a finger or a stylus on the touch panel or a position close to the touch panel, and drives the corresponding connection 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 the user's touch operation, 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 contact coordinates and send it to the processor. The touch controller can also receive and execute commands sent by the processor. In addition, various types of touch panels, such as resistive, capacitive, infrared (Infrared) and surface acoustic wave, can be used to realize the touch panel. In other embodiments of the present invention, the physical input keys used by the input device may include but not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, etc. or more. An input device in the form of a microphone collects speech input from the user or the environment and converts it into electrical signals that the processor can execute.
在本发明的其他一些实施方式中,所述输入设备还可以是各类传感器件,例如霍尔器件,用于侦测电子设备的物理量,例如力、力矩、压力、应力、位置、位移、速度、加速度、角度、角速度、转数、转速以及工作状态发生变化的时间等,转变成电量来进行检测和控制。其他的一些传感器件还可以包括重力感应计、三轴加速计、陀螺仪等。In some other embodiments of the present invention, the input device can also be various types of sensor devices, such as Hall devices, used to detect physical quantities of electronic devices, such as force, torque, pressure, stress, position, displacement, speed , acceleration, angle, angular velocity, number of revolutions, rotational speed, and the time when the working state changes, etc., are converted into electricity for detection and control. Some other sensor devices may also include a gravity sensor, a three-axis accelerometer, a gyroscope, and the like.
输出设备包括但不限于影像输出设备和声音输出设备。影像输出设备用于输出文字、图片和/或视频。所述影像输出设备可包括显示面板,例如采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)、场发射显示器(field emission display,简称FED)等形式来配置的显示面板。或者所述影像输出设备可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(Interferometric Modulation of Light)的显示器。所述影像输出设备可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,输入设备所采用的触控面板亦可同时作为输出设备的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理器以确定触摸事件的类型,随后处理器根据触摸事件的类型在显示面板上提供相应的视觉输出。输入设备与输出设备是作为两个独立的部件来实现电子设备的输入和输出功能,但也可以将触控面板与显示面板集成一体而实现电子设备的输入和输出功能。例如,所述影像输出设备可以显示各种图形化用户接口(Graphical UserInterface,简称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, picture and/or video. The image output device may include a display panel, for example, configured in the form of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode), field emission display (field emission display, FED for short), etc. display panel. Alternatively, the image output device may include a reflective display, such as an electrophoretic display, or a display using Interferometric Modulation of Light. The image output device may include a single display or multiple displays of different sizes. In a specific implementation manner of the present invention, the touch panel used in the input device can also serve as the display panel of the output device at the same time. For example, when the touch panel detects a touch or approach gesture operation on it, it transmits to the processor to determine the type of the touch event, and then the processor provides corresponding visual output on the display panel according to the type of the touch event. The input device and the output device are used 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 can display various graphical user interfaces (Graphical User Interface, GUI for short) as virtual control components, including but not limited to windows, scrolling shafts, icons, and scrapbooks, for users to to operate.
处理器是电子设备的控制中心,利用各种接口和线路连接整个计算机的各个部分,通过运行或执行存储在存储器内的软件程序和/或应用单元,以及调用存储在存储器内的数据,执行站点的各种功能和处理数据,从而对站点进行整体监控。The processor is the control center of electronic equipment. It uses various interfaces and lines to connect various parts of the entire computer. By running or executing software programs and/or application units stored in the memory, and calling data stored in the memory, the execution site Various functions and processing data of the website, so as 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,用于获取用户输入的操作;The input device 930 is configured to obtain an operation input by a user;
具体地,所述输入设备930获取用户在该电子设备触摸屏的输入的操作,接收用户的操作信号。所述输入设备930获取的用户输入的操作,可以是用户在该触摸屏的触摸操作;或者,也可以是用户在触摸屏的悬浮操作。Specifically, the input device 930 obtains the user's input operation on the touch screen of the electronic device, and receives the user's operation signal. The user input operation acquired by the input device 930 may be a user's touch operation on the touch screen; or, it may also be a user's hover operation on the touch screen.
所述输入设备930获取用户输入的操作,可以是用户在该输入设备930上的滑动操作;或者,The operation for the input device 930 to acquire user input may be a user's sliding operation on the input device 930; or,
所述输入设备930获取用户输入的操作,可以是用户在该输入设备930上的点击操作。The operation for the input device 930 to acquire user input may be a user's click operation 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 the operation input by the user acquired by the input device 930; determine a common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory; The common boundary line is used to obtain the first sub-interface of the at least two sub-interfaces; the presentation area of the first sub-interface on the output device 940 is adjusted to generate a second interface; the operation track is the operation The track formed by the action point of the operation corresponding to the information on the output device 940; the first interface is the interface presented by the output device 940 of the electronic device when the electronic device obtains the operation information; The content displayed on the first sub-interface is part of the content displayed on the first interface.
在所述输入设备930获取用户输入的操作为用户的滑动操作时,所述处理器920确定所述操作对应的操作轨迹为所述用户在所述输入设备930上滑动操作对应的触摸轨迹;所述触摸轨迹为所述滑动操作在所述输出设备940上的作用点形成的轨迹;或者,在所述输入设备930获取用户输入的操作为用户的点击操作时,所述处理器920确定所述操作对应的操作轨迹为所述用户在所述输入设备930上点击操作对应的所述电子设备预设的轨迹。When the operation obtained by the input device 930 from the user is a user's sliding operation, the processor 920 determines that the operation track corresponding to the operation is the touch track corresponding to the user's sliding operation on the input device 930; The touch track is the track formed by the action point of the sliding operation on the output device 940; or, when the operation of the input device 930 to obtain the user input is a user's click operation, the processor 920 determines the The operation track corresponding to the operation is the preset track of the electronic device corresponding to the user's click operation on the input device 930 .
在所述处理器920确定所述用户输入的操作对应的操作轨迹后,根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线。所述第一界面的至少两个子界面的公共边界线与所述操作轨迹至少具有一个交点;或者,所述第一界面的至少两个子界面的公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,所述第一界面的至少两个子界面的公共边界线与所述操作轨迹上第一点的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述第一界面为所述处理器920获取到所述操作信息时,所述电子设备的输出设备940所呈现的界面。所述第一界面可以为所述输出设备940呈现的一特定应用程序的应用界面,也可以为所述输出设备940呈现的显示多个应用程序图标的应用界面。After the processor 920 determines the operation track corresponding to the operation input by the user, determine a common boundary line of at least two sub-interfaces of the first interface according to the operation track. The common boundary line of the at least two sub-interfaces of the first interface has at least one intersection point 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 track and the distance is less than one A preset threshold; or, the distance between the common boundary line of 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 on the operation track The closest point to the common boundary. The first interface is an interface presented by the output device 940 of the electronic device when the processor 920 acquires the operation information. The first interface may be an application interface of a specific application program presented by the output device 940 , or may be an application interface presented by the output device 940 displaying multiple application program icons.
在所述处理器920根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线后,所述处理器920获取以所述公共边界线为界线的至少两个子界面,确定其中任一子界面为所述第一子界面。可选地,在所述处理器920根据所述操作轨迹,确定第一界面的两个子界面的公共边界线后,获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。所述第一子界面显示的内容为所述第一界面显示的内容的一部分。After the processor 920 determines the common boundary line of at least two sub-interfaces of the first interface according to the operation track, the processor 920 obtains at least two sub-interfaces with the common boundary line as the boundary line, and determines any of them A sub-interface is the first sub-interface. Optionally, after the processor 920 determines the common boundary line of the two sub-interfaces of the first interface according to the operation trajectory, obtain the two sub-interfaces with the common boundary line as the boundary line, and determine any one of them as the boundary line. The first sub-interface, the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first interface. The content displayed on the first sub-interface is a part of the content displayed on 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 on the output device 940 to generate a second interface. The processor 920 adjusting the presentation area of the first sub-interface on the output device 940 specifically includes exchanging 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 only includes the first sub-interface and the second sub-interface; or, the processor 920 adjusts the presentation area of the first sub-interface on the output device 940, specifically, adjusting the first sub-interface 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 one of the at least two sub-interfaces except the first sub-interface At least one initial subinterface outside.
输出设备940,用于呈现所述第二界面。The output device 940 is configured to present the second interface.
在所述处理器920调整所述第一子界面在所述输出设备940的显示区域,生成第二界面后,所述输出设备940呈现第二界面。所述第二界面与所述第一界面至少具有相同的显示内容。After the processor 920 adjusts the display area of the first sub-interface on the output device 940 to generate a second interface, the output device 940 presents the second interface. The second interface has at least the same display content as the first interface.
在本发明提供的实施例中,处理器920根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线,获取所述至少两个子界面中的第一子界面,调整所述第一子界面在所述输出设备上的呈现区域,生成第二界面。输出设备940呈现所述第二界面。如此,解决了用户使用大屏电子设备时单手操作不方便的问题,提高了电子设备与用户的交互能力。In the embodiment provided by the present invention, the processor 920 determines the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory, obtains the first sub-interface of the at least two sub-interfaces, and adjusts the second sub-interface A second interface is generated in the presentation area of the sub-interface on the output device. The output device 940 presents the second interface. In this way, the problem of inconvenient operation with one hand when the user uses the large-screen electronic device is solved, and the interaction ability between the electronic device and the user is improved.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角小于或等于第一阈值时,所述处理器确定一条与所述输出设备横向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, the processor determining the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory specifically includes: determining the starting point of the operation trajectory and the When the angle between the straight line formed by the end point of the operation track and the lateral direction of the output device is less than or equal to a first threshold, the processor determines a common boundary line parallel to the lateral direction of the output device; 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 preset threshold; or, the distance between the first point and the common boundary line is less than a preset threshold; wherein, The first point is the closest point on the operation track to the common boundary.
具体地,所述输入设备识别用户输入的操作,所述处理器确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述处理器可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的横向方向的夹角小于或等于第一阈值时,所述处理器可确定一条与所述输出设备横向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5°5°])。Specifically, the input device identifies an operation input by the user, and the processor determines an operation track corresponding to the operation. For example, the electronic device acquires operations input by the user through the touch screen. The processor 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 the user at the start point of the touch screen sliding track and the end point of the sliding track and the horizontal direction of the touch screen. When the included angle between the starting point of the touch screen sliding track and the ending point of the sliding track and the horizontal direction of the touch screen is less than or equal to a first threshold, the processor may determine a line parallel to the horizontal direction of the output device. public boundaries. The first threshold may be a specific angle value (for example, 5°), or may be a specific angle range (for example, [-5°5°]).
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, the common boundary line determined by the processor intersects with the sliding track of the touch screen. The common boundary line has at least one intersection point with the sliding track of the touch screen. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the sliding track of the touch screen.
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹在所述输出设备上呈现的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的上方,也可在所述触摸屏滑动轨迹的下方。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the common boundary line determined by the processor is parallel to the sliding track of the touch screen and the distance is smaller than a preset threshold. The relative position of the common boundary line and the touch screen sliding track presented on the output device 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 can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
可选地,所述处理器确定的所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the distance between the first point on the sliding track of the touch screen determined by the processor and the common boundary line is smaller than a preset threshold; The closest point to the border. The common boundary line is neither parallel nor intersected with the touch screen sliding track. The distance between the common boundary line and the point on the sliding track of the touch screen with the shortest distance to the common boundary line is less than a preset threshold. The preset threshold can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
具体地,为避免所述处理器将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的左边缘滑动到右边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the processor from viewing the user's sliding misoperation as a touch screen sliding operation for adjusting the current interface, the electronic device may limit when the user slides from the left edge to the right edge of the touch screen, or the user's sliding distance on the touch screen When the distance 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 display area of the first interface.
在本发明实施例中,所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:所述处理器获取以所述公共边界线为界线的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In this embodiment of the present invention, the processor obtaining the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: the processor obtaining the two sub-interfaces with the common boundary line as the boundary line Interfaces, one of which is determined to be the first sub-interface and the other is 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 intersects with 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 can coincide with the touch screen sliding track, the processor can acquire the Two sub-interfaces arranged up and down. The processor determines that any one of them is the first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述处理器获取以所述公共边界线为界线的上下排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor is parallel to the sliding track of the touch screen and the distance is less than a preset threshold, the processor acquires two upper and lower rows arranged with the common boundary line as the boundary line. sub-interfaces, and determine any one of them as the first sub-interface and the other as the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-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 preset threshold, the processor obtains the upper and lower points with the common boundary line as the boundary line. Two sub-interfaces are arranged, and one of them is determined as the first sub-interface, and the other is 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 the presentation area of the first sub-interface on the output device specifically as follows:
所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。所述第一界面包含所述第一子界面和第二子界面两个子界面,所述第一子界面和所述第二初始字界面互换在所述输出设备上的呈现区域,生成第二界面。The processor swaps presentation areas of the first sub-interface and the second initial character interface on the output device. The first interface includes two sub-interfaces, the first sub-interface and the second sub-interface, the first sub-interface and the second initial character interface exchange presentation areas on the output device to generate a second interface.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的纵向方向的夹角小于或等于第一阈值时,所述处理器确定一条与所述输出设备纵向方向平行的公共边界线;所述公共边界线与所述操作轨迹相交;或者所述公共边界线与所述操作轨迹平行且距离小于一预设阈值;或者,第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。In an embodiment of the present invention, the processor determining the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory specifically includes: determining the starting point of the operation trajectory and the When the angle between the straight line formed by the end point of the operation track and the longitudinal direction of the output device is less than or equal to a first threshold, the processor determines a common boundary line parallel to the longitudinal direction of the output device; 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 preset threshold; or, the distance between the first point and the common boundary line is less than a preset threshold; wherein, The first point is the closest point on the operation track to the common boundary.
具体地,所述输入设备识别用户输入的操作,所述处理器确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述处理器可以依据用户在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角确定所述第一界面的至少两个子界面的公共边界线。在触摸屏滑动轨迹的起始点和滑动轨迹的终止点形成的直线与所述触摸屏的纵向方向的夹角小于或等于第一阈值时,所述处理器可确定一条与所述输出设备纵向方向平行的公共边界线。所述第一阈值可以是具体的角度值(例如5°),也可以是具体的角度范围(例如[-5°5°])。Specifically, the input device identifies an operation input by the user, and the processor determines an operation track corresponding to the operation. For example, the electronic device acquires operations input by the user through the touch screen. The processor 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 the user at the starting point of the touch screen sliding track and the ending point of the sliding track and the longitudinal direction of the touch screen. When the included angle between the starting point of the touch screen sliding track and the ending point of the sliding track and the longitudinal direction of the touch screen is less than or equal to a first threshold, the processor may determine a line parallel to the longitudinal direction of the output device. public boundaries. The first threshold may be a specific angle value (for example, 5°), or may be a specific angle range (for example, [-5°5°]).
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交。所述公共边界线与所述触摸屏滑动轨迹至少具有一个交点。在本发明实施例的一种可能的实现方式中,所述公共边界线可与所述触摸屏滑动轨迹重合。Optionally, the common boundary line determined by the processor intersects with the sliding track of the touch screen. The common boundary line has at least one intersection point with the sliding track of the touch screen. In a possible implementation manner of the embodiment of the present invention, the common boundary line may coincide with the sliding track of the touch screen.
可选地,所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值。所述公共边界线与所述触摸屏滑动轨迹在所述输出设备上呈现的相对位置不做限定,所述公共边界线可在所述触摸屏滑动轨迹的左边,也可在所述触摸屏滑动轨迹的右边。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the common boundary line determined by the processor is parallel to the sliding track of the touch screen and the distance is smaller than a preset threshold. The relative position of the common boundary line and the touch screen sliding track presented on the output device is not limited, and the common boundary line can 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 can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
可选地,所述处理器确定的所述触摸屏滑动轨迹上第一点与所述公共边界线的距离小于一预设阈值;其中,所述第一点为所述操作轨迹上与所述公共边界距离最近的点。所述公共边界线与所述触摸屏滑动轨迹既不平行,也不相交。所述公共边界线,与所述触摸屏滑动轨迹上与该公共边界线距离最短的点的距离小于一预设阈值。所述预设阈值可以是具体的距离值(例如5mm),也可以是具体的距离范围(例如[1mm5mm]),还可以根据所述触摸屏的尺寸按比例确定(例如触摸屏纵向距离的十分之一)。Optionally, the distance between the first point on the sliding track of the touch screen determined by the processor and the common boundary line is smaller than a preset threshold; The closest point to the border. The common boundary line is neither parallel nor intersected with the touch screen sliding track. The distance between the common boundary line and the point on the sliding track of the touch screen with the shortest distance to the common boundary line is less than a preset threshold. The preset threshold can be a specific distance value (such as 5mm), or a specific distance range (such as [1mm5mm]), and can also be determined proportionally according to the size of the touch screen (such as one tenth of the vertical distance of the touch screen one).
具体地,为避免所述处理器将用户的滑动误操作视为调整当前界面的触摸屏滑动操作,所述电子设备可以限定当用户从触摸屏的上边缘滑动到下边缘,或者用户在触摸屏的滑动距离大于等于预设的距离阈值时,所述触摸屏滑动操作才被视为调整第一界面显示区域的触摸屏滑动操作。Specifically, in order to prevent the processor from viewing the user's sliding misoperation as a touch screen sliding operation for adjusting the current interface, the electronic device may limit when the user slides from the upper edge to the lower edge of the touch screen, or the user's sliding distance on the touch screen When the distance 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 display area of the first interface.
在本发明实施例中,所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:所述处理器获取以所述公共边界线为界线的排列的两个子界面,确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。In the embodiment of the present invention, the processor obtaining the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: the processor obtains the array with the common boundary line as a boundary Two sub-interfaces, one of which is determined to be the first sub-interface, and the other is determined to be the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹相交时,所述处理器获取以所述公共边界线为界线的左右排列的两个子界面。在本发明实施例的一种可能的实现方式中,所述处理器确定的所述公共边界线可与所述触摸屏滑动轨迹重合时,所述处理器可获取以所述滑动触摸轨迹为界线的左右排列的两个子界面。所述处理器确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor intersects with the touch screen sliding track, the processor obtains two sub-interfaces arranged left and right 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 can coincide with the touch screen sliding track, the processor can acquire the Two sub-interfaces arranged left and right. The processor determines that any one of them is the first sub-interface, and the other is the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-interface.
可选地,当所述处理器确定的所述公共边界线与所述触摸屏滑动轨迹平行且距离小于一预设阈值时,所述处理器获取以所述公共边界线为界线的左右排列的两个子界面,并确定其中任一为所述第一子界面,另一为第二子界面;所述第一子界面和第二子界面构成所述第一界面。Optionally, when the common boundary line determined by the processor is parallel to the sliding track of the touch screen and the distance is less than a preset threshold, the processor acquires two left and right arrays with the common boundary line as the boundary line. sub-interfaces, and determine any one of them as the first sub-interface and the other as the second sub-interface; the first sub-interface and the second sub-interface constitute the first sub-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 preset threshold, the processor obtains the left and right sides with the common boundary line as the boundary line. Two sub-interfaces are arranged, and one of them is determined as the first sub-interface, and the other is 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 the presentation area of the first sub-interface on the output device specifically as follows:
所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。所述第一界面包含所述第一子界面和第二子界面两个子界面,所述第一子界面和所述第二初始字界面互换在所述输出设备上的呈现区域,生成第二界面。The processor swaps presentation areas of the first sub-interface and the second initial character interface on the output device. The first interface includes two sub-interfaces, the first sub-interface and the second sub-interface, the first sub-interface and the second initial character interface exchange presentation areas on the output device to generate a second interface.
在本发明的一个实施例中,所述处理器根据所述操作轨迹,确定第一界面的至少两个子界面的公共边界线具体为:在所述处理器确定所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,所述处理器确定所述操作轨迹上的第一点与所述输出设备的呈现区域的边界上的第二点,第三点分别形成的第一线段和第二线段为所述公共边界线;所述第一线段和第二线段垂直,且以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点;所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点;In an embodiment of the present invention, the processor determining the common boundary line of at least two sub-interfaces of the first interface according to the operation trajectory specifically includes: determining the starting point of the operation trajectory and the When the included angle between the line formed by the end point of the operation track and the lateral direction of the output device is greater than a first threshold, and the included angle with the longitudinal direction of the output device is greater than the first threshold, the processor determines that the The first point on the operation track and the second point on the boundary of the presentation area of the output device, the first line segment and the second line segment formed by the third point respectively are the common boundary line; the first line segment The endpoints of the diagonal of the rectangle perpendicular to the second line segment and bounded by the first line segment and the second line segment are the first point and the fourth point; the fourth point is the presentation area of the output device , the point farthest from the first point;
具体地,所述输入设备识别用户输入的操作,所述处理器确定所述操作对应的操作轨迹。如,所述电子设备通过触摸屏获取用户输入的操作。所述处理器确定所述操作轨迹在所述操作轨迹的起始点和所述操作轨迹的终止点形成的直线与所述输出设备的横向方向的夹角大于第一阈值,并且与所述输出设备的纵向方向的夹角大于第一阈值时,所述处理器确定所述操作轨迹上的第一点的坐标位置,并根据所述第一点的坐标位置确定所述输出设备的呈现区域的边界上第二点和第三点的坐标位置。所述处理器确定所述第一点与所述第二点、第三点分别形成的第一线段和第二线段,确定所述第一线段和第二线段为所述至少两个子界面的公共边界线,所述第一线段和第二线段垂直。所述处理器根据所述第一点的坐标位置确定所述输出设备的呈现区域内的第四点,所述第四点为所述输出设备的呈现区域内,距离所述第一点最远的点。所述处理器确定以第一线段和第二线段为边界的矩形的对角线的端点为所述第一点和第四点。Specifically, the input device identifies an operation input by the user, and the processor determines an operation track corresponding to the operation. For example, the electronic device acquires operations input by the user through the touch screen. The processor determines that an included angle between a straight line formed by the operation trajectory at the start point of the operation trajectory and an end point of the operation trajectory and the lateral direction of the output device is greater than a first threshold, and is in line with the output device When the included angle in the longitudinal direction of is greater than a first threshold, the processor determines the coordinate position of a first point on the operation track, and determines the boundary of the presentation area of the output device according to the coordinate position of the first point The coordinate positions of the second point and the third point. The processor determines a first line segment and a second line segment respectively formed by the first point, the second point, and the third point, and determines that the first line segment and the second line segment are the at least two sub-interfaces The common boundary line of , the first line segment and the second line segment are perpendicular. The processor determines a fourth point in the presentation area of the output device according to the coordinate position of the first point, the fourth point is in the presentation area of the output device and is farthest from the first point point. The processor determines endpoints 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 viewing the user's sliding misoperation as a touch screen sliding operation for adjusting the current interface, the electronic device may limit when the user slides from the upper edge to the lower edge of the touch screen, or the user's sliding distance on the touch screen When the distance 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 display area of the first interface.
在本发明实施例中,所述处理器根据所述公共边界线,获取所述至少两个子界面中的第一子界面具体为:获取所述第一界面中的所述矩形覆盖区域作为所述第一子界面。In the embodiment of the present invention, the processor obtaining the first sub-interface of the at least two sub-interfaces according to the common boundary line is specifically: obtaining the rectangular coverage area in the first interface as the The first sub-interface.
具体地,所述处理器根据所述操作轨迹上的第一点,获取所述第二点、第三点和第四点的坐标位置。以所述第一点和第四点为对角线端点,以所述第一点与第二点、第三点分别形成的第一线段和第二线段为相邻两边,形成一个矩形子界面,所述第一线段与所述第二线段垂直。所述处理器获取所述第一界面中的所述矩形子界面覆盖区域作为所述第一子界面。Specifically, the processor acquires the coordinate positions of the second point, the third point and the fourth point according to the first point on the operation track. Take the first point and the fourth point as the endpoints of the diagonal line, and take the first line segment and the second line segment formed by the first point, the second point, and the third point as adjacent two sides to form a rectangular sub- interface, the first line segment is perpendicular to the second line segment. The processor acquires the coverage area of the rectangular sub-interface in the first interface as the first sub-interface.
在本发明实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:In the embodiment of the present invention, the processor adjusts the presentation area of the first sub-interface on the output device specifically as follows:
所述处理器调整所述第一子界面的呈现区域为一未保留的子界面在所述第一界面中的呈现区域;所述未保留的子界面为所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面。The processor adjusts the presentation area of the first sub-interface to be the presentation area of an unreserved sub-interface in the first interface; the unreserved sub-interface is the presentation area of at least two sub-interfaces in the first interface At least one sub-interface other than the first sub-interface.
具体地,所述处理器确定所述第一界面中的所述矩形子界面覆盖区域作为所述第一子界面后,保留所述第一子界面的显示内容,不保留所述第一界面至少两个子界面中除所述第一子界面之外的至少一个子界面的显示内容。所述处理器将所述第一子界面的呈现区域调整至一未保留的子界面在所述第一界面中的呈现区域,生成第二界面。Specifically, after the processor determines the coverage area of the rectangular sub-interface 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 for at least The display content of at least one sub-interface except the first sub-interface among the two sub-interfaces. The processor adjusts the 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 the boundary lines of at least two sub-interfaces of the first interface preset by the system according to the operation trajectory; The boundary line of the two initial sub-interfaces is obtained from any sub-interface in the at least two initial sub-interfaces.
在本发明的上述实施例中,所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:所述处理器调整所述第一子界面的呈现区域为一未保留的初始子界面在所述初始界面中的呈现区域;所述未保留的初始子界面为所述至少两个初始子界面中除所述第一子界面之外的至少一个初始子界面。In the above embodiment of the present invention, the processor adjusting the presentation area of the first sub-interface on the output device specifically includes: the processor adjusting the presentation area of the first sub-interface to an unreserved The presentation area of the initial sub-interface in the initial interface; the unreserved initial sub-interface is at least one initial sub-interface except the first sub-interface among the at least two initial sub-interfaces.
在本发明的上述实施例中,所述处理器确定所述第一界面仅包括第一子界面和第二子界面;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:所述处理器互换所述第一子界面和所述第二初始字界面在所述输出设备上的呈现区域。In the above embodiment of the present invention, the processor determines that the first interface only includes the first sub-interface and the second sub-interface; the processor adjusts the presentation of the first sub-interface on the output device Specifically, the area is: the processor exchanges the presentation areas of the first sub-interface and the second initial character interface on the output device.
进一步地,在本发明实施例中,所述第一子界面和所述第二子界面在所述输出设备上的呈现区域的区域面积不相同;所述处理器调整所述第一子界面在所述输出设备上的呈现区域具体为:所述处理器缩小所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域;或者,所述处理器放大所述第一子界面的呈现区域,并将所述缩小后的第一子界面调整至所述第二子界面的呈现区域。Further, in the embodiment of the present invention, the area areas of the presentation areas of the first sub-interface and the second sub-interface on the output device are different; 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 The processor enlarges the presentation area of the first sub-interface, and adjusts the reduced first sub-interface to the 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 and before generating the second interface, the processor is further configured to: Or fill the part of the output device except the first sub-interface with pictures; or fill the part of the output device except the first sub-interface with display content of unreserved sub-interfaces.
在本发明的上述实施例中,所述输入设备还用于,在所述输出设备呈现所述第二界面后,获取用户输入的第二操作;所述输出设备还用于,根据所述用户输入的第二操作,恢复所述第一界面。In the above embodiments of the present invention, the input device is further used to acquire the second operation input by the user after the output device presents the second interface; the output device is also used 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 user's sliding operation or clicking operation 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 obtains the second operation input by the user, the output device restores the first interface.
在本发明的上述实施例中,所述输出设备还用于,在所述输出设备呈现所述第二界面后,在呈现所述第二界面的预设时间后,恢复所述第一界面。In the above embodiments of the present invention, the output device is further configured to, after the output device presents the second interface, restore the first interface after a preset time for presenting the second interface.
所述输出设备可通过提供设置选项以供用户设置所述第二界面的预设停留时间,所述处理器也可系统默认所述第二界面的预设停留时间,例如5秒。在所述预设停留时间内,所述输入设备没有获取用户输入的第二操作时,所述输出设备将所述第二界面恢复为第一界面。The output device may provide setting options for the user to set the preset dwell time of the second interface, and the processor may also system default the preset dwell time of the second interface, for example, 5 seconds. During the preset dwell time, when the input device does not obtain the second operation input by the user, the output device restores the second interface to the first interface.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明实施例可以用硬件实现,或软件实现,或它们的组合方式来实现。上面的组合也应当包括在触屏装置可读介质的保护范围之内。总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Through the above description of the implementation manners, those skilled in the art can clearly understand that the embodiments of the present invention can be implemented by hardware, software, or a combination thereof. The above combinations should also be included in the protection scope of the touch screen device readable medium. In a word, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (43)
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310673809.6A CN103677569B (en) | 2013-12-10 | 2013-12-10 | Method for processing user interface of electronic equipment and electronic equipment |
| CN201710161990.0A CN107168632B (en) | 2013-12-10 | 2013-12-10 | Processing method of user interface of electronic equipment and electronic equipment |
| PCT/CN2014/092493 WO2015085868A1 (en) | 2013-12-10 | 2014-11-28 | Method for processing user interface of electronic device and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310673809.6A CN103677569B (en) | 2013-12-10 | 2013-12-10 | Method for processing user interface of electronic equipment and electronic equipment |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710161990.0A Division CN107168632B (en) | 2013-12-10 | 2013-12-10 | Processing method of user interface of electronic equipment and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103677569A CN103677569A (en) | 2014-03-26 |
| CN103677569B true CN103677569B (en) | 2017-04-12 |
Family
ID=50315308
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310673809.6A Active CN103677569B (en) | 2013-12-10 | 2013-12-10 | Method for processing user interface of electronic equipment and electronic equipment |
| CN201710161990.0A Active CN107168632B (en) | 2013-12-10 | 2013-12-10 | Processing method of user interface of electronic equipment and electronic equipment |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710161990.0A Active CN107168632B (en) | 2013-12-10 | 2013-12-10 | Processing method of user interface of electronic equipment and electronic equipment |
Country Status (2)
| Country | Link |
|---|---|
| CN (2) | CN103677569B (en) |
| WO (1) | WO2015085868A1 (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103677569B (en) * | 2013-12-10 | 2017-04-12 | 华为终端有限公司 | Method for processing user interface of electronic equipment and electronic equipment |
| CN104969163B (en) * | 2014-06-20 | 2019-03-19 | 华为技术有限公司 | Application interface display method, device 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 |
| CN107850974A (en) * | 2016-05-20 | 2018-03-27 | 华为技术有限公司 | Method and electronic device for identifying false touch operation |
| 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 |
| CN111078114B (en) * | 2019-12-26 | 2024-09-17 | 上海传英信息技术有限公司 | Single-hand control method, control device and terminal equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110037727A1 (en) * | 2008-03-12 | 2011-02-17 | Atlab Inc. | Touch sensor device and pointing coordinate determination method thereof |
| CN103019564A (en) * | 2012-12-14 | 2013-04-03 | 东莞宇龙通信科技有限公司 | Terminal and terminal operation method |
| CN103197852A (en) * | 2012-01-09 | 2013-07-10 | 三星电子株式会社 | Display apparatus and item selecting method using the same |
| CN103279303A (en) * | 2013-05-31 | 2013-09-04 | 东莞宇龙通信科技有限公司 | Event message processing method and device |
Family Cites Families (10)
| 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 |
| CN102314288A (en) * | 2010-07-02 | 2012-01-11 | 英业达股份有限公司 | System and Method for Trajectory Window Segmentation |
| 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 |
| 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 |
| CN103677569B (en) * | 2013-12-10 | 2017-04-12 | 华为终端有限公司 | Method for processing user interface of electronic equipment and electronic equipment |
-
2013
- 2013-12-10 CN CN201310673809.6A patent/CN103677569B/en active Active
- 2013-12-10 CN CN201710161990.0A patent/CN107168632B/en active Active
-
2014
- 2014-11-28 WO PCT/CN2014/092493 patent/WO2015085868A1/en active Application Filing
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110037727A1 (en) * | 2008-03-12 | 2011-02-17 | Atlab Inc. | Touch sensor device and pointing coordinate determination method thereof |
| CN103197852A (en) * | 2012-01-09 | 2013-07-10 | 三星电子株式会社 | Display apparatus and item selecting method using the same |
| CN103019564A (en) * | 2012-12-14 | 2013-04-03 | 东莞宇龙通信科技有限公司 | Terminal and terminal operation method |
| CN103279303A (en) * | 2013-05-31 | 2013-09-04 | 东莞宇龙通信科技有限公司 | Event message processing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103677569A (en) | 2014-03-26 |
| WO2015085868A1 (en) | 2015-06-18 |
| CN107168632A (en) | 2017-09-15 |
| CN107168632B (en) | 2021-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103677569B (en) | Method for processing user interface of electronic equipment and electronic equipment | |
| US11287970B2 (en) | Application display method and terminal | |
| JP5759660B2 (en) | Portable information terminal having touch screen and input method | |
| KR102063952B1 (en) | Multi display apparatus and multi display method | |
| US8854325B2 (en) | Two-factor rotation input on a touchscreen device | |
| JP6054892B2 (en) | Application image display method, electronic apparatus, and computer program for multiple displays | |
| KR101365776B1 (en) | Multi-touch system and driving method thereof | |
| CN104166531B (en) | Electronic device and screen content sharing method | |
| EP2772844A1 (en) | Terminal device and method for quickly starting program | |
| CN104932809B (en) | Apparatus and method for controlling display panel | |
| US20120299846A1 (en) | Electronic apparatus and operation support method | |
| TWI511026B (en) | Mobile device and method for adjusting its window size | |
| CN104969163A (en) | Application interface display method, device and electronic equipment | |
| CN110737374A (en) | Operation method and electronic equipment | |
| WO2016138661A1 (en) | Processing method for user interface of terminal, user interface and terminal | |
| CN111026480A (en) | A content display method and electronic device | |
| CN104166508B (en) | A kind of touch-control implementation method and device | |
| CN108984099A (en) | A kind of man-machine interaction method and terminal | |
| WO2017050274A1 (en) | Character input method and electronic device | |
| CN104020956A (en) | Method and system for holding mobile terminal with one hand to take pictures | |
| TWI686742B (en) | Control method, electronic device and non-transitory computer readable storage medium device | |
| KR102222332B1 (en) | Flexible display apparatus and contorlling method thereof | |
| CN104516668A (en) | Handheld electronic device and control method thereof | |
| CN111026303A (en) | Interface display method and terminal equipment | |
| CN104951218A (en) | Mobile device and method for adjusting window size |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20171027 Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Patentee after: HUAWEI terminal (Dongguan) Co., Ltd. Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No. Patentee before: Huawei Device Co., Ltd. |
|
| TR01 | Transfer of patent right | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee after: Huawei Device Co., Ltd. Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee before: HUAWEI terminal (Dongguan) Co., Ltd. |
|
| CP01 | Change in the name or title of a patent holder |