WO2014206327A1 - 展示窗口的方法及终端 - Google Patents

展示窗口的方法及终端 Download PDF

Info

Publication number
WO2014206327A1
WO2014206327A1 PCT/CN2014/080895 CN2014080895W WO2014206327A1 WO 2014206327 A1 WO2014206327 A1 WO 2014206327A1 CN 2014080895 W CN2014080895 W CN 2014080895W WO 2014206327 A1 WO2014206327 A1 WO 2014206327A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
user
operating
window
target
Prior art date
Application number
PCT/CN2014/080895
Other languages
English (en)
French (fr)
Inventor
柯元旦
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2014206327A1 publication Critical patent/WO2014206327A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Definitions

  • the embodiments of the present invention relate to the field of terminals, and in particular, to a method and a terminal for displaying a window.
  • the screen size of the terminal is from about 3, 4 inches to about 5 inches, and the screen size is getting larger and larger. Since the touch screen can provide a user with a convenient operating experience, the screen of the terminal mostly uses a touch screen.
  • the terminal will display the content to be displayed to the user through the window, and the user can perform corresponding operations by touching the options in the window. Therefore, the display form of the window directly affects the display of the content.
  • the display range of the window is set according to the screen size of the terminal, and the display range of the window is generally set to the full screen size of the terminal, and the window is displayed in full screen.
  • the embodiment of the present invention provides a method and a terminal for displaying a window, so as to improve the feasibility of the user operating the window.
  • a method of displaying a window comprising:
  • the determining, according to the at least two sensors located in the terminal, the operation mode of the user including:
  • the operation mode of the user operation terminal is determined according to the sensing result of at least two sensors located in the terminal and the preset operating habits.
  • the sensing result includes: sensing a target and not sensing a target, where the operating habit includes a left-hand operation habit and Right handed habits;
  • the operation habit is a left-hand operation habit
  • at least one sensor located in a lower left corner of the terminal among at least two sensors of the terminal is a result of sensing all the sensors that sense the target and are located in the lower right corner of the terminal If the sensing result is that the target is not sensed, it is determined that the operation mode of the user operation terminal is a one-hand operation; if all the sensors located in the lower left corner of the terminal of the at least two sensors of the terminal are not sensing the target or located The sensing result of the at least one sensor in the lower right corner of the terminal is to sense the target, and determining that the operation mode of the user operating terminal is a two-hand operation;
  • the operation habit is a right-handed operation habit
  • at least one sensor located in a lower right corner of the terminal among at least two sensors of the terminal is a result of sensing all the sensors that sense the target and are located at the lower left corner of the terminal If the sensing result is that the target is not sensed, it is determined that the operation mode of the user operating terminal is a one-hand operation; if all the sensors located in the lower right corner of the terminal of the at least two sensors of the terminal are not sensing the target or located The sensing result of the at least one sensor in the lower left corner of the terminal is that the target is sensed, and then the operation mode of the user operating terminal is determined to be a two-hand operation.
  • the determining, by the window, the window display range corresponding to the operation mode of the user operation terminal includes:
  • the operation mode of the user operation terminal is a one-hand operation, determining that the window display range corresponding to the one-hand operation is a preset range, the preset range is smaller than a full screen range of the terminal; If it is determined that the operation mode of the user operation terminal is a two-hand operation, it is determined that a window display range corresponding to the two-hand operation is a full screen range of the terminal.
  • a fourth possible implementation manner of the first aspect before the determining that the window display range corresponding to the one-hand operation is a preset range, :
  • the test track touched by the user on the screen of the terminal is obtained in advance, and the preset range is set according to the acquired test track.
  • a fifth possible implementation manner of the first aspect before the determining that the window display range corresponding to the one-hand operation is a preset range, :
  • the method Before displaying the window of the terminal according to the determined window display range, the method further includes:
  • a terminal is further provided, where the terminal includes:
  • a first determining module configured to determine, according to at least two sensors located in the terminal, an operation mode of the user operation terminal
  • a second determining module configured to determine a window display range corresponding to a mode of operation of the user operation terminal determined by the first determining module
  • a display module configured to display a window of the terminal according to a window display range determined by the second determining module
  • At least one sensor is located in a lower left corner of the terminal, and at least one sensor is located in a lower right corner of the terminal.
  • the first determining module is configured to determine an operation mode of the user operation terminal according to the sensing result of the at least two sensors located in the terminal and the preset operating habits.
  • the sensing result includes sensing a target and not sensing a target, and the operating habits include a left-hand operating habit and a right-hand operating habit;
  • the first determining module includes:
  • a first determining unit configured to: when the operating habit is a left-hand operating habit, the sensing result of the at least one sensor located in a lower left corner of the terminal in at least two sensors located in the terminal is a sensing target and located at the terminal When the sensing result of all the sensors in the lower right corner is that the target is not sensed, it is determined that the operation mode of the user operating terminal is one-handed operation;
  • a second determining unit configured to: when the operating habit is a left-hand operation habit, the sensing result of all the sensors in the lower left corner of the terminal in at least two sensors located in the terminal is that the target is not sensed or located When the sensing result of the at least one sensor in the lower right corner of the terminal is that the target is sensed, determining the operation mode of the user operating terminal is a two-hand operation;
  • a third determining unit configured to: when the operating habit is a right-handed operating habit, the sensing result of the at least one sensor located in a lower right corner of the terminal in at least two sensors located in the terminal is a sensing target and located at the terminal When the sensing result of all the sensors in the lower left corner is that the target is not sensed, it is determined that the operation mode of the user operating terminal is one-hand operation;
  • a fourth determining unit configured to: when the operating habit is a right-handed operating habit, the sensing result of all the sensors located in the lower right corner of the terminal in at least two sensors located in the terminal is that the target is not sensed or located at the terminal The sensing result of at least one sensor in the lower left corner is that when the target is sensed, it is determined that the operation mode of the user operating terminal is a two-hand operation.
  • the second determining module includes:
  • a first determining unit configured to determine, when the operation mode of the user operation terminal is a one-hand operation, that the window display range corresponding to the one-hand operation is a preset range, where the preset range is smaller than the terminal Full screen range;
  • a second determining unit configured to determine, when the operation mode of the user operation terminal is a two-hand operation, that the window display range corresponding to the two-hand operation is a full screen range of the terminal.
  • the terminal further includes:
  • an obtaining module configured to pre-acquire a test track touched by the user on the screen of the terminal; and a setting module, configured to set the preset range according to the test track acquired by the acquiring module.
  • a third determining module configured to determine whether the terminal is in a landscape mode, and after determining that the terminal is not in the landscape mode, executing the first determining unit of the second determining module.
  • the terminal further includes:
  • a display module configured to display, on a display interface of the terminal, an option of adjusting a window display range, and after receiving an option displayed by the display module selected by the user to adjust the window display range, performing the Display module.
  • the window of the terminal is displayed according to the determined window display range, and the manner of window display is expanded, and
  • the corresponding window display range can be set small, so that the user can conveniently operate the window displayed by the terminal when the terminal is operated by one hand, thereby improving the feasibility of the user operating window.
  • FIG. 1 is a flowchart of a method for displaying a window according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for displaying a window according to Embodiment 2 of the present invention
  • 3(a) to 3(d) are schematic diagrams of a user operation terminal when a left-hand operation habit is provided according to the second embodiment of the present invention.
  • 4(a) to 4(d) are diagrams showing a scenario of a user operating terminal when a right-handed operation habit is provided according to the second embodiment of the present invention.
  • 5(a) and 5(b) are schematic diagrams showing a preset range provided by the second embodiment of the present invention
  • 6(a) to 6(d) are schematic diagrams showing an adjustment window display range provided by Embodiment 2 of the present invention
  • FIG. 7 is a schematic structural diagram of a first terminal according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic structural diagram of a second terminal according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic structural diagram of a third terminal according to Embodiment 3 of the present invention.
  • FIG. 10 is a schematic structural diagram of a fourth terminal according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic structural diagram of a fifth terminal according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention.
  • An embodiment of the present invention provides a method for displaying a window.
  • the method process includes: 101: Determine, according to at least two sensors located in the terminal, an operation manner of the user operation terminal. Wherein at least one sensor is located in a lower left corner of the terminal, and at least one sensor is located in a lower right corner of the terminal.
  • the operation mode of the user operation terminal is determined according to at least two sensors located in the terminal, including but not limited to:
  • the operation mode of the user operation terminal is determined according to the sensing result of at least two sensors located in the terminal and the preset operating habits.
  • the sensing results include sensing the target and not sensing the target, and operating habits include left-handed operating habits and right-handed operating habits;
  • Determining the operation mode of the user operation terminal according to the sensing result of at least two sensors located in the terminal and the preset operation habits including but not limited to:
  • the operating habit is a left-handed operation habit
  • the sensing result of all the sensors located in the lower right corner of the terminal is not sensed.
  • the target determines that the operation mode of the user operation terminal is one-hand operation; if at least one of the at least two sensors located in the terminal is in the lower left corner of the terminal, the sensing result is that the target is not sensed or at least one of the lower right corner of the terminal is located.
  • the sensing result of the sensors is that the target is sensed, and then the operation mode of the user operating terminal is determined to be a two-hand operation;
  • the operating habit is a right-handed operation habit
  • the sensing result is that the target operation is determined, and it is determined that the operation mode of the user operation terminal is two-hand operation.
  • the window display range corresponding to the operation mode of the user operation terminal is determined, including but not limited to:
  • the window display range corresponding to the one-hand operation is a preset range, and the preset range is smaller than the full screen range of the terminal;
  • the window display range corresponding to the two-hand operation is the full screen range of the terminal.
  • the method before determining that the window display range corresponding to the one-hand operation is the preset range, the method further includes:
  • the test track touched by the user on the screen of the terminal is obtained in advance, and the preset range is set according to the obtained test track.
  • the method before determining that the window display range corresponding to the one-hand operation is the preset range, the method further includes:
  • the method before displaying the window of the terminal according to the determined window display range, the method further includes: displaying an option of adjusting the window display range on the display interface of the terminal, and performing the determining according to the option of the user selecting the adjustment window display range
  • the window shows the steps that show the window of the terminal.
  • the method provided by the embodiment of the present invention determines the operation mode of the user operation terminal by using the sensor located in the terminal, and determines a window corresponding to the operation mode of the user operation terminal.
  • the window of the terminal is displayed according to the determined window display range, and the manner of window display is expanded, and when the user operates the terminal with one hand, the corresponding window display range can be set smaller, so that the user operates in one hand.
  • the terminal can also conveniently operate the window displayed by the terminal, thereby improving the feasibility of the user operating window.
  • an embodiment of the present invention provides a method for displaying a window.
  • the method for displaying the window is applied to a terminal including a touch display screen or a touch panel, and the terminal may include a smart phone, a tablet computer, an e-book reader, and an MP3 player (Moving Picture Experts Group Audio Layer) III. Motion Picture Expert compresses standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, etc.
  • the types of control boards can be capacitive, inductive, piezoelectric, and photosensitive.
  • the operation mode can be divided into one-hand operation and two-hand operation.
  • the method provided by the embodiment of the present invention can provide different manners for displaying windows according to different operation modes of the user operating the terminal.
  • the manner in which the user operates the terminal can be automatically determined based on at least two sensors located in the terminal. Wherein at least one sensor is located in a lower left corner of the terminal, and at least one sensor is located in a lower right corner of the terminal.
  • the sensor may be a proximity sensor, an infrared sensor or other sensors, which is not specifically limited in the embodiment of the present invention, and the selected sensor can sense a nearby target.
  • the method includes, but is not limited to: determining the operation mode of the user operation terminal according to the sensing result of the at least two sensors located in the terminal and the preset operation habit.
  • the sensor's sensing result includes sensing the target or not sensing the target.
  • at least one of the at least two sensors set in advance is located in the lower left corner of the terminal, and at least one sensor is located in the lower right corner of the terminal.
  • the lower left corner and the lower right corner of the terminal are respectively a lower left corner and a lower right corner when the terminal is in the vertical screen mode.
  • the sensor at the terminal can be adjusted.
  • the location of the sensor or the number of sensors does not limit the specific location and number of sensors located in the terminal.
  • the user's operating habits can be divided into left-hand operating habits and right-hand operating habits.
  • the left-hand operating habits mean that the user is usually accustomed to using the left hand when operating the terminal with one hand, and the right-hand operating habit refers to the user. It is customary to use the right hand for operation when operating the terminal with one hand.
  • the user's operating habits may be preset by the user according to their own usage habits, and the different operating habits will affect the way the user operates the terminal.
  • the sensing result of at least one sensor located in the lower left corner of the terminal of at least two sensors of the terminal is the sensing result of all the sensors that sense the target and located in the lower right corner of the terminal, If the target is not sensed, it is determined that the operation mode of the user operation terminal is one-hand operation; if all the sensors located in the lower left corner of the terminal of the at least two sensors of the terminal are not sensing the target or located in the lower right corner of the terminal If the sensing result of the at least one sensor is to sense the target, it is determined that the operation mode of the user operating terminal is a two-hand operation.
  • Case 1 When the user operates the terminal with the left hand and the left hand, the left hand is usually closer to the lower left corner of the terminal, and therefore, the sensor located at the lower left corner of the terminal.
  • the sensing result is that the sensing result of the sensor that senses the target and located in the lower right corner of the terminal is that the target is not sensed, and it can be determined that the operation mode of the user operating terminal is one-handed operation.
  • Case 2 When the user does not use the left-hand one-hand operation terminal, for example, the user hands operate the terminal, or the user places the terminal on the desktop and the like, at this time, the sensing result of all the sensors located in the lower left corner of the terminal is The sensing result of the at least one sensor that does not sense the target or located in the lower right corner of the terminal is that the target is sensed, and it can be determined that the operation mode of the user operating terminal is a two-hand operation. In some scenarios, when the user operates the terminal, the right hand is closer to the lower right corner of the terminal, and the sensing result of at least one sensor located in the lower right corner of the terminal is that the sensing result of all the sensors located in the lower left corner of the terminal is not sensed.
  • Goal due to the user’s operation at this time It is customary for left-handed operation habits, so it can be considered that the user does not operate the terminal with one hand by the right hand, thereby determining the operation mode of the user operation terminal as two-hand operation.
  • the user's left and right hands are in the lower left and lower right corners of the terminal, respectively, and at least one sensor located in the lower left corner of the terminal and at least one sensor located in the lower right corner of the terminal sense the target.
  • a sensor is disposed in the lower left corner and the lower right corner of the terminal respectively, wherein the sensor is usually located inside the terminal and is indicated by a broken line; the sensing result of the black sensor is the sensing target, and the sensing result of the non-black sensor In order not to sense the target.
  • the scenario is shown in Figure 3 (a)
  • the user's left hand is close to the lower left corner of the terminal, and the sensor at the lower left corner of the terminal senses that the sensor senses the target and the sensor in the lower right corner of the terminal is not
  • the target is sensed, and the operation mode of the user operation terminal is determined to be one-handed operation.
  • the operation mode of the user operation terminal may not be accurately determined.
  • the user operation terminal shown in FIG. 3 (d) The scenario, the operation mode of the user operation terminal determined by the above rules is two-hand operation, and the error is determined.
  • the user can actively adjust the posture of the operation terminal to enable the terminal to accurately determine the operation mode of the user operation terminal.
  • it is also possible to more accurately determine the user operation by setting the sensor in the terminal more accurately. How the terminal operates.
  • the sensing result of at least one sensor located in the lower right corner of the terminal among the at least two sensors of the terminal is the sensing result of all the sensors that sense the target and located in the lower left corner of the terminal, If the target is not sensed, it is determined that the operation mode of the user operation terminal is one-hand operation; if all the sensors located in the lower right corner of the terminal of the at least two sensors of the terminal are not sensing the target or located at the lower left corner of the terminal If the sensing result of the at least one sensor is to sense the target, it is determined that the operation mode of the user operating terminal is a two-hand operation.
  • Case 1 When the user operates the terminal with one hand with one hand, the right hand is usually closer to the lower right corner of the terminal. Therefore, at least one sensor located in the lower right corner of the terminal senses all the sensors that sense the target and are located in the lower left corner of the terminal. The result of the sensing is that the target is not sensed, and it can be determined that the operation mode of the user operating terminal is one-handed operation.
  • Case 2 When the user does not use the right-hand one-hand operation terminal, for example, the user hands operate the terminal, or the user places the terminal on the desktop and the like, at this time, the sensing result of all the sensors located in the lower right corner of the terminal is The sensing result of the at least one sensor that does not sense the target or located in the lower left corner of the terminal is to sense the target, and the operation mode of the user operating terminal is determined to be a two-hand operation. In some scenarios, when the user operates the terminal, the left hand is closer to the lower left corner of the terminal, and the sensing result of at least one sensor located in the lower left corner of the terminal is that the sensing result of the sensor in the lower right corner of the terminal is not sensed.
  • the target because the user's operating habits at this time is a right-handed operation habit, it can be considered that the user does not operate the terminal with one hand by one hand, thereby determining the operation mode of the user operating terminal as two-hand operation.
  • a sensor is disposed in the lower left corner and the lower right corner of the terminal respectively, wherein the sensor is usually located inside the terminal and is indicated by a broken line; the sensing result of the black sensor is the sensing target, and the sensing result of the non-black sensor In order not to sense the target.
  • the right hand of the user is close to the lower right corner of the terminal, and the sensor of the sensor located at the lower right corner of the terminal is a sensor that senses the target and is located at the lower left corner of the terminal.
  • the target is not sensed, and the operation mode of the user operation terminal is determined to be one-handed operation.
  • the above-mentioned determination rule is set according to the ergonomic principle, and can be adjusted as needed in an actual application.
  • the operation of the user operation terminal is determined according to the sensing result of at least two sensors located in the terminal and the preset operation habits.
  • the method of the method is not specifically limited.
  • the operation mode of the user operation terminal may be determined by other methods, for example, at the terminal.
  • the screen displays a fixed button, including one-hand operation and two-hand operation. The user can select the option of the fixed button according to the operation mode of the current operation terminal, and the terminal determines the operation mode of the user operation terminal according to the option selected by the user.
  • the manner of determining the operation mode of the user operating terminal is not specifically limited.
  • the terminal After determining the mode of operation of the user operating terminal, it is necessary to determine the window display range corresponding to the manner in which the user operates the terminal.
  • the subsequent step 202 When the operation mode of the user operation terminal is one-hand operation, the subsequent step 202 is performed; when the operation mode of the user operation terminal is two-hand operation, the subsequent step 203 is performed.
  • the terminal may continue to determine the operation mode of the user terminal according to the at least two sensors located in the terminal during use. If the determined operation mode is the same as the last determined operation mode, the subsequent step 202 or Step 203: Only when the determined operation mode is different from the last determined operation mode, the subsequent step 202 or step 203 is selected according to the determined operation mode.
  • the window display range corresponding to the one-hand operation is a preset range, and the preset range is smaller than the full screen range of the terminal.
  • the window display range corresponding to the one-hand operation can be preset to a preset range, and the preset range is smaller than the full screen range of the terminal.
  • the method may further include: pre-acquiring a test track touched by the user on the screen of the terminal, and setting a preset range according to the obtained test track. For details, see the following methods (1) and (2):
  • the user can obtain a test trajectory from top to bottom or bottom to top touched by the user on the screen of the terminal; determining that the user can touch in the terminal according to the obtained test trajectory The highest and lowest points and the farthest point on the right side; since the left side is close to the user's left hand, the user can touch the nearest part of the left side of the screen of the terminal; according to the highest point, the lowest point, the right side that the user can touch
  • a closed figure is constructed at the farthest and leftmost sides, for example, a rectangle, a circle, an ellipse, etc., and the closed figure constructed is a preset range, and the size and shape of the closed figure are the size and shape of the preset range. , as shown in Figure 5 (a).
  • the method of setting the preset range is similar to the way that the user operates the terminal with one hand, and will not be described here.
  • the test trajectory of the closed graphic touched by the user on the screen of the terminal may be acquired, and the corresponding closed graphic is constructed according to the test trajectory of the obtained closed graphic, and the closed graphic may be a rectangle, Circular, elliptical, etc.
  • the closed shape of the structure is the preset range
  • the size and shape of the closed figure is the size and shape of the preset range, as shown in Figure 5 (b).
  • the preset range When setting the preset range, it is not limited to setting when the user uses the left-hand one-hand operation terminal or the right-hand one-hand operation terminal.
  • the preset range can also be set when the user uses the two-hand operation terminal.
  • the user can continue to use the above manner to change the preset range multiple times as needed.
  • there are other ways of setting the preset range For example, one or more fixed ranges can be set in advance, and one of the fixed ranges can be set to the preset range according to the user's selection.
  • the size of the fixed range set in advance is smaller than the full screen range of the screen of the terminal, and the shape of the fixed range set in advance may be arbitrarily set, such as a rectangle, a circle, an ellipse or the like.
  • three fixed ranges are preset: 3.0-inch rectangle, 3.0-inch circle, 4.0-inch rectangle, and then one of the rectangles can be set to the preset range according to the user's choice.
  • the embodiment of the present invention is not specifically limited herein.
  • the window display range corresponding to the one-hand operation is a preset range, so that the size and shape of the window are consistent with the size and shape of the preset range, thereby
  • the subsequent window of the terminal can be displayed according to the preset range. Due to Subsequent display of the terminal's window only changes the size of the window, and remains in the current window that the user is browsing, which will not affect the user's experience. Since the preset range is smaller than the full screen range of the terminal, the size of the window of the terminal is changed from the full screen range to the preset range, which is convenient for the user to operate with one hand.
  • the execution may also be performed according to the actual situation: determining whether the terminal is in the landscape mode.
  • the terminal Since the terminal is in landscape mode, it is usually not necessary to distinguish between the user's one-hand operation terminal or the two-hand operation terminal. Therefore, when it is determined that the terminal is in the landscape mode, there is no need to perform the step of determining that the window display range corresponding to the one-hand operation is the preset range; after determining that the terminal is not in the landscape mode, performing the determination corresponding to the one-hand operation
  • the window displays the steps in the range of the preset range.
  • the step of determining whether the terminal is in the landscape mode may be performed before determining that the window display range corresponding to the one-hand operation is a preset range, and determining the user operation terminal according to the at least two sensors located in the terminal.
  • the steps of the way of operation are performed before.
  • step 204 may be continued to perform the window display.
  • the window display range corresponding to the two-hand operation is preset to be the full screen range of the terminal.
  • the window display range determined to correspond to the two-hand operation is set to the full screen range of the terminal.
  • the window display range corresponding to the two-hand operation is preset, it is not limited to the full screen range of the terminal, and the window display range corresponding to the two-hand operation may be set to be larger than the preset range adjusted by the one-hand operation. It is smaller than the full screen range of the terminal.
  • step 204 may be continued to perform the window exhibition. Show.
  • the window of the terminal may be displayed according to the determined window display range.
  • step 202 For the difference of the window display range determined in step 202 and step 203, the following cases are specifically displayed when the terminal window is specifically displayed:
  • the size and shape of the window display range are set to the size and shape of the preset range, and the preset range is smaller than the full screen range of the terminal.
  • the preset range window can be accurately placed at the position of the terminal screen where the preset preset range is located.
  • the display position of the preset range window on the terminal screen is not limited to this, and a preset range window may be placed according to the user's operation habits.
  • the window of the preset range is placed on the left side of the terminal screen for display; if the operation habit is a right-handed operation habit, the window of the preset range is placed close to the right of the terminal screen. The side is displayed.
  • the preset range of windows may be fixedly placed in the middle of the terminal screen for display, or the preset range of windows may be arbitrarily placed on the terminal screen.
  • Location for display For the specific location of the window of the preset range, which is placed in the terminal screen, the embodiment of the present invention is not specifically limited herein.
  • the window of the terminal is displayed according to the determined window display range, and the window of the terminal is adjusted from the full screen range of the terminal to the preset range.
  • continuous animation can also be used, thereby allowing the user to visually Experience the continuity of the operation.
  • the window display range corresponding to the one-hand operation is pre- Set the range, when the window of the terminal is displayed according to the determined window display range, if the operation habit is left-handed operation habit, the preset range window is placed on the left side of the screen close to the terminal for display, as shown in Fig. 6 (b) If the operating habit is a right-handed operation habit, place the window of the preset range on the right side of the screen near the terminal, as shown in Figure 6 (c). In addition, you can also choose to place the preset range window in the middle of the terminal screen for display, as shown in Figure 6 (d).
  • the current window is directly displayed according to the full screen range of the terminal.
  • the window of the display terminal is to adjust the window of the terminal from the preset range to the full screen range of the terminal.
  • continuous animation can also be used, so that the user can visually experience the continuity of the operation.
  • step 201 it is determined that the operation mode of the user operation terminal is two-handed.
  • the window display range corresponding to the two-hand operation is the full screen range as shown in Fig. 6 (a), and the window of the terminal is displayed according to the determined display range.
  • the method may further include: displaying an option of adjusting the window display range on the display interface of the terminal, and After receiving the option for the user to select the display range of the adjustment window, the step of displaying the window of the terminal according to the determined window display range is performed.
  • the display interface of the terminal can display the option of adjusting the display range of the window and the option of not adjusting the display range of the window.
  • the option of adjusting the display range of the window can be selected, and the terminal receives the user selection adjustment window.
  • the step of displaying the window of the terminal according to the determined window display range is performed; when the user does not expect to adjust the display range of the current window, the option of canceling the adjustment may be selected, and the terminal does not adjust the window display range when receiving the user selection.
  • the steps to display the terminal's window in accordance with the determined window display range will no longer be performed.
  • the method provided by the embodiment of the present invention determines the operation mode of the user operation terminal by using the sensor located in the terminal, and determines the window display range corresponding to the operation mode of the user operation terminal, and displays according to the determined window display range.
  • the window of the terminal expands the manner in which the window is displayed, and when the user operates the terminal with one hand, the corresponding window display range can be set small, so that the user can conveniently operate the window displayed by the terminal when the terminal is operated by one hand. , improve the feasibility of the user operation window.
  • the window display range is adjusted from the preset range to the full screen range, and the display range of the window is adjusted according to the operation mode, and a flexible display window is provided.
  • the embodiment of the invention provides a terminal for performing the method for displaying a window provided by the first embodiment or the second embodiment.
  • the terminal includes:
  • a first determining module 701 configured to determine, according to at least two sensors located in the terminal, an operation mode of the user operating terminal;
  • a second determining module 702 configured to determine a window display range corresponding to a mode of operation of the user operation terminal determined by the first determining module 701;
  • a display module 703, configured to display a window of the terminal according to the window display range determined by the second determining module 702;
  • At least one sensor is located in a lower left corner of the terminal, and at least one sensor is located in a lower right corner of the terminal.
  • the first determining module 701 is configured to determine an operation mode of the user operating terminal according to the sensing result of the at least two sensors located in the terminal and the preset operating habits.
  • the sensing results include sensing the target and not sensing the target, and operating habits include left-handed operating habits and right-handed operating habits.
  • the first determining module 701 includes:
  • the first determining unit 7011 is configured to: when the operating habit is a left-hand operating habit, the sensing result of the at least one sensor located in the lower left corner of the terminal in the at least two sensors located in the terminal is all that senses the target and is located in the lower right corner of the terminal. When the sensor senses that the target is not sensed, it is determined that the operation mode of the user operation terminal is one-hand operation;
  • a second determining unit 7012 configured to: when the operating habit is a left-hand operating habit, the sensing result of all the sensors located in the lower left corner of the terminal in at least two sensors located in the terminal is at least the target is not sensed or located at the lower right corner of the terminal When the sensing result of a sensor is to sense the target, it is determined that the operation mode of the user operating terminal is a two-hand operation;
  • a third determining unit 7013 configured to: when the operating habit is a right-handed operating habit, the sensing result of the at least one sensor located in the lower right corner of the terminal in the at least two sensors located in the terminal is all that senses the target and is located at the lower left corner of the terminal When the sensor senses that the target is not sensed, it is determined that the operation mode of the user operation terminal is one-hand operation;
  • a fourth determining unit 7014 configured to: when the operating habit is a right-handed operating habit, the sensing result of all the sensors located in the lower right corner of the terminal in at least two sensors located in the terminal is at least a target that is not sensed or located at a lower left corner of the terminal The sensing result of a sensor is to sense the target When it is determined, the operation mode of the user operation terminal is two-hand operation.
  • the second determining module 702 includes:
  • the first determining unit 7021 is configured to determine, when the operation mode of the user operation terminal is a one-hand operation, that the window display range corresponding to the one-hand operation is a preset range, and the preset range is smaller than the full screen range of the terminal;
  • the second determining unit 7022 is configured to determine, when the operation mode of the user operation terminal is a two-hand operation, that the window display range corresponding to the two-hand operation is the full screen range of the terminal.
  • the terminal may further include:
  • the obtaining module 704 is configured to pre-acquire a test track touched by the user on the screen of the terminal.
  • the setting module 705 is configured to set a preset range according to the test track acquired by the obtaining module 704. Referring to FIG. 10, the terminal may further include:
  • the third determining module 706 is configured to determine whether the terminal is in the landscape mode, and after determining that the terminal is not in the landscape mode, the first determining unit 7021 of the second determining module 702 is executed.
  • the terminal may further include:
  • the display module 707 is configured to display an option for adjusting the window display range on the display interface of the terminal, and execute the display module 703 after receiving the option of the adjustment window display range displayed by the display module selected by the user.
  • the terminal determines the operation mode of the user operation terminal by using the sensor located in the terminal, and determines the window display range corresponding to the operation mode of the user operation terminal, and then displays according to the determined window display range.
  • the window of the terminal expands the manner in which the window is displayed, and when the user operates the terminal with one hand, the corresponding window display range can be set small, so that the user can conveniently operate the window displayed by the terminal when the terminal is operated by one hand. , improve the feasibility of the user operation window.
  • the window display range is adjusted from the preset range to the full screen range, thereby realizing the display range of the window according to the operation mode, and providing a flexible display window manner.
  • the terminal includes a plurality of memories 1201, at least one processor 1202, and at least two sensors 1203.
  • the processor 1202 may be a CPU (Central Processing Unit) or the like.
  • the memory 1201 may include a high-speed RAM memory, and may also include a non-volatile memory.
  • the memory 1201 is used to store program code executed by the processor 1202.
  • the processor 1202 is coupled to the plurality of memories 1201 via a bus, and can perform a function of displaying a window, and the sensor 1203 is used to sense an approaching target.
  • the processor 1202 is configured to determine, according to the at least two sensors 1203 located in the terminal, an operation mode of the user operating terminal;
  • At least one sensor 1203 is located at a lower left corner of the terminal, and at least one sensor 1203 is located at a lower right corner of the terminal.
  • the processor 1202 is configured to determine an operation mode of the user operation terminal according to the sensing result of the at least two sensors 1203 located in the terminal and the preset operation habit.
  • the sensing results include sensing the target and not sensing the target, and the operating habits include left-hand operating habits and right-hand operating habits;
  • the processor 1202 when the operating habit is a left-hand operation habit, if the sensing result of the at least one sensor 1203 located in the lower left corner of the terminal in the at least two sensors 1203 of the terminal is the sensing target and all the sensors 1203 located in the lower right corner of the terminal If the sensing result is that the target is not sensed, it is determined that the operation mode of the user operating terminal is a one-hand operation; if all the sensors 1203 located in the lower left corner of the terminal of the at least two sensors 1203 of the terminal are not sensing the target or The sensing result of the at least one sensor 1203 located in the lower right corner of the terminal is to sense the target, and determining that the operation mode of the user operating terminal is a two-hand operation;
  • the sensing result of the at least one sensor 1203 located in the lower right corner of the terminal in the at least two sensors 1203 of the terminal is the sensing result of the sensor and the sensing result of all the sensors 1203 located in the lower left corner of the terminal is If the target is not sensed, it is determined that the operation mode of the user operation terminal is a one-hand operation; if all the sensors 1203 located in the lower right corner of the terminal in at least two sensors 1203 of the terminal are not sensing the target or located at the lower left of the terminal
  • the sensing result of the at least one sensor 1203 of the corner is to sense the target, and then determining the operation mode of the user operating terminal is a two-hand operation.
  • the processor 1202 is configured to: if it is determined that the operation mode of the user operation terminal is a one-hand operation, determine that the window display range corresponding to the one-hand operation is a preset range, and the preset range is smaller than the full screen range of the terminal;
  • the operation mode of the user operation terminal is two-hand operation
  • it is determined that the operation with the two hands is The corresponding window display range is the full screen range of the terminal.
  • the processor 1202 is configured to pre-acquire a test track touched by the user on the screen of the terminal, and set a preset range according to the obtained test track.
  • the processor 1202 is configured to determine whether the terminal is in the landscape mode, and after determining that the terminal is not in the landscape mode, perform a step of determining that the window display range corresponding to the one-hand operation is a preset range.
  • the processor 1202 is configured to display, on the display interface of the terminal, an option of whether to adjust the window display range, and after receiving the option for the user to select the adjustment window display range, perform the step of displaying the window of the terminal according to the determined window display range.
  • the terminal determines the operation mode of the user operation terminal by using the sensor located in the terminal, and determines the window display range corresponding to the operation mode of the user operation terminal, and then displays according to the determined window display range.
  • the window of the terminal expands the manner in which the window is displayed, and when the user operates the terminal with one hand, the corresponding window display range can be set small, so that the user can conveniently operate the window displayed by the terminal when the terminal is operated by one hand. , improve the feasibility of the user operation window.
  • the window display range is adjusted from the preset range to the full screen range, thereby realizing the display range of the window according to the operation mode, and providing a flexible display window manner.
  • the terminal provided by the foregoing embodiment is displayed in the window, only the division of the above functional modules is illustrated. In actual applications, the function distribution may be completed by different functional modules according to requirements, that is, the terminal is The internal structure is divided into different functional modules to perform all or part of the functions described above.
  • the method provided by the foregoing embodiment is the same as the method embodiment of the display window, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

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

展示窗口的方法及终端
本申请要求于 2013 年 06 月 27 日提交中国专利局、 申请号为 201310262920.6、发明名称为 "展示窗口的方法及终端 "的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明实施例涉及终端领域, 特别涉及一种展示窗口的方法及终端。
背景技术
随着终端技术的不断发展, 终端的屏幕尺寸从 3、 4英寸左右, 到 5英 寸左右, 屏幕尺寸越来越大。 由于触控屏幕能够为用户带来方便的操作体 验, 终端的屏幕大多数釆用触控屏幕。 在使用过程中, 终端将需要显示的 内容通过窗口的形式展示给用户, 用户可以通过触碰窗口中的选项进行相 应的操作。 因此, 窗口的展示形式直接影响内容的显示。
现有技术在展示窗口时, 根据终端的屏幕尺寸设置窗口的展示范围, 窗口的展示范围一般设置为终端的全屏大小, 并按照全屏展示窗口。
由于窗口按照全屏进行展示, 当终端的屏幕较大时, 如果用户釆用单 手操作终端, 则通常无法触碰到屏幕展示的整个窗口, 因而无法操作到窗 口中的所有选项, 导致用户操作具有一定的局限性。 发明内容
为了解决现有技术中始终按照全屏展示窗口导致用户操作具有一定的 局限性的问题, 本发明实施例提供了一种展示窗口的方法及终端, 以提高 用户操作窗口的可行性。
第一方面, 提供了一种展示窗口的方法, 所述方法包括:
根据位于终端的至少两个传感器确定用户操作终端的操作方式; 确定与所述用户操作终端的操作方式相对应的窗口展示范围; 按照确定的窗口展示范围展示所述终端的窗口; 其中, 至少一个传感器位于所述终端的左下角, 至少一个传感器位于 所述终端的右下角。
在第一方面的第一种可能的实现方式中, 所述根据位于终端的至少两 个传感器确定用户的操作方式, 包括:
根据位于终端的至少两个传感器的感应结果和预先设置的操作习惯确 定用户操作终端的操作方式。
结合第一方面的第一种可能的实现方式, 在第一方面的第二种可能的 实现方式中, 所述感应结果包括感应到目标和未感应到目标, 所述操作习 惯包括左手操作习惯和右手操作习惯;
所述根据位于终端的至少两个传感器的感应结果和预先设置的操作习 惯确定用户操作终端的操作方式, 包括:
当所述操作习惯为左手操作习惯时, 如果位于终端的至少两个传感器 中位于所述终端的左下角的至少一个传感器的感应结果为感应到目标且位 于所述终端的右下角的所有传感器的感应结果为未感应到目标, 则确定用 户操作终端的操作方式为单手操作; 如果位于终端的至少两个传感器中位 于所述终端的左下角的所有传感器的感应结果为未感应到目标或位于所述 终端的右下角的至少一个传感器的感应结果为感应到目标, 则确定用户操 作终端的操作方式为双手操作;
当所述操作习惯为右手操作习惯时, 如果位于终端的至少两个传感器 中位于所述终端的右下角的至少一个传感器的感应结果为感应到目标且位 于所述终端的左下角的所有传感器的感应结果为未感应到目标, 则确定用 户操作终端的操作方式为单手操作; 如果位于终端的至少两个传感器中位 于所述终端的右下角的所有传感器的感应结果为未感应到目标或位于所述 终端的左下角的至少一个传感器的感应结果为感应到目标, 则确定用户操 作终端的操作方式为双手操作。
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的 实现方式中, 所述确定与所述用户操作终端的操作方式相对应的窗口展示 范围, 包括:
如果确定所述用户操作终端的操作方式为单手操作, 则确定与所述单 手操作相对应的窗口展示范围为预设范围, 所述预设范围小于所述终端的 全屏范围; 如果确定所述用户操作终端的操作方式为双手操作, 则确定与所述双 手操作相对应的窗口展示范围为所述终端的全屏范围。
结合第一方面的第三种可能的实现方式, 在第一方面的第四种可能的 实现方式中, 所述确定与所述单手操作相对应的窗口展示范围为预设范围 之前, 还包括:
预先获取用户在所述终端的屏幕上触碰的测试轨迹, 并根据获取到的 测试轨迹设置所述预设范围。
结合第一方面的第三种可能的实现方式, 在第一方面的第五种可能的 实现方式中, 所述确定与所述单手操作相对应的窗口展示范围为预设范围 之前, 还包括:
确定所述终端是否处于横屏模式, 并在确定所述终端未处于横屏模式 后, 执行确定与所述单手操作相对应的窗口展示范围为预设范围的步骤。
结合第一方面、 第一方面的第一种可能的实现方式至第一方面的第五 种可能的实现方式中的任一方面, 在第一方面的第六种可能的实现方式中, 所述按照确定的窗口展示范围展示所述终端的窗口之前, 还包括:
在所述终端的显示界面上显示是否调整所述窗口展示范围的选项, 并 在接收到用户选择调整所述窗口展示范围的选项后, 执行按照确定的窗口 展示范围展示所述终端的窗口的步骤。
第二方面, 还提供了一种终端, 所述终端包括:
第一确定模块, 用于根据位于终端的至少两个传感器确定用户操作终 端的操作方式;
第二确定模块, 用于确定与所述第一确定模块确定的用户操作终端的 操作方式相对应的窗口展示范围;
展示模块, 用于按照所述第二确定模块确定的窗口展示范围展示所述 终端的窗口;
其中, 至少一个传感器位于所述终端的左下角, 至少一个传感器位于 所述终端的右下角。
在第二方面的第一种可能的实现方式中, 所述第一确定模块, 用于根 据位于终端的至少两个传感器的感应结果和预先设置的操作习惯确定用户 操作终端的操作方式。
结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的 实现方式中, 所述感应结果包括感应到目标和未感应到目标, 所述操作习 惯包括左手操作习惯和右手操作习惯;
所述第一确定模块, 包括:
第一确定单元, 用于当所述操作习惯为左手操作习惯时, 在位于终端 的至少两个传感器中位于所述终端的左下角的至少一个传感器的感应结果 为感应到目标且位于所述终端的右下角的所有传感器的感应结果为未感应 到目标时, 确定用户操作终端的操作方式为单手操作;
第二确定单元, 用于当所述操作习惯为左手操作习惯时, 在位于终端 的至少两个传感器中位所述于终端的左下角的所有传感器的感应结果为未 感应到目标或位于所述终端的右下角的至少一个传感器的感应结果为感应 到目标时, 确定用户操作终端的操作方式为双手操作;
第三确定单元, 用于当所述操作习惯为右手操作习惯时, 在位于终端 的至少两个传感器中位于所述终端的右下角的至少一个传感器的感应结果 为感应到目标且位于所述终端的左下角的所有传感器的感应结果为未感应 到目标时, 确定用户操作终端的操作方式为单手操作;
第四确定单元, 用于当所述操作习惯为右手操作习惯时, 在位于终端 的至少两个传感器中位于所述终端的右下角的所有传感器的感应结果为未 感应到目标或位于所述终端的左下角的至少一个传感器的感应结果为感应 到目标时, 确定用户操作终端的操作方式为双手操作。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的 实现方式中, 所述第二确定模块, 包括:
第一确定单元, 用于在确定所述用户操作终端的操作方式为单手操作 时, 确定与所述单手操作相对应的窗口展示范围为预设范围, 所述预设范 围小于所述终端的全屏范围;
第二确定单元, 用于在确定所述用户操作终端的操作方式为双手操作 时, 确定与所述双手操作相对应的窗口展示范围为所述终端的全屏范围。
结合第二方面的第三种可能的实现方式, 在第二方面的第四种可能的 实现方式中, 所述终端还包括:
获取模块, 用于预先获取用户在所述终端的屏幕上触碰的测试轨迹; 设置模块, 用于根据所述获取模块获取到的测试轨迹设置所述预设范 围。 结合第二方面的第三种可能的实现方式, 在第二方面的第五种可能的 实现方式中,
第三确定模块, 用于确定所述终端是否处于横屏模式, 并在确定所述 终端未处于横屏模式后, 执行所述第二确定模块的第一确定单元。
结合第二方面、 第二方面的第一种可能的实现方式至第二方面的第五 种可能的实现方式, 在第二方面的第六种可能的实现方式中, 所述终端还 包括:
显示模块, 用于在所述终端的显示界面上显示是否调整所述窗口展示 范围的选项, 并在接收到用户选择的所述显示模块显示的调整所述窗口展 示范围的选项后, 执行所述展示模块。
本发明实施例提供的技术方案带来的有益效果是:
通过位于终端的传感器确定用户操作终端的操作方式, 并确定与用户 操作终端的操作方式相对应的窗口展示范围之后, 按照确定的窗口展示范 围展示终端的窗口, 扩展了窗口展示的方式, 且当用户釆用单手操作终端 时可以将对应的窗口展示范围设置的较小, 使得用户在单手操作终端时也 能够方便地操作终端展示的窗口, 提高了用户操作窗口的可行性。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述 中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性 劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例一提供的一种展示窗口的方法流程图;
图 2是本发明实施例二提供的一种展示窗口的方法流程图;
图 3 (a)至图 3 (d)是本发明实施例二提供的一种左手操作习惯时用户操 作终端的情景示意图;
图 4 (a)至图 4 (d)是本发明实施例二提供的一种右手操作习惯时用户操 作终端的情景示意图;
图 5 (a)和图 5 (b)是本发明实施例二提供的一种设置预设范围的示意 图; 图 6 (a)至图 6 (d)是本发明实施例二提供的一种调整窗口展示范围的示 意图;
图 7是本发明实施例三提供的第一种终端的结构示意图;
图 8是本发明实施例三提供的第二种终端的结构示意图;
图 9是本发明实施例三提供的第三种终端的结构示意图;
图 10是本发明实施例三提供的第四种终端的结构示意图;
图 11是本发明实施例三提供的第五种终端的结构示意图;
图 12是本发明实施例四提供的一种终端的结构示意图。
具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本 发明实施方式作进一步地详细描述。
实施例一
本发明实施例提供了一种展示窗口的方法, 参见图 1 , 方法流程包括: 101 : 根据位于终端的至少两个传感器确定用户操作终端的操作方式。 其中, 至少一个传感器位于终端的左下角, 至少一个传感器位于终端 的右下角。
具体地, 根据位于终端的至少两个传感器确定用户操作终端的操作方 式, 包括但不限于:
根据位于终端的至少两个传感器的感应结果和预先设置的操作习惯确 定用户操作终端的操作方式。
具体地, 感应结果包括感应到目标和未感应到目标, 操作习惯包括左 手操作习惯和右手操作习惯;
根据位于终端的至少两个传感器的感应结果和预先设置的操作习惯确 定用户操作终端的操作方式, 包括但不限于:
当操作习惯为左手操作习惯时, 如果位于终端的至少两个传感器中位 于终端的左下角的至少一个传感器的感应结果为感应到目标且位于终端的 右下角的所有传感器的感应结果为未感应到目标, 则确定用户操作终端的 操作方式为单手操作; 如果位于终端的至少两个传感器中位于终端的左下 角的所有传感器的感应结果为未感应到目标或位于终端的右下角的至少一 个传感器的感应结果为感应到目标, 则确定用户操作终端的操作方式为双 手操作;
当操作习惯为右手操作习惯时, 如果位于终端的至少两个传感器中位 于终端的右下角的至少一个传感器的感应结果为感应到目标且位于终端的 左下角的所有传感器的感应结果为未感应到目标, 则确定用户操作终端的 操作方式为单手操作; 如果位于终端的至少两个传感器中位于终端的右下 角的所有传感器的感应结果为未感应到目标或位于终端的左下角的至少一 个传感器的感应结果为感应到目标, 则确定用户操作终端的操作方式为双 手操作。
102: 确定与用户操作终端的操作方式相对应的窗口展示范围。
具体地, 确定与用户操作终端的操作方式相对应的窗口展示范围, 包 括但不限于:
如果确定用户操作终端的操作方式为单手操作, 则确定与单手操作相 对应的窗口展示范围为预设范围, 预设范围小于终端的全屏范围;
如果确定用户操作终端的操作方式为双手操作, 则确定与双手操作相 对应的窗口展示范围为终端的全屏范围。
优选地, 确定与单手操作相对应的窗口展示范围为预设范围之前, 还 包括:
预先获取用户在终端的屏幕上触碰的测试轨迹, 并根据获取到的测试 轨迹设置预设范围。
优选地, 确定与单手操作相对应的窗口展示范围为预设范围之前, 还 包括:
确定终端是否处于横屏模式, 并在确定终端未处于横屏模式后, 执行 确定与单手操作相对应的窗口展示范围为预设范围的步骤。
103: 按照确定的窗口展示范围展示终端的窗口。
优选地, 按照确定的窗口展示范围展示终端的窗口之前, 还包括: 在终端的显示界面上显示是否调整窗口展示范围的选项, 并在接收到 用户选择调整窗口展示范围的选项后, 执行按照确定的窗口展示范围展示 终端的窗口的步骤。
综上所述, 本发明实施例提供的方法, 通过位于终端的传感器确定用 户操作终端的操作方式, 并确定与用户操作终端的操作方式相对应的窗口 展示范围之后, 按照确定的窗口展示范围展示终端的窗口, 扩展了窗口展 示的方式, 且当用户釆用单手操作终端时可以将对应的窗口展示范围设置 的较小, 使得用户在单手操作终端时也能够方便地操作终端展示的窗口, 提高了用户操作窗口的可行性。 实施例二
为了提高展示窗口时用户操作窗口的可行性, 本发明实施例提供了一 种展示窗口的方法。 本实施例举例说明该展示窗口的方法应用于包含有触 摸显示屏或者触控板的终端中, 该终端可以包括智能手机、 平板电脑、 电 子书阅读器、 MP3播放器( Moving Picture Experts Group Audio Layer III , 动态影像专家压缩标准音频层面 3 )、 MP4 ( Moving Picture Experts Group Audio Layer IV, 动态影像专家压缩标准音频层面 4 )播放器、 膝上型便携 计算机和台式计算机等等, 触摸显示屏或者触控板的类型可以是电容式、 电感式、 压电式和光敏式等等。 结合上述实施例一的内容, 参见图 2 , 方法 流程包括:
201 : 根据位于终端的至少两个传感器确定用户操作终端的操作方式。 针对该步骤, 用户在操作终端时, 操作方式可以分为单手操作和双手 操作。 本发明实施例提供的方法可以针对用户操作终端的不同操作方式, 提供不同的展示窗口的方式。 并且, 用户操作终端的操作方式可以根据位 于终端的至少两个传感器来自动确定。 其中, 至少一个传感器位于终端的 左下角, 至少一个传感器位于终端的右下角。 传感器可以为接近传感器、 红外传感器或者其他传感器, 本发明实施例对此不进行具体限定, 选用的 传感器能够感应到附近的目标即可。
在根据位于终端的至少两个传感器确定用户操作终端的操作方式时, 具体包括但不限于: 根据位于终端的至少两个传感器的感应结果和预先设 置的操作习惯确定用户操作终端的操作方式。
其中, 传感器的感应结果包括感应到目标或未感应到目标。 为了能够 检测到用户操作终端的操作方式, 在预先设置的至少两个传感器中, 至少 一个传感器位于终端的左下角, 至少一个传感器位于终端的右下角。 其中, 终端的左下角和右下角分别为终端处于竖屏模式时的左下角和右下角。 当 然, 为了能够更精确地感应到接近的目标, 可以在调整位于终端的传感器 的位置或者传感器的数量, 本发明实施例在此不对位于终端的传感器的具 体位置和数量进行限定。
考虑到用户在使用手机时候的习惯, 可以将用户操作习惯区分为左手 操作习惯和右手操作习惯, 左手操作习惯是指用户在单手操作终端时通常 习惯使用左手进行操作, 右手操作习惯是指用户在单手操作终端时通常习 惯使用右手进行操作。 用户的操作习惯可以是由用户根据自身的使用习惯 预先设置的, 操作习惯的不同将会影响到确定用户操作终端的操作方式。
在根据位于终端的至少两个传感器的感应结果和预先设置的操作习惯 确定用户操作终端的操作方式时, 具体的规则如下:
( 1 ) 当操作习惯为左手操作习惯时, 如果位于终端的至少两个传感器 中位于终端的左下角的至少一个传感器的感应结果为感应到目标且位于终 端的右下角的所有传感器的感应结果为未感应到目标, 则确定用户操作终 端的操作方式为单手操作; 如果位于终端的至少两个传感器中位于终端的 左下角的所有传感器的感应结果为未感应到目标或位于终端的右下角的至 少一个传感器的感应结果为感应到目标, 则确定用户操作终端的操作方式 为双手操作。
其中, 上述确定方式对应用户在使用终端时的以下两种情况: 情况一: 当用户釆用左手单手操作终端时, 左手通常较为靠近终端的 左下角, 因此, 位于终端的左下角的传感器的感应结果为感应到目标且位 于终端的右下角的传感器的感应结果为未感应到目标, 可以确定用户操作 终端的操作方式为单手操作。 需要说明的是, 当位于终端的左下角的传感 器有多个时, 只要位于终端的左下角的至少一个传感器的感应结果为感应 到目标即可; 当位于终端的右下角的传感器有多个时, 要求位于终端的右 下角的多个传感器均为未感应到目标。
情况二: 当用户未釆用左手单手操作终端时, 例如用户双手操作终端, 或者是用户将终端摆放在桌面等位置进行操作, 此时, 位于终端的左下角 的所有传感器的感应结果为未感应到目标或位于终端的右下角的至少一个 传感器的感应结果为感应到目标, 可以确定用户操作终端的操作方式为双 手操作。 在某些情景中用户在操作终端时右手较为靠近终端的右下角, 位 于终端的右下角的至少一个传感器的感应结果为感应到目标而位于终端的 左下角的所有传感器的感应结果为未感应到目标, 由于此时用户的操作习 惯为左手操作习惯, 因此可以认为用户不会右手单手操作终端, 从而将用 户操作终端的操作方式确定为双手操作。 在某些双手操作的情景中, 用户 的左手和右手分别在终端的左下角和右下角, 此时位于终端的左下角的至 少一个传感器和位于终端右下角的至少一个传感器均感应到目标。
举例来说, 以终端的左下角和右下角分别设置有一个传感器为例, 其 中, 传感器通常位于终端内部, 用虚线表示; 黑色的传感器的感应结果为 感应到目标, 非黑色的传感器的感应结果为未感应到目标。 针对情况一, 情景如图 3 ( a ) 所示, 用户的左手靠近终端的左下角, 位于终端的左下角 的传感器的感应结果为感应到目标且位于终端的右下角的传感器的感应结 果为未感应到目标, 确定用户操作终端的操作方式为单手操作。
针对情况二, 在如图 3 ( b )所示的情景中, 用户的双手均未靠近终端 的左下角和右下角, 位于终端的左下角和右下角的传感器的感应结果均为 未感应到目标, 确定用户操作终端的操作方式为双手操作。 在如图 3 ( c ) 所示的情景中, 用户的右手靠近终端的右下角, 位于终端的右下角的传感 器的感应结果为感应到目标, 而位于终端的左下角的传感器的感应结果为 未感应目标, 因而确定用户操作终端的操作方式为双手操作。
当然, 用户在实际操作终端的时候具体手握终端的方式较多, 在某些 情况下可能无法准确确定出用户操作终端的操作方式, 例如, 如图 3 ( d ) 所示的用户操作终端的情景, 釆用上述规则确定的用户操作终端的操作方 式为双手操作, 确定失误。 针对这样的情况, 可以通过用户主动调整操作 终端的姿势从而让终端能够准确地确定用户操作终端的操作方式, 当然, 也可以通过更精确地设置终端中的传感器, 从而能够更准确地确定用户操 作终端的操作方式。
( 2 ) 当操作习惯为右手操作习惯时, 如果位于终端的至少两个传感器 中位于终端的右下角的至少一个传感器的感应结果为感应到目标且位于终 端的左下角的所有传感器的感应结果为未感应到目标, 则确定用户操作终 端的操作方式为单手操作; 如果位于终端的至少两个传感器中位于终端的 右下角的所有传感器的感应结果为未感应到目标或位于终端的左下角的至 少一个传感器的感应结果为感应到目标, 则确定用户操作终端的操作方式 为双手操作。
其中, 上述确定方式对应用户在使用终端时的以下两种情况: 情况一: 当用户釆用右手单手操作终端时, 右手通常较为靠近终端的 右下角, 因此, 位于终端的右下角的至少一个传感器的感应结果为感应到 目标且位于终端的左下角的所有传感器的感应结果为未感应到目标, 可以 确定用户操作终端的操作方式为单手操作。 需要说明的是, 当位于终端的 右下角的传感器有多个时, 只要位于终端的右下角的至少一个传感器的感 应结果为感应到目标即可; 当位于终端的左下角的传感器有多个时, 要求 位于终端的左下角的多个传感器均为未感应到目标。
情况二: 当用户未釆用右手单手操作终端时, 例如用户双手操作终端, 或者是用户将终端摆放在桌面等位置进行操作, 此时, 位于终端的右下角 的所有传感器的感应结果为未感应到目标或位于终端的左下角的至少一个 传感器的感应结果为感应到目标, 确定用户操作终端的操作方式为双手操 作。 在某些情景中用户在操作终端时左手较为靠近终端的左下角, 位于终 端的左下角的至少一个传感器的感应结果为感应到目标而位于终端的右下 角的所有传感器的感应结果为未感应到目标, 由于此时用户的操作习惯为 右手操作习惯, 因此可以认为用户不会左手单手操作终端, 从而将用户操 作终端的操作方式确定为双手操作。
举例来说, 以终端的左下角和右下角分别设置有一个传感器为例, 其 中, 传感器通常位于终端内部, 用虚线表示; 黑色的传感器的感应结果为 感应到目标, 非黑色的传感器的感应结果为未感应到目标。 针对情况一, 在如图 4 ( a )所示的情景中, 用户的右手靠近终端的右下角, 位于终端的 右下角的传感器的感应结果为感应到目标且位于终端的左下角的传感器的 感应结果为未感应到目标, 确定用户操作终端的操作方式为单手操作。
针对情况二, 在如图 4 ( b )所示的情景中, 用户的双手均未靠近终端 的左下角和右下角, 位于终端的左下角和右下角的传感器的感应结果均为 未感应到目标, 确定用户操作终端的操作方式为双手操作。 在如图 4 ( c ) 所示的情景中, 用户的左手靠近终端的左下角, 位于终端的左下角的传感 器的感应结果为感应到目标, 而位于终端的右下角的传感器的感应结果为 未感应目标, 因而确定用户操作终端的操作方式为双手操作。
当然, 釆用上述规则确定用户操作终端的操作方式时, 也会出现在某 些情况下可能无法准确确定出用户操作终端的操作方式, 例如, 如图 4 ( d ) 所示的用户操作终端的情景, 釆用上述规则确定的用户操作终端的操作方 式为双手操作, 确定失误。 针对这样的情况, 可以通过用户主动调整操作 终端的姿势从而让终端能够准确地确定用户操作终端的操作方式, 当然, 也可以通过更精确地设置终端中的传感器, 从而能够更准确地确定用户操 作终端的操作方式。
上述确定规则是根据人体工学原理进行设置的, 在实际应用中可以根 据需要进行调整, 本发明实施例对于根据位于终端的至少两个传感器的感 应结果和预先设置的操作习惯确定用户操作终端的操作方式的方法不进行 具体限定。
除了上述根据位于终端的至少两个传感器的感应结果和预先设置的操 作习惯确定用户操作终端的操作方式的方法之外, 还可以釆用其他方式确 定用户操作终端的操作方式, 例如, 可以在终端的屏幕中显示一个固定按 键, 包括单手操作和双手操作两种选项, 用户可以根据当前操作终端的操 作方式选择固定按键的选项, 终端根据用户选择的选项确定用户操作终端 的操作方式。 在本发明实施例中, 对于确定用户操作终端的操作方式不作 具体限定。
在确定用户操作终端的操作方式之后, 需要确定与用户操作终端的操 作方式相对应的窗口展示范围。 当用户操作终端的操作方式为单手操作时 , 执行后续步骤 202; 当用户操作终端的操作方式为双手操作时, 执行后续步 骤 203。在具体实施时, 终端可以在使用过程中持续根据位于终端的至少两 个传感器确定用户终端的操作方式, 如果本次确定的操作方式与上一次确 定的操作方式相同, 则无需执行后续步骤 202或步骤 203 , 只有当本次确定 的操作方式与上一次确定的操作方式不相同时, 才根据确定的操作方式选 择执行后续步骤 202或步骤 203。
202: 当用户操作终端的操作方式为单手操作时, 确定与单手操作相对 应的窗口展示范围为预设范围, 预设范围小于终端的全屏范围。
针对该步骤, 在用户单手操作终端时, 如果终端的屏幕较大或者是用 户手型较短, 能够触碰到屏幕的区域大小较为有限。 为了方便用户在单手 操作终端时仍然能够操作到窗口的所有区域, 可以预先设置单手操作对应 的窗口展示范围为预设范围, 且预设范围小于终端的全屏范围。
为了使得预设范围更符合用户自身的手型特点, 可以由用户自行设置 预设范围的大小。 因此, 在确定与单手操作相对应的窗口展示范围为预设 范围之前, 还可以包括: 预先获取用户在终端的屏幕上触碰的测试轨迹, 并根据获取到的测试轨迹设置预设范围。具体可以参见以下方式( 1 )和(2 ):
( 1 ) 当用户左手单手操作终端时, 可以获取用户在终端的屏幕上触碰 的从上至下或从下至上的测试轨迹; 根据获取到的测试轨迹确定用户在终 端中所能触碰的最高处和最低处以及右侧最远处; 由于左侧靠近用户的左 手, 用户能够触碰到终端的屏幕的左侧最近处; 根据用户所能触碰的最高 处、 最低处、 右侧最远处和左侧最近处构造一个封闭图形, 例如, 矩形、 圓形、 椭圓形等, 构造的封闭图形即为预设范围, 封闭图形的大小和形状 即为预设范围的大小和形状, 如图 5 ( a )所示。 当用户右手单手操作终端 时, 设置预设范围的方式与用户左手单手操作终端的方式类似, 在此不再 赘述。
( 2 ) 当用户左手单手操作终端时, 可以获取用户在终端的屏幕上触碰 的封闭图形的测试轨迹, 根据获取到的封闭图形的测试轨迹构造对应的封 闭图形, 封闭图形可以为矩形、 圓形、 椭圓形等, 构造的封闭图形即为预 设范围, 封闭图形的大小和形状即为预设范围的大小和形状, 如图 5 ( b ) 所示。 当用户右手单手操作终端时, 设置预设范围的方式与用户左手单手 操作终端的方式类似, 在此不再赘述。
在设置预设范围时, 并不局限于在用户釆用左手单手操作终端或是右 手单手操作终端时进行设置, 例如, 也可以在用户釆用双手操作终端时, 设置预设范围。 并且, 在终端的使用过程中, 用户还可以根据需要继续釆 用上述方式对预设范围进行多次更改。 此外, 除了上述设置预设范围的方 式(1 )和方式(2 ), 还可以有其他设置预设范围的方式。 例如, 可以预先 设置一个或多个固定范围, 并根据用户的选择将其中一个固定范围设置为 预设范围。 预先设置的固定范围的大小小于终端的屏幕的全屏范围, 预先 设置的固定范围的形状也可以任意设置, 如矩形、 圓形、 椭圓形等。 例如, 对于 5.0英寸的屏幕, 预先设置 3个固定范围: 3.0英寸的矩形、 3.0英寸的 圓形、 4.0英寸的矩形, 之后可以根据用户的选择将其中一个矩形设置为预 设范围。 对于设置预设范围的方式, 本发明实施例在此不做具体限定。
基于设置的预设范围, 在操作方式为单手操作时, 可以确定与单手操 作相对应的窗口展示范围为预设范围, 使得窗口的大小和形状与预设范围 的大小和形状一致, 从而后续可以按照预设范围展示终端的窗口。 由于在 后续展示终端的窗口时仅改变了窗口的大小, 仍旧保持在用户正在浏览的 当前窗口中, 不会对用户的使用体验造成影响。 由于预设范围小于终端的 全屏范围, 终端的窗口的大小由全屏范围变为预设范围后, 方便用户单手 操作。
需要说明的是, 在确定与单手操作相对应的窗口展示范围为预设范围 之前, 还可以根据实际情况选择执行: 确定终端是否处于横屏模式。
由于终端处于横屏模式时, 通常无需区分用户单手操作终端或是双手 操作终端。 因此, 在确定终端处于横屏模式时, 无需执行确定与单手操作 相对应的窗口展示范围为预设范围的步骤; 在确定终端未处于横屏模式后, 执行确定与单手操作相对应的窗口展示范围为预设范围的步骤。
在具体实施时, 上述确定终端是否处于横屏模式的步骤可以在确定与 单手操作相对应的窗口展示范围为预设范围之前执行, 还可以在根据位于 终端的至少两个传感器确定用户操作终端的操作方式的步骤之前执行。 当 上述确定终端是否处于横屏模式的步骤在根据位于终端的至少两个传感器 确定用户操作终端的操作方式之前执行时, 在确定终端未处于横屏模式后, 执行根据位于终端的至少两个传感器确定用户操作终端的操作方式的步 骤。
在确定与单手操作相对应的窗口展示范围为预设范围之后, 可以继续 执行步骤 204 , 以进行窗口展示。
203: 当用户操作终端的操作方式为双手操作时, 确定与双手操作相对 应的窗口展示范围为终端的全屏范围。
针对该步骤, 在用户操作终端的操作方式为双手操作时, 用户能够较 为自如地对终端展示的当前窗口进行操作。 由于将釆用终端的全屏范围展 示当前窗口, 无论是用户在观看当前窗口包含的内容, 还是在选择当前窗 口所包含的选项时, 都更加方便。 因此, 预先设置双手操作对应的窗口展 示范围为终端的全屏范围, 当步骤 201 中确定的操作方式为双手操作时, 确定于双手操作相对应的窗口展示范围设置为终端的全屏范围。 需要说明 的是, 预先设置双手操作对应的窗口展示范围时, 并不局限于终端的全屏 范围, 也可以将双手操作对应的窗口展示范围设置为大于单手操作时所调 整到的预设范围, 而小于终端的全屏范围。 在确定与双手操作相对应的窗 口展示范围为终端的全屏范围之后, 可以继续执行步骤 204, 以进行窗口展 示。
204: 按照确定的窗口展示范围展示终端的窗口。
在步骤 202或是步骤 203中确定窗口展示范围后, 可以按照确定的窗 口展示范围展示终端的窗口。
针对步骤 202和步骤 203确定的窗口展示范围的不同, 在具体展示终 端的窗口时分为以下情况:
( 1 )在步骤 202中确定窗口展示范围为预设范围后, 将窗口展示范围 的大小和形状设置为预设范围的大小和形状, 且预设范围小于终端的全屏 范围。 在展示预设范围的窗口时, 可以将预设范围的窗口准确放置于预先 设置的预设范围所处的终端屏幕的位置。 当然, 预设范围的窗口在终端屏 幕的展示位置也不局限于此, 还可以根据用户的操作习惯放置预设范围的 窗口。 例如, 如果操作习惯为左手操作习惯, 则将预设范围的窗口放置于 靠近终端屏幕的左侧进行展示; 如果操作习惯为右手操作习惯, 则将预设 范围的窗口放置于靠近终端屏幕的右侧进行展示。 此外, 还可以有其他展 示预设范围的窗口的方式, 例如, 可以将预设范围的窗口固定放置于终端 屏幕的正中间进行展示, 或者, 将预设范围的窗口任意放置于终端屏幕的 其他位置进行展示。 对于预设范围的窗口的在终端屏幕中放置的具体位置 , 本发明实施例在此不进行具体限定。 在具体实施时, 按照确定的窗口展示 范围展示终端的窗口是将终端的窗口由终端的全屏范围调整为预设范围, 在这个的过程中还可以釆用连续动画的方式, 从而让用户在视觉上体验到 操作的连续性。
举例来说, 以终端的当前窗口如图 6 ( a )所示为例, 在步骤 201 中确 定用户操作终端的操作方式为单手操作时, 确定与单手操作相对应的窗口 展示范围为预设范围, 在按照确定的窗口展示范围展示终端的窗口时, 如 果操作习惯为左手操作习惯, 则将预设范围窗口放置于靠近终端的屏幕的 左侧进行展示, 如图 6 ( b )所示; 如果操作习惯为右手操作习惯, 则将预 设范围的窗口放置于靠近终端的屏幕的右侧进行展示, 如图 6 ( c )所示。 此外, 也可以选择将预设范围的窗口放置于终端屏幕的正中间进行展示, 如图 6 ( d ) 所示。
( 2 )在步骤 202中确定窗口展示范围为终端的全屏范围后, 则直接按 照终端的全屏范围展示当前窗口。 在具体实施时, 按照确定的窗口展示范 围展示终端的窗口是将终端的窗口由预设范围调整为终端全屏范围, 在这 个的过程中还可以釆用连续动画的方式, 从而让用户在视觉上体验到操作 的连续性。
举例来说, 以终端的当前窗口如图 6 ( b )、 图 6 ( c )、 或图 6 ( d )所示 的预设范围为例, 在步骤 201 中确定用户操作终端的操作方式为双手操作 时, 确定与双手操作相对应的窗口展示范围为如图 6 ( a )所示的全屏范围, 并按照确定的展示范围展示终端的窗口。
为了能够更好地确定即将展示的窗口能够满足用户的期望, 在按照确 定的窗口展示范围展示终端的窗口之前, 还可以包括: 在终端的显示界面 上显示是否调整窗口展示范围的选项, 并在接收到用户选择调整窗口展示 范围的选项后, 执行按照确定的窗口展示范围展示终端的窗口的步骤。
终端的显示界面上可以显示调整窗口展示范围的选项和不调整窗口展 示范围的选项, 当用户期望调整当前窗口的展示范围时, 可以选择调整窗 口展示范围的选项, 终端在接收到用户选择调整窗口展示范围的选项后, 执行按照确定的窗口展示范围展示终端的窗口的步骤; 当用户不期望调整 当前窗口的展示范围时, 可以选择取消调整的选项, 终端在接收到用户选 择不调整窗口展示范围的选项后, 将不再执行按照确定的窗口展示范围展 示终端的窗口的步骤。
在终端的显示界面上显示是否调整窗口展示范围的选项并根据用户选 择的选项确定是否执行按照确定的窗口展示范围展示终端的窗口的步骤, 使得用户可以才艮据自己的意愿来调整终端的窗口, 并且, 如果在步骤 202 中判断用户操作终端的操作方式时发生错误, 用户仍可以根据实际操作终 端的情况决定是否调整终端的窗口以符合实际的操作终端的操作方式。
综上所述, 本发明实施例提供的方法, 通过位于终端的传感器确定用 户操作终端的操作方式, 并确定与用户操作终端的操作方式相对应的窗口 展示范围之后, 按照确定的窗口展示范围展示终端的窗口, 扩展了窗口展 示的方式, 且当用户釆用单手操作终端时可以将对应的窗口展示范围设置 的较小, 使得用户在单手操作终端时也能够方便地操作终端展示的窗口, 提高了用户操作窗口的可行性。 并且, 在确定用户操作终端的操作方式为 双手操作之后, 将窗口展示范围由预设范围调整为全屏范围, 实现了根据 操作方式调整窗口的展示范围, 提供了灵活的展示窗口的方式。 实施例三
本发明实施例提供了一种终端, 该终端用于执行上述实施例一或实施 例二提供的展示窗口的方法。 参见图 7 , 该终端包括:
第一确定模块 701 ,用于根据位于终端的至少两个传感器确定用户操作 终端的操作方式;
第二确定模块 702 ,用于确定与第一确定模块 701确定的用户操作终端 的操作方式相对应的窗口展示范围;
展示模块 703 ,用于按照第二确定模块 702确定的窗口展示范围展示终 端的窗口;
其中, 至少一个传感器位于终端的左下角, 至少一个传感器位于终端 的右下角。
具体地, 第一确定模块 701 , 用于根据位于终端的至少两个传感器的感 应结果和预先设置的操作习惯确定用户操作终端的操作方式。
其中, 感应结果包括感应到目标和未感应到目标, 操作习惯包括左手 操作习惯和右手操作习惯。
参见图 8, 第一确定模块 701 , 包括:
第一确定单元 7011 , 用于当操作习惯为左手操作习惯时, 在位于终端 的至少两个传感器中位于终端的左下角的至少一个传感器的感应结果为感 应到目标且位于终端的右下角的所有传感器的感应结果为未感应到目标 时, 确定用户操作终端的操作方式为单手操作;
第二确定单元 7012, 用于当操作习惯为左手操作习惯时, 在位于终端 的至少两个传感器中位于终端的左下角的所有传感器的感应结果为未感应 到目标或位于终端的右下角的至少一个传感器的感应结果为感应到目标 时, 确定用户操作终端的操作方式为双手操作;
第三确定单元 7013 , 用于当操作习惯为右手操作习惯时, 在位于终端 的至少两个传感器中位于终端的右下角的至少一个传感器的感应结果为感 应到目标且位于终端的左下角的所有传感器的感应结果为未感应到目标 时, 确定用户操作终端的操作方式为单手操作;
第四确定单元 7014, 用于当操作习惯为右手操作习惯时, 在位于终端 的至少两个传感器中位于终端的右下角的所有传感器的感应结果为未感应 到目标或位于终端的左下角的至少一个传感器的感应结果为感应到目标 时, 确定用户操作终端的操作方式为双手操作。
具体地, 参见图 8, 第二确定模块 702 , 包括:
第一确定单元 7021 , 用于在确定用户操作终端的操作方式为单手操作 时, 确定与单手操作相对应的窗口展示范围为预设范围, 预设范围小于终 端的全屏范围;
第二确定单元 7022, 用于在确定用户操作终端的操作方式为双手操作 时, 确定与双手操作相对应的窗口展示范围为终端的全屏范围。
参见图 9, 该终端还可以包括:
获取模块 704 , 用于预先获取用户在终端的屏幕上触碰的测试轨迹; 设置模块 705,用于根据获取模块 704获取到的测试轨迹设置预设范围。 参见图 10, 该终端还可以包括:
第三确定模块 706, 用于确定终端是否处于横屏模式, 并在确定终端未 处于横屏模式后, 执行第二确定模块 702的第一确定单元 7021。
参见图 11 , 该终端还可以包括:
显示模块 707 ,用于在终端的显示界面上显示是否调整窗口展示范围的 选项, 并在接收到用户选择的显示模块显示的调整窗口展示范围的选项后, 执行展示模块 703。
综上所述, 本发明实施例提供的终端, 通过位于终端的传感器确定用 户操作终端的操作方式, 并确定与用户操作终端的操作方式相对应的窗口 展示范围之后, 按照确定的窗口展示范围展示终端的窗口, 扩展了窗口展 示的方式, 且当用户釆用单手操作终端时可以将对应的窗口展示范围设置 的较小, 使得用户在单手操作终端时也能够方便地操作终端展示的窗口, 提高了用户操作窗口的可行性。 并且, 在确定用户操作终端的操作方式为 双手操作之后, 将窗口展示范围由预设范围调整为全屏范围, 实现了根据 操作方式调整窗口的展示范围, 提供了灵活的展示窗口的方式。 实施例四
本实施例提供了一种终端, 参见图 12, 该终端包括多个存储器 1201、 至少一个处理器 1202和至少两个传感器 1203。例如处理器 1202可以为 CPU ( Central Processing Unit, 中央处理单元)等, 存储器 1201可以包含高速 Ram存储器, 也可以还包括非不稳定的存储器(non-volatile memory ), 存 储器 1201用于存储处理器 1202所执行的程序代码, 处理器 1202通过总线 与多个存储器 1201耦合, 可以执行展示窗口的功能, 传感器 1203用于感 应接近的目标。
处理器 1202 ,用于才艮据位于终端的至少两个传感器 1203确定用户操作 终端的操作方式;
确定与用户操作终端的操作方式相对应的窗口展示范围;
按照确定的窗口展示范围展示终端的窗口;
其中, 至少一个传感器 1203位于终端的左下角, 至少一个传感器 1203 位于终端的右下角。
处理器 1202 ,用于才艮据位于终端的至少两个传感器 1203的感应结果和 预先设置的操作习惯确定用户操作终端的操作方式。
其中, 感应结果包括感应到目标和未感应到目标, 操作习惯包括左手 操作习惯和右手操作习惯;
处理器 1202, 当操作习惯为左手操作习惯时, 如果位于终端的至少两 个传感器 1203中位于终端的左下角的至少一个传感器 1203的感应结果为 感应到目标且位于终端的右下角所有的传感器 1203的感应结果为未感应到 目标, 则确定用户操作终端的操作方式为单手操作; 如果位于终端的至少 两个传感器 1203中位于终端的左下角的所有传感器 1203的感应结果为未 感应到目标或位于终端的右下角的至少一个传感器 1203的感应结果为感应 到目标, 则确定用户操作终端的操作方式为双手操作;
当操作习惯为右手操作习惯时, 如果位于终端的至少两个传感器 1203 中位于终端的右下角的至少一个传感器 1203的感应结果为感应到目标且位 于终端的左下角的所有传感器 1203的感应结果为未感应到目标, 则确定用 户操作终端的操作方式为单手操作; 如果位于终端的至少两个传感器 1203 中位于终端的右下角的所有传感器 1203的感应结果为未感应到目标或位于 终端的左下角的至少一个传感器 1203的感应结果为感应到目标, 则确定用 户操作终端的操作方式为双手操作。
处理器 1202, 用于如果确定用户操作终端的操作方式为单手操作, 则 确定与单手操作相对应的窗口展示范围为预设范围, 预设范围小于终端的 全屏范围;
如果确定用户操作终端的操作方式为双手操作, 则确定与双手操作相 对应的窗口展示范围为终端的全屏范围。
处理器 1202, 用于预先获取用户在终端的屏幕上触碰的测试轨迹, 并 根据获取到的测试轨迹设置预设范围。
处理器 1202, 用于确定终端是否处于横屏模式, 并在确定终端未处于 横屏模式后, 执行确定与单手操作相对应的窗口展示范围为预设范围的步 骤。
处理器 1202, 用于在终端的显示界面上显示是否调整窗口展示范围的 选项, 并在接收到用户选择调整窗口展示范围的选项后, 执行按照确定的 窗口展示范围展示终端的窗口的步骤。
综上所述, 本发明实施例提供的终端, 通过位于终端的传感器确定用 户操作终端的操作方式, 并确定与用户操作终端的操作方式相对应的窗口 展示范围之后, 按照确定的窗口展示范围展示终端的窗口, 扩展了窗口展 示的方式, 且当用户釆用单手操作终端时可以将对应的窗口展示范围设置 的较小, 使得用户在单手操作终端时也能够方便地操作终端展示的窗口, 提高了用户操作窗口的可行性。 并且, 在确定用户操作终端的操作方式为 双手操作之后, 将窗口展示范围由预设范围调整为全屏范围, 实现了根据 操作方式调整窗口的展示范围, 提供了灵活的展示窗口的方式。
需要说明的是: 上述实施例提供的终端在展示窗口时, 仅以上述各功 能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分 配由不同的功能模块完成, 即将终端的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例提供的终端与展 示窗口的方法实施例属于同一构思, 其具体实现过程详见方法实施例, 这 里不再赘述。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以 通过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可 以存储于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存 储器, 磁盘或光盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发 明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在 本发明的保护范围之内。

Claims

权 利 要求
1、 一种展示窗口的方法, 其特征在于, 所述方法包括: 根据位于终端的至少两个传感器确定用户操作终端的操作方式; 确定与所述用户操作终端的操作方式相对应的窗口展示范围; 按照确定的窗口展示范围展示所述终端的窗口;
其中, 至少一个传感器位于所述终端的左下角, 至少一个传感器位于 所述终端的右下角。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据位于终端的至 少两个传感器确定用户的操作方式, 包括: 根据位于终端的至少两个传感器的感应结果和预先设置的操作习惯确 定用户操作终端的操作方式。
3、 根据权利要求 2所述的方法, 其特征在于, 所述感应结果包括感应 到目标和未感应到目标, 所述操作习惯包括左手操作习惯和右手操作习惯; 所述根据位于终端的至少两个传感器的感应结果和预先设置的操作习 惯确定用户操作终端的操作方式, 包括:
当所述操作习惯为左手操作习惯时, 如果位于终端的至少两个传感器 中位于所述终端的左下角的至少一个传感器的感应结果为感应到目标且位 于所述终端的右下角的所有传感器的感应结果为未感应到目标, 则确定用 户操作终端的操作方式为单手操作; 如果位于终端的至少两个传感器中位 于所述终端的左下角的所有传感器的感应结果为未感应到目标或位于所述 终端的右下角的至少一个传感器的感应结果为感应到目标, 则确定用户操 作终端的操作方式为双手操作; 当所述操作习惯为右手操作习惯时, 如果位于终端的至少两个传感器 中位于所述终端的右下角的至少一个传感器的感应结果为感应到目标且位 于所述终端的左下角的所有传感器的感应结果为未感应到目标, 则确定用 户操作终端的操作方式为单手操作; 如果位于终端的至少两个传感器中位 于所述终端的右下角的所有传感器的感应结果为未感应到目标或位于所述 终端的左下角的至少一个传感器的感应结果为感应到目标, 则确定用户操 作终端的操作方式为双手操作。
4、 根据权利要求 3所述的方法, 其特征在于, 所述确定与所述用户操 作终端的操作方式相对应的窗口展示范围, 包括: 如果确定所述用户操作终端的操作方式为单手操作, 则确定与所述单 手操作相对应的窗口展示范围为预设范围, 所述预设范围小于所述终端的 全屏范围;
如果确定所述用户操作终端的操作方式为双手操作, 则确定与所述双 手操作相对应的窗口展示范围为所述终端的全屏范围。
5、 根据权利要求 4所述的方法, 其特征在于, 所述确定与所述单手操 作相对应的窗口展示范围为预设范围之前, 还包括: 预先获取用户在所述终端的屏幕上触碰的测试轨迹, 并根据获取到的 测试轨迹设置所述预设范围。
6、 根据权利要求 4所述的方法, 其特征在于, 所述确定与所述单手操 作相对应的窗口展示范围为预设范围之前, 还包括: 确定所述终端是否处于横屏模式, 并在确定所述终端未处于横屏模式 后, 执行确定与所述单手操作相对应的窗口展示范围为预设范围的步骤。
7、 根据权利要求 1至 6中任一权利要求所述的方法, 其特征在于, 所 述按照确定的窗口展示范围展示所述终端的窗口之前, 还包括:
在所述终端的显示界面上显示是否调整所述窗口展示范围的选项, 并 在接收到用户选择调整所述窗口展示范围的选项后, 执行按照确定的窗口 展示范围展示所述终端的窗口的步骤。
8、 一种终端, 其特征在于, 所述终端包括: 第一确定模块, 用于根据位于终端的至少两个传感器确定用户操作终 端的操作方式; 第二确定模块, 用于确定与所述第一确定模块确定的用户操作终端的 操作方式相对应的窗口展示范围; 展示模块, 用于按照所述第二确定模块确定的窗口展示范围展示所述 终端的窗口; 其中, 至少一个传感器位于所述终端的左下角, 至少一个传感器位于 所述终端的右下角。
9、 根据权利要求 8所述的终端, 其特征在于, 所述第一确定模块, 用 于根据位于终端的至少两个传感器的感应结果和预先设置的操作习惯确定 用户操作终端的操作方式。
10、 根据权利要求 9所述的终端, 其特征在于, 所述感应结果包括感 应到目标和未感应到目标, 所述操作习惯包括左手操作习惯和右手操作习 惯;
所述第一确定模块, 包括: 第一确定单元, 用于当所述操作习惯为左手操作习惯时, 在位于终端 的至少两个传感器中位于所述终端的左下角的至少一个传感器的感应结果 为感应到目标且位于所述终端的右下角的所有传感器的感应结果为未感应 到目标时, 确定用户操作终端的操作方式为单手操作;
第二确定单元, 用于当所述操作习惯为左手操作习惯时, 在位于终端 的至少两个传感器中位所述于终端的左下角的所有传感器的感应结果为未 感应到目标或位于所述终端的右下角的至少一个传感器的感应结果为感应 到目标时, 确定用户操作终端的操作方式为双手操作; 第三确定单元, 用于当所述操作习惯为右手操作习惯时, 在位于终端 的至少两个传感器中位于所述终端的右下角的至少一个传感器的感应结果 为感应到目标且位于所述终端的左下角的所有传感器的感应结果为未感应 到目标时, 确定用户操作终端的操作方式为单手操作;
第四确定单元, 用于当所述操作习惯为右手操作习惯时, 在位于终端 的至少两个传感器中位于所述终端的右下角的所有传感器的感应结果为未 感应到目标或位于所述终端的左下角的至少一个传感器的感应结果为感应 到目标时, 确定用户操作终端的操作方式为双手操作。
11、 根据权利要求 10所述的方法, 其特征在于, 所述第二确定模块, 包括: 第一确定单元, 用于在确定所述用户操作终端的操作方式为单手操作 时, 确定与所述单手操作相对应的窗口展示范围为预设范围, 所述预设范 围小于所述终端的全屏范围;
第二确定单元, 用于在确定所述用户操作终端的操作方式为双手操作 时, 确定与所述双手操作相对应的窗口展示范围为所述终端的全屏范围。
12、 根据权利要求 11所述的终端, 其特征在于, 所述终端还包括: 获取模块, 用于预先获取用户在所述终端的屏幕上触碰的测试轨迹; 设置模块, 用于根据所述获取模块获取到的测试轨迹设置所述预设范 围。
13、 根据权利要求 11所述的终端, 其特征在于, 所述终端还包括: 第三确定模块, 用于确定所述终端是否处于横屏模式, 并在确定所述 终端未处于横屏模式后, 执行所述第二确定模块的第一确定单元。
14、 根据权利要求 8至 13中任一权利要求所述的终端, 其特征在于, 所述终端还包括: 显示模块, 用于在所述终端的显示界面上显示是否调整所述窗口展示 范围的选项, 并在接收到用户选择的所述显示模块显示的调整所述窗口展 示范围的选项后, 执行所述展示模块。
PCT/CN2014/080895 2013-06-27 2014-06-26 展示窗口的方法及终端 WO2014206327A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310262920.6 2013-06-27
CN201310262920.6A CN103365541B (zh) 2013-06-27 2013-06-27 展示窗口的方法及终端

Publications (1)

Publication Number Publication Date
WO2014206327A1 true WO2014206327A1 (zh) 2014-12-31

Family

ID=49367025

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080895 WO2014206327A1 (zh) 2013-06-27 2014-06-26 展示窗口的方法及终端

Country Status (2)

Country Link
CN (1) CN103365541B (zh)
WO (1) WO2014206327A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365541B (zh) * 2013-06-27 2016-06-15 华为终端有限公司 展示窗口的方法及终端
CN104199604A (zh) * 2014-09-12 2014-12-10 上海斐讯数据通信技术有限公司 一种具有触摸显示屏的电子设备及其信息处理方法
CN104639761B (zh) * 2015-02-26 2017-11-21 努比亚技术有限公司 单手操作的方法及移动终端
CN104850348A (zh) * 2015-05-21 2015-08-19 努比亚技术有限公司 移动终端单手模式实现方法及移动终端
CN104866175B (zh) * 2015-05-21 2018-06-26 努比亚技术有限公司 移动终端单手模式实现方法及移动终端
CN105404456B (zh) * 2015-12-22 2019-01-22 厦门美图移动科技有限公司 一种移动终端拨号键盘管理方法及装置
CN105700882B (zh) * 2016-01-12 2019-03-19 北京小米移动软件有限公司 终端控制方法及装置
CN106959810A (zh) * 2017-03-30 2017-07-18 上海与德科技有限公司 一种单手模式的实现方法及移动终端
CN108803998A (zh) * 2017-04-28 2018-11-13 国基电子(上海)有限公司 手持设备及其操作界面控制方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110074111A (ko) * 2009-12-24 2011-06-30 엘지전자 주식회사 휴대 단말기 및 그 동작 제어방법
CN102299996A (zh) * 2011-08-19 2011-12-28 华为终端有限公司 一种手持设备操作方式识别方法及手持设备
CN102647500A (zh) * 2012-03-20 2012-08-22 深圳市金立通信设备有限公司 基于左右手使用习惯调整手机显示界面的系统及方法
CN103049118A (zh) * 2011-10-14 2013-04-17 北京搜狗科技发展有限公司 一种在触摸设备上判定握持状态的方法和装置
CN103365541A (zh) * 2013-06-27 2013-10-23 华为终端有限公司 展示窗口的方法及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080104858A (ko) * 2007-05-29 2008-12-03 삼성전자주식회사 터치 스크린 기반의 제스쳐 정보 제공 방법 및 장치, 그장치를 포함하는 정보 단말 기기
JPWO2012049942A1 (ja) * 2010-10-13 2014-02-24 Necカシオモバイルコミュニケーションズ株式会社 携帯端末装置、および携帯端末装置におけるタッチパネルの表示方法
CN102810039A (zh) * 2011-05-31 2012-12-05 中兴通讯股份有限公司 左右手自适应的虚拟键盘显示方法及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110074111A (ko) * 2009-12-24 2011-06-30 엘지전자 주식회사 휴대 단말기 및 그 동작 제어방법
CN102299996A (zh) * 2011-08-19 2011-12-28 华为终端有限公司 一种手持设备操作方式识别方法及手持设备
CN103049118A (zh) * 2011-10-14 2013-04-17 北京搜狗科技发展有限公司 一种在触摸设备上判定握持状态的方法和装置
CN102647500A (zh) * 2012-03-20 2012-08-22 深圳市金立通信设备有限公司 基于左右手使用习惯调整手机显示界面的系统及方法
CN103365541A (zh) * 2013-06-27 2013-10-23 华为终端有限公司 展示窗口的方法及终端

Also Published As

Publication number Publication date
CN103365541B (zh) 2016-06-15
CN103365541A (zh) 2013-10-23

Similar Documents

Publication Publication Date Title
WO2014206327A1 (zh) 展示窗口的方法及终端
US10216407B2 (en) Display control apparatus, display control method and display control program
US9851883B2 (en) Method and apparatus for adjusting and moving a user interface for single handed use on an endpoint device
TWI630472B (zh) 可攜式電子裝置及其操作方法
US10268302B2 (en) Method and apparatus for recognizing grip state in electronic device
US9547391B2 (en) Method for processing input and electronic device thereof
US10042546B2 (en) Systems and methods to present multiple frames on a touch screen
WO2022017410A1 (zh) 显示方法、装置、设备及存储介质
TWI509497B (zh) 可攜式裝置之操作方法及系統
US20150185953A1 (en) Optimization operation method and apparatus for terminal interface
US10928948B2 (en) User terminal apparatus and control method thereof
US20130241829A1 (en) User interface method of touch screen terminal and apparatus therefor
US20150193112A1 (en) User interface device, user interface method, and program
JP6319298B2 (ja) 情報端末、表示制御方法及びそのプログラム
TWI616803B (zh) 螢幕畫面的縮放及操作方法、裝置與電腦程式產品
US20160117092A1 (en) Method and device for displaying image by using scroll bar
WO2022007934A1 (zh) 应用图标控制方法、装置及电子设备
US10095384B2 (en) Method of receiving user input by detecting movement of user and apparatus therefor
US10572148B2 (en) Electronic device for displaying keypad and keypad displaying method thereof
KR20140103584A (ko) 전자 기기, 이의 동작 방법 및 프로그램을 기록한 컴퓨터로 판독 가능한 매체
KR102118091B1 (ko) 오브젝트에 대한 사전 실행 기능을 가지는 모바일 장치 및 그 제어방법
US20120151409A1 (en) Electronic Apparatus and Display Control Method
JP6501533B2 (ja) アイコン選択のためのインターフェースプログラム
US11669241B2 (en) Touch control method, apparatus, and device and computer-readable storage medium
US20150067614A1 (en) Method for displaying data and electronic device thereof

Legal Events

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

Ref document number: 14817599

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14817599

Country of ref document: EP

Kind code of ref document: A1