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
direction
Prior art date
Application number
CN201510082005.8A
Other languages
Chinese (zh)
Other versions
CN104615336A (en
Inventor
罗晨
李俊
Original Assignee
联想(北京)有限公司
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 联想(北京)有限公司 filed Critical 联想(北京)有限公司
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

Links

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

A kind of information processing method and electronic equipment

Technical field

The present invention relates to the information processing technologies, and in particular to a kind of information processing method and electronic equipment.

Background technique

Currently, in starting electronic equipment in application, negative by corresponding operation system such as Android (Android) operating system Duty carries out full screen window for the application having been turned on or split screen window is shown.It is different in application, can when being shown with two split screen windows Can there are transverse screen display and vertical screen display that the display unit of electronic equipment is supported in all applications, it is also possible to only certain applications branch Transverse screen display is held, vertical screen display is supported in another part application, in this case, how to be shown these different applying and is being in In the display unit of transverse screen display or in the display unit in vertical screen display, become urgent problem to be solved.

Summary of the invention

To solve existing technical problem, the embodiment of the present invention is to provide a kind of information processing method and electronics is set It is standby, perpendicular (cross) can be shielded to the application shown and be shown in the display unit that horizontal (perpendicular) screen is shown, promotion user experience highlights electricity Sub- functions of the equipments diversity.

The technical solution of the embodiment of the present invention is achieved in that

The embodiment of the invention provides a kind of information processing methods, are applied in an electronic equipment, the electronic equipment energy Enough the first applications of operation, first application can be shown in the display list of the electronic equipment by full screen window or wicket In member, the display area of the wicket is less than the display area of the full screen window;The described method includes:

Obtain the display parameters of the display window of the first application, the display direction of the display parameters characterization display window;

Screen display parameters of the display unit under currently display posture are obtained, the screen display parameters characterization screen Display direction;

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.

In above scheme, the method also includes:

Obtain the configuration attribute information of the first application;

Based on the configuration attribute information, the display direction of display window is determined;Alternatively,

Read the window layout parameter of display window;

Based on window layout parameter, the display direction of display window is determined.

In above scheme, the electronic equipment includes the first sensing unit, is detected and is shown by first sensing unit Display direction of the unit under currently display posture;

Correspondingly, being judged as the display direction of the display direction and display unit of display window under currently display posture not When consistent, the display direction of the display direction and display unit that are determined as display window is mismatched.

In above scheme, the display parameters to display window are adjusted, comprising:

In the display parameters of display window, first between the first edge lengths of display window and the second edge lengths is obtained Ratio;

The first predetermined ratio is carried out to the first ratio to zoom in or out, and obtains the second ratio;Alternatively,

It keeps the first edge lengths or the second edge lengths constant, the diminution of the second predetermined ratio is carried out to another edge lengths or puts Greatly, the second ratio is obtained.

It is described that display window is presented according to display parameters adjusted in above scheme, comprising:

According to the second ratio, first while with second in determination display window long side and short side;

The long side for drawing display window is parallel to the first side of display unit;

The short side for drawing display window is parallel to the second side of display window;

First edge lengths of the display unit are shorter than the second edge lengths.

The embodiment of the invention also provides a kind of electronic equipment, the electronic equipment can run the first application, and described One application can be shown on the display unit of the electronic equipment by full screen window or wicket, the display of the wicket Region is less than the display area of the full screen window;The electronic equipment includes:

First acquisition unit, the display parameters of the display window for obtaining the first application, the display parameters characterization are aobvious Show the display direction of window;

Second acquisition unit, for obtaining screen display parameters of the display unit under currently display posture, the screen The display direction of display parameters characterization screen;

First detection unit, the display direction and display unit for being detected as display window are under currently display posture When display direction mismatches, the first adjustment unit is triggered;

The first adjustment unit is adjusted for the display parameters to display window;

First display unit, for display window to be presented according to display parameters adjusted.

In above scheme, the first acquisition unit is also used to:

Obtain the configuration attribute information of the first application;

Based on the configuration attribute information, the display direction of display window is determined;Alternatively,

Read the window layout parameter of display window;

Based on window layout parameter, the display direction of display window is determined.

In above scheme, the electronic equipment includes the first sensing unit,

It is aobvious under currently display posture to detect display unit by first sensing unit for the second acquisition unit Show direction;

Correspondingly, the first detection unit, the display direction and display unit for being judged as display window are current When showing that display direction under posture is inconsistent, the display direction of the display direction and display unit that are determined as display window is not Match.

In above scheme, the first adjustment unit is also used to:

In the display parameters of display window, first between the first edge lengths of display window and the second edge lengths is obtained Ratio;

The first predetermined ratio is carried out to the first ratio to zoom in or out, and obtains the second ratio;Alternatively,

It keeps the first edge lengths or the second edge lengths constant, the diminution of the second predetermined ratio is carried out to another edge lengths or puts Greatly, the second ratio is obtained.

In above scheme, first display unit is also used to:

According to the second ratio, first while with second in determination display window long side and short side;

The long side for drawing display window is parallel to the first side of display unit;

The short side for drawing display window is parallel to the second side of display window;

First edge lengths of the display unit are shorter than the second edge lengths.

Information processing method and electronic equipment provided in an embodiment of the present invention, the method are applied in an electronic equipment, The electronic equipment can run the first application, and first application can be shown in the electricity by full screen window or wicket On the display unit of sub- equipment, the display area of the wicket is less than the display area of the full screen window;The method packet It includes: obtaining the display parameters of the display window of the first application, the display direction of the display parameters characterization display window;It obtains aobvious Show screen display parameters of the unit under currently display posture, the display direction of the screen display parameters characterization screen;Detection For display window display direction and display unit currently display posture under display direction mismatch when, to display window Display parameters are adjusted;Display window is presented according to display parameters adjusted.The application that can show perpendicular (cross) screen is aobvious Show in the display unit of horizontal (perpendicular) screen display, promotes user experience, highlight electronic functionalities diversity.

Detailed description of the invention

Fig. 1 is the implementation process schematic diagram of the first embodiment of information processing method provided by the invention;

Fig. 2 is the implementation process schematic diagram of the second embodiment of information processing method provided by the invention;

Fig. 3 (a)~(c) is an application scenarios schematic diagram provided in an embodiment of the present invention;

Fig. 4 is the composed structure schematic diagram of the first embodiment of electronic equipment provided by the invention;

Fig. 5 is the composed structure schematic diagram of the second embodiment of electronic equipment provided by the invention.

Specific embodiment

Below in conjunction with attached drawing to a preferred embodiment of the present invention will be described in detail, it should be understood that described below is excellent Select embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.

In the following embodiment of information processing method provided by the invention and electronic equipment, related electronic equipment Including but not limited to: the various types such as industrial control computer, personal computer computer, integral computer, tablet computer, hand Mechanical, electrical sub- reader etc..The object of the preferred electronic equipment of the embodiment of the present invention is mobile phone.

In each embodiment of electronic equipment provided by the invention and information processing method, the electronic equipment includes display Unit, the display unit can run M first application, and the electronic equipment is able to carry out the first instruction, in the display N number of wicket is presented on unit, N number of wicket is corresponding with N number of first application in the M first application, so that institute It states N number of first and applies and shown in corresponding wicket, the wicket is by the first conversion parameter to described complete Screen window is converted;First application is shown on the display unit by corresponding wicket;M, N is Positive integer.

Wherein, first application can be the application carried in electronic apparatus system, such as clock application, short message are answered With, address list application etc.;It is also possible to by the third-party application of user installation, such as game application, wechat are applied, browser is answered With, instant chat application, mail applications etc..

First application is by the desktop that can be shown in electronic equipment in the form of interactive object, first application program Corresponding one can interactive object, it is described can interactive object can be object identity, which is generally icon, by institute The object identity for stating the first application program is operated, so that first application is shown in institute by wicket or full screen window It states on display unit, with user-friendly.For example, on the desktop of electronic equipment such as mobile phone, when user's touch-control clock application Icon when, so that it may open the clock application, and by wicket or full screen window mode be shown in the clock application aobvious Show on unit.

In the embodiment of the present invention, the full screen window of the first application program can be become using first conversion parameter It changes, generates wicket;Such as diminution transformation, translation transformation, rotation transformation and shape conversion etc. are carried out to full screen window, in turn Full screen window is transformed to wicket.Wherein, first conversion parameter can be following at least one: parameter, matrix, parameter Group, parameter sets.During realization, first conversion parameter can be matrix, parameter group;Wherein, the ginseng in parameter group Number can be a certain specific numerical value, be also possible to vector.

Below using the first conversion parameter as matrix, and the matrix is considered as the first matrix to illustrate to realize using the first matrix Full screen window to wicket conversion process.

Here, the first matrix can be preset by the production firm of electronic equipment, can also be by user manually in institute It states in electronic equipment and is arranged;For the ease of the first matrix of user's manual setting, the electronic equipment provides matrix and automatically generates Some and the first matrix correlation parameter need to be only arranged in function, user on the electronic equipment, such as window abscissa scales Parameter, window's vertical scale scaling parameter, window translation parameter, window shape parameter, window angle rotation parameter etc., electronic equipment Corresponding first matrix can be generated according to above-mentioned parameter.

Here, it is zoomed in and out using full screen window of first matrix to first application program and rotation transformation, It can be realized by formula (1a):

In formula (1a),For the coordinate vector of wicket, x2For the abscissa of wicket, y2For the vertical seat of wicket Mark, z2General default setting is 1;V the first matrix of expression, the matrix that the first matrix is 3 × 3, MijIndicate the element that the i-th row jth arranges in the first matrix, i value is 1,2,3;J value is 1,2,3;Indicate full screen window Coordinate vector, x1For the abscissa of full screen window, y1For the ordinate of full screen window, z1General default setting is 1;

It, can be by M when zooming in and out transformation to full screen window by formula (1a)ijIn 4 elements be arranged as follows: M11=α, M12=0, M21=0, M22=β, other 5 elements can be arbitrarily arranged, in this way, can be by the above-mentioned parameter that will be arranged It brings into formula (1a), obtains formula (2a):

x2=α × x1

(2a)

y2=β × y1

Wherein, α is abscissa zooming parameter, and β is ordinate zooming parameter.

It, can be by M when carrying out rotating clockwise transformation to full screen window by formula (1a)ijIn 4 elements carry out such as Lower setting: M11=cos θ, M12=sin θ, M21=-sin θ, M22=cos θ, other 5 elements can be arbitrarily arranged, in this way, can be with By bringing the above-mentioned parameter of setting in formula (1a) into, formula (3a) is obtained:

x2=cos θ × x1+sinθ×y1

(3a)

y2=-sin θ × x1+cosθ×y1

Wherein, θ is rotation angle.

Translation transformation is carried out using full screen window of first matrix to first application program, formula can be passed through (4a) is realized:

It, can be by M when carrying out translation transformation to full screen window by formula (4a)ijIn 2 elements be arranged as follows: M11=a, M21=b, M31=0, in this way, can obtain formula (5a) by bringing the above-mentioned parameter of setting in formula (4a) into:

x2=a+x1

(5a)

y2=b+y1

Wherein, a is abscissa translation parameters, and b is ordinate translation parameters.

In above scheme, the coordinate vector of full screen window can have it is multiple, the corresponding pixel of each coordinate vector Position;Similarly, the coordinate vector of wicket can also have multiple, and the seat of the number of the coordinate vector of wicket and full screen window The number for marking vector corresponds, and the coordinate vector of wicket also corresponds to the position of a pixel, and the pixel is as full frame The corresponding pixel of window.

Can apply under full screen window that figure is data cached to be converted to first by the first matrix, generate this first Apply the graphics cache data under wicket;By the transformation data cached to figure under full screen window, in the effect of display On can achieve by first application full screen window carry out reduce form corresponding wicket so that first application with small window Mouth status display is on the display screen of electronic equipment.

When specific implementation, other values can also be set by each element in the first matrix, so that full screen window converts For corresponding wicket;Of course, it is possible to each element in the first matrix is configured with while full screen window is zoomed in and out, The operation such as translation and rotation.

In above scheme, the first matrix is the square matrix that dimension is 3, can additionally take the square matrix of other dimensions, such as 4 × 4 square matrix.Those skilled in the art can according to the actual needs convert the dimension of square matrix, and which is not described herein again.

It should be noted that when the corresponding multiple wickets of the multiple applications of electronic equipment operation or operation certain applications Corresponding part full screen window and another part are corresponding multiple complete using corresponding part wicket or the multiple applications of operation When screen window, since only support is shown displayed across, vertical screen display is only supported in some applications for some applications, how these to be had different The application of display direction is simultaneously displayed on the related description that subsequent schedule is referred in display unit.

Embodiment of the method one

The first embodiment of information processing method provided by the invention is applied in an electronic equipment, the electronic equipment The first application can be run, first application can be shown in the electronic equipment by full screen window or wicket above-mentioned Display unit on, the display area of the wicket is less than the display area of the full screen window.

Fig. 1 is the implementation process schematic diagram of the first embodiment of information processing method provided by the invention;As shown in Figure 1, The described method includes:

Step 101: obtaining the display parameters of the display window of the first application, the display parameters characterization display window is shown Show direction;

In this step, the configuration attribute information of the first application is obtained;Based on the configuration attribute information, display window is determined Display direction.Alternatively, reading the window layout parameter of display window;Based on window layout parameter, the display of display window is determined Direction.

After the completion of the first application and development, it will usually application and/or support by first application to support vertical screen display This application attribute information configuration of the application of transverse screen display is in the configuration file of the application.For example, when the first application is fortune Behavior Android operation system in application, its attribute information will configure in AndroidManifest.xml.This implementation In example, by reading the information of configuration file you can learn that current first application is to support the application of vertical screen display or is support The application of transverse screen display or the application shown for support horizontal/vertical screen.In addition to this it is possible to measure the first application display window Long and wide size determines that first application is to support the application of vertical screen display or is that support is horizontal by length and wide size Shield the application of display or the application to support horizontal/vertical screen to show.Wherein, the window layout parameter is the length of the display window With width.

Step 102: obtaining screen display parameters of the display unit under currently display posture, the screen display parameters table Levy the display direction of screen;

Here, the first sensing unit of electronic equipment such as gravity sensor G-sensor, it is single by first sensing Display direction of the member detection display unit under currently display posture.The current electronic equipment is detected by G-sensor to be in Transverse screen display state or vertical screen display state.Wherein, the display posture includes transverse screen display state and vertical screen display state.

Step 103: being detected as the display direction of the display direction and display unit of display window under currently display posture When mismatch, the display parameters of display window are adjusted;

Here, when the display direction of the display direction of display window and display unit under currently display posture is inconsistent When, the display direction of the display direction and display unit that are determined as display window mismatches.For example, display unit is in cross When shielding display state, the first application run is to support the application of vertical screen display, it is determined that for the first application display window The display direction of display direction and display unit under transverse screen display state is inconsistent, need to the display parameters of display window into Row adjustment, so as to support the first application of vertical screen display that can be shown in the display unit in transverse screen display state.

Step 104: the display window is presented according to display parameters adjusted.

Here, it according to display parameters adjusted, draws first and applies the display in the case where display unit currently shows posture Window, and the display window drawn is shown on the display unit.

In above scheme, when display window display direction and display unit currently display posture under display direction not When matching, the display parameters of display window are adjusted, display window are presented according to display parameters adjusted, so that first Using can be presented in display unit.Using this programme, the application display for supporting vertical screen display can be shown in transverse screen Show in the display unit of state or will support the application display of transverse screen display in the display unit in vertical screen display state, mentions User experience is risen, electronic functionalities diversity is highlighted.

Embodiment of the method two

The present embodiment is based on previous embodiment one, and the present embodiment is to the display parameters to display window in previous embodiment It the method that is adjusted and is further described according to the method that the display window is presented in display parameters adjusted.

Fig. 2 is the implementation process schematic diagram of the second embodiment of information processing method provided by the invention;As shown in Fig. 2, The method also includes:

Step 201: being detected as the display direction of the display direction and display unit of display window under currently display posture When mismatch, in the display parameters of display window, between the first edge lengths of display window and the second edge lengths is obtained One ratio;

Usual first application supports that the display window of full screen display and the first application is regular shape such as rectangle, obtains first The first edge lengths and the second edge lengths of the display window under full screen display are applied, and calculate the first edge lengths and the second side Ratio between length obtains the first ratio.Wherein, this first while with second be rectangle display window arbitrary neighborhood two Side.

Step 202: the first predetermined ratio being carried out to the first ratio and is zoomed in or out, the second ratio is obtained;Alternatively, keeping First edge lengths or the second edge lengths are constant, carry out the second predetermined ratio to another edge lengths and zoom in or out, obtain second Ratio;

Here, being in transverse screen display state using the application and current display unit that are support vertical screen display with first is It is pre- to carry out first to the first ratio when calculating first and applying the first ratio of display window under full screen display state for example The diminution of certainty ratio is such as reduced into the half of full screen display window, obtains the second ratio to get to the first application after adjusted The display scale of display window.Alternatively, the first edge lengths remain unchanged, the second edge lengths are carried out with the diminution of the second predetermined ratio If the second edge lengths are contracted to the half of the second edge lengths of display window under full screen display state, the second ratio is obtained.Wherein, First predetermined ratio, the second predetermined ratio are flexibly set according to actual use situation;Further, if electronic equipment The size for showing screen is a*b and a>b, then the first predetermined ratio γ or the second predetermined ratio γ range are as follows: 0<γ≤b/a.

Step 203: according to the second ratio, first while with second in determination display window long side and short side;

Here, after being adjusted to display window, determine it is adjusted after display window long side and short side.

Step 204: the long side for drawing display window is parallel to the first side of display unit;The short side for drawing display window is flat Row is in the second side of display window;First edge lengths of the display unit are shorter than the second edge lengths.

Here, the long side for drawing display window is parallel to the short side of display unit;The short side for drawing display window is parallel to The long side of display unit.That is, the first application adjusted for supporting transverse screen display of the display scale of display window is aobvious Show in the display unit in vertical screen display state;Alternatively, by the display scale of display window support vertical screen adjusted First application of display is shown in the display unit in transverse screen display state.

Fig. 3 (a)~(c) is the schematic diagram of an application scenarios provided in an embodiment of the present invention;In conjunction with Fig. 3 (a)~(c) to this Embodiment is illustrated.

The application to support vertical screen display is applied using A such as QQ, can not be shown in full form in transverse screen display shape In the display unit of state, as shown in Fig. 3 (a).Electronic equipment learns that QQ is applied by the configuration file that read QQ is applied Under full screen display state while 1 with while 2 length, calculate while 1 length and while 2 length between ratio, obtain the first ratio. By the first ratio carry out 0.5 diminution such as by while 1 length and while 2 length be reduced into half simultaneously.As shown in Fig. 3 (b), side 1 is long Degree is contracted to half and obtains side 3, when 2 length reductions to half obtain 4.While 3 with while 4 in, be determined as while 3 for short side, while 4 For long side, draw QQ and apply in the display window in the display unit under transverse screen display state, and present drawn it is aobvious Show that the side 3 of the display window is parallel to the long side of display unit, and the side 4 of the display window is parallel to shown in window such as Fig. 3 (b) The short side of display unit.

Here, it when electronic equipment operation is using A, while also having run using B and using C, and application B and C are also branch The application of vertical screen display is held, then processing as above is also done to the display window of application B and C, can will support the application of vertical screen display B, it is presented in the display unit in transverse screen display state using C together with using A.In Fig. 3 (b), using A, using B And the display window of application C is presented with wicket suspended form;In addition, using A, using B and application C display window also It can be presented in the form of wicket split screen, as shown in Fig. 3 (c).

In above scheme, when display window display direction and display unit currently display posture under display direction not When matching, the display scale of display window is adjusted, and the display window of the first application is presented with display scale adjusted Mouthful, it is shown in the application for supporting vertical screen display in the display unit with transverse screen display or the application of transverse screen display will be supported to show In the display unit with vertical screen display, user experience is promoted, electronic functionalities diversity is highlighted.

Electronic equipment embodiment one

The first embodiment of electronic equipment provided by the invention, the electronic equipment can run the first application, and described One application can be shown on the display unit of the electronic equipment by full screen window or wicket above-mentioned, the wicket Display area be less than the full screen window display area.

Fig. 4 is the composed structure schematic diagram of the first embodiment of electronic equipment provided by the invention;As shown in figure 4, described Electronic equipment includes:

First acquisition unit 301, the display parameters of the display window for obtaining the first application, the display parameters characterization The display direction of display window;

Here, the first acquisition unit 301 is also used to obtain the configuration attribute information of the first application, is based on the configuration Attribute information determines the display direction of display window;Alternatively, reading the window layout parameter of display window, it is based on window layout Parameter determines the display direction of display window.

After the completion of the first application and development, it will usually application and/or support by first application to support vertical screen display This application attribute information configuration of the application of transverse screen display is in the configuration file of the application.For example, when the first application is fortune Behavior Android operation system in application, its attribute information will configure in AndroidManifest.xml.This implementation In example, electronic equipment is specifically first acquisition unit 301 by reading the information of configuration file you can learn that current first application To support the application of vertical screen display or being to support the application of transverse screen display or be to support the application that shows of horizontal/vertical screen.Except this it Outside, electronic equipment, specifically first acquisition unit 301 can also measure the length and wide size of the first application display window, lead to Too long and wide size come determine this first application be support vertical screen display application or be support transverse screen display using or For the application for supporting horizontal/vertical screen to show.Wherein, the window layout parameter is the length and width of the display window.

Second acquisition unit 302, for obtaining screen display parameters of the display unit under currently display posture, the screen The display direction of curtain display parameters characterization screen;

Here, the electronic equipment includes the first sensing unit such as gravity sensor G-sensor, and electronic equipment is specifically Second acquisition unit 302 detects display direction of the display unit under currently display posture by first sensing unit.I.e. Second acquisition unit 302 detects the current electronic equipment by G-sensor and is in transverse screen display state or vertical screen display shape State.Wherein, the display posture includes transverse screen display state and vertical screen display state.

First detection unit 303, the display direction and display unit for being detected as display window are in currently display posture Under display direction mismatch when, trigger the first adjustment unit 304;

Here, the first detection unit 303 is judged as that the display direction of display window and display unit are shown currently When display direction under posture is inconsistent, the display direction of the display direction and display unit that are determined as display window is mismatched. For example, display unit is obtained by the information that second acquisition unit 302 is known and is in transverse screen display state, obtained by first The first application that the information that unit 301 is known is run is support vertical screen display in application, first detection unit 303 is true It is inconsistent to be set to the display direction of the display direction and display unit of the first application display window under transverse screen display state, triggering The first adjustment unit 304 is adjusted the display parameters of display window, so as to support the first application of vertical screen display that can show Show in the display unit in transverse screen display state.

The first adjustment unit 304 is adjusted for the display parameters to display window;

First display unit 305, for display window to be presented according to display parameters adjusted.

Here, according to display parameters adjusted, the first display unit 305 drafting first is applied currently to be shown in display unit Show the display window under posture, and the display window drawn is shown on the display unit.

In above scheme, when display window display direction and display unit currently display posture under display direction not When matching, the display parameters of display window are adjusted, display window are presented according to display parameters adjusted, so that first Using can be presented in display unit.Using this programme, the application display for supporting vertical screen display can be shown in transverse screen Show in the display unit of state or will support the application display of transverse screen display in the display unit in vertical screen display state, mentions User experience is risen, electronic functionalities diversity is highlighted.

Electronic equipment embodiment two

The present embodiment is based on previous embodiment one, and Fig. 5 is the composition of the second embodiment of electronic equipment provided by the invention Structural schematic diagram;As shown in figure 5,

The first adjustment unit 304, is also used in the display parameters of display window, obtains the first side of display window The first ratio between length and the second edge lengths;The first predetermined ratio is carried out to the first ratio to zoom in or out, and obtains the Two ratios;Alternatively, keeping the first edge lengths or the second edge lengths constant, another edge lengths are carried out with the diminution of the second predetermined ratio Or amplification, obtain the second ratio.

Usual first application supports that the display window of full screen display and the first application is regular shape such as rectangle, the electronics Equipment is specifically that the first adjustment unit 304 obtains first and applies the first edge lengths of display window under full screen display and the Two edge lengths, and the ratio between the first edge lengths and the second edge lengths is calculated, obtain the first ratio.Wherein, first side With second while with being two of rectangle display window arbitrary neighborhood.With the first application to support the application of vertical screen display and current Display unit is in for transverse screen display state, applies first of the display window under full screen display state to compare when calculating first When value, the diminution that the first adjustment unit 304 carries out the first predetermined ratio to the first ratio is such as reduced into the one of full screen display window Half, the second ratio is obtained to get to the display scale of the first application display window after adjusted.Alternatively, the first adjustment unit 304 keep the first edge lengths constant, and diminution such as the second edge lengths for carrying out the second predetermined ratio to the second edge lengths are contracted to The half of the second edge lengths of display window, obtains the second ratio under full screen display state.Wherein, first predetermined ratio, Two predetermined ratios are flexibly set according to actual use situation;Further, if the size of electronic equipment display screen curtain is a*b And a>b, then the first predetermined ratio γ or the second predetermined ratio γ range are as follows: 0<γ≤b/a.

First display unit 305, is also used to according to the second ratio, first while with second in determination display window Long side and short side;The long side for drawing display window is parallel to the first side of display unit;The short side for drawing display window is parallel In the second side of display window;First edge lengths of the display unit are shorter than the second edge lengths.

Here, after the first adjustment unit 304 is adjusted display window, first display unit 305 determines warp The long side and short side of display window adjusted;And the long side for drawing display window is parallel to the short side of display unit;It draws aobvious Show that the short side of window is parallel to the long side of display unit.That is, the support adjusted of the display scale of display window is horizontal First application of screen display is shown in the display unit in vertical screen display state;Alternatively, by the display ratio of display window Example the first application adjusted for supporting vertical screen display is shown in the display unit in transverse screen display state.

Fig. 3 (a)~(c) is the schematic diagram of an application scenarios provided in an embodiment of the present invention;In conjunction with Fig. 3 (a)~(c) to this Embodiment is illustrated.

The application to support vertical screen display is applied using A such as QQ, can not be shown in full form in transverse screen display shape In the display unit of state, as shown in Fig. 3 (a).Electronic equipment is specifically the first adjustment unit 304 from 301 institute of first acquisition unit Know in the QQ application configuration file of reading this apply under full screen display state while 1 with while 2 length, and it is long to calculate side 1 Ratio between degree and 2 length of side, obtains the first ratio.The diminution that first ratio carries out 0.5 such as will by the first adjustment unit 304 While 1 length with while 2 length be reduced into half simultaneously.As shown in Fig. 3 (b), when 1 length reduction to half obtains 3,2 length of side It is contracted to half and obtains side 4.While 3 with while 4 in, the first adjustment unit 304 be determined as while 3 be short side, while 4 be long side, and draw QQ processed is applied in the display window in the display unit under transverse screen display state, and drawn display window is presented as schemed Shown in 3 (b), the side 3 of the display window is parallel to the long side of display unit, and the side 4 of the display window is parallel to display unit Short side.

Here, it when electronic equipment operation is using A, while also having run using B and using C, and application B and C are also branch The application of vertical screen display is held, then processing as above is also done to the display window of application B and C, can will support the application of vertical screen display B, it is presented in the display unit in transverse screen display state using C together with using A.In Fig. 3 (b), using A, using B And the display window of application C is presented with wicket suspended form;In addition, using A, using B and application C display window also It can be presented in the form of wicket split screen, as shown in Fig. 3 (c).

In above scheme, when display window display direction and display unit currently display posture under display direction not When matching, the display scale of display window is adjusted, and the display window of the first application is presented with display scale adjusted Mouthful, it is shown in the application for supporting vertical screen display in the display unit with transverse screen display or the application of transverse screen display will be supported to show In the display unit with vertical screen display, user experience is promoted, electronic functionalities diversity is highlighted.

In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.

Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.

In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.

Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only The various media that can store program code such as memory (ROM, Read-Only Memory), magnetic or disk.

The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (6)

1. a kind of information processing method, it is applied in an electronic equipment, the electronic equipment can run the first application, and described the One application can be shown on the display unit of the electronic equipment by full screen window or wicket, the display of the wicket Region is less than the display area of the full screen window;The described method includes:
Obtain the display parameters of the display window of the first application, the display direction of the display parameters characterization display window;
Obtain screen display parameters of the display unit under currently display posture, the display of the screen display parameters characterization screen Direction;
When being detected as the display direction mismatch of the display direction and display unit of display window under currently display posture, to aobvious Show that the display parameters of window are adjusted;
Display window is presented according to display parameters adjusted;
Wherein, the display parameters to display window are adjusted, and display window, packet is presented according to display parameters adjusted It includes:
In the display parameters of display window, the first ratio between the first edge lengths of display window and the second edge lengths is obtained Value;
The first predetermined ratio is carried out to the first ratio to zoom in or out, and obtains the second ratio;Alternatively,
It keeps the first edge lengths or the second edge lengths constant, the second predetermined ratio is carried out to another edge lengths and is zoomed in or out, Obtain the second ratio;
According to the second ratio, first while with second in determination display window long side and short side;
The long side for drawing display window is parallel to the first side of display unit;
The short side for drawing display window is parallel to the second side of display window;
First edge lengths of the display unit are shorter than the second edge lengths.
2. the method according to claim 1, wherein the method also includes:
Obtain the configuration attribute information of the first application;
Based on the configuration attribute information, the display direction of display window is determined;Alternatively,
Read the window layout parameter of display window;
Based on window layout parameter, the display direction of display window is determined.
3. method according to claim 1 or 2, which is characterized in that the electronic equipment includes the first sensing unit, is passed through Display direction of the first sensing unit detection display unit under currently display posture;
Correspondingly, being judged as that the display direction of the display direction and display unit of display window under currently display posture is inconsistent When, the display direction of the display direction and display unit that are determined as display window mismatches.
4. a kind of electronic equipment, the electronic equipment can run the first application, and first application can pass through full screen window Or wicket is shown on the display unit of the electronic equipment, the display area of the wicket is less than the full screen window Display area;The electronic equipment includes:
First acquisition unit, the display parameters of the display window for obtaining the first application, the display parameters characterize display window The display direction of mouth;
Second acquisition unit, for obtaining screen display parameters of the display unit under currently display posture, the screen is shown The display direction of parameter characterization screen;
First detection unit, for being detected as the display of the display direction and display unit of display window under currently display posture When direction mismatches, the first adjustment unit is triggered;
The first adjustment unit is adjusted for the display parameters to display window;
First display unit, for display window to be presented according to display parameters adjusted;
The first adjustment unit, is also used to:
In the display parameters of display window, the first ratio between the first edge lengths of display window and the second edge lengths is obtained Value;
The first predetermined ratio is carried out to the first ratio to zoom in or out, and obtains the second ratio;Alternatively,
It keeps the first edge lengths or the second edge lengths constant, the second predetermined ratio is carried out to another edge lengths and is zoomed in or out, Obtain the second ratio;
First display unit, is also used to:
According to the second ratio, first while with second in determination display window long side and short side;
The long side for drawing display window is parallel to the first side of display unit;
The short side for drawing display window is parallel to the second side of display window;
First edge lengths of the display unit are shorter than the second edge lengths.
5. electronic equipment according to claim 4, which is characterized in that the first acquisition unit is also used to:
Obtain the configuration attribute information of the first application;
Based on the configuration attribute information, the display direction of display window is determined;Alternatively,
Read the window layout parameter of display window;
Based on window layout parameter, the display direction of display window is determined.
6. electronic equipment according to claim 4 or 5, which is characterized in that the electronic equipment includes the first sensing unit,
The second acquisition unit detects display side of the display unit under currently display posture by first sensing unit To;
Correspondingly, the first detection unit, display direction and display unit for being judged as display window are shown currently When display direction under posture is inconsistent, the display direction of the display direction and display unit that are determined as display window is mismatched.
CN201510082005.8A 2015-02-15 2015-02-15 A kind of information processing method and electronic equipment 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 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293380A (en) * 2015-06-10 2017-01-04 联想(北京)有限公司 An information processing method and an electronic device
CN105824491A (en) * 2015-08-31 2016-08-03 维沃移动通信有限公司 Split screen processing method and device in mobile equipment
CN105187945B (en) * 2015-09-18 2018-05-08 浪潮软件集团有限公司 A method for implementing a set top box android apk controlling direction screen
BR112017021498A2 (en) * 2015-12-24 2018-07-03 Huawei Tech Co Ltd method for displaying multiple application windows by mobile terminal, and 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

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 Z124 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 Z124 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
EP2889722B1 (en) Flexible display device and method of controlling same
CN105144057B (en) For moving the equipment, method and graphic user interface of cursor according to the cosmetic variation of the control icon with simulation three-dimensional feature
TWI545496B (en) Means for adjusting the appearance of the control member, the method and graphical user interface
CN104662489B (en) The method of flexible display device and control flexible display device
US20160139731A1 (en) Electronic device and method of recognizing input in electronic device
US10282067B2 (en) Method and apparatus of controlling an interface based on touch operations
CN104583911B (en) Flexible display apparatus and its control method
US9479693B2 (en) Method and mobile terminal apparatus for displaying specialized visual guides for photography
KR20150049700A (en) Method and apparautus for controlling input in portable device
US20150033184A1 (en) Method and apparatus for executing application in electronic device
EP1947558A2 (en) Electronic device with touch screen and method of displaying information using the same
US20130127904A1 (en) Automatically Displaying Measurement Data Acquired by a Measurement System on a Mobile Device
EP1600939A1 (en) Image display method, image display program, and information device
US20090282352A1 (en) Configurable icon sizing and placement for wireless and other devices
US9276886B1 (en) Apparatus and method for dynamically configuring application component tiles
US20140189597A1 (en) Method and electronic device for presenting icons
KR20150146236A (en) Method for processing fingerprint and electronic device thereof
CN104571922A (en) Touch response method, touch response device and terminal
US20170125037A1 (en) Electronic device and method for recognizing speech
US20160062515A1 (en) Electronic device with bent display and method for controlling thereof
US20140137041A1 (en) Method for arranging for list in flexible display and electronic device thereof
TW201234230A (en) Angular contact geometry
US8769403B2 (en) Selection-based resizing for advanced scrolling of display items
US20160110056A1 (en) Method and apparatus for providing user interface
US20130191785A1 (en) Confident item selection using direct manipulation

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01