CN118012554A - Split screen display method and device, electronic equipment and storage medium - Google Patents

Split screen display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118012554A
CN118012554A CN202410095030.9A CN202410095030A CN118012554A CN 118012554 A CN118012554 A CN 118012554A CN 202410095030 A CN202410095030 A CN 202410095030A CN 118012554 A CN118012554 A CN 118012554A
Authority
CN
China
Prior art keywords
interface
application
definition interface
split screen
low
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
CN202410095030.9A
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.)
SAIC GM Wuling Automobile Co Ltd
Original Assignee
SAIC GM Wuling Automobile 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 SAIC GM Wuling Automobile Co Ltd filed Critical SAIC GM Wuling Automobile Co Ltd
Priority to CN202410095030.9A priority Critical patent/CN118012554A/en
Publication of CN118012554A publication Critical patent/CN118012554A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/30Control of display attribute

Landscapes

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

Abstract

The embodiment of the application provides a split screen display method, a split screen display device, electronic equipment and a storage medium, which can display a low-definition interface with smaller file volume and lower rendering requirement when detecting that an application meets a split screen condition, so that a user can see contents in the whole split screen display process, and then the split screen display method, the device, the electronic equipment and the storage medium are replaced by a conventionally used high-definition interface, thereby accelerating the split screen response speed, relieving the problem of blocking or black screen, and improving the user experience. The split screen display method comprises the following steps: in response to detecting that at least one application satisfies a split screen condition, creating at least one split screen region, each split screen region corresponding to one application; creating a low-definition interface corresponding to each application according to a preset first resolution, and displaying the corresponding low-definition interface in a split screen area corresponding to the application; and creating a high-definition interface corresponding to each application according to a preset second resolution, and replacing the low-definition interface displayed in each split screen area with the corresponding high-definition interface, wherein the second resolution is larger than the first resolution.

Description

Split screen display method and device, electronic equipment and storage medium
[ Field of technology ]
The embodiment of the application relates to the technical field of terminals, in particular to a split screen display method and device, electronic equipment and a storage medium.
[ Background Art ]
The current terminal equipment generally supports an application split screen function, namely, a display screen is divided into a plurality of split screens, so that the requirement that a user operates a plurality of applications simultaneously is met.
However, when the single screen mode is required to be switched to the split screen mode, or when additional split screens are required to be created in the split screen mode, the problems of blocking and blacking of the split screen display often occur due to the limited operation performance of the terminal, and the application displayed on the split screen cannot respond to the user operation at the first time, so that the user experience is poor.
[ Invention ]
The embodiment of the application provides a split screen display method, a split screen display device, electronic equipment and a storage medium, which can display a low-definition interface with smaller file volume and lower rendering requirement when the application meets the split screen condition, so that a user can see the content in the whole split screen display process, and then the split screen display method, the device, the electronic equipment and the storage medium are replaced by a conventionally used high-definition interface, thereby accelerating the response speed of the split screen, relieving the problem of blocking or black screen and improving the user experience.
In a first aspect, an embodiment of the present application provides a split screen display method, where the method includes:
In response to detecting that at least one application meets a split screen condition, creating at least one split screen area, each split screen area corresponding to one of the applications;
creating a low-definition interface corresponding to each application according to a preset first resolution, and displaying the corresponding low-definition interface in the split screen area corresponding to the application;
and creating a high-definition interface corresponding to each application according to a preset second resolution, and replacing the low-definition interface displayed in each split screen area with the corresponding high-definition interface, wherein the second resolution is larger than the first resolution.
In the embodiment of the application, when the application is detected to meet the split screen condition, the low-definition interface with smaller file volume and lower rendering requirement is displayed first, so that a user can see the content in the whole split screen display process, and then the high-definition interface is replaced by the conventionally used high-definition interface, thereby accelerating the response speed of split screen, relieving the problem of blocking or black screen and improving the user experience.
Optionally, creating a low-definition interface corresponding to each application according to a preset first resolution, including:
searching a resource file corresponding to each application from a preset resource library;
Calculating a corresponding first interface layout parameter according to the first resolution and the resource file corresponding to each application;
And creating the corresponding low-definition interface according to the resource file corresponding to each application and the first interface layout parameter.
In the embodiment of the application, the resource file required by the display application interface is called in the preset resource library, and the low-definition interface with lower definition of the application is prepared and created by utilizing the first resolution, so that the loading speed is higher than that of the conventional high-definition interface which is directly displayed in the normal split screen display flow, and the response speed of split screen display is improved.
Optionally, the resource file is at least used for generating all interface elements in the low-definition interface, and displaying the corresponding low-definition interface in the split screen area corresponding to the application includes:
according to the association degree between the interface elements and the main functions of the application, calculating and determining the display priority of each interface element in the low-definition interface, wherein the display priority is positively correlated with the corresponding association degree;
and based on the display priority, displaying the interface elements in the corresponding split screen areas in turn until the low-definition interface is displayed.
In the embodiment of the application, the display priority of the interface element on the low-definition interface is judged according to the association degree of the interface element and the main function, the interface element with higher priority in the low-definition interface is preferentially displayed on the split screen area, and then other interface elements with low association degree with the main function are displayed; therefore, the number of elements loaded in the same time calculation is reduced in a progressive display mode, and the response speed of split screen display is further optimized.
Optionally, the at least one application includes a target application whose starting frequency is greater than a set threshold, the resource library includes at least a cache space, resource files corresponding to the target application are stored in the cache space, and the searching of each resource file corresponding to the application from a preset resource library includes:
In response to detecting that the target application meets a split screen condition, searching the resource file corresponding to the target application from the cache space;
Creating the corresponding low-definition interface according to the resource file and the first interface layout parameter corresponding to each application, including:
and creating the corresponding low-definition interface according to the resource file corresponding to the target application and the first interface layout parameter.
In the embodiment of the application, for the target application with higher starting frequency, the resource file of the target application can be cached in the cache space of the resource library in advance, and the low-definition interface loading speed of the target application is further increased by utilizing the advantage that the cache data is faster than the reading speed of the data stored in the memory, so that the response speed of the split screen is optimized.
Optionally, creating a high-definition interface corresponding to each application according to a preset second resolution, including:
Responsive to the low-definition interface of each application being displayed, calculating a corresponding second interface layout parameter according to the second resolution and the resource file corresponding to each application;
And creating the corresponding high-definition interface according to the resource file and the second interface layout parameter corresponding to each application.
In the embodiment of the application, after all the low-definition interfaces are created and displayed, the conventionally displayed high-definition interfaces are prepared and created according to the second resolution and the called resource files, so that the time for searching and calling the resource files is saved in the process of creating the high-definition interfaces, the creation of the high-definition interfaces is completed more quickly, and the response speed of split-screen display is optimized.
Optionally, replacing the low-definition interface displayed in each split screen area with the corresponding high-definition interface includes:
Responding to the establishment of the high-definition interface, and displaying the high-definition interface on the corresponding split screen area with opacity 0;
Increasing the opacity of the high-definition interface from 0 to 1, and reducing the opacity of the low-definition interface displayed in the corresponding split screen area from 1 to 0;
and deleting the corresponding low-definition interface.
In the embodiment of the application, after the high-definition interface is loaded, the low-definition interface is replaced by the high-definition interface in an opacity adjustment mode, so that the display content in the split screen area is changed, the continuity of the interface content is ensured, and the visual experience of a user is improved.
Optionally, increasing the opacity of the high-definition interface from 0 to 1 and decreasing the opacity of the low-definition interface displayed in the corresponding split screen region from 1 to 0 includes:
Responding to the opacity of the high-definition interface to be 0, and periodically adjusting the opacity of the high-definition interface based on a first preset increment until the opacity is increased to 1, wherein the first preset increment is a natural number which is greater than 0 and less than 1;
and in response to the opacity of the low-definition interface being 1, periodically adjusting the opacity of the low-definition interface based on a second preset increment until the opacity is reduced to 0, wherein the second preset increment is a natural number greater than-1 and less than 0.
In the embodiment of the application, the opacity of the high-definition interface is periodically increased through the first preset increment, and the opacity of the low-definition interface is periodically reduced through the second preset increment, so that the replacement process of the content displayed in the split screen area is optimized to be smooth transition type replacement, and the continuity of interface content switching is further improved.
In a second aspect, an embodiment of the present application provides a split-screen display device, including:
a split screen area creating unit, configured to create at least one split screen area in response to detecting that at least one application meets a split screen condition, where each split screen area corresponds to one application;
The interface creation unit is used for creating a low-definition interface corresponding to each application according to a preset first resolution, and displaying the corresponding low-definition interface in the split screen area corresponding to the application;
The interface creation unit is further configured to create a high-definition interface corresponding to each application according to a preset second resolution, and replace the low-definition interface displayed in each split screen area with the corresponding high-definition interface, where the second resolution is greater than the first resolution.
Optionally, the interface creation unit includes:
The searching subunit is used for searching the resource file corresponding to each application from a preset resource library;
A calculating subunit, configured to calculate a corresponding first interface layout parameter according to the first resolution and the resource file corresponding to each application;
and the low-definition interface creation subunit is used for creating the corresponding low-definition interface according to the resource file corresponding to each application and the first interface layout parameter.
Optionally, the resource file is at least used for generating all interface elements corresponding to the application, and the interface creating unit further includes:
A priority calculating subunit, configured to calculate and determine, according to a degree of association between the interface elements and the main functions of the application, a display priority of each interface element in the low-definition interface, where the display priority is positively related to the corresponding degree of association;
And the interface display subunit is used for sequentially displaying the interface elements in the corresponding split screen areas based on the display priority until the low-definition interface is displayed.
Optionally, the at least one application includes a target application whose starting frequency is greater than a set threshold, the resource library includes at least a cache space, a resource file corresponding to the target application is stored in the cache space, and the searching subunit is specifically configured to:
In response to detecting that the target application meets a split screen condition, searching the resource file corresponding to the target application from the cache space;
The low-definition interface creation subunit is specifically configured to:
and creating the corresponding low-definition interface according to the resource file corresponding to the target application and the first interface layout parameter.
Optionally, the interface creation unit further includes:
The calculating subunit is further configured to calculate, in response to the low-definition interface of each application being displayed, a corresponding second interface layout parameter according to the second resolution and the resource file corresponding to each application;
And the high-definition interface creation subunit is used for creating the corresponding high-definition interface according to the resource file corresponding to each application and the second interface layout parameter.
Optionally, the interface creation unit further includes:
the interface display subunit is further configured to display the high-definition interface on the corresponding split screen area with opacity 0 in response to the completion of the creation of the high-definition interface;
An opacity adjustment subunit, configured to increase the opacity of the high-definition interface from 0 to 1, and decrease the opacity of the low-definition interface displayed in the corresponding split screen area from 1 to 0;
And the deleting subunit is used for deleting the corresponding low-definition interface.
Optionally, the opacity adjustment subunit is specifically configured to:
Responding to the opacity of the high-definition interface to be 0, and periodically adjusting the opacity of the high-definition interface based on a first preset increment until the opacity is increased to 1, wherein the first preset increment is a natural number which is greater than 0 and less than 1;
and in response to the opacity of the low-definition interface being 1, periodically adjusting the opacity of the low-definition interface based on a second preset increment until the opacity is reduced to 0, wherein the second preset increment is a natural number greater than-1 and less than 0.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes at least one processor and a memory connected to the at least one processor, where the at least one processor is configured to implement the steps of the method according to the first aspect when executing a computer program stored in the memory.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
It should be understood that, the second to fourth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
[ Description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a split screen display method according to an embodiment of the present application;
Fig. 2 (a) -fig. 2 (b) are schematic diagrams of a split screen area display mode according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a method for creating a low-definition interface according to an embodiment of the present application;
fig. 4 is a flow chart of a method for creating a low-definition interface of a target application according to an embodiment of the present application;
fig. 5 is a flow chart of a method for displaying a low-definition interface according to an embodiment of the present application;
fig. 6 is a flow chart of a method for creating a high-definition interface according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of an interface replacement method according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating an interface opacity adjustment method according to an embodiment of the present application;
fig. 9 is a specific flow chart of a split screen display method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a split-screen display device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
[ Detailed description ] of the invention
For a better understanding of the technical solutions of the present specification, the following detailed description of the embodiments of the present application refers to the accompanying drawings.
It should be understood that the described embodiments are only some, but not all, of the embodiments of the present description. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present disclosure.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
According to the research of the inventor, the current terminal equipment generally supports an application split screen function, namely, a display screen is divided into a plurality of split screens, so that the requirement of a user for simultaneously operating a plurality of applications is met.
However, when the single screen mode is required to be switched to the split screen mode, or when additional split screens are required to be created in the split screen mode, the problems of blocking and blacking of the split screen display often occur due to the limited operation performance of the terminal, and the application displayed on the split screen cannot respond to the user operation at the first time, so that the user experience is poor.
In view of this, the embodiment of the application provides a split screen display method, which can firstly display a low-definition interface with higher loading speed when passing through a split screen display interface, and then transition to a conventionally used high-definition interface, so that the response speed of split screens is increased, the problem of blocking or blacking is solved, and the user experience is improved.
It should be understood that the split-screen display method in the embodiment of the present application may be applied to various devices supporting the split-screen display function, where the types of the split-screen display method include, but are not limited to, mobile terminals such as desktop computers, notebook computers, palm computers, mobile phones, apple computers, smart watches, tablet computers, and other computing devices such as vehicle-mounted computers, cloud servers with visual interfaces.
The following describes the scheme provided by the embodiment of the application with reference to the attached drawings:
Please refer to fig. 1, which is a schematic flow chart of a split screen display method according to an embodiment of the present application, wherein the method includes the following steps:
Step 101: in response to detecting that at least one application satisfies the split-screen condition, at least one split-screen region is created, each split-screen region corresponding to one application.
In the embodiment of the application, the screen splitting conditions which can be met by various applications at least comprise the following three types:
(1) Selecting at least one application by a split screen operation instruction of a user, so that the selected at least one application needs to execute split screen display;
(2) The user launches at least one application and certain functional modules within the at least one launched application need to perform split-screen display (e.g., when launching a video playback application and selecting to play multiple videos simultaneously, it may be necessary to perform split-screen display to display multiple video playback interfaces simultaneously);
(3) The user sets certain preset conditions which are automatically executed when triggered, and triggers one or more preset conditions under specific conditions (for example, when a music playing interface is started when map navigation is started, the mode is automatically switched to a split screen mode so as to display the music playing interface and the map navigation interface simultaneously).
When it is detected that at least one application satisfies the split-screen condition, the creation of the split-screen region may be started immediately. Generally, an application meeting the split-screen condition is assigned a split-screen area for displaying a visual interface of the application in the split-screen mode.
But may also be allocated to multiple split screen areas when there is a special function or display need for an application (e.g., there may be multiple videos or audios to be played at the same time for a media play function; or multiple windows may be established to support multi-user split screen operation for a game play function).
Specifically, one possible way to create a split screen region is as follows:
Presetting a display mode of a plurality of split screen areas, and when a user selects one of the split screen area display modes or sets one of the split screen area display modes as a default, automatically creating one or more corresponding split screen areas on a screen according to the arrangement mode, the size and the shape of the split screen areas corresponding to the selected split screen area display mode so as to display a corresponding number of application interfaces.
Fig. 2 (a) -2 (b) are schematic diagrams of a split screen area display mode according to an embodiment of the present application, for example, for a rectangular screen with a length of 16cm and a width of 12cm, a center point of the screen is taken as an origin of a coordinate system, a horizontal direction of the screen is taken as an X-axis of the coordinate system, a vertical direction is taken as a Y-axis of the coordinate system, and a unit coordinate distance is 1cm. A user selectable split screen area display mode is shown in fig. 2 (a):
Two rectangular split screen areas of length 8cm and width 12cm are created on the rectangular screen respectively, wherein the center point coordinate of one split screen area ① is (-4, 0), and the center point coordinate of the other split screen area ② is AND (4, 0).
Or a user selectable split screen area display mode as shown in fig. 2 (b):
Four rectangular split screen areas of length 8cm and width 6cm are created on the rectangular screen respectively, wherein the center point coordinates of the first split screen area ③ are (-4, 3), the center point coordinates of the second split screen area ④ are (4, 3), the center point coordinates of the third split screen area ⑤ are (-4, -3), and the center point coordinates of the fourth split screen area ⑥ are (4, -3).
The display modes of the split screen area can be various according to different settings of manufacturers or users, and the detailed description is omitted here.
Step 102: and creating a low-definition interface corresponding to each application according to the preset first resolution.
In the embodiment of the application, in order to accelerate the response speed of the split screen interface, a low-definition interface can be created and displayed according to the first resolution before a conventional high-definition interface (namely, a page with higher resolution displayed in normal operation is applied).
Since the first resolution is a preset resolution lower than the default resolution of the device, the low-definition interface created based on the first resolution requires less text and image details to be rendered. Therefore, the loading speed is faster than that of the normal display of the high-definition interface in the split screen area, so that the effect of effectively improving the split screen response speed is achieved.
Fig. 3 is a flow chart of a low-definition interface creation method according to an embodiment of the present application, and as a possible implementation, step 102 may be further implemented by performing sub-steps 1021 to 1023.
Step 1021: and searching a resource file corresponding to each application from a preset resource library.
In the embodiment of the application, the preset resource library is used for storing all resource files (supporting split screen display) required by the running of the application, and the resource files comprise but are not limited to picture files, video files, text files, audio files and configuration program files of the application.
Before a low-definition interface of an application is created, a storage position of a resource file corresponding to the application is first found, and reading is performed on all the resource files.
For the resource files required to be read by the application, generally, only part of the resource files required for creating the current application interface are included, but more resource files (such as pictures, texts and configuration files corresponding to the sub-interfaces of the current application interface) or all the resource files of the application may be included.
Step 1022: and calculating a corresponding first interface layout parameter according to the first resolution and the resource file corresponding to each application.
After the corresponding resource file is read from the resource library, a first interface layout parameter corresponding to the application is calculated according to the preset first resolution and all the resource files of the application. Wherein the first interface layout parameters include, but are not limited to, a display position, a display size, a display shape of each interface element, and a relative distance between different interface elements.
Specifically, since the default resolution size of the internal known screen display is applied, the proportional relationship between the first resolution and the normal resolution can be calculated for the two; and converting the interface element display position (under the default resolution) read in the application resource file into the interface element display position (under the first resolution) of the low-definition interface.
Step 1023: and creating a corresponding low-definition interface according to the resource file corresponding to each application and the first interface layout parameters.
In the embodiment of the application, after the determined first interface layout parameters are calculated and all the resource files required by the application are extracted, a low-definition interface corresponding to each application is also required to be created according to the first interface layout parameters and the resource files corresponding to the application.
Specifically, one possible way of creating a low definition interface is as follows:
(1) And carrying out resolution reduction on the high-resolution picture file or video file in the resource file.
For example, any one of the common scaling algorithms including nearest neighbor interpolation algorithm, bilinear interpolation algorithm, bicubic interpolation algorithm, sampling and continuous panning algorithm may be used to reduce the resolution of a certain picture file that needs to be displayed on the low definition interface.
(2) And carrying out picture adjustment on the picture files or video files with reduced resolution, thereby retaining or enhancing the details of the picture files or video files.
For example, for the picture file, preset operations such as sharpening, brightness adjustment, contrast adjustment and the like can be adopted to optimize the quality of the picture file after resolution reduction.
(3) An image file or video file suitable for the first resolution is derived.
(4) And loading all the picture files and video files suitable for the first resolution into the low-definition interface according to the detailed values of the layout parameters of the first interface, and performing prerendering together with interface elements such as text information and operation buttons of the low resolution to obtain the low-definition interface with compressed resolution being the first resolution.
For applications which are frequently used, other optimization strategies can be executed on the basis of the method in order to further accelerate the split screen response speed of the application.
In some embodiments, applications displayed in different split screen regions may employ different preset resolutions to create corresponding low-definition interfaces to meet different display requirements of different applications. For example, for map navigation applications with higher definition requirements, to ensure that the user can perform normal interactions with the low-definition interface of the map navigation application, a corresponding low-definition interface may be created using 800 x 600 resolution, while for notepad applications with lower definition requirements, a low-definition interface may be created using 640 x 480 resolution.
In some embodiments, the preset first resolution may also be adjusted according to the current performance status of the device. For example, for the case that the current equipment load is low, the first resolution can be properly adjusted to improve the display definition of the low-definition interface, so that the visual experience of a user is improved; or for the condition that the current equipment load is higher, the first resolution can be properly regulated down to reduce the display definition of the low-definition interface, so that the response speed of split screen display is ensured.
Fig. 4 is a flowchart of a method for creating a low-definition interface of a target application according to an embodiment of the present application, and as a possible implementation, step 1021 may be further implemented by executing sub-step 201.
Step 201: and in response to the detection that the target application meets the screen splitting condition, searching a resource file corresponding to the target application from the cache space.
In the embodiment of the application, for the application frequently used in the equipment, the starting frequency of the application can be obtained by establishing a monitoring mechanism, reading the background starting record of the application and the like. When the starting frequency is larger than the set threshold value, the application is considered to be a target application commonly used by users.
For the target application, in order to further accelerate the loading speed of the corresponding low-definition interface, the resource files corresponding to the application can be selected to be found in other storage positions of the resource library, and the resource files are stored in the cache space of the resource library.
Further, since the cache space of the resource library is generally provided in the volatile memory (e.g., memory device) of the device, and the normal resource file is stored in the nonvolatile memory (e.g., hard disk, usb disk, etc.) of the device, the resource file stored in the cache space can be read at a faster speed than other resource files. Therefore, when the resource file corresponding to the target application needs to be searched, the searching speed can be faster.
In some embodiments, a periodic statistical mechanism may be further set up for the target application, to detect whether the starting frequency of the target application in a period of time falls below a set threshold, and if so, reset the target application to a normal application, and release the corresponding resource file from the cache space.
Meanwhile, step 1023 may be further implemented by performing sub-step 202.
Step 202: and creating a corresponding low-definition interface according to the resource file corresponding to the target application and the first interface layout parameter.
In the embodiment of the application, after the resource file corresponding to the target application is searched out from the cache space, the first interface layout parameter is calculated as the low-definition interface creation flow of the general application, and the low-definition interface corresponding to the resource file is created by using the first interface layout parameter, and the specific creation flow is not repeated.
In some embodiments, the resource file corresponding to the target application may be selected not to be cached, but the resource file (including the scalable file such as the picture file and the video file) with reduced resolution of the target application is stored in the cache space of the resource library, so that when the target application is started next time, the corresponding low-definition interface is directly loaded based on the low-definition picture file and the low-definition video file with reduced resolution, and the time consumption of resolution reduction calculation of the resource file is saved.
For example, for an interface Background image "background_low.jpg" of a target application, after the low-definition interface of the application is loaded for the first time, the corresponding low-definition interface Background image "background_low.jpg" obtained after resolution is reduced may be directly stored in the cache space. Further, when the target application is started for the second time, the "background_low.jpg" stored in the cache space can be read directly, without re-reading the "background_low.jpg" and calculating the reduced resolution "background_low.jpg".
Step 103: and displaying a corresponding low-definition interface in the split screen area corresponding to the application.
In the embodiment of the application, after the creation of the low-definition interface is completed, the low-definition interface can be displayed in the corresponding split screen area for the user to view. It should be appreciated that the low definition interface displayed has the same interface elements as a conventionally displayed high definition interface, and thus may perform exactly the same functions and operations.
In some embodiments, the low-definition interface may have simpler or fewer interface elements than the high-definition interface, further increasing the speed of creation of the low-definition interface. For example, for a music playing application, the conventionally displayed high definition interface has options such as "play", "pause", "next", "previous", "playlist", "play order set", etc. The corresponding low definition interface may include only "play", "pause", "previous", "next" options, or only "play", "pause" options.
In some embodiments, the low definition interface may be configured to operate in a completely different manner than a high definition interface employing conventional display.
For example, in a high definition interface of an application, there are multiple background videos available for the user to select to play. Then in the low-definition interface of the application, any functions in the high-definition interface of the application may not be loaded, but the low-resolution versions of the plurality of background videos may be automatically cycled.
Fig. 5 is a flowchart of a method for displaying a low-definition interface according to an embodiment of the present application, and step 103 may be further implemented by performing sub-steps 1031 to 1032.
Step 1031: according to the association degree between the interface elements and the main functions of the application, calculating and determining the display priority of each interface element in the low-definition interface, wherein the display priority is positively correlated with the corresponding association degree.
In the embodiment of the application, in order to reduce the number of interface elements to be displayed at the same time when displaying a low-definition interface and further reduce the risks of blocking and blacking, a degree of association between one and the main functions can be built in each interface element, and the degree of association can be a fixed preset value or a variable value obtained through certain algorithms.
Furthermore, according to the positive correlation between the correlation degree and the display priority, it can be determined which interface elements are preferentially displayed, and which interface elements are displayed after all important interface elements are displayed.
For example, for an interface of a music playing application, there are a total of "play", "pause", "next", "previous", "playlist", "play order setting" function keys that need to be displayed.
Wherein, the two function keys of play and pause have a preset association value of 0.9; the two functional keys of the next head and the last head have a preset association value of 0.7; and the association degree value of the two function keys, namely a play list and a play sequence setting, is calculated to be 0.53 through a statistical algorithm of the function call times.
Then, the display priority of "play", "pause" is determined as first, the display priority of "next", "previous" is determined as second, and the display priority of "playlist", "play order setting" is determined as last, by the relationship between the degree of association and the display priority.
Step 1032: and displaying the interface elements in the corresponding split screen areas in turn based on the display priority until the low-definition interface is displayed.
After determining the display priority, each interface element may be displayed in turn according to the display order specified by the display priority until all elements of the low-definition interface are displayed on the split screen interface.
Step 104: and creating a high-definition interface corresponding to each application according to a preset second resolution, wherein the second resolution is larger than the first resolution.
In the embodiment of the application, the second resolution corresponding to the high-definition interface is generally the screen resolution of conventional display or the split-screen display resolution used by the user by default, so that the resolution is obviously larger than the first resolution of the low-definition interface.
After the low-definition interface corresponding to the application is created and displayed, the creation of the high-definition interface corresponding to the application and normally displayed by the equipment based on the second resolution can be started to provide preparation for the subsequent low-definition interface replacement process.
Specifically, when creating a high definition interface, a similar flow as when creating a low definition interface should be performed as well.
Fig. 6 is a flowchart of a method for creating a high-definition interface according to an embodiment of the present application, and step 104 may be further implemented by executing steps 1041 to 1042.
Step 1041: and responding to the display of the low-definition interface of each application, and calculating a corresponding second interface layout parameter according to the second resolution and the corresponding resource file of each application.
In the embodiment of the application, after the low-definition interface of each application is displayed, all applications needing to execute split screen display are considered to complete the first-step response, and then the high-definition interface corresponding to each application is created in the background of the equipment in an asynchronous processing mode (namely, the high-definition interface of the application is synchronously created in the background while the operation instructions of the user are processed and responded through the existing low-definition interface, so that the mutual blockage of two task processes is avoided), and the risk of equipment blocking can be reduced.
And because the high-definition interface corresponding to each application uses a set of resource files which are the same as the low-definition interface, and the resource files of the low-definition interface are searched and read from the resource library in the steps, the searching step of the resource files is not required to be executed again, and the second interface layout parameters are directly calculated based on the resource files corresponding to each application and the second resolution.
The process of calculating the second interface layout parameters by using the resource file and the second resolution is basically the same as the process of calculating the first interface layout parameters by using the resource file and the first resolution, so that a description of the process of calculating the second interface layout parameters is omitted here.
In some embodiments, when a low-definition interface corresponding to an application is created, the creation of the corresponding high-definition interface can be started immediately, without waiting for all low-definition interfaces to be created and displayed before the creation of the high-definition interface corresponding to each application is unified.
In some embodiments, since no change in size of the split screen area occurs when switching from the low definition interface to the high definition interface, only the resolution of the display switches from the first resolution to the second resolution. Therefore, the interface elements in the high-definition interface and the interface elements in the low-definition interface can be in proportional relation in parameters such as display positions, display sizes and the like. In this case, in order to ensure the layout consistency of the low-definition interface and the high-definition interface and save the calculation time of the second interface layout parameter, the second interface layout parameter may also be calculated according to the resource file and the first interface layout parameter.
For example, the display position of the picture 1 in the low-definition interface is (0, 1), the display size is 12mm by 10mm, and the resolution of the high-definition interface is 2 times of that of the low-definition interface; the display position of the picture 1 in the high-definition interface may be (0, 2), and the display size may be 24mm x 20mm, that is, the second interface layout parameter may be directly calculated based on the ratio of the resource file to the first interface layout parameter.
Step 1042: and creating a corresponding high-definition interface according to the resource file corresponding to each application and the second interface layout parameters.
After the second interface layout parameters are calculated, the creation of the high-definition interface is also required to be performed through the resource file and the second interface layout parameters.
Specifically, one possible way of creating a high definition interface is as follows:
(1) The image file or video file suitable for the second resolution is directly read.
(4) And loading all the picture files and video files (originally suitable for the second resolution) into a high-definition interface according to the detailed values of the layout parameters of the second interface, and performing prerendering together with interface elements such as text information and operation buttons of common resolution to obtain the high-definition interface displayed by using the conventional resolution.
In some embodiments, because of the interface elements to be loaded when creating the high-definition interface, there may be some interface elements that need to be downloaded or updated online (e.g., when launching the weather application via a split screen, the weather information that needs to be displayed by the high-definition interface of the application is updated via the online).
For the interface elements which need to be downloaded or updated in a networking way, the loading sequence of the interface elements in the high-definition interface can be adaptively adjusted according to the current uploading/downloading speed of the network.
For example, for a weather application requiring split screen display, when the current network downloading speed is 1mb/s, the high definition interface creation delay is not caused by the network updating of the weather information due to the good network condition; thus, the weather information may be set as the first created interface element in the high definition interface.
When the current network downloading speed is 100kb/s, because the network is poor, the networking update time of the weather information is long, and the loading delay of a high-definition interface is possibly caused, the weather information can be set as a second or third loaded interface element, so that the equipment can load other interface elements which do not need networking preferentially while the weather information is updated in a networking mode.
In some embodiments, after the low-definition interface is displayed and when the high-definition interface is started to be created, a preset prompt message such as a loading progress bar, loading animation, text prompt and the like is displayed on the corresponding split screen area, or preset prompt audio is played, so that the user is informed of the progress of creating the high-definition interface in the background by the current device, or the visual experience of the user is improved.
In some embodiments, in order to ensure that the creation of the high-definition interface can be completed in a short time, the execution time of the whole flow displayed by the application split screen is shortened, and the interface elements to be loaded in the high-definition interface can be optimized in a targeted manner.
For example, before the high-definition interface is created, lossless compression can be performed on the picture and video files displayed by the high-definition interface in advance, so that the file volume required to be read for creating the high-definition interface is reduced; or the code amount required to be executed for creating the high-definition interface of the application can be reduced, so that the high-definition interface has fewer details than the conventional interface of the application in the single-screen mode, and the calculation amount of the program required for creating the high-definition file is reduced.
In some embodiments, since the low-definition interface has completed loading certain interface elements or interface frames, the high-definition interface may be created by properly optimizing the generation program of the high-definition interface, and invoking the interface elements/interface frames that have completed loading in the low-definition interface, thereby saving some of the creation time of the high-definition interface.
For example, for a music playing application, the loading of the "play", "pause" etc. function keys and associated function code has been completed when the low definition interface was created. When the high-definition interface is created, the function keys and related function codes which are completed to be loaded can be directly called or copied, so that the time consumption for regenerating the loading of the related function buttons of playing and suspending in the high-definition interface is saved.
Or for a video playing application, loading of a home page interface frame of the application is completed in a format of an extensible markup language (Extensible Markup Language, abbreviated as XML) file when the low-definition interface is created; when the high-definition interface is created, the content recorded by the XML file can be directly used, and the complete loading of the high-definition interface can be executed on the basis of the existing home page interface frame.
Step 105: and replacing the low-definition interface displayed in each split screen area with a corresponding high-definition interface.
In the embodiment of the application, after the creation of the high-definition interface is completed, the low-definition interface which is being displayed in each split screen area can be replaced by the corresponding high-definition interface.
Specifically, one possible way of interface replacement is to complete the complete replacement from the low-definition interface to the high-definition interface by adjusting the opacity of the high-definition interface and the low-definition interface.
Fig. 7 is a flow chart of an interface replacement method according to an embodiment of the present application, and step 105 may be further implemented by performing sub-steps 1051 to 1053.
Step 1051: and in response to the establishment of the high-definition interface, displaying the high-definition interface on the corresponding split screen area with the opacity of 0.
In the embodiment of the application, after the high-definition interface is created, the high-definition interface can be immediately displayed on the corresponding split screen area, and the opacity corresponding to the display is 0 (i.e. the high-definition interface is in an invisible state at the moment).
In some embodiments, the high definition interface may be displayed at a lower level (e.g., lowest level) of the split screen region, i.e., at a lower level of the low definition interface, such that a user may only see the low definition interface displayed at a higher level (e.g., uppermost level) while being temporarily invisible to the high definition interface also displayed at a lower level of the split screen region.
Step 1052: the opacity of the high definition interface is increased from 0 to 1 and the opacity of the low definition interface displayed in the corresponding split screen region is reduced from 1 to 0.
In the embodiment of the application, a feasible mode of replacing a low-definition interface with a high-definition interface is as follows:
After the high definition interface is displayed on the split screen area with opacity 0, the opacity of the high definition interface is increased from 0 to 1 (i.e., from invisible to invisible), and the opacity of the corresponding low definition interface is reduced from 1 to 0 (i.e., from visible to invisible) while the high definition interface starts to be displayed. Therefore, the split screen area is seamlessly switched from the low-definition interface to the high-definition interface in the view angle of the user.
In some embodiments, when the low-definition interface is displayed at a higher level of the split-screen area and the high-definition interface is displayed at a lower level of the split-screen area, the opacity of the low-definition interface may be reduced from 1 to 0 only, while the opacity of the high-definition interface is always 1 throughout. Thus, when the low-definition interface changes from visible to invisible in the user's perspective, the underlying high-definition interface is displayed in front of the user.
In some embodiments, after the process of replacing the low-definition interface with the high-definition interface is completed, a preset prompting audio or prompting animation may be played, so as to inform the user that the application interface displayed in the split screen area has been replaced with the high-definition interface from the low-definition interface.
Fig. 8 is a flowchart of an interface opacity adjustment method according to an embodiment of the present application, and as a possible implementation, step 1052 may be further implemented by executing sub-steps 203 to 204.
Step 203: and in response to the opacity of the high-definition interface being 0, periodically adjusting the opacity of the high-definition interface based on a first preset increment until the opacity is increased to 1, wherein the first preset increment is a natural number greater than 0 and less than 1.
In the embodiment of the application, for the method of replacing the low-definition interface with the high-definition interface based on the opacity adjustment, the opacity of the high-definition interface can be further adjusted in an incremental manner, so that the opacity of the high-definition interface is gradually increased from 0 to 1 according to the first preset increment.
For example, the transparency of the high definition interface may increase from 0 to 0.25, 0.5, 0.75, and finally to 1, based on a linear increase; it is also possible to increase from 0 to 0.1, 0.3, 0.6 and finally to 1 based on a non-linear increase. Similar additions are numerous and will not be described in detail here.
Step 204: and in response to the opacity of the low-definition interface being 1, periodically adjusting the opacity of the low-definition interface based on a second preset increment until the opacity is reduced to 0, wherein the second preset increment is a natural number greater than-1 and less than 0.
Similarly, the opacity of the low definition interface may also be stepped down from 1 to 0 in a second preset increment. For example, the transparency of the low-definition interface may decrease from 1 to 0.75, 0.5, 0.25, and finally to 0, based on a linear decrease; it is also possible to reduce from 1 to 0.9, 0.7, 0.4 and finally to 0 based on a non-linear reduction. Similar reductions are numerous and are not described in detail herein.
Step 1053: and deleting the corresponding low-definition interface.
When the low-definition interface is invisible in the split screen area, namely the process of replacing the low-definition interface with the high-definition interface is considered to be successfully completed, the low-definition interface is immediately deleted from the split screen area, and memory resources corresponding to the low-definition interface are released, so that the resource occupation of equipment is reduced.
In addition, fig. 9 is a schematic flowchart of a split screen display method according to an embodiment of the present application. The split screen display method comprises the following specific processes:
in a first step, a detection is made as to whether at least one application satisfying the split screen condition exists.
And secondly, after detecting the application meeting the split screen condition, creating a corresponding split screen area, and creating a low-definition interface corresponding to the application in the background of the equipment, wherein all resource files (including picture files, video files and the like) which are required to be reduced and displayed on the low-definition interface are subjected to resolution reduction processing.
And thirdly, displaying the created low-definition interface in the split screen area.
And fourthly, displaying prompt information to inform the user that the interface is in the loading state currently.
And fifthly, creating a high-definition interface corresponding to the application in the background of the equipment, wherein all resource files (including picture files, video files and the like) required to be displayed on the high-definition interface are displayed according to the default resolution.
And sixthly, replacing the low-definition interface displayed in the split screen area with a high-definition interface.
Referring to fig. 10, based on the same inventive concept, an embodiment of the present application further provides a split screen display device, including:
A split screen area creating unit 301, configured to create at least one split screen area in response to detecting that at least one application satisfies a split screen condition, where each split screen area corresponds to one application;
the interface creation unit 302 is configured to create a low-definition interface corresponding to each application according to a preset first resolution, and display the corresponding low-definition interface in a split screen area corresponding to the application;
The interface creation unit 302 is further configured to create a high-definition interface corresponding to each application according to a preset second resolution, and replace the low-definition interface displayed in each split screen area with the corresponding high-definition interface, where the second resolution is greater than the first resolution.
Optionally, the interface creation unit 302 includes:
the searching subunit is used for searching the resource file corresponding to each application from a preset resource library;
The computing subunit is used for computing corresponding first interface layout parameters according to the first resolution and the resource files corresponding to each application;
and the low-definition interface creation subunit is used for creating a corresponding low-definition interface according to the resource file corresponding to each application and the first interface layout parameter.
Optionally, the resource file is at least used to generate all interface elements in the low-definition interface, and the interface creation unit 302 further includes:
The priority calculating subunit is used for calculating and determining the display priority of each interface element in the low-definition interface according to the association degree between the interface element and the main function of the application, wherein the display priority is positively correlated with the corresponding association degree;
And the interface display subunit is used for sequentially displaying the interface elements in the corresponding split screen areas based on the display priority until the low-definition interface is displayed.
Optionally, at least one application has a target application with a starting frequency greater than a set threshold, the resource library at least includes a cache space, a resource file corresponding to the target application is stored in the cache space, and the searching subunit is specifically configured to:
responding to the condition that the target application meets the screen dividing condition, and searching a resource file corresponding to the target application from the cache space;
the low-definition interface creation subunit is specifically configured to:
And creating a corresponding low-definition interface according to the resource file corresponding to the target application and the first interface layout parameter.
Optionally, the interface creation unit 302 further includes:
The calculating subunit is further configured to calculate, according to the second resolution and the resource file corresponding to each application, a corresponding second interface layout parameter in response to the low-definition interface of each application being displayed;
And the high-definition interface creation subunit is used for creating a corresponding high-definition interface according to the resource file corresponding to each application and the second interface layout parameter.
Optionally, the interface creation unit 302 further includes:
The interface display subunit is further used for displaying the high-definition interface on the corresponding split screen area with the opacity of 0 in response to the completion of the creation of the high-definition interface;
an opacity adjustment subunit for increasing the opacity of the high-definition interface from 0 to 1 and decreasing the opacity of the low-definition interface displayed in the corresponding split screen region from 1 to 0;
And the deleting subunit is used for deleting the corresponding low-definition interface.
Optionally, the opacity adjustment subunit is specifically configured to:
Responding to the opacity of the high-definition interface to be 0, and periodically adjusting the opacity of the high-definition interface based on a first preset increment until the opacity is increased to 1, wherein the first preset increment is a natural number which is more than 0 and less than 1;
And in response to the opacity of the low-definition interface being 1, periodically adjusting the opacity of the low-definition interface based on a second preset increment until the opacity is reduced to 0, wherein the second preset increment is a natural number greater than-1 and less than 0.
Referring to fig. 11, based on the same inventive concept, an electronic device 400 is further provided in an embodiment of the present application, where the electronic device 400 may include at least one processor, and the at least one processor is configured to execute a computer program stored in a memory, to implement the steps of the split-screen display method shown in fig. 1, 3-9 provided in the embodiment of the present application.
In the alternative, the processor may be a central processing unit, a specific ASIC, or one or more integrated circuits for controlling the execution of the program.
Optionally, the electronic device 400 may further include a memory coupled to the at least one processor, the memory may include ROM, RAM, and disk memory. The memory is used for storing data required by the processor when running, i.e. instructions are stored which can be executed by at least one processor, which by executing the instructions stored by the memory performs the method as shown in fig. 1, 3-9. Wherein the number of memories is one or more.
The entity devices corresponding to the split screen area creating unit 301 and the interface creating unit 302 may be the aforementioned processors. The electronic device may be used to perform the methods provided by the embodiments shown in fig. 1, 3-9. Therefore, for the functions that can be implemented by each functional module in the electronic device, reference may be made to corresponding descriptions in the embodiments shown in fig. 1 and fig. 3 to fig. 9, which are not repeated.
The electronic device 400 may be an intelligent electronic device such as a smart phone or a tablet computer, and the form of the electronic device is not limited in this embodiment.
By way of example, fig. 11 illustrates a schematic diagram of an electronic device 400 using a smart phone as an example, as shown in fig. 8, the electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (universal serial bus, USB) interface 430, a charge management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, keys 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identity card (subscriber identification module, SIM) interface 495, etc.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 400. In other embodiments of the application, electronic device 400 may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 410 may include one or more processing units, such as: the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that the processor 410 has just used or recycled. If the processor 410 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided, reducing the latency of the processor 410 and thus improving the efficiency of the system.
In some embodiments, processor 410 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (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 (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 440 is configured to receive a charge input from a charger.
The power management module 441 is configured to connect the battery 442, the charge management module 440 and the processor 410.
In some embodiments, antenna 1 and mobile communication module 450 of electronic device 400 are coupled, and antenna 2 and wireless communication module 460 are coupled, such that electronic device 400 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 400 implements display functions via a GPU, a display screen 494, and an application processor, etc.
The display screen 494 is used to display images, videos, and the like. The display screen 494 includes a display panel.
The ISP is used to process the data fed back by the camera 493.
The camera 493 is used to capture still images or video.
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 400 is selecting a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 400 may support one or more video codecs. Thus, the electronic device 400 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The external memory interface 420 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 400. The external memory card communicates with the processor 410 through an external memory interface 420 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 421 may be used to store computer-executable program code that includes instructions. The internal memory 421 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 400 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 421 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 410 performs various functional applications and data processing of the electronic device 400 by executing instructions stored in the internal memory 421 and/or instructions stored in a memory provided in the processor.
Electronic device 400 may implement audio functionality through audio module 470, speaker 470A, receiver 470B, microphone 470C, headphone interface 470D, and an application processor, among others. Such as music playing, recording, etc.
The audio module 470 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.
Speaker 470A, also referred to as a "horn," is used to convert audio electrical signals into sound signals.
A receiver 470B, also referred to as a "earpiece," is used to convert the audio electrical signal into a sound signal.
Microphone 470C, also referred to as a "microphone" or "microphone," is used to convert sound signals into electrical signals.
The headphone interface 470D is for connecting a wired headphone. Earphone interface 470D may be a USB interface 430 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 490 include a power-on key, a volume key, etc.
The motor 491 may generate a vibration cue.
The indicator 492 may be an indicator light, which may be used to indicate a state of charge, a change in charge, an indication message, a missed call, a notification, or the like.
The SIM card interface 495 is used to connect to a SIM card. In some embodiments, electronic device 400 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 400 and cannot be separated from the electronic device 400.
Embodiments of the present application also provide a computer storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the methods described in fig. 1, 3-9.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A split screen display method, the method comprising:
In response to detecting that at least one application meets a split screen condition, creating at least one split screen area, each split screen area corresponding to one of the applications;
creating a low-definition interface corresponding to each application according to a preset first resolution, and displaying the corresponding low-definition interface in the split screen area corresponding to the application;
and creating a high-definition interface corresponding to each application according to a preset second resolution, and replacing the low-definition interface displayed in each split screen area with the corresponding high-definition interface, wherein the second resolution is larger than the first resolution.
2. The method of claim 1, wherein creating a low-definition interface for each of the applications at a preset first resolution comprises:
searching a resource file corresponding to each application from a preset resource library;
Calculating a corresponding first interface layout parameter according to the first resolution and the resource file corresponding to each application;
And creating the corresponding low-definition interface according to the resource file corresponding to each application and the first interface layout parameter.
3. The method of claim 2, wherein the resource file is at least used to generate all interface elements corresponding to the application, and displaying the corresponding low-definition interface in the split screen area corresponding to the application comprises:
according to the association degree between the interface elements and the main functions of the application, calculating and determining the display priority of each interface element in the low-definition interface, wherein the display priority is positively correlated with the corresponding association degree;
and based on the display priority, displaying the interface elements in the corresponding split screen areas in turn until the low-definition interface is displayed.
4. The method of claim 2, wherein the at least one application has a target application with a starting frequency greater than a set threshold, the resource library at least includes a cache space, the resource files corresponding to the target application are stored in the cache space, and searching the resource files corresponding to each application from a preset resource library includes:
searching the resource file corresponding to the target application from the cache space;
Creating the corresponding low-definition interface according to the resource file and the first interface layout parameter corresponding to each application, including:
and creating the corresponding low-definition interface according to the resource file corresponding to the target application and the first interface layout parameter.
5. A method according to claim 2 or 3, wherein creating a high definition interface corresponding to each of the applications according to a preset second resolution comprises:
Responsive to the low-definition interface of each application being displayed, calculating a corresponding second interface layout parameter according to the second resolution and the resource file corresponding to each application;
And creating the corresponding high-definition interface according to the resource file and the second interface layout parameter corresponding to each application.
6. The method of claim 5, wherein replacing the low-definition interface displayed in each of the split-screen regions with the corresponding high-definition interface comprises:
Responding to the establishment of the high-definition interface, and displaying the high-definition interface on the corresponding split screen area with opacity 0;
Increasing the opacity of the high-definition interface from 0 to 1, and reducing the opacity of the low-definition interface displayed in the corresponding split screen area from 1 to 0;
and deleting the corresponding low-definition interface.
7. The method of claim 6, wherein increasing the opacity of the high definition interface from 0 to 1 and decreasing the opacity of the low definition interface displayed in the corresponding split screen region from 1 to 0 comprises:
Responding to the opacity of the high-definition interface to be 0, and periodically adjusting the opacity of the high-definition interface based on a first preset increment until the opacity is increased to 1, wherein the first preset increment is a natural number which is greater than 0 and less than 1;
and in response to the opacity of the low-definition interface being 1, periodically adjusting the opacity of the low-definition interface based on a second preset increment until the opacity is reduced to 0, wherein the second preset increment is a natural number greater than-1 and less than 0.
8. A split screen display device, the device comprising:
a split screen area creating unit, configured to create at least one split screen area in response to detecting that at least one application meets a split screen condition, where each split screen area corresponds to one application;
The interface creation unit is used for creating a low-definition interface corresponding to each application according to a preset first resolution, and displaying the corresponding low-definition interface in the split screen area corresponding to the application;
The interface creation unit is further configured to create a high-definition interface corresponding to each application according to a preset second resolution, and replace the low-definition interface displayed in each split screen area with the corresponding high-definition interface, where the second resolution is greater than the first resolution.
9. An electronic device comprising at least one processor and a memory coupled to the at least one processor, the at least one processor being configured to implement the steps of the method of claims 1-7 when executing a computer program stored in the memory.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to claims 1-7.
CN202410095030.9A 2024-01-23 2024-01-23 Split screen display method and device, electronic equipment and storage medium Pending CN118012554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410095030.9A CN118012554A (en) 2024-01-23 2024-01-23 Split screen display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410095030.9A CN118012554A (en) 2024-01-23 2024-01-23 Split screen display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118012554A true CN118012554A (en) 2024-05-10

Family

ID=90959929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410095030.9A Pending CN118012554A (en) 2024-01-23 2024-01-23 Split screen display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118012554A (en)

Similar Documents

Publication Publication Date Title
CN112714214B (en) Content connection method, equipment, system, GUI and computer readable storage medium
CN106412691B (en) Video image intercepting method and device
US12019942B2 (en) Multi-screen collaboration method and system, and electronic device
US20230162324A1 (en) Projection data processing method and apparatus
RU2619089C2 (en) Method and device for multiple videos reproduction
US9781380B2 (en) Method, apparatus and terminal for playing multimedia content
WO2022083465A1 (en) Electronic device screen projection method, medium thereof, and electronic device
CN104967865A (en) Video previewing method and apparatus
CN113391743B (en) Display method and electronic equipment
US11558621B2 (en) Selective motion-compensated frame interpolation
WO2020029527A1 (en) Method and apparatus for switching display interface, and electronic device
CN116909945A (en) Memory management method, memory management device, chip module, electronic equipment and storage medium
CN118012554A (en) Split screen display method and device, electronic equipment and storage medium
CN108712556B (en) Frame rate adjusting method and device, terminal equipment and storage medium
CN117631950A (en) Split screen display method and related device
CN113852751B (en) Image processing method, device, terminal and storage medium
CN114155142A (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
CN118012557A (en) Split screen display method and device, electronic equipment and storage medium
CN116700602B (en) Method and equipment for inquiring and expanding service life of memory
CN117270670B (en) Power consumption control method and electronic equipment
WO2024174619A1 (en) Loudspeaker management method and apparatus, medium and electronic device
CN115686645A (en) Starting method and device of operating system, electronic equipment and storage medium
CN117234965A (en) Memory management method and device, electronic equipment and storage medium
CN116339893A (en) High-performance scene identification method and device, electronic equipment and storage medium
CN116521283A (en) Interface display method, device, equipment and storage medium

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