CN106055327B - Display method and electronic equipment - Google Patents

Display method and electronic equipment Download PDF

Info

Publication number
CN106055327B
CN106055327B CN201610366386.7A CN201610366386A CN106055327B CN 106055327 B CN106055327 B CN 106055327B CN 201610366386 A CN201610366386 A CN 201610366386A CN 106055327 B CN106055327 B CN 106055327B
Authority
CN
China
Prior art keywords
display
display mode
mode
content
electronic device
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
CN201610366386.7A
Other languages
Chinese (zh)
Other versions
CN106055327A (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 CN201610366386.7A priority Critical patent/CN106055327B/en
Publication of CN106055327A publication Critical patent/CN106055327A/en
Application granted granted Critical
Publication of CN106055327B publication Critical patent/CN106055327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a display method and electronic equipment, which are used for solving the technical problem that the display content cannot be adapted to a target large screen when the conventional electronic equipment is used for projecting the screen, the method is applied to the electronic equipment, the electronic equipment comprises a first display unit, and the method comprises the following steps: determining that the electronic equipment is connected with a second display unit; switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit; displaying the display content of the electronic device on the second display unit based on the second display mode.

Description

Display method and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a display method and an electronic device.
Background
With the development of portable electronic devices, the functions of the existing electronic devices, such as taking pictures, watching videos, etc., are increasing. However, for convenience of carrying, the size of the display screen of the electronic device is always kept at a small level, which affects the viewing experience of the user.
In the prior art, in order to enable a user to have a better viewing experience, an electronic device is allowed to connect with a larger display screen, and content originally displayed on a small screen is displayed on a large screen, and the process is called screen projection. For example, a smart phone is connected to a tablet computer and a UI (User Interface) of the smart phone is displayed on the tablet computer, or the tablet computer is connected to a notebook computer and the UI of the tablet computer is displayed on the notebook computer.
However, in the prior art, the electronic device can only amplify and project all display contents on the target large screen in an equal ratio, and cannot optimally adapt the display contents to the target large screen, as shown in fig. 1, the UI displayed on the small screen includes icons and characters of applications such as WeChat, microblog, email, short message, and telephone, after being projected on the large screen, the whole display interface is amplified by n times, and all the icons and characters of applications are also amplified by n times in an equal ratio, so that the icons displayed on the UI projected on the large screen may be large, and user experience is affected.
Disclosure of Invention
The embodiment of the invention provides a display method and electronic equipment, which are used for solving the technical problem that display content cannot be adapted to a target large screen when the conventional electronic equipment is used for projecting the screen.
The specific technical scheme is as follows:
the embodiment of the invention provides a display method, which is applied to electronic equipment, wherein the electronic equipment comprises a first display unit, and the method comprises the following steps:
determining that the electronic equipment is connected with a second display unit;
switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit;
displaying the display content of the electronic device on the second display unit based on the second display mode.
Optionally, the electronic device includes a first communication unit, and the determining that the electronic device is connected to a second display unit includes:
the first communication unit of the electronic equipment senses a second communication unit connected with the second display unit;
the first communication unit and the second communication unit of the electronic equipment establish wireless connection.
Optionally, the electronic device stores a corresponding relationship between application attribute information and a display mode; before switching the display content of the electronic equipment from the first display mode to the second display mode, the method comprises the following steps:
the electronic equipment determines first application attribute information of the display content;
specifically, the switching the display content of the electronic device from the first display mode to the second display mode includes:
and the electronic equipment determines the second display mode according to the first application attribute information and the corresponding relation, and switches the display content from the first display mode to the second display mode.
Optionally, before switching the display content of the electronic device from the first display mode to the second display mode, the method includes:
the electronic equipment acquires display attribute information of the second display unit;
specifically, the switching the display content of the electronic device from the first display mode to the second display mode includes:
and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
Optionally, the display parameters of the display content in the first display mode are different from those in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode includes:
the electronic equipment adjusts the first window size of the display content in the first display mode to the second window size in the second display mode, and the display parameters comprise the window size of the display content.
Optionally, the display parameters of the display content in the first display mode are different from those in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode includes:
the electronic equipment adjusts a first element layout of the display content in the first display mode to a second element layout in the second display mode, and the display parameters comprise the element layout of the display content.
Optionally, the display parameters of the display content in the first display mode are different from those in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode includes:
the electronic equipment adjusts a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, and the display parameter includes the pixel density of the display content.
An embodiment of the present invention further provides an electronic device, including:
a housing;
a first display unit disposed on the housing;
the processor is arranged in the shell, connected with the first display unit and used for determining that the electronic equipment is connected with the second display unit; switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit; displaying the display content of the electronic device on the second display unit based on the second display mode.
Optionally, the electronic device includes a first communication unit, and the processor is specifically configured to:
sensing a second communication unit connected with the second display unit according to the first communication unit;
and establishing a wireless connection with the second communication unit based on the first communication unit.
Optionally, the electronic device further includes a memory, configured to store a correspondence between the application attribute information and the display mode; the processor, before switching the display content of the electronic device from the first display mode to the second display mode, is further configured to:
determining first application attribute information of the display content;
the processor is specifically configured to determine the second display mode according to the first application attribute information and the corresponding relationship, and switch the display content from the first display mode to the second display mode.
Optionally, before switching the display content of the electronic device from the first display mode to the second display mode, the processor is further configured to:
acquiring display attribute information of the second display unit;
the processor is specifically configured to:
and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor is specifically configured to:
and adjusting a first window size of the display content in the first display mode to a second window size in the second display mode, wherein the display parameters comprise the window size of the display content.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor is specifically configured to:
and adjusting a first element layout of the display content in the first display mode to a second element layout in the second display mode, wherein the display parameters comprise the element layout of the display content.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor is specifically configured to:
adjusting a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, wherein the display parameter comprises the pixel density of the display content.
An embodiment of the present invention further provides another electronic device, where the electronic device includes a first display unit, and further includes:
the determining unit is used for determining that the electronic equipment is connected with the second display unit;
the switching unit is used for switching the display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit;
and the display output unit is used for displaying the display content of the electronic equipment on the second display unit based on the second display mode.
By adopting the scheme, the electronic equipment comprises the first display unit, if the electronic equipment is determined to be connected with the second display unit, the display content of the electronic equipment is switched from the first display mode to the second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit, and the display content of the electronic equipment is displayed on the second display unit based on the second display mode. That is to say, the electronic device can switch the display mode of the display content under the condition that the electronic device is externally connected with a second display unit, so that the switched display content is more adaptive to the second display unit, and the experience of watching and operating the display content on the second display unit by a user is improved.
Drawings
FIG. 1 is a diagram illustrating a prior art method for projecting display content from a small screen to a large screen according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a display method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a connection between a mobile phone and a tablet computer according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an exemplary embodiment of adjusting a window size of a display content;
FIG. 5 is a diagram illustrating an element layout for adjusting display content according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an embodiment of adjusting pixel density of display content according to the present invention;
fig. 7a is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7b is a schematic structural diagram of another electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile phone according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a display method and electronic equipment, and aims to solve the technical problem that display content cannot be adapted to a target large screen when the conventional electronic equipment is used for projecting the screen.
In order to achieve the above purpose, the general idea of the technical solution provided by the embodiment of the present invention is as follows:
a display method is applied to an electronic device, the electronic device comprises a first display unit, and the method comprises the following steps: determining that the electronic equipment is connected with a second display unit; switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit; displaying the display content of the electronic device on the second display unit based on the second display mode.
That is to say, in the case that the electronic device is externally connected with a second display unit, the display mode of the display content may be switched, so that the switched display content is more adaptive to the second display unit, and the experience of the user viewing and operating the display content on the second display unit is improved, specifically, the electronic device may adjust the window size, the element layout, and the pixel density dpi (dots) of the display content, and the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
An embodiment of the present invention provides a display method applied to an electronic device, where the electronic device includes a first display unit, as shown in fig. 2, the method includes:
s201, the electronic equipment determines that the electronic equipment is connected with a second display unit.
It should be noted that the electronic device may be connected to the second display unit in different states, for example, when the electronic device displays content on the first display unit, the electronic device may be determined to be connected to the second display unit, and when the electronic device is initially started, the electronic device may be determined to be connected to the second display unit. The invention is not limited in this regard.
S202, the electronic equipment switches display content from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit.
If the electronic device is determined to be connected to the second display unit when displaying content on the first display unit, the display content may be the display content currently being displayed on the first display unit. If the electronic device is connected to the second display unit in another state, the display content may also be content to be displayed and output in the electronic device.
In different display modes, display parameters of display contents are different, for example, windows are different in size, layouts of a plurality of display elements included in the display contents are different, pixel densities dpi are different, and the like.
S203, the electronic equipment displays the display content of the electronic equipment on the second display unit based on the second display mode.
Compared with the prior art that the display content is only enlarged in equal proportion from the small screen to the large screen, the embodiment of the invention has more flexible adjustment on the display content, so that the display content can be flexibly adapted on different display screens, and the experience of watching and operating the display content on the second display unit by a user is improved.
In order to make those skilled in the art understand the technical solutions provided by the embodiments of the present invention, the following steps are described in detail.
Optionally, if the electronic device includes a first communication unit, in step S201, the determining that the electronic device is connected to a second display unit specifically includes: the first communication unit of the electronic equipment senses a second communication unit connected with the second display unit; the first communication unit of the electronic equipment establishes wireless connection with the second communication unit.
It should be noted that the electronic device in the embodiment of the present invention may be a portable device with a display screen, such as a mobile phone and a tablet computer. Taking a mobile phone as an example, the connection between the mobile phone and the second display unit is specifically that the first communication unit may be a mobile phone back shell electrically or magnetically connected to the mobile phone body, the second communication unit may be a base, the base includes a groove for allowing the mobile phone back shell to be inserted, and the mobile phone back shell and the base may be electrically or magnetically connected. The second display unit may also be an independent display screen mounted on the base, or another electronic device with a display screen, that is, the other electronic device may include other components such as a mouse and a keyboard besides the second display unit.
Exemplarily, as shown in fig. 3, fig. 3 is a connection manner between a mobile phone 31 and a tablet pc 32 according to an embodiment of the present invention, and respectively shows a front view and a side view of the connection, where the mobile phone 31 includes a mobile phone body 310 and a mobile phone back shell 311, the mobile phone back shell 311 and the mobile phone body 310 can be magnetically connected, the mobile phone back shell 311 is inserted into a groove of a base 33 and can be magnetically connected with the base 33, the tablet pc 32 is placed in another groove of the base 33, and the base 33 can be electrically connected with the tablet pc 32.
In addition, the electrical connection described in the above example may specifically be through a Mobile Industry Processor Interface (MIPI), and when the display content is a video, the MIPI can ensure high-speed transmission of video data; the magnetic connection described in the above illustration may be a Communication connection via a hall sensor, or may be a connection via NFC (Near Field Communication) technology, both of which enable fast data transmission in a close range.
The above is only an example, and in a specific implementation, the electronic device and the second display unit may be connected by a wired manner, which is not limited in the present invention.
Further, after determining that the electronic device is connected to the second display unit, the electronic device may remind the user whether to screen the display content on the second display unit, and after receiving a determination instruction from the user, the electronic device performs the steps S202 and S203.
It should be noted that, if the electronic device is connected to the second display unit in the state that the first display unit displays the content, after the step S203, the electronic device may close the first display unit. After the electronic device is disconnected from the second display unit, the display content may be switched from the second display mode to the first display mode, and the display content in the first display mode may be displayed on the first display unit.
In a possible implementation manner of the embodiment of the present invention, if the electronic device may further store a corresponding relationship between application attribute information and a display mode, in step S202, before the electronic device switches the display content from the first display mode to the second display mode, the electronic device may further determine the first application attribute information of the display content; in the step S202, the switching the display content of the electronic device from the first display mode to the second display mode specifically includes: and the electronic equipment determines the second display mode according to the first application attribute information and the corresponding relation, and switches the display content from the first display mode to the second display mode.
Still taking the mobile phone as an example, the usage requirements of different applications in the mobile phone may be different, for example, a wechat application and a WPS Office application, where the layout of each element of the wechat on the mobile phone screen (i.e., the first display unit) is already well suited for the user to operate, and for the WPS Office application, it is very inconvenient for the user to edit the text on the small screen. In view of the above requirements, in the embodiment of the present invention, when the mobile phone is implemented specifically, the corresponding relationship between the attribute information of different applications and the display mode may be stored in advance, where the attribute information may specifically be the name of the application, so that when the mobile phone determines that the display content belongs to the wechat application, what display mode needs to be switched to may be determined according to the corresponding relationship.
The above is only an example, and the display mode includes various display parameters, such as window size, element layout, pixel density, and the like, and therefore, various parameters may be corresponding to the application attribute information, and the invention is not limited to the window size mentioned in the example, and the invention is not limited thereto.
In another possible implementation manner of the embodiment of the present invention, for step S202, before switching the display content of the electronic device from the first display mode to the second display mode, the electronic device may acquire display attribute information of the second display unit; in step S202, the switching the display content of the electronic device from the first display mode to the second display mode specifically includes: and the electronic equipment calculates the display parameters of the display contents according to the display attribute information and switches the display contents from the first display mode to the second display mode based on the display parameters.
The display attribute information of the second display unit may include information such as a resolution, a screen size, and the like of the second display unit. The electronic device may determine the display size of each application icon in the display content according to the resolution calculation of the second display unit, and may also determine the size of the display content window according to the screen size calculation of the second display unit. Compared with the previous possible implementation mode, the display mode needs to be stored in the electronic device in advance, and the display mode of the display content can be adjusted according to the specific attribute of the second display unit, so that the display content is more adaptive to the display screen.
It should be noted that, in specific implementation, the electronic device may also obtain both the application attribute information of the display content and the display attribute information of the second display unit, and comprehensively consider the application attribute information and the display attribute information to perform switching of the display mode, which may be specifically set according to actual requirements, which is not listed here.
Both of the above two possible implementations involve adjusting display parameters of the display content, and the adjustment of the window size, the element layout, and the pixel density of the display content will be described in detail below by way of specific examples.
Optionally, the displaying parameter includes a window size of the display content, and in step S202, the switching the display content of the electronic device from the first display mode to the second display mode specifically includes:
and the electronic equipment adjusts the first window size of the display content in the first display mode to the second window size in the second display mode.
For example, as shown in fig. 4, the WPS Office application on the mobile phone is displayed on the mobile phone in a full screen based on the first display mode, and after switching to the second display mode, the WPS Office application can be displayed on the tablet computer in a full screen.
Optionally, the displaying parameters include an element layout of the display content, and in step S202, the switching the display content of the electronic device from the first display mode to the second display mode specifically includes: and the electronic equipment adjusts the first element layout of the display content in the first display mode to the second element layout in the second display mode.
For example, as shown in fig. 5, the layout of each display element visually displaying the display content in fig. 5 on the mobile phone and the tablet pc is different, and the display elements include an application icon, an application text, a virtual key, such as a confirm key, a Home key, and a return key on the smart phone, and after switching to the second display mode, the mobile phone may arrange the virtual key and the short message at the bottom, the browser, and the phone application in a column and display them on one side of the display screen of the tablet pc.
The above is only an example, and in the specific implementation, the layout of each display element may be adjusted according to the time requirement, which is not limited by the present invention.
Optionally, the displaying parameters include a pixel density of the display content, and in step S202, the switching the display content of the electronic device from the first display mode to the second display mode specifically includes: the electronic equipment adjusts a first pixel density of the display content in the first display mode to a second pixel density in the second display mode.
It should be noted that the pixel density of the standard picture is 160, i.e. dpi is 160, i.e. the picture has 160 pixels px of each inch of length, i.e. about 63px of each cm, regardless of the width and height. The design of the icon size of an application program is measured by a pixel-independent density unit dp, wherein the conversion formula of dp and pixel px is dp (dpi/160) px, and the pixel density of an icon displayed on a mobile phone is 640 generally, so that if the icon width of a certain application program is 100dp, the icon of the application program occupies 100 × 640/160 to 400px in width, therefore, the larger the dpi, the larger the displayed icon is, the smaller the dpi, and the icon size is proportional to the screen size without changing dpi and screen resolution. Thus, if the size of the second display unit is twice as large as that of the first display unit, the size of the icon is also increased by two times after the display content of the first display unit is directly projected to the second display unit in the prior art, which results in an overlarge icon.
In the embodiment of the present invention, after obtaining the resolution and the screen size of the second display unit, the electronic device may calculate a magnification factor by which an icon of an application program will be magnified without modifying dpi, and if the magnification factor is too large, the dpi may be correspondingly reduced, and if the magnification factor is too small, the dpi may be correspondingly magnified. In a specific implementation, a range of the sizes of the icons may be preset, and the sizes of the icons in the second display mode may be adjusted to a preset range by adjusting dpi.
Illustratively, as shown in fig. 6, the electronic device is a mobile phone with a screen resolution of 1920 × 1080, the screen size of the mobile phone is 5 inches, and the icon dpi is 640. After the mobile phone is determined to be connected with a tablet computer, the screen size of the tablet computer is 10 inches, and the resolution is 1920 x 1080, so that the icon on the mobile phone is enlarged by two times after being displayed on the tablet computer under the condition that dpi is not changed. In this case, since the size of the icons displayed on the cellular phone is already suitable for the user's use, in order to avoid the icons being too large, the cellular phone may adjust the icons dpi from 640 to 320 so that the size of the icons remains unchanged, and thus, the screen size is enlarged by two times and the icon size remains unchanged, so that the second display unit may display more icons. That is to say, compared with the window enlargement ratio of the display content after the first display unit is projected to the second display unit, the enlargement ratio of the application icons can be smaller, and thus, more application icons can be displayed on the tablet computer. Compared with the prior art shown in fig. 1, the mobile phone still cannot display more display contents on a larger screen, and the embodiment of the invention improves the adaptability between the display contents and the external screen.
It should be noted that fig. 4, fig. 5, and fig. 6 are respectively illustrated in a single adjustment manner, but it should be understood by those skilled in the art that, in the implementation, the electronic device may simultaneously adjust any two or three of the window size, the element layout, and the pixel density of the display content according to the requirement. The invention is not limited in this regard.
By adopting the method, the electronic equipment comprises the first display unit, if the electronic equipment is determined to be connected with the second display unit, the display content of the electronic equipment is switched from the first display mode to the second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit, and the display content of the electronic equipment is displayed on the second display unit based on the second display mode. That is to say, the electronic device can switch the display mode of the display content under the condition that the electronic device is externally connected with a second display unit, so that the switched display content is more adaptive to the second display unit, and the experience of watching and operating the display content on the second display unit by a user is improved.
Example two
An embodiment of the present invention provides an electronic device 70, configured to implement the method steps in the foregoing method embodiment, as shown in fig. 7a, where the electronic device 70 includes:
a housing 71;
a first display unit 72 provided on the housing 71;
a processor 73 disposed within the housing 71, the processor 73 being connected to the first display unit 72 for determining that the electronic device is connected to a second display unit; switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit; displaying the display content of the electronic device on the second display unit based on the second display mode.
Optionally, as shown in fig. 7b, the electronic device 70 further includes a first communication unit 74, where the first communication unit is connected to the processor 73, and the processor 73 is specifically configured to: sensing a second communication unit connected with the second display unit according to the first communication unit; and establishing a wireless connection with the second communication unit based on the first communication unit.
For example, the description of fig. 3 with reference to the above method embodiment is omitted here for brevity.
Optionally, as shown in fig. 7b, the electronic device 70 further includes a memory 75 for storing a corresponding relationship between the application attribute information and the display mode; the processor 73 is further configured to, before switching the display content of the electronic device from the first display mode to the second display mode: determining first application attribute information of the display content; the processor 73 is specifically configured to determine the second display mode according to the first application attribute information and the corresponding relationship, and switch the display content from the first display mode to the second display mode.
Optionally, before switching the display content of the electronic device from the first display mode to the second display mode, the processor 73 is further configured to: acquiring display attribute information of the second display unit; the processor is specifically configured to: and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor 73 is specifically configured to: and adjusting a first window size of the display content in the first display mode to a second window size in the second display mode, wherein the display parameters comprise the window size of the display content.
For example, the description of fig. 4 with reference to the above method embodiment is not repeated here.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor 73 is specifically configured to: and adjusting a first element layout of the display content in the first display mode to a second element layout in the second display mode, wherein the display parameters comprise the element layout of the display content.
For example, the description of fig. 5 with reference to the above method embodiment is omitted here for brevity.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor 73 is specifically configured to: adjusting a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, wherein the display parameter comprises the pixel density of the display content.
For example, the description of fig. 6 with reference to the above method embodiment is omitted here for brevity.
Specifically, the electronic device may be a mobile phone, and as shown in fig. 8, the mobile phone 80 includes: the mobile phone 80 includes: at least one processor 81, memory 82, radio frequency circuitry 83, a display screen 84 and an input unit 85.
Wherein the memory 82 is adapted to store at least one program module.
The at least one processor 81 is configured to execute the steps of the display method provided by the above method embodiment by running the at least one program module stored in the memory 82, and specific reference is made to the corresponding description of the above method embodiment, which is not described herein again.
It is noted that the handset 80 may also include other components, not shown individually in fig. 8.
By adopting the electronic equipment, the electronic equipment comprises the first display unit, if the electronic equipment is determined to be connected with the second display unit, the display content of the electronic equipment is switched from the first display mode to the second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit, and the display content of the electronic equipment is displayed on the second display unit based on the second display mode. That is to say, the electronic device can switch the display mode of the display content under the condition that the electronic device is externally connected with a second display unit, so that the switched display content is more adaptive to the second display unit, and the experience of watching and operating the display content on the second display unit by a user is improved.
EXAMPLE III
An embodiment of the present invention provides an electronic device 90, as shown in fig. 9, the electronic device includes a first display unit 91, and further includes:
a determination unit 92 for determining that the electronic device is connected to the second display unit;
a switching unit 93, configured to switch a display content of the electronic device from a first display mode to a second display mode, where the first display mode is a mode in which the electronic device displays on the first display unit;
a display output unit 94, configured to display the display content of the electronic device on the second display unit based on the second display mode.
Optionally, the electronic device 90 includes a first communication unit 95, and the determining unit 92 is configured to sense a second communication unit connected to the second display unit according to the first communication unit; and establishing a wireless connection with the second communication unit based on the first communication unit.
Optionally, the electronic device further includes a storage unit 96, configured to store a corresponding relationship between the application attribute information and the display mode; the determining unit 92 is configured to determine first application attribute information of the display content; the switching unit 93 is configured to determine the second display mode according to the first application attribute information and the corresponding relationship, and switch the display content from the first display mode to the second display mode.
Optionally, the determining unit 92 is configured to obtain display attribute information of the second display unit; the switching unit 93 is configured to calculate a display parameter of the display content according to the display attribute information, and switch the display content from the first display mode to the second display mode based on the display parameter.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the switching unit 93 is configured to adjust a first window size of the display content in the first display mode to a second window size in the second display mode, where the display parameters include the window size of the display content.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the switching unit 93 is configured to adjust a first element layout of the display content in the first display mode to a second element layout of the display content in the second display mode, where the display parameters include an element layout of the display content.
Optionally, the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the switching unit 93 is configured to adjust a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, where the display parameters include the pixel density of the display content.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the functional module, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
By adopting the electronic equipment, the electronic equipment comprises the first display unit, if the electronic equipment is determined to be connected with the second display unit, the display content of the electronic equipment is switched from the first display mode to the second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit, and the display content of the electronic equipment is displayed on the second display unit based on the second display mode. That is to say, the electronic device can switch the display mode of the display content under the condition that the electronic device is externally connected with a second display unit, so that the switched display content is more adaptive to the second display unit, and the experience of watching and operating the display content on the second display unit by a user is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to the information processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the operation guidance method in the storage medium are read or executed by an electronic device, the method includes the following steps:
determining that the electronic equipment is connected with a second display unit;
switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit;
displaying the display content of the electronic device on the second display unit based on the second display mode.
Optionally, the electronic device includes a first communication unit, and the determining that the electronic device is connected to a second display unit includes:
sensing a second communication unit connected with the second display unit according to the first communication unit;
establishing a wireless connection with the second communication unit based on the first communication unit.
Optionally, the electronic device stores a corresponding relationship between application attribute information and a display mode; before switching the display content of the electronic equipment from the first display mode to the second display mode, the method comprises the following steps:
determining first application attribute information of the display content;
specifically, the switching the display content of the electronic device from the first display mode to the second display mode includes:
and determining the second display mode according to the first application attribute information and the corresponding relation, and switching the display content from the first display mode to the second display mode.
Optionally, before switching the display content of the electronic device from the first display mode to the second display mode, the method includes:
acquiring display attribute information of the second display unit;
specifically, the switching the display content of the electronic device from the first display mode to the second display mode includes:
and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
Optionally, the display parameters of the display content in the first display mode are different from those in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode includes:
and adjusting a first window size of the display content in the first display mode to a second window size in the second display mode, wherein the display parameters comprise the window size of the display content.
Optionally, the display parameters of the display content in the first display mode are different from those in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode includes:
and adjusting a first element layout of the display content in the first display mode to a second element layout in the second display mode, wherein the display parameters comprise the element layout of the display content.
Optionally, the display parameters of the display content in the first display mode are different from those in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode includes:
adjusting a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, wherein the display parameter comprises the pixel density of the display content.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. A display method is applied to an electronic device, the electronic device comprises a first display unit, the electronic device stores the corresponding relation between application attribute information and display modes, and the method comprises the following steps:
determining that the electronic equipment is connected with a second display unit;
switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit;
displaying display content of the electronic device on the second display unit based on the second display mode,
before switching the display content of the electronic equipment from the first display mode to the second display mode, the method comprises the following steps: the electronic equipment determines first application attribute information of the display content;
specifically, the switching the display content of the electronic device from the first display mode to the second display mode includes: the electronic equipment determines the second display mode according to the first application attribute information and the corresponding relation, and switches the display content from the first display mode to the second display mode,
before switching the display content of the electronic equipment from the first display mode to the second display mode, the method comprises the following steps: the electronic equipment acquires display attribute information of the second display unit;
specifically, the switching the display content of the electronic device from the first display mode to the second display mode includes: and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
2. The method of claim 1, wherein the electronic device includes a first communication unit, and wherein determining that the electronic device is connected to a second display unit comprises:
the first communication unit of the electronic equipment senses a second communication unit connected with the second display unit;
the first communication unit and the second communication unit of the electronic equipment establish wireless connection.
3. The method according to any one of claims 1 to 2, wherein the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode comprises:
the electronic equipment adjusts the first window size of the display content in the first display mode to the second window size in the second display mode, and the display parameters comprise the window size of the display content.
4. The method according to any one of claims 1 to 2, wherein the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode comprises:
the electronic equipment adjusts a first element layout of the display content in the first display mode to a second element layout in the second display mode, and the display parameters comprise the element layout of the display content.
5. The method according to any one of claims 1 to 2, wherein the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the switching the display content of the electronic device from the first display mode to the second display mode comprises:
the electronic equipment adjusts a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, and the display parameter includes the pixel density of the display content.
6. An electronic device, comprising:
a housing;
a first display unit disposed on the housing;
the processor is arranged in the shell, connected with the first display unit and used for determining that the electronic equipment is connected with the second display unit; switching display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit; displaying display content of the electronic device on the second display unit based on the second display mode;
a memory for storing the corresponding relationship between the application attribute information and the display mode,
the processor, before switching the display content of the electronic device from the first display mode to the second display mode, is further configured to: determining first application attribute information of the display content;
the processor is specifically configured to determine the second display mode according to the first application attribute information and the corresponding relationship, and switch the display content from the first display mode to the second display mode,
the processor, before switching the display content of the electronic device from the first display mode to the second display mode, is further configured to: acquiring display attribute information of the second display unit;
the processor is specifically configured to: and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
7. The electronic device of claim 6, wherein the electronic device comprises a first communication unit, and wherein the processor is further configured to:
sensing a second communication unit connected with the second display unit according to the first communication unit;
and establishing a wireless connection with the second communication unit based on the first communication unit.
8. The electronic device according to any of claims 6 to 7, wherein the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor is specifically configured to:
and adjusting a first window size of the display content in the first display mode to a second window size in the second display mode, wherein the display parameters comprise the window size of the display content.
9. The electronic device according to any of claims 6 to 7, wherein the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor is specifically configured to:
and adjusting a first element layout of the display content in the first display mode to a second element layout in the second display mode, wherein the display parameters comprise the element layout of the display content.
10. The electronic device according to any of claims 6 to 7, wherein the display parameters of the display content in the first display mode are different from the display parameters in the second display mode, and the processor is specifically configured to:
adjusting a first pixel density of the display content in the first display mode to a second pixel density in the second display mode, wherein the display parameter comprises the pixel density of the display content.
11. An electronic device, the electronic device comprising a first display unit, further comprising:
the determining unit is used for determining that the electronic equipment is connected with the second display unit;
the switching unit is used for switching the display content of the electronic equipment from a first display mode to a second display mode, wherein the first display mode is a mode in which the electronic equipment displays on the first display unit;
a display output unit for displaying the display content of the electronic device on the second display unit based on the second display mode,
a storage unit for storing the corresponding relationship between the application attribute information and the display mode,
the determining unit is used for determining first application attribute information of the display content and acquiring display attribute information of the second display unit;
the switching unit is configured to determine the second display mode according to the first application attribute information and the corresponding relationship, and switch the display content from the first display mode to the second display mode; and calculating display parameters of the display content according to the display attribute information, and switching the display content from the first display mode to the second display mode based on the display parameters.
CN201610366386.7A 2016-05-27 2016-05-27 Display method and electronic equipment Active CN106055327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610366386.7A CN106055327B (en) 2016-05-27 2016-05-27 Display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610366386.7A CN106055327B (en) 2016-05-27 2016-05-27 Display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106055327A CN106055327A (en) 2016-10-26
CN106055327B true CN106055327B (en) 2020-02-21

Family

ID=57175629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610366386.7A Active CN106055327B (en) 2016-05-27 2016-05-27 Display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106055327B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230350547A1 (en) * 2020-07-21 2023-11-02 Huawei Technologies Co., Ltd. Display Interaction System, and Display Methodod and Device

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279894A (en) * 2016-12-30 2018-07-13 乐视汽车(北京)有限公司 Throw screen resolution conversion method and conversion equipment
CN107423010A (en) * 2017-03-23 2017-12-01 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107085508B (en) * 2017-03-27 2020-03-24 联想(北京)有限公司 Information processing method and electronic equipment
US10585637B2 (en) 2017-03-27 2020-03-10 Lenovo (Beijing) Co., Ltd. Information processing method and electronic device
CN114185474A (en) 2017-06-09 2022-03-15 华为技术有限公司 Display method and device
KR102379313B1 (en) * 2017-08-23 2022-03-28 삼성전자주식회사 Electronic device for displaying application andoperating method thereof
CN108235079A (en) * 2017-12-20 2018-06-29 深圳市纽格力科技有限公司 It is a kind of that smart machine is supported to throw screen to the control system of common TV
CN109992334A (en) * 2017-12-29 2019-07-09 上海共联通信信息发展有限公司 A kind of information processing method shown for user interface
CN108600834B (en) * 2018-04-13 2021-07-20 深圳银澎云计算有限公司 Video transmission system, receiving/sending/transmitting method and device
CN109167875A (en) * 2018-07-20 2019-01-08 重庆宝力优特科技有限公司 Interface display method, electronic equipment and computer readable storage medium
WO2020098364A1 (en) * 2018-11-16 2020-05-22 盛子望 Electronic device used for connecting to mobile terminal for data processing
CN110531948B (en) * 2019-08-30 2021-09-14 联想(北京)有限公司 Display method, first electronic device and second electronic device
CN110851226A (en) * 2019-11-13 2020-02-28 联想(北京)有限公司 Control method and electronic equipment
CN111399789B (en) * 2020-02-20 2021-11-19 华为技术有限公司 Interface layout method, device and system
CN115623115A (en) * 2020-03-31 2023-01-17 华为技术有限公司 Method, electronic device and system for creating application shortcut
CN112820232A (en) * 2021-01-27 2021-05-18 联想(北京)有限公司 Data processing method and device
CN115390652A (en) * 2021-05-19 2022-11-25 华为技术有限公司 Display method and electronic device
WO2023103948A1 (en) * 2021-12-08 2023-06-15 华为技术有限公司 Display method and electronic device
CN116954598A (en) * 2022-04-15 2023-10-27 华为技术有限公司 Display method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2613509A1 (en) * 2012-01-09 2013-07-10 Samsung Electronics Co., Ltd Graphical user interface, display apparatus and control method thereof
CN103593130A (en) * 2012-08-14 2014-02-19 联咏科技股份有限公司 Portable device
CN103685716A (en) * 2012-09-26 2014-03-26 联想(北京)有限公司 Display mode switching method and electronic apparatus
CN104063197A (en) * 2014-06-30 2014-09-24 联想(北京)有限公司 Information processing method, device and electronic equipment
CN104063192A (en) * 2013-03-19 2014-09-24 联想(北京)有限公司 Display method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102062309B1 (en) * 2013-05-28 2020-01-03 삼성전자주식회사 Method for controlling window and an electronic device thereof
CN104714629B (en) * 2013-12-11 2018-08-10 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104932849A (en) * 2014-03-21 2015-09-23 海信集团有限公司 Application scenario setting method, device and system
CN105068750A (en) * 2015-08-13 2015-11-18 北京传送科技有限公司 Control method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2613509A1 (en) * 2012-01-09 2013-07-10 Samsung Electronics Co., Ltd Graphical user interface, display apparatus and control method thereof
CN103593130A (en) * 2012-08-14 2014-02-19 联咏科技股份有限公司 Portable device
CN103685716A (en) * 2012-09-26 2014-03-26 联想(北京)有限公司 Display mode switching method and electronic apparatus
CN104063192A (en) * 2013-03-19 2014-09-24 联想(北京)有限公司 Display method and electronic equipment
CN104063197A (en) * 2014-06-30 2014-09-24 联想(北京)有限公司 Information processing method, device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230350547A1 (en) * 2020-07-21 2023-11-02 Huawei Technologies Co., Ltd. Display Interaction System, and Display Methodod and Device

Also Published As

Publication number Publication date
CN106055327A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106055327B (en) Display method and electronic equipment
US9355608B2 (en) Electronic device
RU2704111C1 (en) Method for displaying a plurality of application windows through a mobile terminal and a mobile terminal
CN111552530B (en) Terminal screen adaptation method, device and equipment of user interface
US9413874B2 (en) Electronic device, control method, and control program
US10133469B2 (en) Display device connected to photo printer and method for controlling the same
KR20140128146A (en) Method for displaying and an electronic device thereof
EP2743814A2 (en) Display apparatus and method of providing user interface thereof
KR20160005609A (en) Method for displaying graphic user interface and electronic device supporting the same
KR20170022967A (en) Method and device for displaying badge of icon
CN112230914B (en) Method, device, terminal and storage medium for producing small program
CN104580019A (en) Network service supplying method and device
CN106504295B (en) Method and device for rendering picture
WO2018176297A1 (en) Multi-window displaying apparatus and method and mobile electronic equipment
CN110989905A (en) Information processing method and device, electronic equipment and storage medium
US20240028351A1 (en) Management of user interface elements based on historical configuration data
CN111324249A (en) Multimedia material generation method and device and storage medium
US10013151B2 (en) Method and terminal device for adjusting widget
CN109285126B (en) Image processing method and device, electronic equipment and storage medium
CN105468284A (en) Mobile terminal control method and apparatus and mobile terminal
US10613622B2 (en) Method and device for controlling virtual reality helmets
CN110782510A (en) Sticker generation method and device
WO2018133200A1 (en) Icon arrangement method and terminal
JP2012190081A (en) Electronic apparatus, and method and program for displaying object
CN114969588A (en) Document browsing method and device, electronic equipment and storage medium

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