The subject matter herein generally relates to display control.
Electronic devices can usually display various of interfaces, including some virtual buttons. A user can tap a virtual button to operate an electronic device.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. Several definitions that apply throughout this disclosure will now be presented. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Several definitions that apply throughout this disclosure will now be presented. The term “module” refers to logic embodied in computing or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or computing modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
The present disclosure is described in relation to an electronic device and display method. The electronic device includes a sensing plate mounted on the electronic device and configured to generate a number of electric signals when the electronic device is held. Programs cause at least one processor to analyze the number of electric signals and determine a manner in which the electronic device is being held in the hand according to the signals. The method displays an interface including a sidebar corresponding to the handheld manner.
Referring to
Referring to
In a first embodiment, the computing module 201 computes an average value of the first pressures based on the number of first electric signals. The computing module 201 further computes an average value of the second pressures based on the number of second electric signals. Specifically, the first sensing plate 1010 and second sensing plate 1011 both include a number of sensors. When the first region 1012 and second region 1014 are touched, the number of sensors on the first region 1012 and second region 1014 generate first electric signals having corresponding pressure information. When the third region 1013 and fourth region 1015 are touched, the number of sensors on the third region 1013 and fourth region 1015 generate second electric signals having corresponding pressure information. The computing module 201 computes the values of the number of first pressures based on the pressure information included in the first electric signals. The computing module 201 further computes the values of the number of second pressures based on pressure information included in the second electric signals. Then the computing module 201 computes the values of the respective averages of the first and second pressures.
The determination module 202 determines a holding status according to the values of the average first pressure and the average second pressure. In at least one embodiment, the determination module 202 calculates a difference between the two respective average values, then the determination module 202 determines whether the difference is smaller than a first preset value set by the user. If the difference is smaller than the first preset value, the determination module 202 determines that the electronic device 100 is held by two hands. If the difference is not smaller than the first preset value, the determination then determines whether the average value of the first pressures is smaller than the average value of the second pressures. If the average value of the first pressures is smaller than the average value of the second pressures, the determination module 202 determines that the electronic device 100 is held by a left hand. If the average value of the first pressures is not smaller than the average value of the second pressures, the determination module 202 determines that the electronic device 100 is held by a right hand.
In a second embodiment, the computing module 201 computes a size of a first area of the first region 1012 and the second region 1014 based on the number of first electric signals. The computing module 201 further computes a size of a second area of the third region 1013 and the fourth region 1015 based on the number of second electric signals. Specifically, the first sensing plate 1010 and second sensing plate 1011 both include a number of sensors. When the first region 1012 and second region 1014 are touched, the number of sensors on the first region 1012 and second region 1014 generate the number of first electric signals. When the third region 1013 and fourth region 1014 are touched, the number of sensors on the third region 1013 and fourth region 1014 generate the number of second electric signals. The computing module 201 can compute the size of the first area based on the amount of the number of first electric signals, and compute the size of the second area based on the amount of the number of second electric signals.
The determination module 202 determines a holding status according to the size of the first area and the size of the second area. In at least one embodiment, the determination module 202 determines a difference between the two respective sizes of the first area and the second area, then the determination module 202 determines whether the difference is smaller than a second preset value set by the user. If the difference is smaller than the second preset value, the determination module 202 determines that the electronic device 100 is held by two hands. If the difference is not smaller than the second preset value, the determination module 202 determines whether the first area is smaller than the second area. If the size of the first area is smaller than the size of the second area, the determination module 202 determines that the electronic device 100 is held by the left hand. If the size of the first area is not smaller than the size of the second area, the determination module 202 determines that the electronic device 100 is held by the right hand.
The display device 102 continues to display the first interface 1020 shown in
Referring to
Furthermore, the illustrated order of blocks is by example only and the order of the blocks can be changed. Additional blocks may be added or fewer blocks may be utilized, without departing from this disclosure. The exemplary method 300 can begin at block 301.
At block 301, a display device displays a first interface which includes a first sidebar in which a number of virtual buttons are displayed. In at least one embodiment, the first sidebar is displayed on the bottom of the first interface. A user can tap one or more of the virtual buttons to operate an electronic device.
At block 302, a first sensing plate generates a number of first electric signals and a second sensing plate generates a number of second electric signals when the electronic device is handheld by a user.
At block 303, a computing module computes values of a number of first pressures applied on a first region and a second region of the first sensing plate based on the number of first electric signals and then computes an average value of the first pressures. The computing module further computes values of a number of second pressures applied on a third region and a fourth region of the second sensing plate based on the number of second electric signals and then computes an average value of the second pressures.
At block 304, a determination module determines a difference between the two respective average values, then the determination module determines whether the difference is smaller than a first preset value set by the user. If the difference is smaller than the first preset value, the determination module determines that the electronic device is held by two hands and block 306 is implemented. If the difference is not smaller than the first preset value, block 305 is implemented.
At block 305, the determination then determines whether the average value of the first pressures is smaller than the average value of the second pressures. If the average value of the first pressures is smaller than the average value of the second pressures, the determination module determines that the electronic device is held by a left hand and block 307 is implemented. If the average value of the first pressures is not smaller than the average value of the second pressures, the determination module determines that the electronic device is held by a right hand and block 308 is implemented.
At block 306, the display device continues to display the first interface.
At block 307, the display device displays a second interface. The second interface includes a second sidebar in which the virtual buttons are displayed. In at least one embodiment, the second sidebar is displayed on the left side of the second interface.
At block 308, the display device displays a third interface. The third interface includes a third sidebar in which the virtual buttons are displayed. In at least one embodiment, the third sidebar is displayed on the right side of the third interface.
Referring to
At block 401, a display device displays a first interface which includes a first sidebar in which a number of virtual buttons are displayed. In at least one embodiment, the first sidebar is displayed on the bottom of the first interface. A user can tap one or more of the virtual buttons to operate an electronic device.
At block 402, a first sensing plate generates a number of first electric signals and a second sensing plate generates a number of second electric signals when the electronic device is handheld by a user.
At block 403, a computing module computes a size of a first area of a first region and a second region based on the number of first electric signals. The computing module further computes a size of the second area of a third region and a fourth region based on the number of second electric signals.
At block 404, a determination module determines a difference between the respective sizes of the first area and of the second area, then the determination module determines whether the difference is smaller than a second preset value set by the user. If the difference is smaller than the second preset value, the determination module determines that the electronic device is held by two hands and block 406 is implemented. If the difference is not smaller than the second preset value, block 405 is implemented.
At block 405, the determination module determines whether the size of the first area is smaller than the size of the second area. If the size of the first area is smaller than the size of the second area, the determination module determines that the electronic device is held by the left hand and block 407 is implemented. If the size of the first area is not smaller than the size of the second area, the determination module determines that the electronic device is held by the right hand and block 408 is implemented.
At block 406, the display device continues to display the first interface.
At block 407, the display device displays a second interface. The second interface includes a second sidebar in which the virtual buttons are displayed. In at least one embodiment, the second sidebar is displayed on the left side of the second interface.
At block 408, the display device displays a third interface. The third interface includes a third sidebar in which the virtual buttons are displayed. In at least one embodiment, the third sidebar is displayed on the right side of the third interface.
The embodiments shown and described above are only examples. Many details are often found in the art such as the other features of an electronic device and method for controlling displayed interface according to manner in which device is handheld. Therefore, many such details are neither shown nor described. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410825158.2 | Dec 2014 | CN | national |
This application claims priority to Chinese Patent Application No. 201410825158.2 filed on Dec. 27, 2014, the contents of which are incorporated by reference herein.