CN104615336B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN104615336B
CN104615336B CN201510082005.8A CN201510082005A CN104615336B CN 104615336 B CN104615336 B CN 104615336B CN 201510082005 A CN201510082005 A CN 201510082005A CN 104615336 B CN104615336 B CN 104615336B
Authority
CN
China
Prior art keywords
display
window
unit
application
parameters
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
CN201510082005.8A
Other languages
Chinese (zh)
Other versions
CN104615336A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510082005.8A priority Critical patent/CN104615336B/en
Publication of CN104615336A publication Critical patent/CN104615336A/en
Application granted granted Critical
Publication of CN104615336B publication Critical patent/CN104615336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of information processing methods, the method is applied in an electronic equipment, the electronic equipment can run the first application, first application can be shown on the display unit of the electronic equipment by full screen window or wicket, and the display area of the wicket is less than the display area of the full screen window;The described method includes: the display parameters of the display window of the first application are obtained, the display direction of the display parameters characterization display window;Obtain screen display parameters of the display unit under currently display posture, the display direction of the screen display parameters characterization screen;When being detected as the display direction mismatch of the display direction and display unit of display window under currently display posture, the display parameters of display window are adjusted;Display window is presented according to display parameters adjusted;Meanwhile also disclosing a kind of electronic equipment.It is able to ascend user experience, highlights electronic functionalities diversity.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and an electronic device.
Background
Currently, when an application of an electronic device is started, a corresponding operating system, such as an Android operating system, is responsible for displaying a full-screen window or a split-screen window for the started application. When two split-screen windows display different applications, all the applications may support the landscape screen display and the portrait screen display of the display unit of the electronic device, or only part of the applications may support the landscape screen display and the other part of the applications may support the portrait screen display.
Disclosure of Invention
In order to solve the existing technical problem, an embodiment of the present invention provides an information processing method and an electronic device, which can display an application displayed on a vertical (horizontal) screen in a display unit displayed on a horizontal (vertical) screen, so as to improve user experience and highlight functional diversity of the electronic device.
The technical scheme of the embodiment 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 can run a first application, the first application can be displayed on a display unit of the electronic equipment through a full-screen window or a small window, and the display area of the small window is smaller than that of the full-screen window; the method comprises the following steps:
acquiring display parameters of a display window of a first application, wherein the display parameters represent the display direction of the display window;
acquiring screen display parameters of a display unit in a current display posture, wherein the screen display parameters represent the display direction of a screen;
when the display direction of the display window is detected to be not matched with the display direction of the display unit in the current display posture, adjusting the display parameters of the display window;
and presenting the display window according to the adjusted display parameters.
In the above scheme, the method further comprises:
acquiring configuration attribute information of a first application;
determining a display direction of the display window based on the configuration attribute information; or,
reading window layout parameters of a display window;
and determining the display direction of the display window based on the window layout parameters.
In the above scheme, the electronic device includes a first sensing unit, and the first sensing unit detects a display direction of the display unit in a current display posture;
correspondingly, when the display direction of the display window is judged to be inconsistent with the display direction of the display unit in the current display posture, the display direction of the display window is determined to be not matched with the display direction of the display unit.
In the foregoing solution, the adjusting the display parameters of the display window includes:
acquiring a first ratio between the length of a first edge and the length of a second edge of a display window in display parameters of the display window;
carrying out reduction or amplification of a first preset proportion on the first ratio to obtain a second ratio; or,
keeping the length of the first side or the length of the second side unchanged, and reducing or amplifying the length of the other side by a second preset proportion to obtain a second ratio.
In the foregoing solution, the presenting a display window according to the adjusted display parameter includes:
determining the long side and the short side of the display window in the first side and the second side according to the second ratio;
drawing a long edge of the display window to be parallel to a first edge of the display unit;
drawing a short edge of the display window to be parallel to a second edge of the display window;
the first side length of the display unit is shorter than the second side length.
The embodiment of the invention also provides electronic equipment, wherein the electronic equipment can run a first application, the first application can be displayed on a display unit of the electronic equipment through a full-screen window or a small window, and the display area of the small window is smaller than that of the full-screen window; the electronic device includes:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring display parameters of a display window of a first application, and the display parameters represent the display direction of the display window;
the second acquisition unit is used for acquiring screen display parameters of the display unit in the current display posture, and the screen display parameters represent the display direction of the screen;
the first detection unit is used for triggering the first adjustment unit when the display direction of the display window is not matched with the display direction of the display unit in the current display posture;
the first adjusting unit is used for adjusting the display parameters of the display window;
and the first presentation unit is used for presenting the display window according to the adjusted display parameters.
In the foregoing solution, the first obtaining unit is further configured to:
acquiring configuration attribute information of a first application;
determining a display direction of the display window based on the configuration attribute information; or,
reading window layout parameters of a display window;
and determining the display direction of the display window based on the window layout parameters.
In the above solution, the electronic device includes a first sensing unit,
the second acquisition unit detects the display direction of the display unit in the current display posture through the first sensing unit;
correspondingly, the first detection unit is configured to determine that the display direction of the display window is not matched with the display direction of the display unit when the display direction of the display window is determined to be not matched with the display direction of the display unit in the current display posture.
In the foregoing solution, the first adjusting unit is further configured to:
acquiring a first ratio between the length of a first edge and the length of a second edge of a display window in display parameters of the display window;
carrying out reduction or amplification of a first preset proportion on the first ratio to obtain a second ratio; or,
keeping the length of the first side or the length of the second side unchanged, and reducing or amplifying the length of the other side by a second preset proportion to obtain a second ratio.
In the foregoing solution, the first presenting unit is further configured to:
determining the long side and the short side of the display window in the first side and the second side according to the second ratio;
drawing a long edge of the display window to be parallel to a first edge of the display unit;
drawing a short edge of the display window to be parallel to a second edge of the display window;
the first side length of the display unit is shorter than the second side length.
The method is applied to electronic equipment, the electronic equipment can run a first application, the first application can be displayed on a display unit of the electronic equipment through a full-screen window or a small window, and the display area of the small window is smaller than that of the full-screen window; the method comprises the following steps: acquiring display parameters of a display window of a first application, wherein the display parameters represent the display direction of the display window; acquiring screen display parameters of a display unit in a current display posture, wherein the screen display parameters represent the display direction of a screen; when the display direction of the display window is detected to be not matched with the display direction of the display unit in the current display posture, adjusting the display parameters of the display window; and presenting the display window according to the adjusted display parameters. Can show the application of erecting (horizontal) screen display in the display element that horizontal (vertical) screen display shows, promote user experience, show electronic equipment functional diversity outstandingly.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of an information processing method according to the present invention;
FIG. 2 is a schematic flow chart illustrating an implementation of a second embodiment of the information processing method according to the present invention;
fig. 3(a) - (c) are schematic views of an application scenario provided by the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first embodiment of an electronic device provided in the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
In the following embodiments of the information processing method and the electronic device provided by the present invention, the electronic device includes, but is not limited to: industrial control computers, personal computers, and the like, all types of computers, all-in-one computers, tablet computers, mobile phones, electronic readers, and the like. The preferred electronic equipment object in the embodiment of the invention is a mobile phone.
In embodiments of the electronic device and the information processing method provided by the present invention, the electronic device includes a display unit, the display unit is capable of running M first applications, the electronic device is capable of executing a first instruction, and N small windows are presented on the display unit, the N small windows correspond to N first applications in the M first applications, so that the N first applications are displayed in respective corresponding small windows, and the small windows are obtained by transforming the full-screen window through a first transformation parameter; the first application is displayed on the display unit through the corresponding small window; m, N are all positive integers.
The first application can be an application carried by the electronic equipment system, such as a clock application, a short message application, an address book application and the like; or may be a third party application installed by the user such as a gaming application, a WeChat application, a browser application, an instant chat application, a mail application, etc.
The first application is displayed on a desktop of the electronic equipment in an interactive object mode, one first application program corresponds to one interactive object, the interactive object can be an object identifier, the object identifier is generally an icon, and the first application is displayed on the display unit through a small window or a full-screen window by operating the object identifier of the first application program, so that a user can use the first application conveniently. For example, on a desktop of an electronic device such as a mobile phone, when a user touches an icon of a clock application, the clock application may be opened and displayed on a display unit in a small-window or full-screen window manner.
In the embodiment of the invention, the full screen window of the first application program can be transformed by utilizing the first transformation parameter to generate a small window; for example, a full-screen window is subjected to a reduction transform, a panning transform, a rotation transform, a shape transform, and the like, and the full-screen window is further transformed into a small window. Wherein the first conversion parameter may be at least one of: parameters, matrices, parameter sets. In an implementation process, the first conversion parameter may be a matrix, a parameter group; the parameters in the parameter set may be a specific numerical value or a vector.
The following describes a transformation process from a full screen window to a small window by using the first matrix by taking the first transformation parameter as the matrix and regarding the matrix as the first matrix.
Here, the first matrix may be set in advance by a manufacturer of the electronic device, or may be set in the electronic device manually by a user; in order to facilitate the user to manually set the first matrix, the electronic device provides an automatic matrix generation function, the user only needs to set some parameters related to the first matrix on the electronic device, such as a window abscissa scaling parameter, a window ordinate scaling parameter, a window translation parameter, a window shape parameter, a window angle rotation parameter, and the like, and the electronic device can generate the corresponding first matrix according to the parameters.
Here, performing scaling and rotation transformation on the full-screen window of the first application by using the first matrix can be implemented by formula (1 a):
in the formula (1a), the first and second groups,is smallCoordinate vector of window, x2Is the abscissa of the small window, y2Is a small window seatMark, z2A general default setting is 1;v denotes a first matrix, which is a 3 x 3 matrix, Mijrepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;representing full screen windowsCoordinate vector of (2), x1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full screen window is subjected to scaling transformation by the formula (1a), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22The other 5 elements may be arbitrarily set up as β, and thus, by substituting the above parameters set up into formula (1a), formula (2a) can be obtained:
x2=α×x1
(2a)
y2=β×y1
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full screen window is subjected to clockwise rotation transformation through the formula (1a), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22The other 5 elements may be arbitrarily set, and thus, by substituting the set parameters into the formula (1a), the formula (3a) may be obtained:
x2=cosθ×x1+sinθ×y1
(3a)
y2=-sinθ×x1+cosθ×y1
where θ is the rotation angle.
The full-screen window of the first application program is subjected to translation transformation by using the first matrix, which can be realized by formula (4 a):
when the full screen window is subjected to translation transformation by the formula (4a), M can be convertedij2 elements in (a) are set as follows: m11=a、M21=b、M31As such, by substituting the set parameters into equation (4a), equation (5a) can be derived:
x2=a+x1
(5a)
y2=b+y1
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
In the scheme, a plurality of coordinate vectors of the full-screen window can be provided, and each coordinate vector corresponds to the position of one pixel point; similarly, there may be a plurality of coordinate vectors of the small window, and the number of the coordinate vectors of the small window corresponds to the number of the coordinate vectors of the full-screen window one to one, and the coordinate vector of the small window also corresponds to the position of a pixel point, which is the pixel point corresponding to the full-screen window.
The method comprises the steps that the graph cache data of a first application under a full-screen window can be transformed through a first matrix, and the graph cache data of the first application under a small window is generated; by changing the graphic cache data under the full screen window, the full screen window of the first application can be reduced to form a corresponding small window in the display effect, and then the first application is displayed on the display screen of the electronic equipment in a small window state.
In specific implementation, each element in the first matrix can be set to other values, so that a full-screen window is converted into a corresponding small window; of course, the elements in the first matrix may be set to simultaneously perform operations such as scaling, panning, and rotating on the full-screen window.
In the above scheme, the first matrix is a square matrix with dimension 3, and other dimension matrixes, such as a 4 × 4 square matrix, may be used. Those skilled in the art can transform the dimension of the square matrix according to actual needs, and the description is omitted here.
It should be noted that, when the electronic device runs a plurality of widgets corresponding to a plurality of applications, or runs a part of full-screen windows corresponding to a part of applications and a part of widgets corresponding to another part of applications, or runs a plurality of full-screen windows corresponding to a plurality of applications, because some applications only support landscape display and some applications only support portrait display, how to simultaneously display the applications with different display directions on the display unit please refer to the related description of the subsequent scheme.
Method embodiment one
The first embodiment of the information processing method provided by the invention is applied to an electronic device, the electronic device can run a first application, the first application can be displayed on a display unit of the electronic device through a full screen window or the small window, and the display area of the small window is smaller than that of the full screen window.
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of an information processing method according to the present invention; as shown in fig. 1, the method includes:
step 101: acquiring display parameters of a display window of a first application, wherein the display parameters represent the display direction of the display window;
in this step, obtaining configuration attribute information of a first application; based on the configuration attribute information, a display direction of the display window is determined. Or reading window layout parameters of the display window; and determining the display direction of the display window based on the window layout parameters.
After the first application is developed, the application attribute information of the first application, which is an application supporting the portrait display and/or an application supporting the landscape display, is generally configured in a configuration file of the application. For example, when the first application is an application running as an Android operating system, the attribute information thereof is configured in Android manifest. In this embodiment, it can be known that the current first application is an application supporting vertical screen display, an application supporting horizontal screen display, or an application supporting horizontal and vertical screen display by reading information of the configuration file. In addition, the size of the length and width of the display window of the first application can be measured, and the first application can be determined to be an application supporting the portrait display, an application supporting the landscape display, or an application supporting the landscape display according to the size of the length and width. Wherein, the window layout parameters are the length and width of the display window.
Step 102: acquiring screen display parameters of a display unit in a current display posture, wherein the screen display parameters represent the display direction of a screen;
here, the electronic device includes a first sensing unit, such as a gravity sensor G-sensor, through which a display direction of the display unit in a current display posture is detected. Namely, whether the electronic equipment is in a landscape display state or a portrait display state is detected through the G-sensor. The display posture comprises a horizontal screen display state and a vertical screen display state.
Step 103: when the display direction of the display window is detected to be not matched with the display direction of the display unit in the current display posture, adjusting the display parameters of the display window;
here, when the display direction of the display window does not coincide with the display direction of the display unit in the current display posture, it is determined that the display direction of the display window does not match with the display direction of the display unit. For example, when the display unit is in the landscape display state, the first application running is an application supporting the portrait display, and it is determined that the display direction of the display window of the first application is not consistent with the display direction of the display unit in the landscape display state, and the display parameters of the display window need to be adjusted, so that the first application supporting the portrait display can be displayed in the display unit in the landscape display state.
Step 104: and presenting the display window according to the adjusted display parameters.
Here, the display window of the first application in the current display posture of the display unit is drawn according to the adjusted display parameter, and the drawn display window is displayed on the display unit.
In the above scheme, when the display direction of the display window is not matched with the display direction of the display unit in the current display posture, the display parameters of the display window are adjusted, and the display window is presented according to the adjusted display parameters, so that the first application can be presented in the display unit. By the aid of the scheme, the applications supporting vertical screen display can be displayed in the display unit in the horizontal screen display state or the applications supporting horizontal screen display can be displayed in the display unit in the vertical screen display state, user experience is improved, and functional diversity of the electronic equipment is highlighted.
Method embodiment two
Based on the first embodiment, the present embodiment further describes the method for adjusting the display parameters of the display window and the method for presenting the display window according to the adjusted display parameters in the foregoing embodiments.
FIG. 2 is a schematic flow chart illustrating an implementation of a second embodiment of the information processing method according to the present invention; as shown in fig. 2, the method further comprises:
step 201: when the display direction of the display window is detected to be not matched with the display direction of the display unit in the current display posture, acquiring a first ratio between the length of a first edge and the length of a second edge of the display window in the display parameters of the display window;
usually, the first application supports full-screen display, and the display window of the first application is in a regular shape such as a rectangle, the first edge length and the second edge length of the display window of the first application under full-screen display are obtained, and the ratio between the first edge length and the second edge length is calculated to obtain the first ratio. The first edge and the second edge are adjacent to any two edges of the rectangular display window.
Step 202: carrying out reduction or amplification of a first preset proportion on the first ratio to obtain a second ratio; or keeping the length of the first edge or the length of the second edge unchanged, and reducing or amplifying the length of the other edge by a second preset proportion to obtain a second ratio;
here, taking the first application as an application supporting the vertical screen display and the current display unit is in the horizontal screen display state as an example, when a first ratio of the display window of the first application in the full screen display state is calculated, the first ratio is reduced by a first predetermined ratio, for example, the first predetermined ratio is reduced to a half of the full screen display window, and a second ratio is obtained, that is, the display ratio of the adjusted first application display window is obtained. Or, the first side length is kept unchanged, and the second side length is reduced by a second predetermined ratio, for example, the second side length is reduced to half of the second side length of the display window in the full-screen display state, so as to obtain a second ratio. The first preset proportion and the second preset proportion are flexibly set according to actual use conditions; further, if the size of the electronic device display screen is a × b and a > b, the first predetermined ratio γ or the second predetermined ratio γ range is: 0< gamma < ═ b/a.
Step 203: determining the long side and the short side of the display window in the first side and the second side according to the second ratio;
here, after the display window is adjusted, the long and short sides of the adjusted display window are determined.
Step 204: drawing a long edge of the display window to be parallel to a first edge of the display unit; drawing a short edge of the display window to be parallel to a second edge of the display window; the first side length of the display unit is shorter than the second side length.
Here, the long side of the drawing display window is parallel to the short side of the display unit; the short side of the drawing display window is parallel to the long side of the display unit. That is, the first application supporting the landscape display after the display scale of the display window is adjusted is displayed in the display unit in the portrait display state; or displaying the first application supporting the vertical screen display after the display scale of the display window is adjusted in the display unit in the horizontal screen display state.
Fig. 3(a) - (c) are schematic diagrams of an application scenario provided by the embodiment of the present invention; the present example will be described with reference to fig. 3(a) to (c).
The application a, such as the QQ application, is an application supporting the vertical screen display, and cannot be displayed in a full screen manner in the display unit in the horizontal screen display state, as shown in fig. 3 (a). The electronic equipment knows the lengths of the side 1 and the side 2 of the QQ application in a full-screen display state through the read configuration file of the QQ application, and calculates the ratio of the length of the side 1 to the length of the side 2 to obtain a first ratio. The first ratio is reduced by 0.5, for example, the length of side 1 and the length of side 2 are reduced to half at the same time. As shown in fig. 3(b), the side 1 is reduced in length to half to obtain the side 3, and the side 2 is reduced in length to half to obtain the side 4. Of the sides 3 and 4, the side 3 is determined as a short side and the side 4 is determined as a long side, a display window applied in the display unit in the landscape display state is drawn by the QQ, and the drawn display window is presented as shown in fig. 3(b), the side 3 of the display window is parallel to the long side of the display unit, and the side 4 of the display window is parallel to the short side of the display unit.
Here, when the application a is run by the electronic device, the application B and the application C are also run at the same time, and the applications B and C are also applications supporting the vertical screen display, the display windows of the applications B and C are also processed as above, so that the applications B and C supporting the vertical screen display can be presented together with the application a in the display unit in the horizontal screen display state. In FIG. 3(B), the display windows of application A, application B, and application C are presented in a small window floating form; in addition, the display windows of application a, application B, and application C may also be presented in a small-window split-screen form, as shown in fig. 3 (C).
In the above scheme, when the display direction of the display window is not matched with the display direction of the display unit in the current display posture, the display proportion of the display window is adjusted, and the display window of the first application is presented according to the adjusted display proportion, so that the application supporting the vertical screen display is displayed in the display unit displaying the transverse screen or the application supporting the transverse screen display is displayed in the display unit displaying the vertical screen, the user experience is improved, and the functional diversity of the electronic equipment is highlighted.
Embodiment of the electronic device
According to the first embodiment of the electronic device provided by the invention, the electronic device can run the first application, the first application can be displayed on the display unit of the electronic device through the full screen window or the small window, and the display area of the small window is smaller than that of the full screen window.
Fig. 4 is a schematic structural diagram of a first embodiment of an electronic device provided in the present invention; as shown in fig. 4, the electronic apparatus includes:
a first obtaining unit 301, configured to obtain a display parameter of a display window of a first application, where the display parameter represents a display direction of the display window;
here, the first obtaining unit 301 is further configured to obtain configuration attribute information of the first application, and determine a display direction of the display window based on the configuration attribute information; or reading window layout parameters of the display window, and determining the display direction of the display window based on the window layout parameters.
After the first application is developed, the application attribute information of the first application, which is an application supporting the portrait display and/or an application supporting the landscape display, is generally configured in a configuration file of the application. For example, when the first application is an application running as an Android operating system, the attribute information thereof is configured in Android manifest. In this embodiment, the electronic device, specifically, the first obtaining unit 301 may obtain that the current first application is an application supporting vertical screen display, an application supporting horizontal screen display, or an application supporting horizontal screen display by reading information of the configuration file. In addition, the electronic device, specifically the first obtaining unit 301, may also measure the size of the length and the width of the first application display window, and determine, according to the size of the length and the width, that the first application is an application supporting portrait display, or an application supporting landscape display. Wherein, the window layout parameters are the length and width of the display window.
A second obtaining unit 302, configured to obtain a screen display parameter of the display unit in a current display posture, where the screen display parameter represents a display direction of a screen;
here, the electronic device includes a first sensing unit, such as a gravity sensor G-sensor, by which the electronic device, specifically, the second acquisition unit 302 detects the display direction of the display unit in the current display posture. That is, the second obtaining unit 302 detects whether the electronic device is currently in the landscape display state or the portrait display state through the G-sensor. The display posture comprises a horizontal screen display state and a vertical screen display state.
A first detecting unit 303, configured to trigger the first adjusting unit 304 when detecting that the display direction of the display window is not matched with the display direction of the display unit in the current display posture;
here, when the first detection unit 303 determines that the display direction of the display window does not match the display direction of the display unit in the current display posture, it is determined that the display direction of the display window does not match the display direction of the display unit. For example, when the information obtained by the second obtaining unit 302 is in a landscape display state, and the first application obtained by the information obtained by the first obtaining unit 301 is an application supporting a portrait display, the first detecting unit 303 determines that the display direction of the display window of the first application is not consistent with the display direction of the display unit in the landscape display state, and triggers the first adjusting unit 304 to adjust the display parameters of the display window, so that the first application supporting the portrait display can be displayed in the display unit in the landscape display state.
A first adjusting unit 304, configured to adjust a display parameter of a display window;
a first presenting unit 305, configured to present a display window according to the adjusted display parameter.
Here, the first rendering unit 305 renders the display window of the first application in the current display posture of the display unit according to the adjusted display parameter, and displays the rendered display window on the display unit.
In the above scheme, when the display direction of the display window is not matched with the display direction of the display unit in the current display posture, the display parameters of the display window are adjusted, and the display window is presented according to the adjusted display parameters, so that the first application can be presented in the display unit. By the aid of the scheme, the applications supporting vertical screen display can be displayed in the display unit in the horizontal screen display state or the applications supporting horizontal screen display can be displayed in the display unit in the vertical screen display state, user experience is improved, and functional diversity of the electronic equipment is highlighted.
Second embodiment of the electronic device
Based on the first embodiment, fig. 5 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention; as shown in figure 5 of the drawings,
the first adjusting unit 304 is further configured to obtain a first ratio between a first side length and a second side length of the display window in the display parameters of the display window; carrying out reduction or amplification of a first preset proportion on the first ratio to obtain a second ratio; or keeping the length of the first edge or the length of the second edge unchanged, and reducing or amplifying the length of the other edge by a second preset proportion to obtain a second ratio.
Usually, the first application supports full-screen display, and the display window of the first application is a regular shape such as a rectangle, and the electronic device, specifically, the first adjusting unit 304, obtains a first edge length and a second edge length of the display window of the first application under full-screen display, and calculates a ratio between the first edge length and the second edge length to obtain a first ratio. The first edge and the second edge are adjacent to any two edges of the rectangular display window. Taking the first application as the application supporting the vertical screen display and the current display unit being in the horizontal screen display state as an example, when the first ratio of the display window of the first application in the full screen display state is calculated, the first adjusting unit 304 reduces the first predetermined ratio to the first ratio, for example, reduces the first predetermined ratio to half of the full screen display window, to obtain the second ratio, that is, the display ratio of the adjusted display window of the first application is obtained. Alternatively, the first adjusting unit 304 keeps the first side length unchanged, and performs a second predetermined scale reduction on the second side length, such as the second side length is reduced to half of the second side length of the display window in the full-screen display state, to obtain a second scale. The first preset proportion and the second preset proportion are flexibly set according to actual use conditions; further, if the size of the electronic device display screen is a × b and a > b, the first predetermined ratio γ or the second predetermined ratio γ range is: 0< gamma < ═ b/a.
The first presenting unit 305 is further configured to determine a long side and a short side of the display window in the first side and the second side according to a second ratio; drawing a long edge of the display window to be parallel to a first edge of the display unit; drawing a short edge of the display window to be parallel to a second edge of the display window; the first side length of the display unit is shorter than the second side length.
Here, after the first adjustment unit 304 adjusts the display window, the first presentation unit 305 determines the long side and the short side of the adjusted display window; drawing the long side of the display window to be parallel to the short side of the display unit; the short side of the drawing display window is parallel to the long side of the display unit. That is, the first application supporting the landscape display after the display scale of the display window is adjusted is displayed in the display unit in the portrait display state; or displaying the first application supporting the vertical screen display after the display scale of the display window is adjusted in the display unit in the horizontal screen display state.
Fig. 3(a) - (c) are schematic diagrams of an application scenario provided by the embodiment of the present invention; the present example will be described with reference to fig. 3(a) to (c).
The application a, such as the QQ application, is an application supporting the vertical screen display, and cannot be displayed in a full screen manner in the display unit in the horizontal screen display state, as shown in fig. 3 (a). The electronic device, specifically, the first adjusting unit 304 obtains the lengths of the edge 1 and the edge 2 of the application in the full-screen display state from the QQ application configuration file read by the first obtaining unit 301, and calculates a ratio between the lengths of the edge 1 and the edge 2 to obtain a first ratio. The first adjusting unit 304 reduces the first ratio by 0.5, for example, reduces the length of side 1 and the length of side 2 to half at the same time. As shown in fig. 3(b), the side 1 is reduced in length to half to obtain the side 3, and the side 2 is reduced in length to half to obtain the side 4. Of the sides 3 and 4, the first adjusting unit 304 determines that the side 3 is a short side and the side 4 is a long side, and draws a display window in which a QQ is applied in the display unit in the landscape display state, and presents the drawn display window as shown in fig. 3(b), where the side 3 of the display window is parallel to the long side of the display unit and the side 4 of the display window is parallel to the short side of the display unit.
Here, when the application a is run by the electronic device, the application B and the application C are also run at the same time, and the applications B and C are also applications supporting the vertical screen display, the display windows of the applications B and C are also processed as above, so that the applications B and C supporting the vertical screen display can be presented together with the application a in the display unit in the horizontal screen display state. In FIG. 3(B), the display windows of application A, application B, and application C are presented in a small window floating form; in addition, the display windows of application a, application B, and application C may also be presented in a small-window split-screen form, as shown in fig. 3 (C).
In the above scheme, when the display direction of the display window is not matched with the display direction of the display unit in the current display posture, the display proportion of the display window is adjusted, and the display window of the first application is presented according to the adjusted display proportion, so that the application supporting the vertical screen display is displayed in the display unit displaying the transverse screen or the application supporting the transverse screen display is displayed in the display unit displaying the vertical screen, the user experience is improved, and the functional diversity of the electronic equipment is highlighted.
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 unit, or each unit may be separately regarded 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: various media that can store program codes, such as a removable Memory device, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
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.

Claims (6)

1. An information processing method is applied to an electronic device, the electronic device can run a first application, the first application can be displayed on a display unit of the electronic device through a full screen window or a small window, and the display area of the small window is smaller than that of the full screen window; the method comprises the following steps:
acquiring display parameters of a display window of a first application, wherein the display parameters represent the display direction of the display window;
acquiring screen display parameters of a display unit in a current display posture, wherein the screen display parameters represent the display direction of a screen;
when the display direction of the display window is detected to be not matched with the display direction of the display unit in the current display posture, adjusting the display parameters of the display window;
displaying a display window according to the adjusted display parameters;
wherein, the adjusting the display parameters of the display window and presenting the display window according to the adjusted display parameters includes:
acquiring a first ratio between the length of a first edge and the length of a second edge of a display window in display parameters of the display window;
carrying out reduction or amplification of a first preset proportion on the first ratio to obtain a second ratio; or,
keeping the length of the first side or the length of the second side unchanged, and reducing or amplifying the length of the other side by a second preset proportion to obtain a second ratio;
determining the long side and the short side of the display window in the first side and the second side according to the second ratio;
drawing a long edge of the display window to be parallel to a first edge of the display unit;
drawing a short edge of the display window to be parallel to a second edge of the display window;
the first side length of the display unit is shorter than the second side length.
2. The method of claim 1, further comprising:
acquiring configuration attribute information of a first application;
determining a display direction of the display window based on the configuration attribute information; or,
reading window layout parameters of a display window;
and determining the display direction of the display window based on the window layout parameters.
3. The method according to claim 1 or 2, wherein the electronic device comprises a first sensing unit, and the display direction of the display unit in the current display posture is detected through the first sensing unit;
correspondingly, when the display direction of the display window is judged to be inconsistent with the display direction of the display unit in the current display posture, the display direction of the display window is determined to be not matched with the display direction of the display unit.
4. An electronic device capable of running a first application, the first application capable of being displayed on a display unit of the electronic device through a full screen window or a small window, a display area of the small window being smaller than a display area of the full screen window; the electronic device includes:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring display parameters of a display window of a first application, and the display parameters represent the display direction of the display window;
the second acquisition unit is used for acquiring screen display parameters of the display unit in the current display posture, and the screen display parameters represent the display direction of the screen;
the first detection unit is used for triggering the first adjustment unit when the display direction of the display window is not matched with the display direction of the display unit in the current display posture;
the first adjusting unit is used for adjusting the display parameters of the display window;
the first presentation unit is used for presenting the display window according to the adjusted display parameters;
the first adjusting unit is further configured to:
acquiring a first ratio between the length of a first edge and the length of a second edge of a display window in display parameters of the display window;
carrying out reduction or amplification of a first preset proportion on the first ratio to obtain a second ratio; or,
keeping the length of the first side or the length of the second side unchanged, and reducing or amplifying the length of the other side by a second preset proportion to obtain a second ratio;
the first presentation unit is further configured to:
determining the long side and the short side of the display window in the first side and the second side according to the second ratio;
drawing a long edge of the display window to be parallel to a first edge of the display unit;
drawing a short edge of the display window to be parallel to a second edge of the display window;
the first side length of the display unit is shorter than the second side length.
5. The electronic device of claim 4, wherein the first obtaining unit is further configured to:
acquiring configuration attribute information of a first application;
determining a display direction of the display window based on the configuration attribute information; or,
reading window layout parameters of a display window;
and determining the display direction of the display window based on the window layout parameters.
6. The electronic device according to claim 4 or 5, characterized in that the electronic device comprises a first sensing unit,
the second acquisition unit detects the display direction of the display unit in the current display posture through the first sensing unit;
correspondingly, the first detection unit is configured to determine that the display direction of the display window is not matched with the display direction of the display unit when the display direction of the display window is determined to be not matched with the display direction of the display unit in the current display posture.
CN201510082005.8A 2015-02-15 2015-02-15 A kind of information processing method and electronic equipment Active CN104615336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510082005.8A CN104615336B (en) 2015-02-15 2015-02-15 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510082005.8A CN104615336B (en) 2015-02-15 2015-02-15 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104615336A CN104615336A (en) 2015-05-13
CN104615336B true CN104615336B (en) 2019-01-15

Family

ID=53149812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510082005.8A Active CN104615336B (en) 2015-02-15 2015-02-15 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104615336B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293380A (en) * 2015-06-10 2017-01-04 联想(北京)有限公司 Information processing method and electronic equipment
CN105824491B (en) * 2015-08-31 2019-11-15 维沃移动通信有限公司 A kind of split screen treating method and apparatus in a mobile device
CN105187945B (en) * 2015-09-18 2018-05-08 浪潮软件集团有限公司 Method for realizing apk control of android set top box screen direction
US11620029B2 (en) 2015-12-24 2023-04-04 Huawei Technologies Co., Ltd. Method for displaying multiple application windows by mobile terminal, and mobile terminal
CN108228019A (en) * 2016-12-09 2018-06-29 比亚迪股份有限公司 Display methods, device, car-mounted terminal and the vehicle of car-mounted terminal
CN106791180A (en) * 2017-01-19 2017-05-31 努比亚技术有限公司 The method of adjustment and adjusting apparatus of the video window of the application of mobile terminal
CN108024135B (en) * 2017-12-13 2019-02-22 广州虎牙信息科技有限公司 Picture exhibition method, storage equipment and computer equipment is broadcast live in direct broadcasting room
CN109117241B (en) * 2018-09-27 2020-08-21 Oppo广东移动通信有限公司 Display direction control method, system and mobile terminal
CN116088782A (en) * 2018-10-29 2023-05-09 中兴通讯股份有限公司 Multi-screen display control method, device, equipment and readable storage medium
CN110244996A (en) * 2019-05-14 2019-09-17 苏宁智能终端有限公司 A kind of method, apparatus and terminal of transverse screen display terminal adaptation vertical screen application program
CN110427150A (en) * 2019-08-08 2019-11-08 北京字节跳动网络技术有限公司 Display methods, device, electronic equipment and the computer-readable medium of application program
CN110795196A (en) * 2019-10-31 2020-02-14 北京字节跳动网络技术有限公司 Window display method, device, terminal and storage medium
CN112230793A (en) * 2019-11-15 2021-01-15 华为技术有限公司 Display method of electronic equipment with flexible screen and electronic equipment
CN113050858B (en) * 2021-03-31 2022-10-25 联想(北京)有限公司 Information processing method and electronic equipment
CN118394443A (en) * 2024-06-28 2024-07-26 比亚迪股份有限公司 Data display method, device, controller, medium, product and vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203850A (en) * 2008-09-12 2011-09-28 格斯图尔泰克公司 Orienting displayed elements relative to a user
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
EP2571234A1 (en) * 2011-09-16 2013-03-20 LG Electronics Inc. Mobile terminal and method for controlling the same
CN103270505A (en) * 2010-10-01 2013-08-28 Flex Electronics ID Co.,Ltd. Smartpad split screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203850A (en) * 2008-09-12 2011-09-28 格斯图尔泰克公司 Orienting displayed elements relative to a user
CN103270505A (en) * 2010-10-01 2013-08-28 Flex Electronics ID Co.,Ltd. Smartpad split screen
EP2571234A1 (en) * 2011-09-16 2013-03-20 LG Electronics Inc. Mobile terminal and method for controlling the same
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device

Also Published As

Publication number Publication date
CN104615336A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104615336B (en) A kind of information processing method and electronic equipment
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
US8570347B2 (en) Electronic device and method for image editing
WO2018075950A1 (en) Systems and methods for displaying representative images
US8531487B2 (en) Software for displays with different pixel densities
CN104267931B (en) A kind of information processing method and electronic equipment
CN108064371A (en) A kind of control method and device of flexible display screen
CN110196665B (en) UI control background setting method and device and terminal
EP2797297A1 (en) Multi-zone interface switching method and device
US20140068495A1 (en) Apparatus and method for processing handwriting input
CN103809850A (en) Information processing method and electronic equipment
CN112099886A (en) Desktop display control method and device of mobile zero terminal
CN107870703B (en) Method, system and terminal equipment for full-screen display of picture
CN104123062B (en) A kind of information processing method and electronic equipment
EP3043251A1 (en) Method of displaying content and electronic device implementing same
CN103870116B (en) A kind of information processing method and electronic equipment
CN103823610B (en) A kind of electronic equipment and its information processing method
CN105988700B (en) Terminal screen display method and device
CN112199139B (en) Self-adaptive adjustment method and device for system scaling
CN103870117B (en) A kind of information processing method and electronic equipment
CN108196670A (en) A kind of gesture display methods, terminal device and computer readable storage medium
CN107133022B (en) Control display method and device in terminal equipment
CN104571791A (en) Information processing method and electronic equipment
CN113703653A (en) Image processing method, device, equipment and computer readable storage medium
CN114202392A (en) Customized image direction adjusting method and device, storage medium and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant