Embodiment
Consulting shown in Fig. 1, is that user interface of the present invention is indented the running environment figure of system preferred embodiment.Described user interface system 10 of indenting runs in giant-screen touch-control mobile phone 1, and this giant-screen touch-control mobile phone 1 comprises processor 20, storer 30, touching display screen 40,3-axis acceleration sensor 50 and other interface circuits and electric power supply circuit etc.Giant-screen of the present invention refers to that mobile phone screen size is greater than 4.5 inches, shown in figure 5, screen size refer to mobile phone screen catercorner length and in units of inch.
The indent programming code of system 10 of described user interface is stored in storer 30, and is controlled to perform by processor 20.This processor 20 is for working in coordination with the work of each parts and the execution of control routine instruction and the access etc. to storer 30, and this processor 20 can be the processor that may also be multinuclear of monokaryon.
Described touching display screen 40 can be that capacitance touch control screen may also be resistance touch screen etc., by perception user to the touching of display screen or the operation such as to click and realize the mutual of user and this giant-screen touch-control mobile phone 1.
Described 3-axis acceleration sensor 50 is based on gravity principle, sense acceleration signal, by the component value of acceleration measurement at three change in coordinate axis direction, determine the motion morphology that object is current, to detect the posture or hand-held direction etc. of this giant-screen touch-control mobile phone 1 of user's handling.
Fig. 1 is only example, and in actual applications, described user interface systematic difference of indenting is not limited in this.
Consulting shown in Fig. 2, is that user interface of the present invention is indented the functional block diagram of preferred embodiment of system.Described user interface system 10 of indenting comprises multiple functional module be made up of programming code, respectively: choose module 101, determination module 102, posture detection module 103, ratio computing module 104, orientation determination module 105 and interface adjusting module 106.The said module of the present invention has referred to the program segment of some specific function, is more suitable for describing software implementation within a processor than program.Below in conjunction with the method flow diagram of Fig. 3, describe above each functions of modules in detail.
Consulting shown in Fig. 3, is that user interface of the present invention is indented the method flow diagram of preferred embodiment of method.According to different demand, the sequence of steps in this process flow diagram can change, and some step can be omitted.Schematic diagram below in conjunction with Fig. 4 to Fig. 7-B describes this process flow diagram in detail.
Step S01, user chooses and needs to enable interface by choosing module 101 and to indent the application program of function from the list of the mounted application program of described giant-screen touch-control mobile phone 1.
In this preferred embodiment, when the application program chosen operationally, described user interface indents system 10 now according to the posture of this giant-screen touch-control mobile phone 1 of user's handling, the user interface of this application program of indenting, so that one-handed performance.It should be noted that, user interface of indenting described in the present invention does not refer to whole screen-picture of indenting, and refers to the interface of the operations such as those need user to carry out clicking in some regions of mobile phone screen, touching.Such as: the keyboard etc. of the keyboard of dial-up program, the numeric character manipulation keyboard of counter, sets of applications, input method, need user frequently to carry out clicking in some regions, touch, drag operation, and about this region/span is large up and down, one-handed performance is passed through in user's inconvenience, this region is the user interface of indication of the present invention, and the present invention indents to realize one-handed performance to this kind of user interface (in dialing keyboard, Fig. 7-A as shown in user interface 107 in Fig. 6-A sets of applications shown in user interface 107).
In this preferred embodiment, described in choose the application program that module 101 provides user to choose user interface meet foregoing description (need user's frequent operation and operating area span is large), as dial-up program, counter, sets of applications, input method etc.
Step S02, user is in this giant-screen touch-control mobile phone 1 process of use, and determination module 102 judges the application program whether application program of current execution is chosen in advance as above-mentioned user.If so, then step S03 is entered, otherwise, perform step S02 and again judge.
This preferred embodiment, by above-mentioned selecting step S01 and determination step S02, user can determine flexibly this function of indenting the application program that is suitable for, realize user individual and select.
As shown in Fig. 6-A, when user's right hand erects and holds this giant-screen touch-control mobile phone 1, the application program of the current execution of this giant-screen touch-control mobile phone 1 is dial-up program.Continue Fig. 6-A, if this dial-up program is chosen for by user enable function of indenting, as shown in figure 6-b, the user interface 107(dialing keyboard of this dial-up program) reduced certain proportion and be presented at the lower right corner place of screen.
Step S03, posture detection module 103 opens 3-axis acceleration sensor, measures three coordinate axis component values, detects the posture of user's handling giant-screen touch-control mobile phone 1.
As shown in Figure 4, be the coordinate system schematic diagram of 3-axis acceleration sensor 50 in this preferred embodiment.The component value x of X, Y, Z tri-coordinate axis, y, z respectively to should giant-screen touch-control mobile phone 1 in upper and lower, left and right, the stressed acceleration component values in vertical three directions.According to the acceleration component values of three change in coordinate axis direction that 3-axis acceleration sensor 50 is measured, deducibility goes out the posture of user's handling mobile phone.
In this preferred embodiment, set four and judge interval, the interval range fallen into by the value of x, y, determines the grip of user.Judge interval corresponding with four, four class grip are divided in this preferred embodiment, respectively: the right hand is perpendicular holds that (as Fig. 6-A), the right hand are sleepingly held, left hand is perpendicularly held, left hand is sleeping holds (as Fig. 7-A), above four kinds of postures are in practical operation mobile phone process, four kinds of grip that people generally use.
Above-mentioned four kinds of grip and judge interval corresponding relation as: work as x>1m/s2and y<=-1.2m/s2time, to be that the right hand is perpendicular hold current grip; Work as x<=1m/s2and y<=-1.2m/s2time, to be that the right hand is sleeping hold current grip; Work as x>1m/s2and y>=1.2m/s2time, to be that left hand is perpendicular hold current grip; Work as x<=1m/s2and y>=1.2m/s2time, to be that left hand is sleeping hold current grip.It should be noted that, in different embodiment, the establishment of coordinate system of 3-axis acceleration sensor 50 is different, causes decision condition will do corresponding adjustment.
In other embodiments of the invention, different judgement intervals can be divided or in conjunction with Z axis coordinate components, to determine different user grip, be not limited in four kinds of grip of indication in this preferred embodiment.
Step S04, ratio computing module 104 calculates screen size according to the screen resolution of this giant-screen touch-control mobile phone 1, and calculates the scale down of user interface according to current screen size.Described screen resolution (resolution, resolution or resolution) refers to the pixel count (such as 800 × 480, longitudinal pixel count is 800, and horizontal pixel number is 480) of mobile phone screen longitudinal and transverse two directions.
Shown in figure 5, the screen size of mobile phone is catercorner length S and unit is inch.This preferred embodiment, according to screen resolution, calculates current screen size S by following steps:
Obtain this mobile phone screen horizontal pixel number w and longitudinal pixel count h;
Obtain the PPI(Pixels Per Inch that this mobile phone screen is horizontal and vertical, the pixel count of per inch);
The vertical PPI of the W=horizontal pixel number w/ longitudinal pixel count h/ of horizontal PPI, H=, according to the known screen size of Pythagorean theoremwherein, W, H be respectively mobile phone screen horizontal, longitudinal length and in units of inch.
In other embodiments, can also by the screen size of following formulae discovery mobile phone: screen sizewherein, w, h are respectively horizontal, the longitudinal pixel count of mobile phone screen, density(mobile phone picture element density) be the pixel count concentration of screen, using per inch 160 pixel counts as standard value, the main pixel density of current mobile phone is 0.75,1,1.5 and 2, as density be 1.5 that is 1 inch have 160 × 1.5=240 pixel, density be 2 that is 1 inch have 160 × 2=320 pixel.
When after the screen size calculating this giant-screen touch-control mobile phone 1, calculate the scale down of the user interface of this its correspondence of screen size according to screen size.Same application program (such as dial-up program) is when the mobile phone of different screen size runs, and the size of the operation interface of this application program adjusts along with screen-sized.Given this, in this preferred embodiment, adjust scale down according to screen-sized, calculate this scale down by following steps:
First, calculate the grade L of current screen size according to screen size, computing formula is: L=(S-S0)/λ, wherein, S is the screen size of this giant-screen touch-control mobile phone 1, S0for weighing the reference value of screen-sized, λ is screen size increment, S0, λ is predetermined constant value;
Secondly, according to the screen size grade L calculated by formula P=P0-δ × L calculates the scale down P of user interface corresponding to this its screen size of giant-screen touch-control mobile phone, wherein, and P0for screen size equals reference value S0time its correspondence the initial reduction ratio of user interface, δ is scale down decrement, P0, δ is predetermined constant value.
It should be noted that, the scaled down prerequisite of above calculating is, will set the predetermined constant S in above-mentioned two formula in advance0, λ, P0and δ, preset value can set different value according to practical application difference.In this preferred embodiment, S0=4.6, P0=80%, λ=0.3, δ=5%, i.e. screen size grade L=(S-4.6)/0.3, scale down P=80%-5% × L.Shown in figure 8, using 4.6 inches as the benchmark weighing screen-sized, when screen size is 4.6 inches, it is 0 that interface reduces grade, and initial reduction ratio is 80%, when screen size increases by 0.3 inch at every turn, interface reduces grade increases one-level, and scale down reduces 5%, the like.
In other embodiments of the invention, different computing formula can be formulated, according to the scale down of screen-sized adjustment user interface.In other embodiments, if minimizing program complexity, can also specify unified scale down, no matter screen-sized, scale down is consistent.In other embodiments, the formula that can provide according to the present embodiment, only predetermined constant value is suitably adjusted, such as: set the initial reduction ratio (in the present embodiment being 4.6 inches and 80%) that different screen size reference values is corresponding with this screen size reference value, the recursion increment that setting is different from this preferred embodiment comprises screen size increment value and scale down decrement value (in the present embodiment being 0.3 inch and 5%).
Step S05, orientation determination module 105, according to user's handling posture, determines the orientation that the user interface after reducing shows on screen.
In this preferred embodiment, not only reduce user interface, and by the interface that reduces again layout in four of screen different orientation, be more conducive to user's one-handed performance.
According to described above, in step S03, user's handling posture is divided into four classes, respectively: the right hand is perpendicular to be held, the right hand is sleepingly held, left hand is perpendicularly held, left hand is sleeping holds.The one-to-one relationship in above-mentioned four grip and four layout orientation is:
(x>1m/s is held when the right hand is perpendicular2and y<=-1.2m/s2, as shown in Fig. 6-A), the user interface after reducing is in screen lower right field display (as shown in figure 6-b);
(x<=1m/s is held when the right hand is sleeping2and y<=-1.2m/s2), the user interface after reducing shows in screen upper right comer region;
(x>1m/s is held when left hand is perpendicular2and y>=1.2m/s2), the user interface after reducing shows in region, the screen lower left corner;
(x<=1m/s is held when left hand is sleeping2and y>=1.2m/s2, as shown in Fig. 7-A), the user interface after reducing is in screen upper left corner area display (as shown in Fig. 7-B).
Step S06, according to the above-mentioned scale down calculated, reduce the user interface (the user interface size after reducing=current user operation interface size × scale down) of its correspondence of current application program, and the user interface after reducing according to the display orientation adjustment determined is at the display position of screen
Finally it should be noted that, above embodiment is only unrestricted for illustration of technical scheme of the present invention, although according to above preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, should not depart from the spirit and scope of technical solution of the present invention.