CN109189244B - Terminal display method and device, terminal and readable storage medium - Google Patents

Terminal display method and device, terminal and readable storage medium Download PDF

Info

Publication number
CN109189244B
CN109189244B CN201810873818.2A CN201810873818A CN109189244B CN 109189244 B CN109189244 B CN 109189244B CN 201810873818 A CN201810873818 A CN 201810873818A CN 109189244 B CN109189244 B CN 109189244B
Authority
CN
China
Prior art keywords
terminal
target
coordinate
display area
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810873818.2A
Other languages
Chinese (zh)
Other versions
CN109189244A (en
Inventor
卢婉贞
马颖江
唐晓晖
杨扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810873818.2A priority Critical patent/CN109189244B/en
Publication of CN109189244A publication Critical patent/CN109189244A/en
Application granted granted Critical
Publication of CN109189244B publication Critical patent/CN109189244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General 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 terminal display method, a device, a terminal and a readable storage medium, wherein the method comprises the following steps: acquiring a first barycentric coordinate of a current terminal; determining a target display direction according to the first barycentric coordinate; and displaying the acquired screen content according to the target display direction. According to the invention, the terminal can adjust the display direction of the screen content according to the obtained barycentric coordinates, so that the content viewed by the user can be normally displayed under different inclination angles of the terminal, and the user can conveniently view and use the terminal.

Description

Terminal display method and device, terminal and readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a terminal display method and apparatus, a terminal, and a readable storage medium.
Background
With the increase of the storage space of the intelligent terminal and the increase of the application types, in order to meet the use requirements of users, the number of applications installed on the intelligent terminal is increased, and all the installed applications are displayed on the main interface of the terminal. Taking a mobile phone as an example, application icons of all installed applications are displayed on a main interface of the mobile phone, a user can start the applications by clicking the application icons, and the mobile phone displays application pages of the started applications.
In the prior art, no matter the terminal displays the content under the main interface or the content in the application page, the terminal can only support horizontal screen display or vertical screen display, and the limitation of a user on the scene and the environment is large when the user uses the terminal. If the user is in a specific scene where the user can only use and view the terminal in an inclined manner, for example, when the user lies on the bed or on the chair, because the terminal only supports horizontal screen display or vertical screen display, when the user has a certain inclination angle, the direction of the content displayed on the screen does not change, and at this time, the content viewed by the current user is inclined, or the user needs to incline the mobile phone to view the content normally, which affects the normal viewing and use of the user.
Disclosure of Invention
The invention provides a terminal display method, a terminal display device, a terminal and a readable storage medium, which are used for solving the problem that in the prior art, a scene is limited and is not convenient for a user to check and use the terminal.
The invention provides a terminal display method, which comprises the following steps:
acquiring a first barycentric coordinate of a current terminal;
determining a target display direction according to the first barycentric coordinate;
and displaying the acquired screen content according to the target display direction.
Further, the determining the target display direction according to the first barycentric coordinate comprises:
according to the first barycentric coordinate, determining the acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system;
and determining the target display direction according to the acceleration in each direction.
Further, before the displaying the acquired screen content according to the target display direction, the method further includes:
determining the target size of a display area for displaying the screen content according to the first barycentric coordinate;
the displaying the acquired screen content according to the target display direction comprises the following steps:
and displaying the acquired screen content in the display area with the target size according to the target display direction.
Further, the display area comprises at least one of an annular display area, a circular display area and a polygonal display area.
Further, if the presentation area comprises a circular presentation area, the determining a target size of the presentation area for presenting the screen content according to the first barycentric coordinate comprises:
determining the circle center coordinate and the target circle center angle degree of the annular display area according to the first gravity center coordinate;
and determining the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and a predetermined radius.
Further, the displaying the acquired screen content in the display area with the target size according to the target display direction includes:
determining the corresponding display position of each acquired application in the annular display area;
displaying the application icon of each application in the corresponding display position of the annular display area of the target size.
Further, after obtaining the first barycentric coordinate of the current terminal, before determining the target display direction according to the first barycentric coordinate, the method further includes:
judging whether the center of gravity of the terminal moves or not according to the first center of gravity coordinate and a second center of gravity coordinate stored currently;
if yes, the subsequent steps are carried out.
The invention provides a terminal display device, which comprises:
the acquisition module is used for acquiring a first barycentric coordinate of the current terminal;
the determining module is used for determining the target display direction according to the first barycentric coordinate;
and the display module is used for displaying the acquired screen content according to the target display direction.
Further, the determining module is specifically configured to determine, according to the first barycentric coordinate, an acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system; and determining the target display direction according to the acceleration in each direction.
Further, the determining module is further configured to determine, according to the first barycentric coordinate, a target size of a display area for displaying the screen content before displaying the acquired screen content according to the target display direction;
the display module is specifically configured to display the acquired screen content in the display area of the target size according to the target display direction.
Further, the display area comprises at least one of an annular display area, a circular display area and a polygonal display area.
Further, if the display area comprises an annular display area, the determining module is specifically configured to determine a circle center coordinate and a target circle center angle of the annular display area according to the first barycentric coordinate; and determining the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and a predetermined radius.
Further, the acquired screen content includes application icons, and the display module is specifically configured to determine a corresponding display position of each acquired application in the annular display area; displaying the application icon of each application in the corresponding display position of the annular display area of the target size.
Further, the apparatus further comprises:
the judging module is used for judging whether the center of gravity of the terminal moves or not according to the first barycentric coordinate and a currently stored second barycentric coordinate after the first barycentric coordinate of the current terminal is obtained; if so, triggering the determining module.
The present invention provides a terminal, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of any of the methods described above.
The present invention provides a computer readable storage medium storing a computer program executable by a terminal, the program, when run on the terminal, causing the terminal to perform the steps of any of the methods described above.
The invention provides a terminal display method, a device, a terminal and a readable storage medium, wherein the method comprises the following steps: acquiring a first barycentric coordinate of a current terminal; determining a target display direction according to the first barycentric coordinate; and displaying the acquired screen content according to the target display direction. According to the invention, the terminal can adjust the display direction of the screen content according to the obtained barycentric coordinates, so that the content viewed by the user can be normally displayed under different inclination angles of the terminal, and the user can conveniently view and use the terminal.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a terminal display process provided in embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a screen display when a barycentric coordinate of a terminal is at a right center of the screen according to embodiment 5 of the present invention;
fig. 3 is a schematic diagram of a screen display when a barycentric coordinate of a terminal provided in embodiment 5 of the present invention is a right lower corner of the screen;
fig. 4 is a schematic diagram of a screen display when the barycentric coordinate of the terminal provided in embodiment 5 of the present invention is at the bottom below the screen;
fig. 5 is a schematic diagram of a screen display when a barycentric coordinate of a terminal provided in embodiment 5 of the present invention is a screen middle position;
fig. 6 is a schematic diagram of a terminal display process provided in embodiment 6 of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to embodiment 7 of the present invention;
fig. 8 is a schematic view of a terminal display device according to an embodiment of the present invention.
Detailed Description
In order to facilitate a user to view and use a terminal, the embodiment of the invention provides a terminal display method, a terminal display device, a terminal and a readable storage medium.
The terminal display method provided by the embodiment of the invention can be applied to a terminal, and the terminal comprises a hardware layer, an operating system layer running on the hardware layer and an application layer running on the operating system.
The hardware layer includes hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a Memory.
The operating system may be any one or more computer operating systems that implement terminal display through a Process (Process), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer can acquire the barycentric coordinates of the current terminal.
In the embodiment of the present invention, the terminal may be a handheld device such as a smart phone and a tablet computer, or a terminal device such as a desktop computer and a portable computer, which is not particularly limited in the embodiment of the present invention, as long as the terminal display can be realized by running a program recorded with a code of the terminal display method in the embodiment of the present invention.
The execution main body displayed by the terminal in the embodiment of the invention can be the terminal or a functional module which can call the program and execute the program in the terminal.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a terminal display process provided in an embodiment of the present invention, where the process includes the following steps:
s101: and acquiring a first barycentric coordinate of the current terminal.
The terminal display method provided by the embodiment of the invention is applied to a terminal, the terminal can acquire the first barycentric coordinate of the current terminal, the first barycentric coordinate can be a three-dimensional coordinate under a preset terminal three-dimensional coordinate system, and the first barycentric coordinate acquired by the terminal can be acquired in real time.
The process of acquiring the first barycentric coordinate of the current terminal by the terminal may be acquisition by using a sensor provided in the terminal. The sensor arranged in the terminal at least comprises a gravity sensor, and in addition, the terminal can also be provided with a common sensor such as a direction sensor.
The terminal acquiring the first barycentric coordinate of the current terminal may be acquired by the terminal when the terminal displays any screen content, may be acquired by the terminal when the terminal displays a specific screen content, and the like.
The process of obtaining the first barycentric coordinate of the current terminal belongs to the prior art, and is not described in detail in the embodiment of the present invention.
S102: and determining the target display direction according to the first barycentric coordinate.
After the terminal acquires the first barycentric coordinate of the current terminal, a target display direction can be determined according to the first barycentric coordinate, and the target display direction is used for determining the display direction of the screen content.
The terminal may be a terminal in which a corresponding relationship between the barycentric coordinate and the display direction is pre-stored, so that after the terminal acquires the first barycentric coordinate, the target display direction corresponding to the first barycentric coordinate may be determined; or the terminal can determine the acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system according to the acquired first barycentric coordinate, so that the target display direction and the like are determined according to the acceleration in each direction.
S103: and displaying the acquired screen content according to the target display direction.
After the terminal determines the target display direction, the obtained screen content can be displayed according to the target display direction, so that the screen content can be normally displayed instead of obliquely displayed for a user.
When the terminal displays the acquired screen content according to the target display direction, if the target display direction corresponds to a horizontal screen display or a vertical screen display, all the acquired content may be displayed when the acquired screen content is displayed, and if the target display direction corresponds to a screen tilt display, all or part of the acquired content may be displayed when the acquired screen content is displayed.
The process of acquiring the screen content by the terminal can be realized by adopting the existing method, and details are not repeated in the embodiment of the invention.
If the terminal acquires the first barycentric coordinate of the current terminal in real time, the acquired screen content can be displayed according to the target display direction determined in real time, and at the moment, the screen content moves to the barycentric position of the terminal along with the movement of the barycentric of the sliding terminal, so that the problem of the singleness of multi-taskbar fixed position display is solved, the experience of a user is improved, the use pleasure of the user is increased, and an innovation mode is also added for the multi-taskbar position display.
According to the embodiment of the invention, the terminal can adjust the display direction of the screen content according to the obtained barycentric coordinate, so that the content viewed by the user can be normally displayed under different inclination angles of the terminal, and the user can conveniently view and use the terminal.
Example 2:
in order to ensure that different terminals can be adapted, on the basis of the foregoing embodiment, in an embodiment of the present invention, the determining a target display direction according to the first barycentric coordinate includes:
according to the first barycentric coordinate, determining the acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system;
and determining the target display direction according to the acceleration in each direction.
If the terminal determines the target display direction according to the pre-stored corresponding relationship between the barycentric coordinate and the display direction, and the barycentric coordinate in the same display direction is different due to different terminal sizes of different terminals, developers need to store the corresponding relationship between the barycentric coordinate and the display direction corresponding to the terminal in the terminal according to the terminal sizes of different terminals, so that the workload of the developers is increased, and if the same barycentric coordinate and the display direction corresponding to the terminal may not be adapted to different terminals.
The terminal stores a preset terminal three-dimensional coordinate system, which specifies different directions under three dimensional components (the three dimensions are usually represented by an X axis, a Y axis and a Z axis) in the coordinate system, where the different directions may be different directions in space, may be positive and negative directions of the three dimensions, and the like.
The process of determining the acceleration of the gravity center coordinate in each direction under the three-dimensional coordinate system by the terminal belongs to the prior art, and is not described in detail in the embodiment of the invention.
The process of determining the target display direction by the terminal according to the acceleration in each direction may be that the terminal determines a target direction in which a forward acceleration exists, and determines the target display direction according to the target direction, for example, when there is a forward acceleration existing in only one target direction, the target direction may be directly determined as the target display direction, which generally occurs in a landscape display or a portrait display, when there are accelerations in at least two target directions, the target display direction may be determined according to vectors of the accelerations in the two target directions, which generally occurs in a screen tilt display.
According to the embodiment of the invention, the target display direction is determined according to the acceleration of the determined first barycentric coordinate in each direction under the three-dimensional coordinate system, so that the terminal can be adapted to different terminals during display, and the accuracy of terminal display is improved.
Example 3:
in order to further improve the convenience of the user when using the terminal, on the basis of the foregoing embodiments, in an embodiment of the present invention, before displaying the acquired screen content according to the target display direction, the method further includes:
determining the target size of a display area for displaying the screen content according to the first barycentric coordinate;
the displaying the acquired screen content according to the target display direction comprises the following steps:
and displaying the acquired screen content in the display area with the target size according to the target display direction.
The display area comprises at least one of an annular display area, a circular display area and a polygonal display area.
When the user lies on one side to use the terminal, the terminal is usually used by one hand, and the terminal screen is displayed in an inclined mode, so that the terminal is convenient for the user to use, the screen content can be displayed in a display area with a certain size, and the user can check and use the screen content in the display area with the certain size conveniently.
The shape of the display area for displaying the acquired screen content may be any shape, for example, the display area may be one or more of an annular display area, a circular display area, and a polygonal display area, and generally the display area is any one of an annular display area, a circular display area, and a polygonal display area.
When the terminal determines a display area for displaying the acquired screen content, the target size of the display area for displaying the screen content by the user is determined according to the acquired first barycentric coordinate, specifically, when the terminal determines the target size of the display area according to the first barycentric coordinate, the target size may be determined according to display areas of different shapes, or may be determined according to a correspondence relationship between the barycentric coordinate and the size of the display area, which is stored in advance.
For example, if the display area includes an annular display area and/or a circular display area, the circle center coordinate, the circle center angle number, and the radius of the display area may be determined according to the first barycentric coordinate, so as to determine the target size of the annular display area and/or the circular display area, and if the display area includes a polygonal display area, the side length of the display area may be determined according to the first barycentric coordinate, so as to determine the target size of the polygonal display area.
After the terminal determines the target size of the display area for displaying the screen content, the terminal displays the screen content in the display area of the target size according to the target display direction, the screen content can be displayed in a display area with a certain size, so that when a user operates the terminal with one hand more conveniently, the size and the position of the multitask bar are adaptively changed according to the current gravity center position of the sliding terminal for checking and using the screen content, thereby not only solving the problem that the user does not want the multitask bar to occupy too large screen space, meanwhile, the size and the angle of the sector are adaptively adjusted by opening the position of the multi-task bar (the size and the angle of the sector corresponding to the display area is an annular display area or a circular display area), so that the multi-task bar can be opened conveniently when a user needs to use a large screen space, and the normal use of the user cannot be blocked.
For example, the screen content including the application icons may be presented in a target presentation direction in a target-sized annular presentation area to facilitate the user's viewing and use of the application.
In the embodiment of the invention, the screen content is displayed in the display area with a certain size, so that the terminal is more convenient for a user to operate by one hand, and the convenience of the user in using the terminal is further improved.
Example 4:
in order to further improve the convenience of the user when using the terminal, on the basis of the foregoing embodiments, in an embodiment of the present invention, if the display area includes an annular display area, the determining, according to the first barycentric coordinate, a target size of the display area for displaying the screen content includes:
determining the circle center coordinate and the target circle center angle degree of the annular display area according to the first gravity center coordinate;
and determining the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and a predetermined radius.
Because the screen inclines when showing, the user is the one-hand use terminal usually, and the regional size of the terminal screen that can touch when one-hand use terminal is limited, consequently when the show area includes annular show area, adopt the annular show area of target central angle degree corresponding target size to show screen content, can be more convenient for user's one-hand operation.
When the terminal determines the target size of the annular display area, the terminal determines the circle center coordinate and the target circle center angle degree of the annular display area according to the first gravity center coordinate of the annular display area, and then determines the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and the predetermined radius.
When the terminal determines the center coordinate of the annular display area according to the first barycentric coordinate, the first barycentric coordinate may be determined as the center coordinate of the annular display area.
When the terminal determines the target central angle of the annular display area according to the first barycentric coordinate, a pre-stored correspondence between the barycentric coordinate and the central angle may be pre-stored in the terminal.
The terminal stores a predetermined radius, which may be preset when the terminal leaves a factory, may be set and stored by a user according to a use habit of the user, and may be determined by the terminal according to the acquired screen height and/or screen width, and the like.
When the terminal determines the target size of the annular display area, the annular display area corresponding to the target central angle degree can be drawn according to the circle center coordinate and the radius.
The number of the annular display areas can be one or more.
In the embodiment of the invention, when the display area comprises the annular display area, the screen content is displayed by adopting the annular display area with the target central angle corresponding to the target size, so that the single-hand operation of a user can be more convenient, and the convenience of the user in using the terminal is further improved.
Example 5:
on the basis of the foregoing embodiment, in an embodiment of the present invention, the acquiring the screen content includes an application icon, and displaying the acquired screen content in the display area with the target size according to the target display direction includes:
determining the corresponding display position of each acquired application in the annular display area;
displaying the application icon of each application in the corresponding display position of the annular display area of the target size.
The application icon of each application is displayed at the corresponding display position of the annular display area, so that a user can conveniently view and use the application.
Generally, each display position of the annular display area is fixed, the terminal determines each corresponding display position applied in the annular display area, the terminal may determine according to application display manually set by a user, or the terminal may display according to a preset display rule, the preset display rule may be determined according to the time of the user using each application from the current system time of the terminal, or may be determined according to the frequency of the user using each application within a set time.
Preferably, the application icons can be displayed from front to back according to the time from the application use time of the user to the current terminal system time from short to long, and the application icons can be displayed from front to back according to the application use frequency of the user from high to low, so that the user can find the background application with higher self-demand degree more quickly, and the user can check and use the application conveniently.
After the terminal determines the application icon of each application to be displayed, the application icon of each application is displayed at the corresponding display position of the annular display area with the target size, and each application can be directly reflected by the application icon, so that the user can further conveniently view and use the application icon.
Fig. 2 is a schematic diagram showing the screen display when the barycentric coordinates of the terminal are at the right (left and right as shown in fig. 2) center of the screen, and the central angle of the annular display area is 180 degrees.
Fig. 3 is a schematic diagram of the screen display when the barycentric coordinate of the terminal is at the lower right corner of the screen (up, down, left, and right as shown in fig. 2), and the central angle of the annular display area is 90 degrees at this time.
Fig. 4 is a schematic diagram of the screen display when the barycentric coordinates of the terminal are at the bottom below the screen (up and down as shown in fig. 2), and the central angle of the annular display area is 180 degrees.
Fig. 5 is a schematic diagram of the screen display when the barycentric coordinate of the terminal is the middle position of the screen, and the central angle of the annular display area is 360 degrees.
According to the embodiment of the invention, the application icon of each application is displayed at the corresponding display position of the annular display area, so that a user can conveniently view and use the application.
Example 6:
on the basis of the foregoing embodiments, in an embodiment of the present invention, after the obtaining of the first barycentric coordinate of the current terminal, before determining the target display direction according to the first barycentric coordinate, the method further includes:
judging whether the center of gravity of the terminal moves or not according to the first center of gravity coordinate and a second center of gravity coordinate stored currently;
if yes, the subsequent steps are carried out.
The terminal displays the acquired screen content when detecting that the center of gravity of the terminal moves and according to the target display direction determined by the moved center of gravity coordinate, so that the acquired screen content can be displayed again according to the target display direction when the center of gravity moves every time, the screen content changes in real time along with the terminal operated by the user when displayed, and the user experience is further improved.
When a user slides the terminal, namely the terminal is shaken, the center of gravity of the terminal can move, the second center of gravity coordinate is stored in the terminal, and the terminal can judge whether the center of gravity moves according to the currently acquired first center of gravity coordinate and the currently stored second center of gravity coordinate.
The second barycentric coordinate currently stored in the terminal may be a default barycentric coordinate stored in the terminal, or may be a barycentric coordinate acquired at the last time. In order to ensure that whether the center of gravity of the terminal moves can be determined in real time, preferably, the center of gravity coordinate acquired at the last time can be stored as the current second center of gravity coordinate.
The terminal judges whether the center of gravity moves according to the first center of gravity coordinate and the second center of gravity coordinate, wherein the judgment of the terminal whether the first center of gravity coordinate is the same as the second center of gravity coordinate can be carried out by judging whether the first center of gravity coordinate is the same as the second center of gravity coordinate by the terminal, if so, the judgment of the terminal whether the center of gravity moves is carried out, if not, the judgment of the terminal whether the center of gravity does not move is carried out, and the judgment of the terminal whether the first center of gravity coordinate is contained in a preset coordinate range with the second center of gravity coordinate as the center can be carried out by judging whether the.
If the terminal determines that the center of gravity of the terminal moves, the terminal displays the screen content according to the determined target display direction again, and particularly when the screen content is displayed in the annular display area, the terminal detects that the center of gravity moves each time and redraws the annular display area, so that the annular display area can move along with the speed, the direction and the distance of the center of gravity moving.
The following describes the above embodiments with a specific embodiment, taking a terminal as a mobile phone as an example, taking a screen content as an application icon of each application to be displayed, and displaying the screen content in an annular display area of a target size of a multitask management interface, as shown in fig. 6, including the following steps:
and acquiring the current barycentric coordinates (x, y, z) of the mobile phone.
Clicking the button of the multi-task management interface.
And the coordinates of a white point of the multitask center fall on the coordinates (x, y and z) of the current gravity center position, and program icons are arranged to take the center point as the center to carry out circular ring sequencing so as to call out the multitask bar.
In this step, the multitasking bar is a circular display area in the multitasking management interface.
The mobile phone is slid.
The gravity center sensor acquires the gravity center position of the current sliding position change of the mobile phone in real time.
The center of gravity moves linearly with the speed v following the sliding of the mobile phone.
The mobile phone is stopped at a certain position and is not moved.
The barycentric location coordinates are acquired as (x1, y1, z 1).
The multitasking center white point moves linearly at a speed v with a distance x1-x, and the program icon also moves linearly at a speed v with a distance x 1-x.
The embodiment provided by the invention mainly aims at the condition that the terminal screen faces the user when the user normally uses the terminal, and the user cannot check and use the screen content of the terminal because the screen faces away from the user, so that the screen content can be displayed according to the condition that the screen faces the user, and is not repeated.
The current barycentric position coordinates (x, y and z) of the mobile phone are obtained through the gravity sensor, a multitask interface button is clicked, the coordinates of a multitask center white point are set in the current barycentric position coordinates (x, y and z), program icons are arranged, a center white point is used as the center, circular ring sequencing is conducted, and a multitask interface is changed, and the effect is shown in fig. 2. The mobile phone is slid, a gravity sensor acquires the gravity center position of the current sliding position change of the mobile phone in real time, the program icons arranged by the multitask center white points and the circular rings move linearly with the sliding of the mobile phone at a speed v until the mobile phone is stopped at a certain position and fixed at a certain position, if the gravity center falls on the lower right corner of the mobile phone, the coordinates of the gravity center position are acquired to be (x1, y1 and z1), the coordinates of the multitask center white points slide to x1 from x by taking the speed v and the distance of the multitask center white points as x1-x and the linear motion falls on the gravity center as the circle center, the program icons arranged by taking the center white points as the centers also move linearly to the corresponding positions at the speed v and the distance of x1-x, and the effect is shown in.
If the mobile phone is vertically placed, the screen faces the user, at this time, the gravity center of the mobile phone is located at the center position of the bottom of the mobile phone, the current gravity center position coordinates (x1, y1 and z1) of the mobile phone are obtained through the gravity sensor, the multitask center white point slides to the current gravity center position coordinates (x1, y1 and z1) at a speed v, the program icons are arranged and are sorted in a circular ring mode by taking the center white point as the center, and the effect is shown in fig. 4.
If the mobile phone is placed horizontally and the screen is upward, at this time, the gravity center of the mobile phone is located at the middle position of the mobile phone, the current gravity center position coordinates (x1, y1 and z1) of the mobile phone are obtained through the gravity sensor, the multitask center white point slides to the current gravity center position coordinates (x1, y1 and z1) from the last position coordinates (x, y and z) at the speed v, and the program icons are arranged to be sorted in a circular ring mode by taking the center white point as the center, and the effect is shown in fig. 5.
Therefore, the gravity sensor senses the change of the gravity center when the mobile phone changes the posture, so that the position of the mobile phone multi-task bar is changed along with the change of the gravity center, the position of the gravity center is often the position which is most convenient for a user to watch, and the change of the position of the multi-task bar along with the change of the gravity center is more favorable for the user to watch.
According to the embodiment of the invention, the screen content changes in real time along with the change of the gravity center of the terminal during display, so that the user experience is further improved.
Example 7:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a terminal 700, as shown in fig. 7, including: the system comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704;
the memory 703 has stored therein a computer program which, when executed by the processor 701, causes the processor 701 to perform the steps of:
acquiring a first barycentric coordinate of a current terminal;
determining a target display direction according to the first barycentric coordinate;
and displaying the acquired screen content according to the target display direction.
The terminal display method provided by the embodiment of the invention is applied to the terminal.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 702 is used for communication between the above-described terminal and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The processor may be a general-purpose processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
In the embodiment of the invention, when the processor executes the program stored in the memory, the display direction of the screen content is adjusted according to the acquired barycentric coordinates, so that the content viewed by the user can be normally displayed under different inclination angles of the terminal, and the user can conveniently view and use the terminal.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by a terminal is stored, and when the program is run on the terminal, the terminal is caused to execute the following steps:
acquiring a first barycentric coordinate of a current terminal;
determining a target display direction according to the first barycentric coordinate;
and displaying the acquired screen content according to the target display direction.
The above-mentioned computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in a terminal, including but not limited to magnetic memory such as a flexible disk, a hard disk, magnetic tape, magneto-optical disk (MO), etc., optical memory such as CD, DVD, BD, HVD, etc., and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NANDFLASH), Solid State Disk (SSD), etc.
The computer readable storage medium provided in the embodiment of the present invention stores a computer program, and when the computer program is executed by the processor, the display direction of the screen content is adjusted according to the obtained barycentric coordinates, so that it is ensured that the content viewed by the user is normally displayed at different tilt angles of the terminal, and the user can conveniently view and use the terminal.
Fig. 8 is a schematic diagram of a terminal display apparatus 800 according to an embodiment of the present invention, which is applied to a terminal, and includes:
an obtaining module 801, configured to obtain a first barycentric coordinate of a current terminal;
a determining module 802, configured to determine a target display direction according to the first barycentric coordinate;
and the display module 803 is configured to display the acquired screen content according to the target display direction.
The determining module 802 is specifically configured to determine, according to the first barycentric coordinate, an acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system; and determining the target display direction according to the acceleration in each direction.
The determining module 802 is further configured to determine, according to the first barycentric coordinate, a target size of a display area for displaying the screen content before displaying the acquired screen content according to the target display direction;
the display module 802 is specifically configured to display the acquired screen content in the display area of the target size according to the target display direction.
The display area comprises at least one of an annular display area, a circular display area and a polygonal display area.
If the display area comprises an annular display area, the determining module 802 is specifically configured to determine a circle center coordinate and a target circle center angle of the annular display area according to the first barycentric coordinate; and determining the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and a predetermined radius.
The acquired screen content includes application icons, and the display module 803 is specifically configured to determine a corresponding display position of each acquired application in the annular display area; displaying the application icon of each application in the corresponding display position of the annular display area of the target size.
The device further comprises:
the judging module 804 is configured to, after obtaining a first barycentric coordinate of a current terminal, judge whether a barycentric of the terminal has moved according to the first barycentric coordinate and a currently stored second barycentric coordinate; if so, the determination module 802 is triggered.
According to the embodiment of the invention, the terminal can adjust the display direction of the screen content according to the obtained barycentric coordinate, so that the content viewed by the user can be normally displayed under different inclination angles of the terminal, and the user can conveniently view and use the terminal.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. A terminal display method is characterized by comprising the following steps:
acquiring a first barycentric coordinate of a current terminal;
determining a target display direction according to the first barycentric coordinate;
displaying the acquired screen content according to the target display direction;
before displaying the acquired screen content according to the target display direction, the method further includes:
determining the target size of a display area for displaying the screen content according to the first barycentric coordinate;
if the presentation area comprises an annular presentation area, the determining a target size of the presentation area for presenting the screen content according to the first barycentric coordinate comprises:
determining the circle center coordinate and the target circle center angle degree of the annular display area according to the first gravity center coordinate;
and determining the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and a predetermined radius.
2. The method of claim 1, wherein said determining a target show direction from said first barycentric coordinate comprises:
according to the first barycentric coordinate, determining the acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system;
and determining the target display direction according to the acceleration in each direction.
3. The method of claim 1, wherein the displaying the acquired screen content according to the target display direction comprises:
and displaying the acquired screen content in the display area with the target size according to the target display direction.
4. The method of claim 1, wherein the presentation area further comprises at least one of a circular presentation area and a polygonal presentation area.
5. The method of claim 1, wherein the obtained screen content comprises an application icon, and wherein the displaying the obtained screen content in the target-size display area according to the target display direction comprises:
determining the corresponding display position of each acquired application in the annular display area;
displaying the application icon of each application in the corresponding display position of the annular display area of the target size.
6. The method of claim 1, wherein after obtaining the first barycentric coordinate of the current terminal, before determining the target display direction according to the first barycentric coordinate, the method further comprises:
judging whether the center of gravity of the terminal moves or not according to the first center of gravity coordinate and a second center of gravity coordinate stored currently;
if yes, the subsequent steps are carried out.
7. A terminal display device, the device comprising:
the acquisition module is used for acquiring a first barycentric coordinate of the current terminal;
the determining module is used for determining the target display direction according to the first barycentric coordinate;
the display module is used for displaying the acquired screen content according to the target display direction;
the determining module is further configured to determine a target size of a display area for displaying the screen content according to the first barycentric coordinate before displaying the acquired screen content according to the target display direction;
if the display area comprises an annular display area, the determining module is specifically configured to determine a circle center coordinate and a target circle center angle number of the annular display area according to the first barycentric coordinate; and determining the target size of the annular display area according to the circle center coordinate, the target circle center angle degree and a predetermined radius.
8. The apparatus according to claim 7, wherein the determining module is specifically configured to determine, according to the first barycentric coordinate, an acceleration of the first barycentric coordinate in each direction under a preset terminal three-dimensional coordinate system; and determining the target display direction according to the acceleration in each direction.
9. The apparatus according to claim 7, wherein the presentation module is specifically configured to present the acquired screen content in the target-sized presentation area according to the target presentation direction.
10. The apparatus of claim 9, wherein the display area further comprises at least one of a circular display area and a polygonal display area.
11. The apparatus according to claim 7, wherein the obtained screen content includes application icons, and the presentation module is specifically configured to determine a corresponding presentation position of each obtained application in the annular presentation area; displaying the application icon of each application in the corresponding display position of the annular display area of the target size.
12. The apparatus of claim 7, wherein the apparatus further comprises:
the judging module is used for judging whether the center of gravity of the terminal moves or not according to the first barycentric coordinate and a currently stored second barycentric coordinate after the first barycentric coordinate of the current terminal is obtained; if so, triggering the determining module.
13. A terminal, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that it stores a computer program executable by a terminal, which program, when run on the terminal, causes the terminal to carry out the steps of the method according to any one of claims 1 to 6.
CN201810873818.2A 2018-08-02 2018-08-02 Terminal display method and device, terminal and readable storage medium Active CN109189244B (en)

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 CN109189244A (en) 2019-01-11
CN109189244B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369671B (en) * 2020-03-16 2023-11-17 安博思华智能科技有限责任公司 Method, device, medium and electronic equipment for adjusting multimedia blackboard

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005343299A (en) * 2004-06-02 2005-12-15 Pioneer Electronic Corp Information display device, its method and its program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN109189244A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US10503399B2 (en) Adjusting the display area of application icons at a device screen
US10101873B2 (en) Portable terminal having user interface function, display method, and computer program
EP3042275B1 (en) Tilting to scroll
KR101885131B1 (en) Method and apparatus for screen scroll of display apparatus
US9323446B2 (en) Apparatus including a touch screen and screen change method thereof
KR101657234B1 (en) Method, device, program and storage medium for displaying picture
EP2602706A2 (en) User interactions
US20120176322A1 (en) Systems and methods to present multiple frames on a touch screen
US10514842B2 (en) Input techniques for virtual reality headset devices with front touch screens
WO2015196703A1 (en) Application icon display method and apparatus
EP3722933B1 (en) User interface display method and apparatus therefor
WO2019019372A1 (en) Picture operation and control method and device for mobile terminal, mobile terminal, and medium
CN109189244B (en) Terminal display method and device, terminal and readable storage medium
US20130135205A1 (en) Display Method And Terminal Device
CN110827412A (en) Method, apparatus and computer-readable storage medium for adapting a plane
CN110580124A (en) Image display method and device
CN109189299B (en) Screen display method and device, terminal and readable storage medium
CN111880715A (en) Method and device for editing virtual control in interface, mobile terminal and storage medium
KR20170003689A (en) Method and apparatus for controlling automatic rotation of screen, and terminal
CN109254710B (en) Screen rotation method and device, terminal equipment and computer readable storage medium
US10241659B2 (en) Method and apparatus for adjusting the image display
CN113360048A (en) Quick starting method and equipment
CN110825279A (en) Method, apparatus and computer readable storage medium for inter-plane seamless handover
US9134894B2 (en) Electronic device, storage medium and method for selecting objects of the electronic device
CN113608660A (en) Data processing method, device, equipment and storage medium

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