Information processing method and electronic equipmentTechnical Field
The present invention relates to the field of wireless communications, and in particular, to an information processing method and an electronic device.
Background
With the development of mobile terminals, especially the improvement of the resolution and the increase of the size of the screen, users gradually put forward the requirements of multi-window operation interfaces, that is, a plurality of non-full-screen windows are opened simultaneously in the same mobile device, and each non-full-screen window displays and operates an application. However, if the multi-window operation interface is put into use, when a plurality of non-full-screen windows are opened, the problem of switching the display directions of the plurality of non-full-screen windows may occur along with the switching of the horizontal screen and the vertical screen of the mobile terminal, which may bring visual confusion to the client, affect the user experience, and may not ensure the usability of the system of the plurality of non-full-screen windows.
Disclosure of Invention
In view of this, an object of the present invention is to provide an information processing method and an electronic device, which can avoid the problem of display confusion, improve the usability of a non-full screen window system, and provide richer visual experience for a user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to electronic equipment, wherein the electronic equipment is provided with a touch display unit, the electronic equipment can run a plurality of applications and display the applications in a display area of the touch display unit, and when N windows running the applications in a non-full screen mode are opened, N is an integer greater than or equal to 1; the method comprises the following steps:
the touch control display unit acquires a first touch control operation, analyzes the first touch control operation to obtain a first analysis result, and starts a first application according to the first analysis result;
acquiring attitude parameters of the electronic equipment;
analyzing the first application to obtain attribute parameters of the first application;
determining display information of a first non-full screen window corresponding to the first application according to the attribute parameters of the first application, the posture parameters of the electronic equipment and preset conversion parameters;
and synthesizing a display interface of the first non-full screen window on the touch display unit according to the display information of the first non-full screen window.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: the touch control display unit and the processing unit; wherein,
the touch display unit is used for starting N windows running in a non-full screen mode, wherein N is an integer greater than or equal to 1; acquiring a first touch operation, analyzing the first touch operation to obtain a first analysis result, and sending the first analysis result to a processing unit;
the processing unit is used for running a plurality of applications, displaying the applications in a display area of the touch display unit, and starting a first application according to the first analysis result sent by the touch display unit when N applications running in a non-full screen mode run; acquiring attitude parameters of the electronic equipment; analyzing the first application to obtain attribute parameters of the first application; determining display information of a first non-full screen window corresponding to the first application according to the attribute parameters of the first application, the posture parameters of the electronic equipment and preset conversion parameters; and synthesizing a display interface of the first non-full screen window on the touch display unit according to the display information of the first non-full screen window.
According to the information processing method and the electronic equipment provided by the invention, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of display disorder can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
Drawings
FIG. 1 is a flow chart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a first schematic view illustrating a display effect according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a second display effect according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The first embodiment,
The information processing method provided by the embodiment of the invention is used in electronic equipment, wherein the electronic equipment can be a mobile terminal such as a smart phone or a tablet personal computer; the electronic equipment is provided with a touch display unit, the electronic equipment can run a plurality of applications and displays the applications in a display area of the touch display unit, and when N applications running in a non-full screen mode run on the electronic equipment, N is more than or equal to 1; as shown in fig. 1, the method includes:
step 101: the touch control display unit obtains a first touch control operation, analyzes the first touch control operation to obtain a first analysis result, and starts a first application according to the first analysis result.
Step 102: and acquiring the attitude parameters of the electronic equipment.
Step 103: and analyzing the first application to obtain the attribute parameters of the first application.
Step 104: and determining display information of a first non-full screen window corresponding to the first application according to the attribute parameter of the first application, the posture parameter of the electronic equipment and a preset conversion parameter.
Step 105: and synthesizing a display interface of the touch display unit according to the display information of the first non-full screen window.
Wherein the attribute parameters of the first application include: a parameter characterizing a display orientation of the first application, such as a display orientation of a landscape screen and/or a portrait screen supported by the first application. The attitude parameters of the electronic device include: and a parameter representing the current display direction of the electronic equipment, for example, the electronic equipment is in a landscape screen state or a portrait screen state currently.
The preset conversion parameters include: a transformation matrix to transform a full-screen window of the first application to a non-full-screen window.
Through the steps, when a user uses the mobile terminal, whether the first application supports horizontal screen display and/or vertical screen display or not can be obtained, and whether the first non-full screen window is displayed according to the horizontal screen or vertical screen state of the current mobile terminal or not is determined;
such as: if the first application supports horizontal screen display and vertical screen display, displaying or switching a non-full screen window of the first application according to a horizontal screen or a vertical screen of the mobile terminal;
if the first application only supports horizontal screen display, when the mobile terminal is in a horizontal screen state, the non-full screen window of the first application is in the horizontal screen display state, and when the mobile terminal is in a vertical screen state, the non-full screen window of the first application keeps the horizontal screen display;
if the first application only supports vertical screen display, when the mobile terminal is a horizontal screen or a vertical screen, the non-full screen window of the first application is kept in vertical screen display.
For example, in fig. 2, a non-full screen window 1 runs a first application, and a non-full screen window 2 runs a second application, assuming that the first application only supports vertical screen display, and the second application supports horizontal screen and vertical screen display; when the terminal is changed from the vertical screen to the horizontal screen, as shown in fig. 3, the non-full screen window 1 corresponding to the first application still maintains the display state of the vertical screen; and the non-full screen window 2 corresponding to the second application is switched to be displayed on a horizontal screen.
Therefore, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of disordered display can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
Example II,
The information processing method provided by the embodiment of the invention is used in electronic equipment, wherein the electronic equipment can be a mobile terminal such as a smart phone or a tablet personal computer; the electronic equipment is provided with a touch display unit, the electronic equipment can run a plurality of applications and displays the applications in a display area of the touch display unit, and when N applications running in a non-full screen mode run on the electronic equipment, N is more than or equal to 1; as shown in fig. 1, the method includes:
step 101: the touch control display unit obtains a first touch control operation, analyzes the first touch control operation to obtain a first analysis result, and starts a first application according to the first analysis result.
Step 102: and acquiring the attitude parameters of the electronic equipment.
Step 103: and analyzing the first application to obtain the attribute parameters of the first application.
Step 104: and determining display information of a first non-full screen window corresponding to the first application according to the attribute parameter of the first application, the posture parameter of the electronic equipment and a preset conversion parameter.
Step 105: and synthesizing a display interface of the touch display unit according to the display information of the first non-full screen window.
Wherein the attribute parameters of the first application include: a parameter characterizing a display orientation of the first application, such as a display orientation of a landscape screen and/or a portrait screen supported by the first application. The attitude parameters of the electronic device include: and a parameter representing the current display direction of the electronic equipment, for example, the electronic equipment is in a landscape screen state or a portrait screen state currently.
The preset conversion parameters include: a transformation matrix to transform a full-screen window of the first application to a non-full-screen window.
Determining display information of a first non-full screen window corresponding to the first application according to the attribute parameter of the first application, the posture parameter of the electronic device and a preset conversion parameter, wherein the determining comprises:
determining the display direction of the first application according to the attribute parameters of the first application, and determining the current display direction of the electronic equipment according to the attitude parameters of the electronic equipment;
judging whether the first application supports a display direction the same as that of the electronic equipment, if so, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the electronic equipment, and determining the display information of the first non-full screen window by utilizing the preset conversion parameter and the display direction of the first non-full screen window;
if not, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the first application, and determining the display information of the first non-full screen window by using the preset conversion parameter and the display direction of the first non-full screen window.
Through the steps, when a user uses the mobile terminal, whether the first application supports horizontal screen display and/or vertical screen display or not can be obtained, and whether the first non-full screen window is displayed according to the horizontal screen or vertical screen state of the current mobile terminal or not is determined;
such as: if the first application supports horizontal screen display and vertical screen display, displaying or switching a non-full screen window of the first application according to a horizontal screen or a vertical screen of the mobile terminal;
if the first application only supports horizontal screen display, when the mobile terminal is in a horizontal screen state, the non-full screen window of the first application is in the horizontal screen display state, and when the mobile terminal is in a vertical screen state, the non-full screen window of the first application keeps the horizontal screen display;
if the first application only supports vertical screen display, when the mobile terminal is a horizontal screen or a vertical screen, the non-full screen window of the first application is kept in vertical screen display.
For example, in fig. 2, a non-full screen window 1 runs a first application, and a non-full screen window 2 runs a second application, assuming that the first application only supports vertical screen display, and the second application supports horizontal screen and vertical screen display; when the terminal is changed from the vertical screen to the horizontal screen, as shown in fig. 3, the non-full screen window 1 corresponding to the first application still maintains the display state of the vertical screen; and the non-full screen window 2 corresponding to the second application is switched to be displayed on a horizontal screen.
The preset conversion parameter may be a preset conversion matrix.
The converting the display window corresponding to the selected application by using the preset conversion matrix to obtain the display area of the non-full screen window of the application comprises: reading the graph cache data of the application; converting the read graph cache data by using the preset conversion matrix, and generating frame cache data corresponding to the touch display unit by using the graph cache data; and displaying the non-full screen window of the application on the touch display unit by utilizing the frame cache data.
Considering the situation that a superposition area possibly exists between the non-full screen display windows corresponding to the two applications, the coordinate information of the pixel points in the graphic cache data of the non-full screen display window corresponding to the applications is set as a three-dimensional coordinate (x)o,yo,zo) (ii) a Wherein different non-full screen display windows have different third-dimensional coordinates zoTherefore, when the two non-full screen windows are overlapped or completely covered, different non-full screen windows can be distinguished by different third-dimensional coordinates.
The predetermined transformation matrix may be an identity matrix, and the predetermined transformation matrix is used to expand three-dimensional coordinates (x) in the graphics cache datao,yo,zo) Converting to obtain the non-full screen display window of the application, wherein the graphic cache data corresponding to the non-full screen display window comprises the converted (x)o,yo,zo) And the RGB information of the corresponding pixel point. Therefore, the application displayed in the full screen mode is converted into the non-full screen window through the conversion matrix, the non-full screen windows corresponding to the multiple applications are provided for a user, and the content in any application operated in the non-full screen window can be flexibly checked.
Therefore, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of disordered display can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
Example III,
The information processing method provided by the embodiment of the invention is used in electronic equipment, wherein the electronic equipment can be a mobile terminal such as a smart phone or a tablet personal computer; the electronic equipment is provided with a touch display unit, the electronic equipment can run a plurality of applications and displays the applications in a display area of the touch display unit, and when N applications running in a non-full screen mode run on the electronic equipment, N is more than or equal to 1; as shown in fig. 1, the method includes:
step 101: the touch control display unit obtains a first touch control operation, analyzes the first touch control operation to obtain a first analysis result, and starts a first application according to the first analysis result.
Step 102: and acquiring the attitude parameters of the electronic equipment.
Step 103: and analyzing the first application to obtain the attribute parameters of the first application.
Step 104: and determining display information of a first non-full screen window corresponding to the first application according to the attribute parameter of the first application, the posture parameter of the electronic equipment and a preset conversion parameter.
Step 105: and synthesizing a display interface of the touch display unit according to the display information of the first non-full screen window.
Wherein the attribute parameters of the first application include: a parameter characterizing a display orientation of the first application, such as a display orientation of a landscape screen and/or a portrait screen supported by the first application. The attitude parameters of the electronic device include: and a parameter representing the current display direction of the electronic equipment, for example, the electronic equipment is in a landscape screen state or a portrait screen state currently.
The preset conversion parameters include: a transformation matrix to transform a full-screen window of the first application to a non-full-screen window.
Determining display information of a first non-full screen window corresponding to the first application according to the attribute parameter of the first application, the posture parameter of the electronic device and a preset conversion parameter, wherein the determining comprises:
determining the display direction of the first application according to the attribute parameters of the first application, and determining the current display direction of the electronic equipment according to the attitude parameters of the electronic equipment;
judging whether the first application supports a display direction the same as that of the electronic equipment, if so, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the electronic equipment, and determining the display information of the first non-full screen window by utilizing the preset conversion parameter and the display direction of the first non-full screen window;
if not, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the first application, and determining the display information of the first non-full screen window by using the preset conversion parameter and the display direction of the first non-full screen window.
Through the steps, when a user uses the mobile terminal, whether the first application supports horizontal screen display and/or vertical screen display or not can be obtained, and whether the first non-full screen window is displayed according to the horizontal screen or vertical screen state of the current mobile terminal or not is determined;
for example, in fig. 2, a non-full screen window 1 runs a first application, and a non-full screen window 2 runs a second application, where the first application may be a QQ or a WeChat, and the second application may be a video; assuming that the first application only supports vertical screen display, and the second application supports horizontal screen display and vertical screen display;
when the terminal is changed from the vertical screen to the horizontal screen, as shown in fig. 3, the non-full screen window 1 corresponding to the first application still maintains the display state of the vertical screen; and the non-full screen window 2 corresponding to the second application is switched to be displayed on a horizontal screen.
The preset conversion parameter may be a preset conversion matrix.
The determining the display information of the first non-full screen window by using the preset conversion parameter and the display direction of the first non-full screen window includes:
acquiring the preset conversion parameters; and converting the full-screen display window corresponding to the first application by using the conversion parameter and the display direction of the first non-full-screen window to obtain a display area of the first non-full-screen window of the first application.
Considering the situation that a superposition area possibly exists between the non-full screen display windows corresponding to the two applications, the coordinate information of the pixel points in the graphic cache data of the non-full screen display window corresponding to the applications is set as a three-dimensional coordinate (x)o,yo,zo) (ii) a Wherein different non-full screen display windows have different third-dimensional coordinates zoTherefore, when the two non-full screen windows are overlapped or completely covered, different non-full screen windows can be distinguished by different third-dimensional coordinates.
The predetermined transformation matrix may be an identity matrix, and the predetermined transformation matrix is used to expand three-dimensional coordinates (x) in the graphics cache datao,yo,zo) Converting to obtain the non-full screen display window of the application, wherein the graphic cache data corresponding to the non-full screen display window comprises the converted (x)o,yo,zo) And the RGB information of the corresponding pixel point. It can be seen that the application displayed in full screen is converted into the application displayed in full screen through the conversion matrixThe non-full screen window provides a plurality of non-full screen windows corresponding to the application for the user, and the content in the application operated by any one non-full screen window can be flexibly checked.
Preferably, the non-full screen window may also be subjected to multiple adjustments, specifically, adjusting a conversion matrix corresponding to the non-full screen window,
for example, if the non-full screen window is reduced 1/2, the conversion matrix corresponding to the non-full screen window is changed into the conversion matrix corresponding to the non-full screen window according to the response informationThe three-dimensional coordinate (x) of each pixel point in the frame cache data corresponding to the non-full screen windowt,yt,zt) Comprises the following steps:
<math> <mrow> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> </mtr> </mtable> </mfenced> <mo>×</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <msub> <mi>x</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>y</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>z</mi> <mi>o</mi> </msub> </mtd> </mtr> </mtable> </mfenced> <mo>;</mo> </mrow></math>
then the non-full screen window is moved transversely by delta x and longitudinally by delta y, and the conversion matrix of the non-full screen window is <math> <mrow> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mi>Δx</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mi>Δy</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> </mtr> </mtable> </mfenced> <mo>,</mo> </mrow></math>The three-dimensional coordinate (x) of each pixel point in the frame cache data corresponding to the non-full screen windowt,yt,zt) Comprises the following steps:
<math> <mrow> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mi>Δx</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mi>Δy</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> </mtr> </mtable> </mfenced> <mo>×</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <msub> <mi>x</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>y</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>z</mi> <mi>o</mi> </msub> </mtd> </mtr> </mtable> </mfenced> <mo>.</mo> </mrow></math>
preferably, the display parameters of the first application may be set by a user, for example, the first application may be set to be displayed only in a portrait screen.
Therefore, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of disordered display can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
Example four,
According to the electronic device provided by the embodiment of the invention, the electronic device can be a mobile terminal such as a smart phone or a tablet computer; as shown in fig. 4, the electronic apparatus includes: the touch control display unit and the processing unit; wherein,
the touch display unit is used for displaying a plurality of applications in the display area and displaying non-full screen windows corresponding to the applications; acquiring a first touch operation, analyzing the first touch operation to obtain a first analysis result, and sending the first analysis result to a processing unit;
the processing unit is used for running a plurality of applications, displaying the applications in a display area of the touch display unit, and starting a first application according to the first analysis result sent by the touch display unit when N applications running in a non-full screen mode run; acquiring attitude parameters of the electronic equipment; analyzing the first application to obtain attribute parameters of the first application; determining display information of a first non-full screen window corresponding to the first application according to the attribute parameters of the first application, the posture parameters of the electronic equipment and preset conversion parameters; and synthesizing a display interface of the touch display unit according to the display information of the first non-full screen window.
Wherein the attribute parameters of the first application include: a parameter characterizing a display orientation of the first application, such as a display orientation of a landscape screen and/or a portrait screen supported by the first application. The attitude parameters of the electronic device include: and a parameter representing the current display direction of the electronic equipment, for example, the electronic equipment is in a landscape screen state or a portrait screen state currently.
The preset conversion parameters include: a transformation matrix to transform a full-screen window of the first application to a non-full-screen window.
Through the steps, when a user uses the mobile terminal, whether the first application supports horizontal screen display and/or vertical screen display or not can be obtained, and whether the first non-full screen window is displayed according to the horizontal screen or vertical screen state of the current mobile terminal or not is determined;
such as: if the first application supports horizontal screen display and vertical screen display, displaying or switching a non-full screen window of the first application according to a horizontal screen or a vertical screen of the mobile terminal;
if the first application only supports horizontal screen display, when the mobile terminal is in a horizontal screen state, the non-full screen window of the first application is in the horizontal screen display state, and when the mobile terminal is in a vertical screen state, the non-full screen window of the first application keeps the horizontal screen display;
if the first application only supports vertical screen display, when the mobile terminal is a horizontal screen or a vertical screen, the non-full screen window of the first application is kept in vertical screen display.
For example, in fig. 2, a non-full screen window 1 runs a first application, and a non-full screen window 2 runs a second application, where the first application may be a QQ or a WeChat, and the second application may be a video; assuming that the first application only supports vertical screen display, and the second application supports horizontal screen display and vertical screen display; when the terminal is changed from the vertical screen to the horizontal screen, as shown in fig. 3, the non-full screen window 1 corresponding to the first application still maintains the display state of the vertical screen; and the non-full screen window 2 corresponding to the second application is switched to be displayed on a horizontal screen.
The preset conversion parameter may be a preset conversion matrix.
The converting the display window corresponding to the selected application by using the preset conversion matrix to obtain the display area of the non-full screen window of the application comprises: reading the graph cache data of the application; converting the read graph cache data by using the preset conversion matrix, and generating frame cache data corresponding to the touch display unit by using the graph cache data; and displaying the non-full screen window of the application on the touch display unit by utilizing the frame cache data.
Considering the situation that a superposition area possibly exists between the non-full screen display windows corresponding to the two applications, the coordinate information of the pixel points in the graphic cache data of the non-full screen display window corresponding to the applications is set as a three-dimensional coordinate (x)o,yo,zo) (ii) a Wherein different non-full screen display windows have different third-dimensional coordinates zoTherefore, when the two non-full screen windows are overlapped or completely covered, different non-full screen windows can be distinguished by different third-dimensional coordinates.
The predetermined transformation matrix may be an identity matrix, and the predetermined transformation matrix is used to expand three-dimensional coordinates (x) in the graphics cache datao,yo,zo) Converting to obtain the non-full screen display window of the application, wherein the graphic cache data corresponding to the non-full screen display window comprises the converted (x)o,yo,zo) And the RGB information of the corresponding pixel point. Therefore, the application displayed in the full screen is converted into the non-full screen window through the conversion matrix, and a plurality of application pairs are provided for the userThe corresponding non-full screen window can flexibly view the content in any application operated by the non-full screen window.
Through the steps, when a user uses the mobile terminal, whether the first application supports horizontal screen display and/or vertical screen display or not can be obtained, and whether the first non-full screen window is displayed according to the horizontal screen or vertical screen state of the current mobile terminal or not is determined;
such as: if the first application supports horizontal screen display and vertical screen display, displaying or switching a non-full screen window of the first application according to a horizontal screen or a vertical screen of the mobile terminal;
if the first application only supports horizontal screen display, when the mobile terminal is in a horizontal screen state, the non-full screen window of the first application is in the horizontal screen display state, and when the mobile terminal is in a vertical screen state, the non-full screen window of the first application keeps the horizontal screen display;
if the first application only supports vertical screen display, when the mobile terminal is a horizontal screen or a vertical screen, the non-full screen window of the first application is kept in vertical screen display.
Therefore, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of disordered display can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
Example V,
According to the electronic device provided by the embodiment of the invention, the electronic device can be a mobile terminal such as a smart phone or a tablet computer; as shown in fig. 4, the electronic apparatus includes: the touch control display unit and the processing unit; wherein,
the touch display unit is used for displaying a plurality of applications in the display area and displaying non-full screen windows corresponding to the applications; acquiring a first touch operation, analyzing the first touch operation to obtain a first analysis result, and sending the first analysis result to a processing unit;
the processing unit is used for running a plurality of applications, displaying the applications in a display area of the touch display unit, and starting a first application according to the first analysis result sent by the touch display unit when N applications running in a non-full screen mode run; acquiring attitude parameters of the electronic equipment; analyzing the first application to obtain attribute parameters of the first application; determining display information of a first non-full screen window corresponding to the first application according to the attribute parameters of the first application, the posture parameters of the electronic equipment and preset conversion parameters; and synthesizing a display interface of the touch display unit according to the display information of the first non-full screen window.
Wherein the attribute parameters of the first application include: a parameter characterizing a display orientation of the first application, such as a display orientation of a landscape screen and/or a portrait screen supported by the first application. The attitude parameters of the electronic device include: and a parameter representing the current display direction of the electronic equipment, for example, the electronic equipment is in a landscape screen state or a portrait screen state currently.
The preset conversion parameters include: a transformation matrix to transform a full-screen window of the first application to a non-full-screen window.
The processing unit is specifically configured to determine a display direction of the first application according to the attribute parameter of the first application, and determine a display direction of the current electronic device according to the posture parameter of the electronic device;
judging whether the first application supports a display direction the same as that of the electronic equipment, if so, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the electronic equipment, and determining the display information of the first non-full screen window by utilizing the preset conversion parameter and the display direction of the first non-full screen window;
if not, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the first application, and determining the display information of the first non-full screen window by using the preset conversion parameter and the display direction of the first non-full screen window.
Through the steps, when a user uses the mobile terminal, whether the first application supports horizontal screen display and/or vertical screen display or not can be obtained, and whether the first non-full screen window is displayed according to the horizontal screen or vertical screen state of the current mobile terminal or not is determined;
such as: if the first application supports horizontal screen display and vertical screen display, displaying or switching a non-full screen window of the first application according to a horizontal screen or a vertical screen of the mobile terminal;
if the first application only supports horizontal screen display, when the mobile terminal is in a horizontal screen state, the non-full screen window of the first application is in the horizontal screen display state, and when the mobile terminal is in a vertical screen state, the non-full screen window of the first application keeps the horizontal screen display;
if the first application only supports vertical screen display, when the mobile terminal is a horizontal screen or a vertical screen, the non-full screen window of the first application is kept in vertical screen display.
For example, in fig. 2, a non-full screen window 1 runs a first application, and a non-full screen window 2 runs a second application, where the first application may be a QQ or a WeChat, and the second application may be a video; assuming that the first application only supports vertical screen display, and the second application supports horizontal screen display and vertical screen display; when the terminal is changed from the vertical screen to the horizontal screen, as shown in fig. 3, the non-full screen window 1 corresponding to the first application still maintains the display state of the vertical screen; and the non-full screen window 2 corresponding to the second application is switched to be displayed on a horizontal screen.
Therefore, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of disordered display can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
Example six,
According to the electronic device provided by the embodiment of the invention, the electronic device can be a mobile terminal such as a smart phone or a tablet computer; the electronic device includes: the touch control display unit and the processing unit; wherein,
the touch display unit is used for displaying a plurality of applications in the display area and displaying non-full screen windows corresponding to the applications; acquiring a first touch operation, analyzing the first touch operation to obtain a first analysis result, and sending the first analysis result to a processing unit;
the processing unit is used for running a plurality of applications, displaying the applications in a display area of the touch display unit, and starting a first application according to the first analysis result sent by the touch display unit when N applications running in a non-full screen mode run; acquiring attitude parameters of the electronic equipment; analyzing the first application to obtain attribute parameters of the first application; determining display information of a first non-full screen window corresponding to the first application according to the attribute parameters of the first application, the posture parameters of the electronic equipment and preset conversion parameters; and synthesizing a display interface of the touch display unit according to the display information of the first non-full screen window.
Wherein the attribute parameters of the first application include: a parameter characterizing a display orientation of the first application, such as a display orientation of a landscape screen and/or a portrait screen supported by the first application. The attitude parameters of the electronic device include: and a parameter representing the current display direction of the electronic equipment, for example, the electronic equipment is in a landscape screen state or a portrait screen state currently.
The preset conversion parameters include: a transformation matrix to transform a full-screen window of the first application to a non-full-screen window.
The processing unit is specifically configured to determine a display direction of the first application according to the attribute parameter of the first application, and determine a display direction of the current electronic device according to an attitude parameter of the electronic device;
judging whether the first application supports a display direction the same as that of the electronic equipment, if so, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the electronic equipment, and determining the display information of the first non-full screen window by utilizing the preset conversion parameter and the display direction of the first non-full screen window;
if not, determining the display direction of a first non-full screen window corresponding to the first application according to the display direction of the first application, and determining the display information of the first non-full screen window by using the preset conversion parameter and the display direction of the first non-full screen window.
For example, in fig. 2, a non-full screen window 1 runs a first application, and a non-full screen window 2 runs a second application, where the first application may be a QQ or a WeChat, and the second application may be a video; assuming that the first application only supports vertical screen display, and the second application supports horizontal screen display and vertical screen display; when the terminal is changed from the vertical screen to the horizontal screen, as shown in fig. 3, the non-full screen window 1 corresponding to the first application still maintains the display state of the vertical screen; and the non-full screen window 2 corresponding to the second application is switched to be displayed on a horizontal screen.
The preset conversion parameter may be a preset conversion matrix.
The processing unit is specifically configured to acquire the preset conversion parameter; and converting the full-screen display window corresponding to the first application by using the conversion parameter and the display direction of the first non-full-screen window to obtain a display area of the first non-full-screen window of the first application.
Considering the situation that a superposition area possibly exists between the non-full screen display windows corresponding to the two applications, the coordinate information of the pixel points in the graphic cache data of the non-full screen display window corresponding to the applications is set as a three-dimensional coordinate (x)o,yo,zo) (ii) a Wherein different non-full screen display windows have different third-dimensional coordinates zoTherefore, when the two non-full screen windows are overlapped or completely covered, different non-full screen windows can be distinguished by different third-dimensional coordinates.
The predetermined transformation matrix may be an identity matrix, and the predetermined transformation matrix is used to expand three-dimensional coordinates (x) in the graphics cache datao,yo,zo) Converting to obtain the non-full screen display window of the application, wherein the graphic cache data corresponding to the non-full screen display window comprises the converted (x)o,yo,zo) And the RGB information of the corresponding pixel point. Therefore, the application displayed in the full screen mode is converted into the non-full screen window through the conversion matrix, the non-full screen windows corresponding to the multiple applications are provided for a user, and the content in any application operated in the non-full screen window can be flexibly checked.
Preferably, the non-full screen window may also be subjected to multiple adjustments, specifically, adjusting a conversion matrix corresponding to the non-full screen window,
for example, if the non-full screen window is reduced 1/2, the conversion matrix corresponding to the non-full screen window is changed into the conversion matrix corresponding to the non-full screen window according to the response informationThe three-dimensional coordinate (x) of each pixel point in the frame cache data corresponding to the non-full screen windowt,yt,zt) Comprises the following steps:
<math> <mrow> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> </mtr> </mtable> </mfenced> <mo>×</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <msub> <mi>x</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>y</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>z</mi> <mi>o</mi> </msub> </mtd> </mtr> </mtable> </mfenced> <mo>;</mo> </mrow></math>
then the non-full screen window is moved transversely by delta x and longitudinally by delta y, and the conversion matrix of the non-full screen window is <math> <mrow> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mi>Δx</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mi>Δy</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> </mtr> </mtable> </mfenced> <mo>,</mo> </mrow></math>The three-dimensional coordinate (x) of each pixel point in the frame cache data corresponding to the non-full screen windowt,yt,zt) Comprises the following steps:
<math> <mrow> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>t</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>t</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mi>Δx</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> <mtd> <mi>Δy</mi> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mn>0</mn> </mtd> <mtd> <mn>1</mn> <mo>/</mo> <mn>2</mn> </mtd> </mtr> </mtable> </mfenced> <mo>×</mo> <mfenced open='(' close=')'> <mtable> <mtr> <mtd> <msub> <mi>x</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>y</mi> <mi>o</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>z</mi> <mi>o</mi> </msub> </mtd> </mtr> </mtable> </mfenced> <mo>.</mo> </mrow></math>
preferably, the display parameters of the first application may be set by a user, for example, the first application may be set to be displayed only in a portrait screen.
Therefore, whether the non-full screen window corresponding to the first application is the same as the display direction of the electronic equipment or not can be determined according to the display direction supported by the first application, so that the problem of disordered display can be avoided when a user uses the non-full screen window, the usability of a non-full screen window system is improved, and richer visual experience is provided for the user.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.