CN109189244A - A kind of terminal display method, apparatus, terminal and readable storage medium storing program for executing - Google Patents
A kind of terminal display method, apparatus, terminal and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109189244A CN109189244A CN201810873818.2A CN201810873818A CN109189244A CN 109189244 A CN109189244 A CN 109189244A CN 201810873818 A CN201810873818 A CN 201810873818A CN 109189244 A CN109189244 A CN 109189244A
- Authority
- CN
- China
- Prior art keywords
- terminal
- display area
- barycentric coodinates
- display
- screen content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of terminal display method, apparatus, terminal and readable storage medium storing program for executing, this method comprises: obtaining the first barycentric coodinates of present terminal;According to first barycentric coodinates, intended display direction is determined;According to the intended display direction, the screen content got is shown.Terminal can be adjusted the displaying direction of screen content, therefore can guarantee under terminal differing tilt angles according to the barycentric coodinates got in the present invention, and the content that user views normally is shown, facilitate user's checking and using to terminal.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of terminal display method, apparatus, terminal and readable storage medium
Matter.
Background technique
As the increase and application type of intelligent terminal memory space increase, user is in order to meet itself use need
It asks, the quantity that application is installed on intelligent terminal also increases, and mounted all applications can be shown in the main interface of terminal.With hand
For machine, the mounted application icon all applied is shown in mobile phone main interface, user can be real by clicking application icon
The starting now applied, mobile phone show the application page for the application having been started up.
No matter terminal is the displaying of content or the displaying of the content in application page under main interface in the prior art, eventually
End all can only support transverse screen display or vertical screen display, and limitation when user's using terminal by scene and environment is bigger.Such as
Fruit user is in and can only tilt and use and check under the special scenes of terminal, for example, user lie on one's side in bed or on chair when
It waits, since terminal only supports transverse screen display or vertical screen display, when there is certain tilt angle, the direction for the content that screen is shown is not
It changes, is all that inclined or user needs to tilt mobile phone ability at this point for the content viewed for active user
It normally checks content, affects normally checking and use for user.
Summary of the invention
The present invention provides a kind of terminal display method, apparatus, terminal and readable storage medium storing program for executing, to solve the prior art
Middle scene is limited to be not easy to user and checks and the problem of using terminal.
The present invention provides a kind of terminal display methods, this method comprises:
Obtain the first barycentric coodinates of present terminal;
According to first barycentric coodinates, intended display direction is determined;
According to the intended display direction, the screen content got is shown.
Further, described according to first barycentric coodinates, determine that intended display direction includes:
According to first barycentric coodinates, determine that first barycentric coodinates are each under preset terminal three-dimensional system of coordinate
The acceleration in direction;
According to the acceleration in each direction, intended display direction is determined.
Further, described according to the intended display direction, before being shown to the screen content got, institute
State method further include:
According to first barycentric coodinates, the target sizes for showing the display area of screen content are determined;
It is described according to the intended display direction, the screen content got be shown include:
In the display area of the target sizes, according to the intended display direction, to the screen content got into
Row is shown.
Further, the display area includes in annular display area, round display area and polygon display area
At least one of.
Further, described according to first barycentric coodinates if the display area includes annular display area, really
Determining the target sizes for showing the display area of screen content includes:
According to first barycentric coodinates, the central coordinate of circle and target center of circle angle number of the annular display area are determined;
According to the central coordinate of circle, target center of circle angle number and predetermined radius, determine that the annular is shown
The target sizes in region.
Further, the screen content got includes application icon, the show area in the target sizes
In domain, according to the intended display direction, the screen content got is shown includes:
Determine the correspondence display location for each of getting and applying in the annular display area;
In the correspondence display location of the annular display area of the target sizes, the application drawing of each application is shown
Mark.
Further, it after first barycentric coodinates for obtaining present terminal, according to first barycentric coodinates, determines
Before intended display direction, the method also includes:
The second barycentric coodinates according to first barycentric coodinates and currently saved, judge whether the center of gravity of the terminal is sent out
Movement is given birth to;
If so, carrying out subsequent step.
The present invention provides a kind of terminal display device, which includes:
Module is obtained, for obtaining the first barycentric coodinates of present terminal;
Determining module, for determining intended display direction according to first barycentric coodinates;
Display module, for being shown to the screen content got according to the intended display direction.
Further, the determining module is specifically used for determining that first center of gravity is sat according to first barycentric coodinates
It is marked on the acceleration in each direction under preset terminal three-dimensional system of coordinate;According to the acceleration in each direction, target is determined
Show direction.
Further, the determining module is also used to described according to the intended display direction, to the screen got
Before content is shown, according to first barycentric coodinates, determine for showing that the target of the display area of screen content is big
It is small;
The display module, specifically in the display area of the target sizes, according to the intended display direction,
The screen content got is shown.
Further, the display area includes in annular display area, round display area and polygon display area
At least one of.
Further, if the display area includes annular display area, the determining module is specifically used for according to institute
The first barycentric coodinates are stated, determine the central coordinate of circle and target center of circle angle number of the annular display area;It is sat according to the center of circle
Mark, target center of circle angle number and predetermined radius determine the target sizes of the annular display area.
Further, the screen content got includes application icon, the display module, is obtained specifically for determination
Each of get the correspondence display location applied in the annular display area;In the annular display area of the target sizes
In corresponding display location, the application icon of each application is shown.
Further, described device further include:
Judgment module, after the first barycentric coodinates for obtaining present terminal, according to first barycentric coodinates and current
The second barycentric coodinates saved, judge whether the center of gravity of the terminal has occurred movement;If so, triggering the determining module.
The present invention provides a kind of terminals, comprising: processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
It is stored with computer program in the memory, when described program is executed by the processor, so that the place
Manage the step of device executes any of the above-described the method.
The present invention provides a kind of computer readable storage medium, it is stored with the computer program that can be executed by terminal,
When described program is run on the terminal, so that the step of terminal executes any of the above-described the method.
The present invention provides a kind of terminal display method, apparatus, terminal and readable storage medium storing program for executing, this method comprises: obtaining
First barycentric coodinates of present terminal;According to first barycentric coodinates, intended display direction is determined;According to the intended display
Direction is shown the screen content got.Terminal can be according to the barycentric coodinates got, in screen in the present invention
The displaying direction of appearance is adjusted, therefore can be guaranteed under terminal differing tilt angles, and the content that user views is normal
Display, facilitate user's checking and using to terminal.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram for terminal display process that the embodiment of the present invention 1 provides;
Screen is shown when Fig. 2 is a kind of barycentric coodinates of terminal that provide of the embodiment of the present invention 5 on the right of the screen at the heart
Schematic diagram;
What screen was shown when a kind of barycentric coodinates for terminal that Fig. 3 embodiment of the present invention 5 provides are at the screen lower right corner shows
It is intended to;
Screen is shown when a kind of barycentric coodinates for terminal that Fig. 4 embodiment of the present invention 5 provides are at screen lower bottom part
Schematic diagram;
What screen was shown when a kind of barycentric coodinates for terminal that Fig. 5 embodiment of the present invention 5 provides are screen middle position shows
It is intended to;
Fig. 6 is a kind of terminal display process schematic that the embodiment of the present invention 6 provides;
Fig. 7 is a kind of structural schematic diagram for terminal that the embodiment of the present invention 7 provides;
Fig. 8 is a kind of terminal display schematic device provided in an embodiment of the present invention.
Specific embodiment
It is checked in order to facilitate user and using terminal, the embodiment of the invention provides a kind of terminal display method, apparatus, end
End and readable storage medium storing program for executing.
Terminal display method provided in an embodiment of the present invention, can be applied in terminal, which includes hardware layer, operation
Operating system layer on hardware layer, and the application layer of operation on an operating system.
The hardware layer include central processing unit (CPU, Central Processing Unit), memory management unit (MMU,
Memory Management Unit) and the hardware such as memory.
The operating system can be any one or more computer behaviour that terminal display is realized by process (Process)
Make system, for example, (SuSE) Linux OS, Unix operating system, Android operation system, iOS operating system or windows behaviour
Make system etc..The application layer can obtain the barycentric coodinates of present terminal.
And the terminal can be the handheld devices such as smart phone, tablet computer in embodiments of the present invention, be also possible to
The terminal devices such as desktop computer, portable computer in the embodiment of the present invention and are not particularly limited, as long as can pass through operation
Record has the program of the code of the terminal display method in the embodiment of the present invention, realizes terminal display.
The executing subject of terminal display in the embodiment of the present invention can be being capable of caller in terminal or terminal
And execute the functional module of program.
To make the objectives, technical solutions, and advantages of the present invention clearer, make below in conjunction with the attached drawing present invention into one
Step ground detailed description, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
Embodiment 1:
Fig. 1 be a kind of schematic diagram of terminal display process provided in an embodiment of the present invention, the process the following steps are included:
S101: the first barycentric coodinates of present terminal are obtained.
Terminal display method provided in an embodiment of the present invention is applied to terminal, which can obtain the first of present terminal
Barycentric coodinates, first barycentric coodinates can be the three-dimensional coordinate under preset terminal three-dimensional system of coordinate, and terminal obtains first
Barycentric coodinates, which can be, in real time to be obtained.
The process that the terminal obtains the first barycentric coodinates of present terminal can be using the sensor being arranged in the terminal
It obtains.The sensor being arranged in the terminal includes at least gravity sensor, is furthermore also provided with direction sensing in the terminal
The common sensor such as device.
The first barycentric coodinates that the terminal obtains present terminal can be terminal acquisition when showing any screen content, can
To be that terminal obtains etc. when showing specific screens content, such as the specific screens content can be in multiple task management interface
Interior perhaps terminal on the application content etc. installed.
The process of first barycentric coodinates for obtaining present terminal belongs to the prior art, does not do in embodiments of the present invention
It repeats.
S102: according to first barycentric coodinates, intended display direction is determined.
After terminal gets the first barycentric coodinates of present terminal, intended display can be determined according to the first barycentric coodinates
Direction, the intended display direction are used to determine the displaying direction of screen content.
Terminal can be the corresponding relationship for pre-saving barycentric coodinates and showing direction, therefore terminal gets the first weight
After heart coordinate, the corresponding intended display direction of first barycentric coodinates can be determined;Or terminal can be according to got
One barycentric coodinates determine the acceleration in the first barycentric coodinates each direction under default terminal three-dimensional system of coordinate, thus according to every
The acceleration in a direction determines intended display direction etc..
S103: according to the intended display direction, the screen content got is shown.
After terminal determines intended display direction, the screen content got can be opened up according to intended display direction
Show, can guarantee screen content for a user in this way and be normal display and non-inclined is shown.
Terminal is according to intended display direction, when being shown to the screen content got, if intended display direction pair
What is answered is that transverse screen display or vertical screen display can be in will acquire then when being shown to the screen content got
Hold all is shown, if it is that screen inclination is shown that intended display direction is corresponding, to the screen content got into
When row is shown, the content that can be will acquire completely or partially is shown.
The process that terminal gets screen content can be realized using existing method, not done in embodiments of the present invention superfluous
It states.
It, can be according to intended display side determining in real time if terminal obtains the first barycentric coodinates of present terminal in real time
To, the screen content got is shown, at this time screen content with sliding terminal gravity motion and be moved to terminal
It is monistic to solve the problems, such as that the fixed position in multitask column is shown, increases the experience sense of user, increases user for position of centre of gravity
The fun of using, also set displaying for multitask field and increase a kind of innovation mode.
Terminal can adjust the displaying direction of screen content according to the barycentric coodinates got in the embodiment of the present invention
It is whole, therefore can guarantee under terminal differing tilt angles, the content that user views normally is shown, facilitates user couple
Terminal checking and using.
Embodiment 2:
In order to guarantee to be adapted to different terminals, on the basis of the above embodiments, in the embodiment of the present invention, described
According to first barycentric coodinates, determine that intended display direction includes:
According to first barycentric coodinates, determine that first barycentric coodinates are each under preset terminal three-dimensional system of coordinate
The acceleration in direction;
According to the acceleration in each direction, intended display direction is determined.
If terminal determines intended display direction according to the barycentric coodinates pre-saved and the corresponding relationship in displaying direction,
Since the terminal size of different terminals is different, cause the barycentric coodinates on identical displaying direction variant, then developer needs
According to the terminal size of different terminals, the corresponding barycentric coodinates of terminal are saved in the terminal and show the corresponding relationship in direction, are increased
The big workload of developer, and if identical barycentric coodinates can not be adapted to difference with corresponding relationship possibly for showing direction
Terminal.
Preset terminal three-dimensional system of coordinate is preserved in terminal, which defines the coordinate system
In different directions under three components (three dimensions are usually indicated with X-axis, Y-axis and Z axis), which can be
Different direction spatially can be the positive negative direction etc. of three dimensions.
Terminal determines that barycentric coodinates process of the acceleration in each direction under three-dimensional system of coordinate belongs to the prior art, at this
It is not repeated them here in inventive embodiments.
Terminal determines that the process in intended display direction can be terminal and determine there is forward direction according to the acceleration in each direction
The target direction of acceleration determines intended display direction according to target direction, such as deposits when on one and only one target direction
In positive acceleration, then the target direction directly can be determined as intended display direction, it is usual the fact that appear in cross
Screen display or when vertical screen display, when at least two target directions there are when acceleration, then can be according to two target directions
On the vector of acceleration determine intended display direction, it is usual the fact that when appearing in screen inclination display.
According to the acceleration in determining the first barycentric coodinates each direction under three-dimensional system of coordinate in the embodiment of the present invention, really
It sets the goal and shows direction, so that different terminals can be adapted to when ensure that terminal display, improve accuracy when terminal display.
Embodiment 3:
In order to further increase convenience when user's using terminal, on the basis of the various embodiments described above, the present invention is real
It applies in example, described according to the intended display direction, before being shown to the screen content got, the method is also wrapped
It includes:
According to first barycentric coodinates, the target sizes for showing the display area of screen content are determined;
It is described according to the intended display direction, the screen content got be shown include:
In the display area of the target sizes, according to the intended display direction, to the screen content got into
Row is shown.
The display area includes at least one in annular display area, round display area and polygon display area
?.
When user lies on one's side using terminal, usually singlehanded using terminal, and terminal screen inclination display, therefore in order to
It is more convenient when user-friendly terminal, screen content can be shown in a certain size display area, consequently facilitating
User checking and using to screen content in a certain size display area.
For showing that the shape of the display area of the screen content got can be any, such as it can be annular show area
One or more of domain, round display area, polygon display area, usual display area are annular display area, circle
Any one of display area and polygon display area.
Terminal is sat when determining the display area for showing the screen content got according to the first center of gravity got
Mark determines that user shows the target sizes of the display area of screen content, and specifically, terminal determines exhibition according to the first barycentric coodinates
It when showing the target sizes in region, can be according to display area of different shapes determination, be also possible to what basis pre-saved
The corresponding relationship of the size of barycentric coodinates and display area determines.
For example, can be if display area includes annular display area and/or round display area according to the first weight
Heart coordinate determines the central coordinate of circle, central angle degree and radius of display area, so that it is determined that annular display area and/or circle
The target sizes of display area can be according to the first barycentric coodinates, really if display area includes polygon display area
The side length of display area is determined, so that it is determined that the target sizes of polygon display area.
After terminal determines the target sizes of display area for showing screen content, displaying of the terminal in target sizes
In region, according to intended display direction, screen content is shown, at this time can by screen content show a certain size
In display area, when more convenient user's one-handed performance terminal, checking and using to screen content is current according to sliding terminal
Position of centre of gravity adaptively change the size and location on multitask column, both solved when user is not desired to that multitask column is excessive to be accounted for
The problem of with screen space, the position for opening simultaneously multitask column carry out adaptive adjustment fan-shaped size and angle and (work as displaying
The size and angle of region corresponding sector when being annular display area or round display area), be conducive to need to make in user
With normal use of the opening multitask column without blocking user when larger screen space.
Such as can show to include application icon according to intended display direction in the annular display area of target sizes
Screen content, to facilitate user to check and use application.
Due to showing screen content in a certain size display area in the embodiment of the present invention, more convenient user is single
Hand operating terminal further improves convenience when user's using terminal.
Embodiment 4:
In order to further increase convenience when user's using terminal, on the basis of the various embodiments described above, the present invention is real
It applies in example, it is described according to first barycentric coodinates if the display area includes annular display area, it determines for showing
The target sizes of the display area of screen content include:
According to first barycentric coodinates, the central coordinate of circle and target center of circle angle number of the annular display area are determined;
According to the central coordinate of circle, target center of circle angle number and predetermined radius, determine that the annular is shown
The target sizes in region.
When due to screen inclination display, user is usually singlehanded using terminal, and tangible when singlehanded using terminal is arrived
The area size of terminal screen is limited, therefore when display area includes annular display area, using target center of circle angle number pair
The annular display area of target sizes is answered to show screen content, it can be with the one-handed performance of more convenient user.
When terminal determines the target sizes of annular display area, terminal is sat according to the first center of gravity of annular display area first
Mark determines the central coordinate of circle and target center of circle angle number of annular display area, then according to central coordinate of circle, target center of circle angle number
And predetermined radius, determine the target sizes of annular display area.
When terminal determines the central coordinate of circle of annular display area according to the first barycentric coodinates, it can be the first barycentric coodinates
It is determined as the central coordinate of circle of annular display area.
When terminal determines the target center of circle angle number of annular display area according to the first barycentric coodinates, it can be pre- in terminal
First preserve the corresponding relationship of the barycentric coodinates and central angle degree pre-saved.
Predetermined radius is preserved in terminal, this is preset determining radius and presets when can be terminal factory
, it can be the terminal that user is arranged and is saved according to the use habit of oneself, can be terminal according to the screen got
What curtain height and/or screen width determined etc..
When terminal determines the target sizes of annular display area, which can be drawn according to central coordinate of circle and radius
The corresponding annular display area of heart angle number.
The quantity of the annular display area can be one or more.
Due in the embodiment of the present invention, when display area includes annular display area, using target center of circle angle number pair
It answers the annular display area of target sizes to show screen content, use can be further increased with the one-handed performance of more convenient user
The convenience when using terminal of family.
Embodiment 5:
On the basis of the above embodiments, in the embodiment of the present invention, the screen content got includes application icon,
It is described in the display area of the target sizes, according to the intended display direction, the screen content got is opened up
Show and includes:
Determine the correspondence display location for each of getting and applying in the annular display area;
In the correspondence display location of the annular display area of the target sizes, the application drawing of each application is shown
Mark.
The application icon of each application is shown into the correspondence display location in annular display area, user is can be convenient and checks
With use application.
Usually annular display area each display location be it is fixed, terminal determines each apply in annular display area
In correspondence display location, can be terminal and being determined according to user manual setting using showing, can be terminal according to
Preset displaying rule is shown, which can be current using the time interval of each application according to user
The length of terminal system time determines, can be determining etc. using the frequency of each application within the set time according to user.
Preferably, the time gap present terminal system time applied can be used according to user from short to long, by preceding
Application icon is shown after, be can be the frequency for using and applying according to user from high to low, is shown application icon from front to back, this
Sample can be used family and more be quickly found out the higher background application of oneself desirability, facilitates user and checks and use.
After terminal determines the application icon of each application to be presented, by the application icon of each application in target sizes
The correspondence display location of annular display area is shown, and application icon can directly embody each application, thus further side
Just user checks and uses.
Be illustrated in figure 2 the barycentric coodinates of terminal on the right of screen at (left and right as shown in Figure 2) center when screen show
Schematic diagram, the central angle degree of annular display area is 180 degree at this time.
Screen exhibition when the barycentric coodinates for being illustrated in figure 3 terminal are at the screen lower right corner (as shown in Figure 2 up and down)
The schematic diagram shown, the central angle degree of annular display area is 90 degree at this time.
Be illustrated in figure 4 the barycentric coodinates of terminal below screen at (as shown in Figure 2 up and down) bottom when screen show
Schematic diagram, the central angle degree of annular display area is 180 degree at this time.
The schematic diagram that screen is shown when the barycentric coodinates for being illustrated in figure 5 terminal are screen middle position, at this time annular exhibition
The central angle degree for showing region is 360 degree.
Position is shown in the corresponding of annular display area due to showing the application icon of each application in the embodiment of the present invention
It sets, can be convenient user and check and use application.
Embodiment 6:
On the basis of the various embodiments described above, in the embodiment of the present invention, first barycentric coodinates for obtaining present terminal
Afterwards, according to first barycentric coodinates, before determining intended display direction, the method also includes:
The second barycentric coodinates according to first barycentric coodinates and currently saved, judge whether the center of gravity of the terminal is sent out
Movement is given birth to;
If so, carrying out subsequent step.
Terminal is moved in the center of gravity for detecting terminal, the intended display side determined according to the barycentric coodinates after movement
To, the screen content got is shown, may be implemented each center of gravity occur it is mobile just again according to intended display direction
The screen content got is shown, is become in real time when screen content is shown for a user with the terminal of oneself operation
Change, further improves user experience.
When sliding the i.e. shaking terminal of terminal, the center of gravity of terminal can move user, and the second center of gravity is preserved in terminal
Coordinate, terminal are judging whether center of gravity occurs that movement can save according to the first barycentric coodinates currently got and currently
Two barycentric coodinates are judged.
The second barycentric coodinates currently saved in terminal can be the default barycentric coodinates saved in terminal, can be upper
The barycentric coodinates that one moment got.In order to guarantee to determine whether the center of gravity of terminal has occurred movement in real time, preferably
Ground, the barycentric coodinates that last moment can be got save as the second current barycentric coodinates.
According to the first barycentric coodinates and the second barycentric coodinates, judge whether center of gravity has occurred mobile can be terminal and sentences terminal
Whether disconnected first barycentric coodinates and the second barycentric coodinates are identical, if so, determine that movement has occurred in the center of gravity of terminal, if not,
It determines that the center of gravity of terminal does not move, whether can be within the scope of the preset coordinate centered on the second barycentric coodinates comprising the
One barycentric coodinates, if so, determining that movement has occurred in the center of gravity of terminal, if not, it is mobile etc. to determine that the center of gravity of terminal does not occur.
If the terminal determine that movement has occurred in its center of gravity, then shown in screen according to determining intended display direction again
Hold, especially when screen content is shown in annular display area, terminal detects that center of gravity moves, and repaints every time
Annular display area may be implemented annular display area and move with the speed of gravity motion, direction and distance.
The various embodiments described above are illustrated with a specific embodiment below, taking the terminal as an example, in screen
Hold the application icon for each application to be presented, and screen content shows the annular in the target sizes at multiple task management interface
In display area, as shown in Figure 6, comprising the following steps:
It obtains current phone barycentric coodinates (x, y, z).
Click resurrects multiple task management interface button.
Multitask center white point coordinates fall in current position of centre of gravity coordinate (x, y, z), and program icon arrangement is with central point
Center carries out annulus sequence and resurrects multitask column.
In this step, multitask column is the annular display area at multiple task management interface.
Slide mobile phone.
Center-of-gravity sensor obtains the position of centre of gravity of mobile phone current sliding position variation in real time.
Center of gravity follows the sliding of mobile phone to do linear running with speed v.
It is motionless that mobile phone is parked in some position.
Obtaining position of centre of gravity coordinate is (x1, y1, z1).
Multitask center white point is moved in a straight line with speed v, distance for x1-x, and also with speed v, distance is program icon
X1-x is moved in a straight line.
When embodiment provided by the invention is referred mainly to for user's normal use terminal, the user oriented feelings of terminal screen
Condition, since screen is backwards to user, user can not check the screen content with using terminal, can be according to screen forward direction user Shi Zhan
Showing screen content, this will not be repeated here.
The current position of centre of gravity coordinate (x, y, z) of mobile phone is obtained by gravity sensor, clicks the multitask interface button that swaps out,
Multitask center white point coordinates are set in current position of centre of gravity coordinate (x, y, z), and program icon arranges centered on the white point of center
It carries out annulus sequence to swap out multitask interface, effect is as shown in Figure 2.Mobile phone is slided, it is current that gravity sensor obtains mobile phone in real time
The program icon of the position of centre of gravity of sliding position variation, multitask center white point and circle arrangement follows the cunning of mobile phone with speed v
It is dynamic to move in a straight line, it is motionless until mobile phone is parked in some position, it is fixed on a certain position, if center of gravity falls in the mobile phone lower right corner,
Obtaining position of centre of gravity coordinate at this time is (x1, y1, z1), and multitask center white point is x1-x with speed v, distance, is moved in a straight line
Falling in center of gravity is the center of circle, slides into x1 by x, and the program icon of circle arrangement is carried out centered on the white point of center also with speed v, distance
For x1-x, move in a straight line to corresponding position, effect is as shown in Figure 3.
Such as mobile phone is disposed vertically, screen user oriented, at this point, mobile phone center of gravity falls in the center of mobile phone bottom, is led to
It crosses gravity sensor and obtains the current position of centre of gravity coordinate (x1, y1, z1) of mobile phone, multitask center white point is slid into speed v works as
Preceding position of centre of gravity coordinate (x1, y1, z1), program icon arrangement carry out annulus sequence, effect such as Fig. 4 institute centered on the white point of center
Show.
Such as mobile phone is horizontally arranged, screen upward, at this point, mobile phone center of gravity falls in mobile phone middle position, passes through gravity sensitive
Device obtain the current position of centre of gravity coordinate (x1, y1, z1) of mobile phone, multitask center white point with speed v from a upper position coordinates (x,
Y, z), current position of centre of gravity coordinate (x1, y1, z1) is slid into, program icon arrangement carries out annulus row centered on the white point of center
Sequence, effect are as shown in Figure 5.
Therefore by gravity sensor, mobile phone is experienced when altering one's posture, the variation of center of gravity makes the position on mobile phone multitask column
It sets the variation for following center of gravity and changes, the position of center of gravity is often the position of most convenient user viewing, and the present invention realizes multitask
The variation of the location following center of gravity on column and changing is more conducive to user's viewing.
Due in the embodiment of the present invention screen content show when with the variation of terminal center of gravity real-time change, further increase
User experience.
Embodiment 7:
On the basis of the various embodiments described above, the embodiment of the invention also provides a kind of terminals 700, as shown in fig. 7, packet
It includes: processor 701, communication interface 702, memory 703 and communication bus 704, wherein processor 701, communication interface 702 are deposited
Reservoir 703 completes mutual communication by communication bus 704;
It is stored with computer program in the memory 703, when described program is executed by the processor 701, so that
The processor 701 executes following steps:
Obtain the first barycentric coodinates of present terminal;
According to first barycentric coodinates, intended display direction is determined;
According to the intended display direction, the screen content got is shown.
Terminal display method provided in an embodiment of the present invention is applied to terminal.
The communication bus that above-mentioned terminal is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface 702 is for the communication between above-mentioned terminal and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit, network processing unit (Network
Processor, NP) etc.;It can also be digital command processor (Digital Signal Processing, DSP), dedicated collection
At circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hard
Part component etc..
In embodiments of the present invention, it when processor executes the program stored on memory, realizes according to the weight got
Heart coordinate is adjusted the displaying direction of screen content, therefore can guarantee under terminal differing tilt angles, and user checks
To content normally show, facilitate user's checking and using to terminal.
Embodiment 8:
On the basis of the various embodiments described above, the embodiment of the invention also provides a kind of computers to store readable storage medium
Matter is stored with the computer program that can be executed by terminal in the computer readable storage medium, when described program is at the end
When being run on end, so that the terminal realizes following steps when executing:
Obtain the first barycentric coodinates of present terminal;
According to first barycentric coodinates, intended display direction is determined;
According to the intended display direction, the screen content got is shown.
Above-mentioned computer readable storage medium can be any usable medium or number that the processor in terminal can access
Such as according to storage equipment, including but not limited to magnetic storage such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc., optical memory
CD, DVD, BD, HVD etc. and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NAND
FLASH), solid state hard disk (SSD) etc..
Computer program, computer program are provided in the computer readable storage medium provided in embodiments of the present invention
When being executed by processor, realizes according to the barycentric coodinates got, the displaying direction of screen content is adjusted, therefore can
Guarantee under terminal differing tilt angles, the content that user views normally is shown, is facilitated user and is checked to terminal
With use.
Fig. 8 is a kind of 800 schematic diagram of terminal display device provided in an embodiment of the present invention, is applied to terminal, the device packet
It includes:
Module 801 is obtained, for obtaining the first barycentric coodinates of present terminal;
Determining module 802, for determining intended display direction according to first barycentric coodinates;
Display module 803, for being shown to the screen content got according to the intended display direction.
The determining module 802 is specifically used for determining first barycentric coodinates pre- according to first barycentric coodinates
If terminal three-dimensional system of coordinate under each direction acceleration;According to the acceleration in each direction, intended display side is determined
To.
The determining module 802, is also used to described according to the intended display direction, to the screen content got into
Before row is shown, according to first barycentric coodinates, the target sizes for showing the display area of screen content are determined;
The display module 802, specifically in the display area of the target sizes, according to the intended display side
To being shown to the screen content got.
The display area includes at least one in annular display area, round display area and polygon display area
?.
If the display area includes annular display area, the determining module 802 is specifically used for according to described first
Barycentric coodinates determine the central coordinate of circle and target center of circle angle number of the annular display area;According to the central coordinate of circle, described
Target center of circle angle number and predetermined radius determine the target sizes of the annular display area.
The screen content got includes application icon, the display module 803, is got specifically for determination
Each correspondence display location applied in the annular display area;In the correspondence exhibition of the annular display area of the target sizes
Show in position, shows the application icon of each application.
Described device further include:
Judgment module 804 after the first barycentric coodinates for obtaining present terminal, according to first barycentric coodinates and is worked as
Second barycentric coodinates of preceding preservation, judge whether the center of gravity of the terminal has occurred movement;If so, triggering the determining module
802。
Terminal can adjust the displaying direction of screen content according to the barycentric coodinates got in the embodiment of the present invention
It is whole, therefore can guarantee under terminal differing tilt angles, the content that user views normally is shown, facilitates user couple
Terminal checking and using.
For systems/devices embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (16)
1. a kind of terminal display method, which is characterized in that this method comprises:
Obtain the first barycentric coodinates of present terminal;
According to first barycentric coodinates, intended display direction is determined;
According to the intended display direction, the screen content got is shown.
2. the method as described in claim 1, which is characterized in that it is described according to first barycentric coodinates, determine intended display
Direction includes:
According to first barycentric coodinates, first barycentric coodinates each direction under preset terminal three-dimensional system of coordinate is determined
Acceleration;
According to the acceleration in each direction, intended display direction is determined.
3. the method as described in claim 1, which is characterized in that described according to the intended display direction, to what is got
Before screen content is shown, the method also includes:
According to first barycentric coodinates, the target sizes for showing the display area of screen content are determined;
It is described according to the intended display direction, the screen content got be shown include:
In the display area of the target sizes, according to the intended display direction, the screen content got is opened up
Show.
4. method as claimed in claim 3, which is characterized in that the display area includes annular display area, round displaying
At least one of in region and polygon display area.
5. the method as claimed in claim 3 or 4, which is characterized in that if the display area includes annular display area, institute
It states and determines that the target sizes for showing the display area of screen content include: according to first barycentric coodinates
According to first barycentric coodinates, the central coordinate of circle and target center of circle angle number of the annular display area are determined;
According to the central coordinate of circle, target center of circle angle number and predetermined radius, the annular display area is determined
Target sizes.
6. method as claimed in claim 5, which is characterized in that the screen content got includes application icon, described
In the display area of the target sizes, according to the intended display direction, packet is shown to the screen content got
It includes:
Determine the correspondence display location for each of getting and applying in the annular display area;
In the correspondence display location of the annular display area of the target sizes, the application icon of each application is shown.
7. the method as described in claim 1, which is characterized in that after first barycentric coodinates for obtaining present terminal, in root
According to first barycentric coodinates, before determining intended display direction, the method also includes:
The second barycentric coodinates according to first barycentric coodinates and currently saved, judge whether the center of gravity of the terminal has occurred
It is mobile;
If so, carrying out subsequent step.
8. a kind of terminal display device, which is characterized in that the device includes:
Module is obtained, for obtaining the first barycentric coodinates of present terminal;
Determining module, for determining intended display direction according to first barycentric coodinates;
Display module, for being shown to the screen content got according to the intended display direction.
9. device as claimed in claim 8, which is characterized in that the determining module is specifically used for according to first center of gravity
Coordinate determines the acceleration in first barycentric coodinates each direction under preset terminal three-dimensional system of coordinate;According to described every
The acceleration in a direction determines intended display direction.
10. device as claimed in claim 8, which is characterized in that the determining module is also used to described according to the target
It shows direction, before being shown to the screen content got, according to first barycentric coodinates, determines for showing screen
The target sizes of the display area of content;
The display module, specifically in the display area of the target sizes, according to the intended display direction, to obtaining
The screen content got is shown.
11. device as claimed in claim 10, which is characterized in that the display area includes annular display area, round exhibition
Show in region and polygon display area at least one of.
12. device as described in claim 10 or 11, which is characterized in that if the display area includes annular show area
Domain, the determining module, be specifically used for being determined according to first barycentric coodinates central coordinate of circle of the annular display area and
Target center of circle angle number;According to the central coordinate of circle, target center of circle angle number and predetermined radius, the ring is determined
The target sizes of shape display area.
13. device as claimed in claim 12, which is characterized in that the screen content got includes application icon, institute
Display module is stated, specifically for determining the correspondence display location for each of getting and applying in the annular display area;Institute
In the correspondence display location for stating the annular display area of target sizes, the application icon of each application is shown.
14. device as claimed in claim 8, which is characterized in that described device further include:
Judgment module after the first barycentric coodinates for obtaining present terminal, according to first barycentric coodinates and current saves
The second barycentric coodinates, judge whether the center of gravity of the terminal has occurred movement;If so, triggering the determining module.
15. a kind of terminal characterized by comprising processor, communication interface, memory and communication bus, wherein processor,
Communication interface, memory complete mutual communication by communication bus;
It is stored with computer program in the memory, when described program is executed by the processor, so that the processor
Perform claim requires the step of any one of 1~7 the method.
16. a kind of computer readable storage medium, which is characterized in that it is stored with the computer program that can be executed by terminal, when
When described program is run on the terminal, so that the step of terminal perform claim requires any one of 1~7 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810873818.2A CN109189244B (en) | 2018-08-02 | 2018-08-02 | Terminal display method and device, terminal and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810873818.2A CN109189244B (en) | 2018-08-02 | 2018-08-02 | Terminal display method and device, terminal and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189244A true CN109189244A (en) | 2019-01-11 |
CN109189244B CN109189244B (en) | 2020-07-07 |
Family
ID=64919963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810873818.2A Active CN109189244B (en) | 2018-08-02 | 2018-08-02 | Terminal display method and device, terminal and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189244B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111369671A (en) * | 2020-03-16 | 2020-07-03 | 安博思华智能科技有限责任公司 | Method, device, medium and electronic equipment for adjusting multimedia blackboard |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273216A1 (en) * | 2004-06-02 | 2005-12-08 | Pioneer Corporation | Method and apparatus for displaying information for vehicle, and computer product |
CN105700708A (en) * | 2016-01-18 | 2016-06-22 | 深圳市金立通信设备有限公司 | Terminal interface adjusting method and terminal |
CN106095117A (en) * | 2016-08-10 | 2016-11-09 | 北京小米移动软件有限公司 | The determination method and device of picture display mode |
CN108040179A (en) * | 2017-12-25 | 2018-05-15 | 广东欧珀移动通信有限公司 | Screen switching and Related product |
-
2018
- 2018-08-02 CN CN201810873818.2A patent/CN109189244B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273216A1 (en) * | 2004-06-02 | 2005-12-08 | Pioneer Corporation | Method and apparatus for displaying information for vehicle, and computer product |
CN105700708A (en) * | 2016-01-18 | 2016-06-22 | 深圳市金立通信设备有限公司 | Terminal interface adjusting method and terminal |
CN106095117A (en) * | 2016-08-10 | 2016-11-09 | 北京小米移动软件有限公司 | The determination method and device of picture display mode |
CN108040179A (en) * | 2017-12-25 | 2018-05-15 | 广东欧珀移动通信有限公司 | Screen switching and Related product |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111369671A (en) * | 2020-03-16 | 2020-07-03 | 安博思华智能科技有限责任公司 | Method, device, medium and electronic equipment for adjusting multimedia blackboard |
CN111369671B (en) * | 2020-03-16 | 2023-11-17 | 安博思华智能科技有限责任公司 | Method, device, medium and electronic equipment for adjusting multimedia blackboard |
Also Published As
Publication number | Publication date |
---|---|
CN109189244B (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3042275B1 (en) | Tilting to scroll | |
KR102001849B1 (en) | Adjusting the display area of application icons at a device screen | |
CN106527722B (en) | Exchange method, system and terminal device in virtual reality | |
EP2837992B1 (en) | User interface interaction method and apparatus applied in touchscreen device, and touchscreen device | |
US9436369B2 (en) | Touch interface for precise rotation of an object | |
US20170256096A1 (en) | Intelligent object sizing and placement in a augmented / virtual reality environment | |
CN107765952A (en) | Screenshotss method, apparatus and terminal | |
WO2015196703A1 (en) | Application icon display method and apparatus | |
JP2014501998A (en) | System and method for presenting multiple frames on a touch screen | |
CN105190509B (en) | Content rotation is provided during scroll actions | |
CN110251936B (en) | Method and device for controlling virtual camera in game and storage medium | |
US11430192B2 (en) | Placement and manipulation of objects in augmented reality environment | |
US20160266775A1 (en) | Interface providing systems and methods for enabling efficient screen control | |
US9891713B2 (en) | User input processing method and apparatus using vision sensor | |
EP3482285B1 (en) | Shake event detection system | |
CN106445334B (en) | Display interface adjusting method and adjusting system | |
CN109189244A (en) | A kind of terminal display method, apparatus, terminal and readable storage medium storing program for executing | |
CN109033100A (en) | The method and device of content of pages is provided | |
CN109254710B (en) | Screen rotation method and device, terminal equipment and computer readable storage medium | |
CN111077999B (en) | Information processing method, equipment and system | |
CN109189299B (en) | Screen display method and device, terminal and readable storage medium | |
CN111311760A (en) | Three-dimensional building display method, system, device and storage medium | |
CN106201213A (en) | The control method of a kind of virtual reality focus and terminal | |
CN110162263B (en) | Display control method, display control device, mobile terminal and storage medium | |
US7921382B2 (en) | Method for smooth rotation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |