CN114661258A - Adaptive display method, electronic device, and storage medium - Google Patents

Adaptive display method, electronic device, and storage medium Download PDF

Info

Publication number
CN114661258A
CN114661258A CN202011535129.4A CN202011535129A CN114661258A CN 114661258 A CN114661258 A CN 114661258A CN 202011535129 A CN202011535129 A CN 202011535129A CN 114661258 A CN114661258 A CN 114661258A
Authority
CN
China
Prior art keywords
component
type
electronic device
interface
components
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.)
Pending
Application number
CN202011535129.4A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011535129.4A priority Critical patent/CN114661258A/en
Priority to PCT/CN2021/136273 priority patent/WO2022135144A1/en
Publication of CN114661258A publication Critical patent/CN114661258A/en
Pending legal-status Critical Current

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
    • 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
    • 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/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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 embodiment of the application provides a self-adaptive display method, electronic equipment and a storage medium, which relate to the technical field of communication, and the method comprises the following steps: acquiring equipment information of second electronic equipment; receiving a first operation of a user on a first interface; responding to the first operation, identifying the first interface to obtain a first assembly; screening the first assembly to obtain a second assembly; the second assembly is arranged based on the equipment information of the second electronic equipment to obtain a second interface; and sending the second interface to the second electronic equipment, so that the second electronic equipment displays the second interface. The method provided by the embodiment of the application can be used for self-adapting the size of the screen in cross-device display, so that the watching experience of a user can be improved.

Description

Adaptive display method, electronic device, and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a self-adaptive display method, electronic equipment and a storage medium.
Background
With the continuous development of information technology, the variety of electronic devices is increasing. Because the size of each electronic device is different, when designing the display screen on the electronic device, the size of the display screen usually takes into consideration the size of the electronic device, thereby resulting in different sizes of the display screens of the electronic devices.
When a user uses a screen-projecting application on one electronic device, for example, the user wants to project a screen of one electronic device onto another electronic device, because the sizes of the display screens of the two electronic devices are different, if the same screen layout is displayed on the display screens with different sizes, the screen layout is unreasonable, and the viewing experience of the user is reduced.
Disclosure of Invention
The embodiment of the application provides a self-adaptive display method, electronic equipment and a storage medium, and aims to provide a mode of adaptive display among devices.
In a first aspect, an embodiment of the present application provides a self-adaptive display method, which is applied to a first electronic device, where the first electronic device displays a first interface, and the method includes:
acquiring equipment information of second electronic equipment;
receiving a first operation of a user on a first interface;
responding to the first operation, identifying the first interface to obtain a first assembly;
screening the first assembly to obtain a second assembly;
the second component is arranged based on the equipment information of the second electronic equipment to obtain a second interface;
and sending the second interface to the second electronic equipment, so that the second electronic equipment displays the second interface.
In one possible implementation, the device information includes a screen size.
In one possible implementation manner, the screening the first component to obtain the second component includes:
and screening the first assembly based on the importance of the first assembly to obtain a second assembly, wherein the importance of the first assembly is determined by the position of the first assembly in the first interface.
In one possible implementation, the importance of the first component is determined by the size of the first component in the first interface.
In one possible implementation manner, the device information further includes function information, the function information is used to represent a function supported by the second electronic device, and the importance of the first component is determined by a matching degree of the first component and the function information.
In one possible implementation manner, the device information further includes a device type, and the laying out the second component based on the device information of the second electronic device to obtain the second interface includes:
obtaining the type of each second component;
the layout of the second components in the second interface is determined based on the type of each second component and the device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the first component type includes first content and second content that are laid out up and down, the device type is a first device type, and determining the layout of the second component in the second interface based on the type of each second component and the device type includes:
performing left-right layout on first content and second content in a second component of the first component type based on the first device type;
the number of second components of the second component type is adjusted based on the first device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the second component type includes third content and fourth content that are laid out up and down, the device type is a second device type, and determining the layout of the second component in the second interface based on the type of each second component and the device type includes:
adjusting a position of a second component of the first component type based on the second device type;
and performing left-right layout on third content and fourth content in a second component of the second component type based on the second device type.
In one possible implementation manner, the determining the layout of the second component in the second interface based on the type of each second component and the device type includes:
the number of second components of the first component type and the second component type is determined based on the third device type.
In a second aspect, an embodiment of the present application provides an adaptive display device, including:
the acquisition module is used for acquiring the equipment information of the second electronic equipment;
the receiving module is used for receiving a first operation of a user on a first interface;
the identification module is used for responding to the first operation and identifying the first interface to obtain a first component;
the screening module is used for screening the first assembly to obtain a second assembly;
the layout module is used for laying out the second assembly based on the equipment information of the second electronic equipment to obtain a second interface;
and the sending module is used for sending the second interface to the second electronic equipment so that the second electronic equipment displays the second interface.
In one possible implementation, the device information includes a screen size.
In one possible implementation manner, the screening module is further configured to screen the first component based on the importance of the first component to obtain the second component, where the importance of the first component is determined by a position of the first component in the first interface.
In one possible implementation, the importance of the first component is determined by the size of the first component in the first interface.
In one possible implementation manner, the device information further includes function information, the function information is used to represent a function supported by the second electronic device, and the importance of the first component is determined by a matching degree of the first component and the function information.
In one possible implementation manner, the device information further includes a device type, and the layout module is further configured to obtain a type of each second component; the layout of the second components in the second interface is determined based on the type of each second component and the device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the first component type includes first content and second content that are laid out up and down, the device type is a first device type, and the layout module is further configured to lay out the first content and the second content in the second component of the first component type left and right based on the first device type; the number of second components of the second component type is adjusted based on the first device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the second component type includes third content and fourth content that are laid out in an up-down manner, the device type is a second device type, and the layout module is further configured to adjust the position of the second component of the first component type based on the second device type; and performing left-right layout on third content and fourth content in a second component of the second component type based on the second device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the device type is a third device type, and the layout module is further configured to determine the number of the second components of the first component type and the second component type based on the third device type.
In a third aspect, an embodiment of the present application provides a first electronic device, including:
a memory, wherein the memory is used for storing a computer program code, and the computer program code includes instructions, and when the first electronic device reads the instructions from the memory, the first electronic device executes the following steps:
acquiring equipment information of second electronic equipment;
receiving a first operation of a user on a first interface;
responding to the first operation, identifying the first interface to obtain a first assembly;
screening the first assembly to obtain a second assembly;
the second component is arranged based on the equipment information of the second electronic equipment to obtain a second interface;
and sending the second interface to the second electronic equipment, so that the second electronic equipment displays the second interface.
In one possible implementation, the device information includes a screen size.
In one possible implementation manner, when the instruction is executed by the first electronic device, the first electronic device performs screening on the first component, and the step of obtaining the second component includes:
and screening the first assembly based on the importance of the first assembly to obtain a second assembly, wherein the importance of the first assembly is determined by the position of the first assembly in the first interface.
In one possible implementation, the importance of the first component is determined by the size of the first component in the first interface.
In one possible implementation manner, the device information further includes function information, the function information is used to represent a function supported by the second electronic device, and the importance of the first component is determined by a matching degree of the first component and the function information.
In one possible implementation manner, the device information further includes a device type, and when the instruction is executed by the first electronic device, the first electronic device performs layout on the second component based on the device information of the second electronic device, and the step of obtaining the second interface includes:
obtaining the type of each second component;
the layout of the second components in the second interface is determined based on the type of each second component and the device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the first component type includes first content and second content that are laid out in an up-down manner, the device type is a first device type, and when the instruction is executed by the first electronic device, the step of the first electronic device executing the step of determining the layout of the second component in the second interface based on the type and the device type of each second component includes:
performing left-right layout on first content and second content in a second component of the first component type based on the first device type;
the number of second components of the second component type is adjusted based on the first device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the second component type includes third content and fourth content that are laid out in an up-down manner, the device type is a second device type, and when the instruction is executed by the first electronic device, the step of the first electronic device executing the step of determining the layout of the second component in the second interface based on the type and the device type of each second component includes:
adjusting a position of a second component of the first component type based on the second device type;
and performing left-right layout on third content and fourth content in a second component of the second component type based on the second device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the device type is a third device type, and when the instruction is executed by the first electronic device, the first electronic device executes the step of determining the layout of the second component in the second interface based on the type and the device type of each second component, which includes:
the number of second components of the first component type and the second component type is determined based on the third device type.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein a computer program, which, when run on a computer, causes the computer to perform the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program, which is configured to perform the method according to the first aspect when the computer program is executed by a computer.
In a possible design, the program of the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
Fig. 1 is an application scene diagram of an adaptive display method according to an embodiment of the present application;
fig. 1A is a layout diagram of the size of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an adaptive display method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display layout according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating the difficulty of identifying an area by a user according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating difficulty and ease of a user operation area according to an embodiment of the present application;
FIG. 6 is a schematic layout of one embodiment provided herein;
FIG. 7 is a schematic layout of another embodiment provided herein;
FIG. 8 is a schematic layout of yet another embodiment provided herein;
FIG. 9 is a layout diagram in one embodiment as provided herein;
fig. 10 is a structural diagram of an adaptive display device according to an embodiment of the present application;
fig. 11 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
Currently, when a user casts a screen on an electronic device, for example, when the user casts a screen on a mobile phone onto a tablet, the mobile phone sends a current screen to the tablet for displaying, and when the tablet displays, the screen is displayed by using a layout in the mobile phone. Therefore, the sizes of the display screens of the mobile phone and the tablet are different, and if the tablet is displayed in the same layout as the mobile phone, the layout is unreasonable, so that the watching experience of a user is influenced.
Based on the above problem, an embodiment of the present application provides a self-adaptive display method.
Referring to fig. 1 to fig. 9, a description is now given of an adaptive display method provided in an embodiment of the present application, where fig. 1 is an application scenario provided in the embodiment of the present application, and referring to fig. 1, the application scenario includes a first electronic device 11 and a second electronic device 12. The first electronic device 11 and the second electronic device 12 may be any one of electronic devices with display screens, such as a watch, a mobile phone, a touch screen sound box, a tablet, a car machine, a computer, or a television, and may also be other types of electronic devices with display screens, which is not limited in this embodiment of the present application.
Fig. 1A is a schematic diagram of a size layout of different types of electronic devices. The electronic devices may be classified based on the size of the electronic devices as shown in fig. 1A, and the classification may be exemplarily shown in table 1:
TABLE 1
Figure BDA0002853115840000051
Fig. 2 is a schematic flow chart of an embodiment of an adaptive display method provided in the present application, including:
in step 101, the first electronic device 11 establishes a connection with the second electronic device 12.
Specifically, the first electronic device 11 and the second electronic device 12 may be in the same local network, and therefore, the first electronic device 11 and the second electronic device 12 may be locally connected in the local network, where the local connection may include a direct connection and a local interconnection. The direct connection may be a point-to-point connection between the first electronic device 11 and the second electronic device 12, for example, the direct connection may be WIFI direct connection, bluetooth direct connection, infrared direct connection, or the like, the local interconnection may be interconnection between the first electronic device 11 and the second electronic device 12 through an intermediate device, and for example, the intermediate device may be a gateway device such as a router, a switch, or the like. Wherein the local network may be a local area network, which may be a combination of one or more of a bus type, a ring type, a star type, and a tree type.
Step 102, responding to a preset operation of a user, and acquiring a first picture.
Specifically, the preset operation may be a screen sharing operation, and the screen sharing operation may be used to screen-cast the content of the first screen in the first electronic device 11 on the display screen of the second electronic device 12 to implement screen sharing. For example, the user may click a "screen sharing" control on the first screen of the first electronic device 11, and in response to the user operation, the first electronic device 11 may acquire the content of the first screen.
Now, referring to fig. 3, fig. 3 is a schematic view of a display interface of the first electronic device 11. As shown in fig. 3, the interface 300 displays a first screen of the first electronic device 11, and the interface 300 may include various types of components. Next, the user may operate in interface 300, for example, the user may click on a "screen sharing" control in interface 300 to initiate screen sharing. In response to the operation of the user, the first electronic device 11 may acquire the content of the interface 300.
Step 103, acquiring the device information of the second electronic device 12.
Specifically, the device information may include a device type and a device size of the second electronic device 12. The device type is used to identify what type of device the second electronic device is, for example, it can be known through the device type that the second electronic device is one of a watch, a mobile phone, a touch screen speaker, a tablet, a car machine, a computer, or a television. The device dimensions may be used to identify a size of the second electronic device, for example, the device dimensions may be a length and a width of the second electronic device. It is understood that the device information may also include information such as a screen resolution, a real-time horizontal and vertical screen status, and a functional characteristic of the second electronic device, which is not particularly limited in this application. Wherein the real-time landscape screen status is used to identify the screen viewing status of the second electronic device 12, e.g., whether the screen is landscape or portrait. The functional characteristics are used to identify functions of the second electronic device 12, which may include, for example, whether playing video, playing music, opening files of which types, and the like, and it is understood that the above functions are only exemplary to show some functions, but do not constitute a limitation to the embodiments of the present application, and in some embodiments, other functional characteristics may also be included.
It is understood that the device information may be obtained when the first electronic device 11 establishes a connection with the second electronic device 12 in step 101, for example, the first electronic device 11 may obtain the device information of the second electronic device 12 when performing bluetooth pairing with the second electronic device 12; the device information may also be requested from the first electronic device 11 to the second electronic device 12 after step 102, which is not particularly limited in this embodiment of the application.
And 104, identifying the content of the first picture to obtain a plurality of first components and the categories thereof.
Specifically, after acquiring the first screen, the first electronic device 11 may identify the content in the first screen, so that the corresponding plurality of first components and the categories thereof may be acquired. The first component may include all components in the first screen, and the category may include a navigation category, an operation category, a content category, and an extension category. The above categories are merely exemplary to show the categories of the components, but do not constitute limitations on the present invention, and in some embodiments, there may be more categories or fewer categories, which are not limited by the embodiments of the present application.
In particular implementations, the identification may be performed through artificial intelligence techniques, and may be based on attributes (e.g., location, size, clickable, and style, etc.) of each component, wherein the style may include buttons, images, and text, such that the category of each component in the first screen may be obtained.
Optionally, in some embodiments, the developer already defines the category of the component during the application development process, and therefore, the category of each component in the first screen may also be obtained by reading the component category attribute of the background.
Step 105, filtering the plurality of first components based on the device information of the second electronic device 12 to obtain a plurality of second components.
Specifically, the first components may be sorted based on their importance, for example, each first component may be sorted in order of importance from high to low. And selecting components from the first components based on the importance to obtain a plurality of second components, wherein the number of the components in the second components is less than that of the components in the first components.
In particular implementations, the importance may be determined based on the location of each first component in the first screen. Generally, for different electronic devices, when a user views a screen of the electronic device, different areas on the screen are difficult to distinguish. That is, the user is easy to see for some areas on the screen, and the user is more difficult to see for some areas on the screen. For example, since the driver is usually located at the left side of the vehicle and the vehicle machine is usually located at the middle position of the vehicle, the right area on the display screen of the vehicle machine is difficult for the user to see. Fig. 4 is a schematic diagram of a user identification region difficulty level region. As shown in fig. 4, watches, cell phones, and tablets are typically hand-held devices and, therefore, do not have areas that are difficult for a user to identify. However, the touch screen speaker is usually a floor-type device, and therefore, it is difficult for a user to recognize the lower area of the display screen of the touch screen speaker. The large screen is generally a wall-hung device and the user is generally sitting for viewing, and therefore, the upper area of the large screen is difficult for the user to recognize. In summary, for content components, importance of the content components may be divided according to the difficult and easy areas in the electronic device, for example, a content component located in an easy area may be the most important, a content component located in a general area may be the most important, and a content component located in a difficult area may be the least important.
Further, when the user performs an operation on the screen of the electronic device, there is a difficulty in the operation. For example, since the driver is usually located at the left side of the vehicle and the machine is usually located at the middle of the vehicle, the right side area of the machine is difficult for the driver to operate. Fig. 5 is a schematic diagram of the user operation difficulty area. Based on the user operation difficulty area shown in fig. 5, the importance of the navigation class, the operation class, and the extension class component can be determined. Illustratively, the navigation type, operation type and expansion type components located in the easy area may have the highest importance, the navigation type, operation type and expansion type components located in the general area may have the general importance, and the navigation type, operation type and expansion type components located in the difficult area may have the lowest importance.
Alternatively, the importance may be determined according to the size of each first component. Generally, an element having a relatively large area ratio in the interface is regarded as a relatively important element, and when the position of the interface is limited, the first component having a relatively large area ratio is preferentially displayed. Illustratively, the head map in the interface is displayed with priority.
It is to be understood that the above examples are merely illustrative of the way in which the importance of distinguishing the first component is distinguished, and do not constitute a limitation on the embodiments of the present application. In some embodiments, the first component may also be filtered based on device information (e.g., device size). For example, a first component that is too small is only suitable for display on an electronic device that is closer to the user, such as a mobile phone, and not suitable for display on an electronic device that is farther from the user, such as a television or a car machine. While in other embodiments a first component that is too large (e.g., poster, etc.) may not be suitable for display on a smaller screen electronic device such as a watch.
Step 106, laying out the plurality of second components based on the device information of the second electronic device 12 to obtain a second screen.
Specifically, after the first electronic device 11 acquires the second screen, the plurality of second components may be laid out based on the device information of the second electronic device 12, and thus the second screen may be acquired. Wherein the second screen may include each second component and its location. Wherein the device information of the second electronic device 12 may be a size of the second electronic device 12 (e.g., a length and a width of the second electronic device 12).
Taking the first electronic device 11 as a mobile phone and the second electronic device 12 as a tablet as an example, fig. 6 is a layout diagram of screen projection from the mobile phone to the tablet. As shown in fig. 6, the interface 610 is displayed on the mobile phone, the interface 610 may be a component layout (e.g., a first screen) of the mobile phone, and the interface 610 includes 8 operation-class first components (e.g., an operation-class first component 611, an operation-class first component 612, an operation-class first component 613, an operation-class first component 614, an operation-class first component 615, an operation-class first component 616, an operation-class first component 617, and an operation-class first component 618), 4 content-class first components (e.g., a content-class first component 61A, a content-class first component 61B, a content-class first component 61C, and a content-class first component 61D), 1 navigation-class first component 61M, and 1 extension-class first component 61X. The operation class first component 611 includes a component icon 6111 and a component name 6112, and the component icon 6111 and the component name 6112 are arranged vertically, for example, the component icon 6111 is located on the upper side of the component name 6112. The operation class first component 612 includes a component icon 6121 and a component name 6122. The operation class first component 613 includes a component icon 6131 and a component name 6132. The operation class first component 614 includes a component icon 6141 and a component name 6142. The layout of the operation class first component 612, the operation class first component 613 and the operation class first component 614 is the same as that of the operation class first component 611. The operation class first component 615 is on the lower side of the content class first component 61A, the operation class first component 616 is on the right side of the content class first component 61B, the operation class first component 617 is on the right side of the content class first component 61C, and the operation class first component 618 is on the right side of the content class first component 61D. Then, a plurality of first components in the interface 610 may be filtered, so that a plurality of second components may be obtained, and a virtual screen (e.g., a second screen) may be created based on the size (e.g., length and width) of the flat panel, and the plurality of second components may be laid out in the virtual screen, so that the interface 620 may be obtained. Interface 620 includes 6 operation class second components (e.g., operation class second component 621, operation class second component 622, operation class second component 623, operation class second component 624, operation class second component 625, and operation class second component 626), 2 content class second components (e.g., content class second component 62A and content class second component 62B), 1 navigation class second component 62M, and 1 extension class second component 62X. The operation class component 621 includes a component icon 6211 and a component name 6212, and a left-right layout is formed between the component icon 6211 and the component name 6212, for example, the component icon 6211 is located on the left side of the component name 6212. The operation-class second component 622 includes a component icon 6221 and a component name 6222. The operation class second component 623 includes a component icon 6231 and a component name 6232. The operation-class second component 624 includes a component icon 6241 and a component name 6242. The layout of the operation type second component 622, the operation type second component 623, and the operation type second component 624 is the same as that of the operation type second component 621. The operation class second component 625 is located on the lower side of the content class second component 62A, and the operation class second component 626 is located on the right side of the content class second component 62B. As can be seen from the above-mentioned interface 620, the number of content class components in the interface 620 is less than that of the interface 610, and the layout of the operation class components in the interface 620 is different from that of the operation class components in the interface 610, and the layout of the operation class components in the interface 620 is more suitable for the size of the flat panel. By updating the layout of the operation type components and reducing the number of the content type components, the overall layout of a mobile phone picture can be changed, the size of a flat screen can be adapted, and the watching experience of a user can be improved.
Next, an example in which the first electronic device 11 is a mobile phone and the second electronic device 12 is a television is described, and fig. 7 is a layout diagram of a screen shot from the mobile phone to the television. As shown in fig. 7, the interface 710 is displayed on the mobile phone, and specific display contents in the interface 710 may refer to the interface 610 in fig. 6, which is not described herein again. Then, a plurality of first components in the interface 710 may be filtered, so that a plurality of second components may be obtained, and a virtual screen (e.g., a second screen) may be created based on the size (e.g., length and width) of the flat panel, and the plurality of second components may be laid out in the virtual screen, so that the interface 720 may be obtained. Interface 720 includes 4 operation class second components (e.g., operation class second component 721, operation class second component 722, operation class second component 723, operation class second component 724), 1 content class second component (e.g., content class second component 72A), 2 navigation class second components (e.g., navigation class second component 72M and navigation class second component 72N), and 1 extension class second component 72X. The operation class component 721 includes a component icon 7211 and a component name 7212, and the component icon 7211 and the component name 7212 are laid out left and right, for example, the component icon 7211 is located on the left side of the component name 7212. The operation class second component 722 includes a component icon 7221 and a component name 7222. The operation class second component 723 includes a component icon 7231 and a component name 7232. The operation class second component 724 includes a component icon 7241 and a component name 7242. The layout of operation class second component 722, operation class second component 723 and operation class second component 724 is the same as the layout of operation class second component 721. The layout of the navigation class second component 72M is the same as the layout of the navigation class first component 61M, e.g., the navigation class second component 72M is located at the uppermost side of the interface 720. The navigation class second component 72N is located on the rightmost side of the interface 720. It can be seen from the above-mentioned interface 720 that the number of content components in the interface 720 is less than that of the content components in the interface 710, and the layout of the operation components and the navigation components in the interface 720 is different from that of the operation components and the navigation components in the interface 710, and the layout of the operation components and the navigation components in the interface 720 is more suitable for the screen size of the television. By updating the layout of the operation type assembly and the navigation type assembly and reducing the number of the content type assemblies, the overall layout of a mobile phone picture can be changed to adapt to the size of a screen of a television, and the watching experience of a user can be improved.
Next, an example will be described in which the first electronic device 11 is a mobile phone and the second electronic device 12 is a car machine, and fig. 8 is a layout diagram of screen projection from the mobile phone to the car machine. As shown in fig. 8, the interface 810 is displayed on the mobile phone, and specific display contents in the interface 810 may refer to the interface 610 in fig. 6, which is not described herein again. Next, a plurality of first components in the interface 810 may be filtered, so that a plurality of second components may be obtained, a virtual screen (e.g., a second screen) may be created based on the size (e.g., length and width) of the flat panel, and the plurality of second components may be laid out in the virtual screen, so that the interface 820 may be obtained. The interface 820 includes 5 operation class second components (e.g., operation class second component 821, operation class second component 822, operation class second component 823, operation class second component 824, and operation class second component 825), one content class second component (e.g., content class second component 82A), 1 navigation class second component 82M, and 1 extension class second component 82X. The operation type second component 821, the operation type second component 822, the operation type second component 823 and the operation type second component 824 are located on the leftmost side of the interface 820. The operation-class second component 821 includes a component icon 8211 and a component name 8212, and the component icon 8211 and the component name 8212 are arranged up and down, for example, the component icon 8211 is located on the upper side of the component name 8212. Similarly, the operation-class second component 822 includes a component icon 8221 and a component name 8222. The operation class second component 823 includes a component icon 8231 and a component name 8232. The operation-class second component 824 includes a component icon 8241 and a component name 8242. The layout of the operation class second component 822, the operation class second component 823 and the operation class second component 824 is the same as that of the operation class second component 821. The operation class second component 825 is located on the lower side of the content class second component 82A. From the above-mentioned interface 820, the number of content-class components in the interface 820 is less than that in the interface 810, and the layout of the operation-class components in the interface 820 is different from that in the interface 810, and the layout of the operation-class components in the interface 820 is more suitable for the screen size of the car machine. The layout of the operation type components is updated, and the number of the content type components is reduced, so that the overall layout of a mobile phone picture can be changed, the size of a screen of a car machine can be adapted, and the watching experience of a user can be improved.
Next, an example will be described in which the first electronic device 11 is a mobile phone and the second electronic device 12 is a wristwatch, and fig. 9 is a layout diagram of a screen shot from the mobile phone to the wristwatch. As shown in fig. 9, the interface 910 is displayed on the mobile phone, and specific display contents in the interface 910 may refer to the interface 610 in fig. 6, which is not described herein again. Then, a plurality of first components in the interface 910 may be filtered, so that a plurality of second components may be obtained, and a virtual screen (e.g., a second screen) may be created based on the size (e.g., length and width) of the flat panel, and the plurality of second components may be laid out in the virtual screen, so that the interface 920 is obtained. The interface 920 includes 1 operation class second component (e.g., operation class second component 921) and 1 content class second component 92A. The operation-class second component 921 is located on the lower side of the content-class second component 92A. From the above interface 920, the number of the operation class components, the content class components, the navigation class components, and the extension class components in the interface 920 is less than the number of the operation class components, the content class components, the navigation class components, and the extension class components in the interface 910, and the layout of the operation class components and the content class components in the interface 920 is different from the layout of the operation class components and the content class components in the interface 910, and the layout of the operation class components and the content class components in the interface 920 is more suitable for the screen size of the watch. The overall layout of the mobile phone pictures can be changed by updating the layouts of the operation type components and the content type components, reducing the number of the operation type components, the content type components, the navigation type components and the expansion type components, and adapting to the size of the screen of the watch, so that the watching experience of a user can be improved.
It will be appreciated that in some embodiments, the first electronic device 11 may also perform the layout based on the first component without screening the first component. The layout manner based on the first component may refer to the layout manner based on the second component, and is not described herein again.
The above embodiment has been described by taking only one size of the second electronic device 12 as an example. Note that the second electronic device 12 has different sizes in the horizontal and vertical screen states, for example, if the size of the second electronic device 12 in the horizontal screen state is 600 × 800, the size of the second electronic device 12 in the vertical screen state is 800 × 600. Therefore, preferably, in some embodiments, 2 virtual frames may be created according to the screen size of the second electronic device 12, for example, one virtual frame may correspond to the screen size of the second electronic device 12 in the landscape state, and the other virtual frame may correspond to the screen size of the second electronic device 12 in the portrait state, and the layout may be performed based on the two virtual frames, so that 2 second frames may be obtained.
Step 107, sending the one or more second pictures to the second electronic device 12, so that the second pictures are displayed on the screen of the second electronic device 12.
Specifically, if the second electronic device 12 receives a second screen, the second screen may be directly displayed. If the second electronic device 12 receives two second images, for example, the two second images correspond to layouts with two sizes, respectively, the second electronic device 12 may automatically match the second images according to the current state (for example, the horizontal screen state or the vertical screen state), and may display the matched second images.
In the embodiment, the components in the picture are identified and classified, and the picture is rearranged based on the screen size of the target device, so that the picture content can be matched with the screen size of the target device, and the watching experience of a user can be improved.
Fig. 10 is a schematic structural diagram of an embodiment of an adaptive display device according to the present application, and as shown in fig. 10, the adaptive display device 1000 may include: the system comprises an acquisition module 1010, a receiving module 1020, an identification module 1030, a screening module 1040, a layout module 1050 and a sending module 1060; wherein the content of the first and second substances,
an obtaining module 1010, configured to obtain device information of a second electronic device;
a receiving module 1020, configured to receive a first operation of a first interface by a user;
the identifying module 1030 is configured to identify the first interface in response to the first operation to obtain a first component;
the screening module 1040 is configured to screen the first component to obtain a second component;
a layout module 1050, configured to layout the second component based on the device information of the second electronic device to obtain a second interface;
the sending module 1060 is configured to send the second interface to the second electronic device, so that the second electronic device displays the second interface.
In one possible implementation, the device information includes a screen size.
In one possible implementation manner, the screening module 1040 is further configured to screen the first component based on the importance of the first component to obtain the second component, where the importance of the first component is determined by a position of the first component in the first interface.
In one possible implementation, the importance of the first component is determined by the size of the first component in the first interface.
In one possible implementation manner, the device information further includes function information, the function information is used to represent a function supported by the second electronic device, and the importance of the first component is determined by a matching degree of the first component and the function information.
In one possible implementation manner, the device information further includes a device type, and the layout module 1050 is further configured to obtain a type of each second component; the layout of the second components in the second interface is determined based on the type of each second component and the device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the first component type includes first content and second content that are laid out up and down, the device type is a first device type, and the layout module 1050 is further configured to lay out the first content and the second content in the second component of the first component type left and right based on the first device type; the number of second components of the second component type is adjusted based on the first device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the second component of the second component type includes third content and fourth content that are laid out in an up-down manner, the device type is a second device type, and the layout module 1050 is further configured to adjust the position of the second component of the first component type based on the second device type; and laying out the third content and the fourth content in the second component of the second component type on the left and right sides based on the second device type.
In one possible implementation manner, the type of the second component includes a first component type and a second component type, the device type is a third device type, and the layout module 1050 is further configured to determine the number of the second components of the first component type and the second component type based on the third device type.
Fig. 11 shows a schematic structural diagram of the electronic device 100, wherein the first electronic device 11 and the second electronic device 12 may be the electronic device 100 described above.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, a bus or Universal Serial Bus (USB) interface, and the like.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to receive phone calls through the bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the method can also be used for connecting a headset and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and perform directional recording.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint characteristics to unlock a fingerprint, access an application lock, photograph a fingerprint, answer an incoming call with a fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the electronic device 100 at a different position than the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
It is to be understood that the electronic device and the like described above include a hardware structure and/or a software module for performing each function in order to realize the functions described above. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
In the embodiment of the present application, the electronic device and the like may be divided into functional modules according to the method example, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
Through the above description of the embodiments, it is clear 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 completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. An adaptive display method is applied to a first electronic device, and the first electronic device displays a first interface, and is characterized in that the method comprises the following steps:
acquiring equipment information of second electronic equipment;
receiving a first operation of a user on the first interface;
responding to the first operation, identifying the first interface to obtain a first assembly;
screening the first assembly to obtain a second assembly;
the second assembly is arranged based on the equipment information of the second electronic equipment, and a second interface is obtained;
sending the second interface to the second electronic device, so that the second electronic device displays the second interface.
2. The method of claim 1, wherein the device information comprises a screen size.
3. The method of claim 1 or 2, wherein the screening the first component to obtain a second component comprises:
and screening the first assembly based on the importance of the first assembly to obtain a second assembly, wherein the importance of the first assembly is determined by the position of the first assembly in the first interface.
4. The method of claim 3, wherein the importance of the first component is determined by the size of the first component in the first interface.
5. The method according to claim 3, wherein the device information further includes function information for characterizing functions supported by the second electronic device, and the importance of the first component is determined by a matching degree of the first component with the function information.
6. The method of claim 1, wherein the device information further includes a device type, and wherein laying out the second component based on the device information of the second electronic device to obtain a second interface includes:
acquiring the type of each second component;
determining a layout of the second components in the second interface based on the type of each of the second components and the device type.
7. The method of claim 6, wherein the types of the second components comprise a first component type and a second component type, wherein the second components of the first component type comprise first content and second content laid out top and bottom, wherein the device type is a first device type, and wherein determining the layout of the second components in the second interface based on the type of each of the second components and the device type comprises:
performing left-right layout on first content and second content in a second component of the first component type based on the first device type;
adjusting a number of second components of the second component type based on the first device type.
8. The method of claim 6, wherein the type of the second component comprises a first component type and a second component type, wherein the second component of the second component type comprises a third content and a fourth content laid out up and down, wherein the device type is a second device type, and wherein the determining the layout of the second component in the second interface based on the type of each of the second components and the device type comprises:
adjusting a location of a second component of the first component type based on the second device type;
and performing left-right layout on third content and fourth content in a second component of the second component type based on the second device type.
9. The method of claim 6, wherein the types of the second components comprise a first component type and a second component type, wherein the device type is a third device type, and wherein determining the layout of the second components in the second interface based on each of the types of the second components and the device type comprises:
determining a number of second components of the first component type and the second component type based on the third device type.
10. A first electronic device, comprising: a memory for storing computer program code, the computer program code comprising instructions that, when read from the memory by the first electronic device, cause the first electronic device to perform the steps of:
acquiring equipment information of second electronic equipment;
receiving a first operation of a user on the first interface;
responding to the first operation, identifying the first interface to obtain a first assembly;
screening the first assembly to obtain a second assembly;
the second assembly is arranged based on the equipment information of the second electronic equipment, and a second interface is obtained;
sending the second interface to the second electronic device, so that the second electronic device displays the second interface.
11. The first electronic device of claim 10, wherein the device information comprises a screen size.
12. The first electronic device of claim 10 or 11, wherein the instructions, when executed by the first electronic device, cause the first electronic device to perform filtering the first component to obtain a second component, comprise:
and screening the first assembly based on the importance of the first assembly to obtain a second assembly, wherein the importance of the first assembly is determined by the position of the first assembly in the first interface.
13. The first electronic device of claim 12, wherein the importance of the first component is determined by a size of the first component in the first interface.
14. The first electronic device of claim 12, wherein the device information further includes function information, and the function information is used to characterize functions supported by the second electronic device, and the importance of the first component is determined by a matching degree of the first component and the function information.
15. The first electronic device of claim 10, wherein the device information further includes a device type, and wherein the instructions, when executed by the first electronic device, cause the first electronic device to perform layout of the second component based on the device information of the second electronic device, the obtaining a second interface including:
obtaining the type of each second component;
determining a layout of the second components in the second interface based on the type of each of the second components and the device type.
16. The first electronic device of claim 15, wherein the types of the second components include a first component type and a second component type, the second component of the first component type includes first content and second content laid out top-to-bottom, the device type is a first device type, and the instructions, when executed by the first electronic device, cause the first electronic device to perform the step of determining the layout of the second components in the second interface based on the type of each of the second components and the device type, include:
performing left-right layout on first content and second content in a second component of the first component type based on the first device type;
adjusting a number of second components of the second component type based on the first device type.
17. The first electronic device of claim 15, wherein the types of the second components include a first component type and a second component type, wherein the second component of the second component type includes third content and fourth content laid out above and below, wherein the device type is a second device type, and wherein the instructions, when executed by the first electronic device, cause the first electronic device to perform the step of determining the layout of the second components in the second interface based on the type of each of the second components and the device type includes:
adjusting a location of a second component of the first component type based on the second device type;
and performing left-right layout on third content and fourth content in a second component of the second component type based on the second device type.
18. The first electronic device of claim 15, wherein the types of the second components include a first component type and a second component type, wherein the device type is a third device type, and wherein the instructions, when executed by the first electronic device, cause the first electronic device to perform the step of determining the layout of the second components in the second interface based on the type of each of the second components and the device type comprises:
determining a number of second components of the first component type and the second component type based on the third device type.
19. A computer readable storage medium comprising computer instructions which, when run on the first electronic device, cause the first electronic device to perform the adaptive display method of any of claims 1-9.
20. A computer program product, characterized in that it causes a computer to carry out the adaptive display method according to any one of claims 1-9, when said computer program product is run on the computer.
CN202011535129.4A 2020-12-23 2020-12-23 Adaptive display method, electronic device, and storage medium Pending CN114661258A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011535129.4A CN114661258A (en) 2020-12-23 2020-12-23 Adaptive display method, electronic device, and storage medium
PCT/CN2021/136273 WO2022135144A1 (en) 2020-12-23 2021-12-08 Self-adaptive display method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011535129.4A CN114661258A (en) 2020-12-23 2020-12-23 Adaptive display method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN114661258A true CN114661258A (en) 2022-06-24

Family

ID=82024537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011535129.4A Pending CN114661258A (en) 2020-12-23 2020-12-23 Adaptive display method, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114661258A (en)
WO (1) WO2022135144A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271043A (en) * 2023-11-17 2023-12-22 深圳市光速时代科技有限公司 Data display method based on intelligent wearable equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160182603A1 (en) * 2014-12-19 2016-06-23 Microsoft Technology Licensing, Llc Browser Display Casting Techniques
US10810009B2 (en) * 2017-07-14 2020-10-20 Microsoft Technology Licensing, Llc Visualizations of software project and contributor activity
CN112231025B (en) * 2019-03-06 2022-12-06 华为终端有限公司 UI component display method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271043A (en) * 2023-11-17 2023-12-22 深圳市光速时代科技有限公司 Data display method based on intelligent wearable equipment
CN117271043B (en) * 2023-11-17 2024-02-02 深圳市光速时代科技有限公司 Data display method based on intelligent wearable equipment

Also Published As

Publication number Publication date
WO2022135144A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
CN110347269B (en) Empty mouse mode realization method and related equipment
CN111262975B (en) Bright screen control method, electronic device, computer-readable storage medium, and program product
CN113810601B (en) Terminal image processing method and device and terminal equipment
CN110727380A (en) Message reminding method and electronic equipment
CN113797530A (en) Image prediction method, electronic device and storage medium
CN112651510A (en) Model updating method, working node and model updating system
CN113225661A (en) Loudspeaker identification method and device and electronic equipment
CN113448382A (en) Multi-screen display electronic device and multi-screen display method of electronic device
CN111492678B (en) File transmission method and electronic equipment
CN113490291B (en) Data downloading method and device and terminal equipment
CN114500901A (en) Double-scene video recording method and device and electronic equipment
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
CN114995715B (en) Control method of floating ball and related device
CN113901485B (en) Application program loading method, electronic device and storage medium
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN113923372B (en) Exposure adjusting method and related equipment
CN113467735A (en) Image adjusting method, electronic device and storage medium
CN112527220B (en) Electronic equipment display method and electronic equipment
CN115514844A (en) Volume adjusting method, electronic equipment and system
CN115393676A (en) Gesture control optimization method and device, terminal and storage medium
CN114827098A (en) Method and device for close shooting, electronic equipment and readable storage medium
CN113391735A (en) Display form adjusting method and device, electronic equipment and storage medium
CN113542574A (en) Shooting preview method under zooming, terminal, storage medium and electronic equipment
CN111339513A (en) Data sharing method and device
CN113364067B (en) Charging precision calibration method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination