CN116450066A - Split screen display method, electronic device and readable storage medium - Google Patents

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

Info

Publication number
CN116450066A
CN116450066A CN202210005988.5A CN202210005988A CN116450066A CN 116450066 A CN116450066 A CN 116450066A CN 202210005988 A CN202210005988 A CN 202210005988A CN 116450066 A CN116450066 A CN 116450066A
Authority
CN
China
Prior art keywords
window
split
screen
display
interface
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
CN202210005988.5A
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 CN202210005988.5A priority Critical patent/CN116450066A/en
Publication of CN116450066A publication Critical patent/CN116450066A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/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
    • G06F3/1431Digital 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 using a single graphics controller

Landscapes

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

Abstract

The application relates to the technical field of intelligent terminals, in particular to a split screen display method, electronic equipment and a readable storage medium. Wherein the method comprises the following steps: detecting split screen operation of a user in a first interface, wherein the first interface comprises a first window and a second window; changing from a first interface to a second interface, and displaying a first split-screen window and a second split-screen window in the second interface, wherein the first split-screen window is generated by the first window based on corresponding changes, and the second split-screen window is generated by the second window based on corresponding changes; wherein the corresponding change comprises a corresponding change in display scale and/or display position. According to the method, after the mode of the split-screen window is switched to, the character size proportion of the interface elements such as the existence of the content displayed in each split-screen window is coordinated and unified, the look and feel of each split-screen window is improved, and the comfort of a user when browsing the content displayed in each split-screen window is improved.

Description

Split screen display method, electronic device and readable storage medium
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a split screen display method, electronic equipment and a readable storage medium.
Background
With the development of intelligent terminal technology, more and more electronic devices of terminals can meet the requirement of users on using a split screen interface, and a split screen window mode is provided. In the split-screen window mode, the screen of the electronic equipment can display two or more windows, so that a user can conveniently review the content displayed in the windows, and the working efficiency is improved.
However, when the electronic device is switched to the split-screen window mode, the size proportion of interface elements such as characters of the display content in the split-screen window is often disordered, so that the user has poor look and feel. If the content displayed in the split-screen window is more and the font is very small, the user can hardly see the content displayed in the split-screen window. In addition, at present, after the electronic device is switched to the split-screen window mode, the layout such as the position, the size and the like of each split-screen window cannot meet the layout requirement of a user. Therefore, after the electronic device is switched to the split-screen window mode, the user needs to readjust the font and the font size of the display content in each split-screen window, the position and the size of each split-screen window, and the like, so that the user's effort is wasted. Resulting in an poor user experience.
Disclosure of Invention
The embodiment of the application provides a window switching method, electronic equipment and a readable storage medium, which improve the look and feel of each split screen window and are beneficial to improving the comfort of users when browsing the displayed content of each split screen window.
In a first aspect, an embodiment of the present application provides a split screen display method, including: detecting split screen operation of a user in a first interface, wherein the first interface comprises a first window and a second window; changing from a first interface to a second interface, and displaying a first split-screen window and a second split-screen window in the second interface, wherein the first split-screen window is generated by the first window based on the corresponding change, and the second split-screen window is generated by the second window based on the corresponding change; wherein the corresponding change comprises a corresponding change in display scale and/or display position.
After detecting the split screen operation of the user, the electronic device obtains the display proportion and/or the display position of the first window and the second window in the first interface, calculates the display proportion and/or the display position of the first split screen window and the second split screen window to be displayed on the second interface according to the display proportion and/or the display position, and changes the first interface into the second interface according to the calculation. It will be appreciated that the first window and the second window, i.e. the original window in the following, are displayed in split-screen mode with the first split-screen window and the second split-screen window positioned in split-screen mode. It will be appreciated that the first interface may also include a third window in addition to the first window and the second window, and that the second interface may display a third split-screen window, where the third split-screen window is derived from the third window based on the corresponding changes. The display scale may include a display scale of elements within the window, such as a size of text, a font, a line spacing, and the like, and may also include a size scale of the window itself, such as size information of an original window hereinafter. The display position can be understood as position information of the first split-screen window and the second split-screen window in the second interface, namely, position information of the split-screen windows.
According to the method and the device, text parameters of content to be displayed in two or more split-screen windows to be displayed when the mode of the split-screen windows is switched to be acquired, the text parameters comprise information such as fonts, font sizes and line spacing, then the content to be displayed in each split-screen window is adjusted to be displayed by adopting characters with uniform size based on the acquired information such as fonts, font sizes and line spacing of the content to be displayed, the content to be displayed in each split-screen window can be adjusted to be displayed by adopting uniform fonts, so that the character sizes, fonts and line spacing and the like of the content to be displayed in each split-screen window after adjustment are kept uniform, the look and feel of each split-screen window is improved, and comfort when a user browses the content displayed in each split-screen window is improved.
In addition, according to the split screen display method provided by the embodiment of the application, the position information and the size information of the original windows displaying the content browsed by the user can be obtained, and after the operation of switching to the split screen window mode by the user is detected, the electronic equipment can determine the relative position and the window size proportional relation of each original window based on the position information and the size information of each original window, and further determine the relative position and the window size proportional relation of each split screen window corresponding to each original window, so that the layout of each split screen window is kept consistent or similar to that of each original window. Therefore, the layout of the split-screen window after split-screen can meet the layout requirement of a user, and the user experience is improved.
In one possible implementation manner of the first aspect, the changing from the first interface to the second interface, displaying the first split-screen window and the second split-screen window in the second interface includes: acquiring display parameters of the first window and the second window, wherein corresponding changes are determined based on the display parameters of the first window and the second window, and the display parameters are used for describing the display proportion and/or the display position of the windows; determining a corresponding change based on the display parameter; based on the corresponding changes, a first split screen window and a second split screen window are generated and displayed in the second interface.
In a possible implementation of the first aspect described above, the display parameter includes a parameter describing a window and a display scale of an element within the window, the element including text.
It will be appreciated that elements may include, in addition to text, text fonts, pictures, controls (i.e., buttons), frames, and the like displayed in the window.
In a possible implementation of the first aspect, the display parameter includes a text parameter, where the text parameter is used to describe a display scale and/or a display position of the text.
In a possible implementation of the first aspect, determining the corresponding change based on the display parameter includes: determining target text parameters of the first split-screen window and the second split-screen window according to the first text parameters of the first window and the second text parameters of the second window; and determining corresponding changes according to the target text parameters.
In a possible implementation manner of the first aspect, determining the target text parameters of the first split-screen window and the second split-screen window according to the first text parameters of the first window and the second text parameters of the second window includes: acquiring first application attribute information of a first window and second application attribute information of a second window; and determining a target text parameter according to the first application attribute information, the second application attribute information, the first text parameter and the second text parameter.
It can be appreciated that the application attribute information may characterize whether text in the application to which the window corresponds will change with a change in the display scale of the window. Wherein the first text parameter and the second text parameter are used only to describe text parameters of different windows.
In a possible implementation manner of the first aspect, determining the target text parameter according to the first application attribute information, the second application attribute information, the first text parameter and the second text parameter includes: and determining that the target text parameter is matched with the first text parameter or the second text parameter according to the first application attribute information and the second application attribute information.
It will be appreciated that the target text parameter matches the first text parameter when the first application attribute information indicates that the corresponding application will change with a change in the split ratio, and the target text parameter matches the second text parameter when the second application attribute information indicates that the corresponding application will change with a change in the split ratio.
In a possible implementation manner of the first aspect, determining the target text parameter according to the first application attribute information, the second application attribute information, the first text parameter and the second text parameter includes: and determining the target text parameter as a third text parameter which is not matched with the first text parameter and the second text parameter according to the first application attribute information and the second application attribute information.
It can be appreciated that when the first application attribute information and the second application attribute information indicate that the corresponding applications may or may not both change with a change in the split ratio, the target text parameter is a third text parameter different from the first text parameter and the second text parameter.
In a possible implementation of the first aspect, the display parameter further includes window position information; determining a corresponding change based on the display parameter, further comprising: determining first layout parameters of the first split-screen window and the second split-screen window according to the target text parameters, window position information of the first window and window position information of the second window, wherein the first layout parameters are used for determining first display proportion and/or first display position of the first split-screen window and the second split-screen window; and determining corresponding changes according to the first layout parameters.
It will be appreciated that the corresponding changes are determined from the first layout parameters, representing the display scale and display position of the window after splitting, only in relation to the text parameters and window position information in the original window before splitting.
In a possible implementation manner of the first aspect, the first layout parameter includes first split-screen proportion information and first split-screen position information.
In one possible implementation of the first aspect, determining the first layout parameters of the first split-screen window and the second split-screen window according to the target text parameter, the window position information of the first window, and the window position information of the second window includes: determining first split-screen proportion information of a first split-screen window and a second split-screen window according to the target text parameter, the first text parameter and the second text parameter; and determining first split screen position information of the first split screen window and the second split screen window according to the window position information of the first window and the window position information of the second window.
In a possible implementation of the first aspect, the display parameters further include window position information and size information; determining a corresponding change based on the display parameter, further comprising: determining second layout parameters of the first split-screen window and the second split-screen window according to the window position information of the first window, the position information of the second window, the size information of the first window and the size information of the second window, wherein the second layout parameters are used for determining second display proportions and/or second display positions of the first split-screen window and the second split-screen window; and determining corresponding changes according to the second layout parameters.
It will be appreciated that the corresponding changes are determined according to the second layout parameters, representing the display scale and display position of the window after the split screen, in relation to the text parameters in the original window before the split screen, the size information of the window and the window position information.
In a possible implementation of the first aspect, the second layout parameter includes second split-screen ratio information and second split-screen position information.
In one possible implementation of the first aspect, determining the second layout parameters of the first split-screen window and the second split-screen window according to the window position information of the first window, the position information of the second window, the size information of the first window, and the size information of the second window includes: determining second split-screen proportion information of the first split-screen window and the second split-screen window according to the size information of the first window and the size information of the second window; and determining second split screen position information of the first split screen window and the second split screen window according to the window position information of the first window and the position information of the second window.
In a possible implementation of the first aspect described above, the display parameters include window position information and size information.
In a possible implementation of the first aspect, determining the corresponding change based on the display parameter includes: determining third layout parameters of the first split-screen window and the second split-screen window according to the position information of the first window, the position information of the second window, the size information of the first window and the size information of the second window, wherein the third layout parameters are used for determining third display proportion and/or third display position of the first split-screen window and the second split-screen window; and determining corresponding changes according to the third layout parameters.
It will be appreciated that the corresponding changes are determined according to the third layout parameters, representing the display scale and display position of the window after the split screen, in relation to the size information and window position information of the original window before the split screen.
In a possible implementation of the first aspect, the third layout parameter includes third split-screen ratio information and third split-screen position information; determining a third layout parameter of the first split-screen window and the second split-screen window according to the position information of the first window, the position information of the second window, the size information of the first window and the size information of the third window, wherein the third layout parameter comprises the following components: determining third split-screen proportion information according to the size information of the first window and the size information of the third window; and determining the first split screen position information according to the position information of the first window and the position information of the second window.
In one possible implementation manner of the first aspect, the changing from the first interface to the second interface, displaying the first split-screen window and the second split-screen window in the second interface includes: and changing from the first interface to the second interface according to the third split screen position information and the third split screen proportion information, and displaying the first split screen window and the second split screen window in the second interface.
In a possible implementation of the first aspect, the window position information includes window position coordinate information and preset reference position information.
It is understood that the reference position information may be arrangement information of the first split-screen window and the second split-screen window in the second interface. For example, setting the reference position information to determine that the first split-screen window and the second split-screen window are arranged along the height direction of the screen of the electronic device when the distance between the left edge of the first window and the left edge of the second window and the left edge of the screen of the electronic device is less than 1/4 of the width of the electronic device, or else, the first split-screen window and the second split-screen window are arranged along the width direction of the screen of the electronic device by default.
In a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors; one or more memories; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the split screen display method described above.
In a third aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored thereon, which when executed on a computer, cause the computer to perform the split screen display method described above.
In a fourth aspect, embodiments of the present application provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the split screen display method described above.
Drawings
Fig. 1a to 1b are schematic views of an operation procedure interface of a split screen display.
Fig. 2a to fig. 2b are schematic interface diagrams illustrating some split-screen display processes according to embodiments of the present application.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device 200 according to an embodiment of the present application.
Fig. 4 is a schematic implementation flow chart of a split screen display method according to an embodiment of the present application.
Fig. 5a to 5f are schematic interface diagrams illustrating some split-screen display processes according to embodiments of the present application.
Fig. 6 is an interface schematic diagram of some split-screen display processes according to an embodiment of the present application.
Fig. 7a to 7i are schematic views illustrating an implementation flow of another split screen display method according to an embodiment of the present application.
Fig. 8 is a schematic flow chart of an implementation of another split screen display method according to an embodiment of the present application.
Fig. 9a to 9f are schematic interface diagrams illustrating some split-screen display processes according to embodiments of the present application.
Fig. 10 is a block diagram of a software architecture of an electronic device 200 according to an embodiment of the present application.
Detailed Description
Fig. 1a to 1b are schematic interface diagrams illustrating a process of switching some electronic devices to a split-screen window mode.
The user opens a plurality of display windows on the touch screen of the notebook 100, and in the process of switching the user operation of the notebook 100 to the split-screen window mode, for example, a preset split-screen operation, that is, a finger joint sliding operation, can be performed on the touch screen of the multi-window interface displayed by the notebook 100. At this time, the notebook 100 may display the display interface 101 shown in fig. 1 a.
As shown in fig. 1a, the left portion of the display interface 101 displays a PPT document window 102 and the right portion of the display interface 101 displays a PDF document window 104.
When the user performs the finger joint sliding operation on the display interface 101 shown in fig. 1a and releases the finger joint, the notebook 100 detects the finger joint sliding operation of the user and enters the split-screen window mode, and then the split-screen interface 104 shown in fig. 1b may be displayed. At this time, the display mode of the notebook 100 is switched to the split-screen window mode.
As shown in FIG. 1b, the left window 105 of the split screen interface 104 displays the content in the PPT document window, and the right window 106 of the split screen interface 104 displays the content in the PDF document window.
It can be seen that the text size of the content displayed in the left window 105 shown in fig. 1b is significantly larger than the text size of the content displayed in the right window 106, and the content displayed in the right window 106 is dense, so that the user can hardly see the content displayed in the right window 106 without adjusting the font size of the content displayed in the right window 106 and the size of the right window 106.
In order to solve the problem that after the electronic devices such as the notebook 100 are switched to the split-screen window mode, the text size proportion of the interface elements is disordered, or the fonts of the content displayed in some windows are too small, so that the user experience is poor, the embodiment of the application provides a split-screen display method. Specifically, the method includes the steps that text parameters of content to be displayed in two or more split-screen windows to be displayed when the mode is switched to the split-screen window mode are collected, the text parameters include information such as fonts, font sizes and line spacing, then the content to be displayed in each split-screen window is adjusted to be displayed by adopting characters with uniform size based on the collected information such as fonts, font sizes and line spacing of the content to be displayed, the content to be displayed in each split-screen window can also be adjusted to be displayed by adopting uniform fonts, so that the size, the fonts, the line spacing and the like of the characters to be displayed in each split-screen window after adjustment are kept uniform, the look and feel of each split-screen window is improved, and comfort when a user browses the content displayed in each split-screen window is facilitated.
In addition, according to the split screen display method provided by the embodiment of the application, the position information and the size information of the original windows displaying the content browsed by the user can be obtained, and after the operation of switching to the split screen window mode by the user is detected, the electronic equipment can determine the relative position and the window size proportional relation of each original window based on the position information and the size information of each original window, and further determine the relative position and the window size proportional relation of each split screen window corresponding to each original window, so that the layout of each split screen window is kept consistent or similar to that of each original window. Therefore, the layout of the split-screen window after split-screen can meet the layout requirement of a user, and the user experience is improved.
Fig. 2a to 2b are further interface diagrams illustrating a process of switching some electronic devices to a split-screen window mode according to embodiments of the present application.
In the operation process of switching the notebook 200 to the split window mode, the notebook 200 first displays the display interface 201 shown in fig. 2 a. The notebook 200 applies the split screen display method provided in the embodiment of the present application. The specific process of operating the notebook 200 by the user and the display interface 201 displayed by the notebook 100 during the operation may be referred to as shown in fig. 1a and described in the related description, and will not be described herein again.
As shown in fig. 2a, the display interface 201 is the same as the display interface shown in fig. 1a, and includes a PPT document window 202 of the display interface 201 and a PDF document window 203 of the display interface 201, which are not described herein.
After the user performs the finger joint sliding operation on the display interface 201 shown in fig. 2a and releases the finger joint, the notebook 200 may display the split screen interface 204 shown in fig. 2b, and at this time, the display mode of the notebook 200 is switched to the split screen window mode.
As shown in FIG. 2b, the content in the PPT document window is displayed in the left portion 205 of the split screen interface 204 and the content in the PDF document window is displayed in the right portion 206 of the split screen interface 204. It can be seen that the font sizes of the content displayed in the left portion 205 and the right portion 206 of the split screen interface 204 are identical, for example, the font size is unified to be 8pt, and the font may be unified to be Song body, and the like. In this manner, the user may look better when browsing the content displayed in the two side windows on the split screen interface 204 shown in FIG. 2b than the split screen interface 104 shown in FIG. 1 b.
As an example, in the process of switching the display mode of the notebook 200 to the split-screen window mode, the notebook 200 may collect the word size 10pt of the content to be displayed in the cut PPT document window (i.e., the original window) and the word size 6pt of the content to be displayed in the PDF document window (i.e., the other original window), and then may adjust the word sizes of the content to be displayed in each split-screen window to be uniform 8pt for display after switching to the split-screen window mode based on the collected word sizes 10pt and 6 pt.
For another example, the notebook 200 may also obtain two original windows: the position information and the size information of the PPT document window 202 and the PDF document window 203, the relative position between the PPT document window 202 and the PDF document window 203 may be determined based on the position information, and the size ratio between the two original windows may be determined to be 4 based on the size information: 3. based on this, the notebook 200 may determine the relative position and the window size ratio relationship between the two split-screen windows when switching to the split-screen window mode, that is, the PPT document window is located in the left portion 205 of the split-screen interface, the PDF document window is located in the right portion 206, and the window display ratio of the PPT document window and the PDF document window is consistent with that before the split-screen. That is, the embodiment of the application can improve the user's look and feel, improve the comfort of users browsing the content displayed by each split-screen window, and simultaneously can reasonably adjust the layout of each split-screen window on the split-screen interface, thereby meeting the layout requirement of users and being beneficial to improving the user experience.
It will be appreciated that the split screen display method provided by the embodiments of the present application may be applied to electronic devices including, but not limited to, laptop computers (including the above-described notebook 200), desktop computers, tablet computers, cell phones, head mounted displays, mobile email devices, car set devices, portable game consoles, reader devices, televisions with one or more processors embedded or coupled therein, or other electronic devices capable of accessing a network.
Illustratively, fig. 3 shows a hardware architecture diagram of an electronic device.
As shown in fig. 3, the electronic device 200200 may include a processor 110, an external memory interface 120, an internal memory 121, a sensor module 180, a display screen 190, and the like. The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180E, a touch sensor 180K, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 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 (neural-network processing unit, 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 110 for storing instructions and data. In the embodiment of the present application, relevant instructions and data for executing the split screen display method of the present application may be stored in the memory for being called by the processor 110, and the processor 110 may control execution of each step of implementing the split screen display method through the controller, and specific implementation processes will be described in detail below, which will not be repeated here.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) 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 I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 200.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as the display screen 190. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. Processor 110 and display screen 190 communicate via a DSI interface to implement the display functionality of electronic device 200.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 display screen 190, the sensor module 180, etc. The GPIO interface may also be configured as an I2C interface, MIPI interface, etc.
It should be understood that the connection relationships between the modules illustrated in the embodiments of the present application are only illustrative, and do not limit the structure of the electronic device 200. In other embodiments of the present application, the electronic device 200 may also use different interfacing manners, or a combination of multiple interfacing manners, as in the above embodiments.
The electronic device 200 implements display functions through a GPU, a display screen 190, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change window display information.
The display screen 190 is used to display images, videos, and the like. The display screen 190 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 200 may include 1 or N display screens 190, N being a positive integer greater than 1.
The external memory interface 120 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 200. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code that includes instructions. The internal memory 121 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 200 (e.g., audio data, phonebook, etc.), and so on. 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 (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
In this embodiment of the present application, the internal memory 121 may store an execution instruction for implementing the split-screen display method of the present application, so that the processor 110 may invoke the split-screen display method of the present application, so that the electronic device 200 may complete displaying the document content of each split-screen window in a uniform text size under the split-screen window mode, and may also enable the layout of the split-screen window to be consistent with the corresponding original window layout, thereby facilitating improvement of the comfort of the user viewing the displayed content on each split-screen window, and also may satisfy the layout requirement of the user on each split-screen window, and improve the user experience.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 190. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 200 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 190, the electronic apparatus 200 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 200 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 200 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 190, and the touch sensor 180K and the display screen 190 form a touch screen, which is also referred to as a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the display screen 190. In this embodiment of the present application, for example, a touch screen formed by the touch sensor 180K and the display screen 190 may detect a user's sliding operation, and along with the user's sliding operation, the touch screen may display a corresponding interface change, for example, a drag operation of the user drags an object window of the drag operation to a split-screen hot zone, and then the touch screen may display the object window of the drag operation of the user to be displayed in a split-screen mode window, which will be described in detail below, and will not be described herein. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 200 at a different location than the display 190.
Based on the structure of the electronic device 200 shown in fig. 3, the implementation process of the split screen display method according to the embodiment of the present application will be described in detail below with reference to the accompanying drawings. In the following, by taking the electronic device 200 as a notebook as an example, a specific implementation procedure of the split screen display method provided in the embodiment of the present application is described by way of example.
Example 1
The following describes in detail the specific process of the notebook 200 implementing the split screen display method according to the embodiments of the present application with reference to the flowchart and the related interface schematic diagrams.
Fig. 4 is a schematic flow chart of a split screen display method according to an embodiment of the application. In the embodiment of the present application, the execution bodies of the steps shown in fig. 4 are all notebooks 200, and in order to avoid repetitive description, the execution bodies of the steps will not be described in the following description of the execution contents of the steps.
As shown in fig. 4, the flow includes the steps of:
401: and detecting the operation of switching to the split-screen window mode by the user, and acquiring display parameters of the original window. The display parameters include text parameters of the content displayed by the original window, such as font, word size, line spacing, and the like, and the position and size of the original window displayed on the screen.
Illustratively, the user may operate the screen of the notebook 200 to perform an operation of switching to the split-screen window mode. When the notebook 200 detects a switching operation by the user, the display parameters of the respective original windows currently being displayed may be acquired. The fonts, the font sizes, the line spacing and the like of the contents displayed by each original window can be default settings when the corresponding contents are opened by the original window, can be setting results of users according to personal preferences, can be the same in the fonts, the font sizes and the like in each original window, and can also have larger differences. In addition, it can be understood that the position of each original window currently displayed by the notebook 200 may be a position after the user performs layout according to his browsing habit, and the size of each original window may also be the size of the window after adjustment according to how much content is displayed by the corresponding original window, or how important the content is displayed by the user. Thus, the position and size of the original window may embody the layout requirements of the user to some extent.
It can be appreciated that the operation of the user to switch to the split window mode may be, for example, the operation (1) in fig. 2a, that is, the operation of the user to slide the finger joints downward from the top of the touch screen of the notebook 200, for example, other sliding operations of the user on the touch screen of the notebook may also be mentioned. In some embodiments, when the user adds a split-screen mode shortcut to the desktop of the notebook 200, the user switches to the split-screen window mode, which may be clicking the split-screen mode shortcut in the desktop shortcut of the notebook 200. In some embodiments, if the user sets a split shortcut key or a split shortcut combination on the notebook 200, the user switches to the split window mode, which may be a click of the split shortcut key or the split shortcut combination, which is not limited herein. The interface change corresponding to the operation of sliding down the finger joints on the touch screen of the notebook 200 by the user may be referred to as shown in fig. 2a to 2b and described in the related description, and will not be described herein again.
402: and determining the font and font size information in the display parameters of each split-screen window to be displayed according to the font and font size information in the display parameters of the original window.
For example, the process of determining the font and font size information in the display parameters of each split-screen window to be displayed in step 402 may be that the notebook 200 performs a quick screen test when loading the split-screen interface of the split-screen window mode, so as to obtain a target font and font size capable of enabling the display ratio of each split-screen window to be coordinated in the split-screen window mode, and then uses the target font and font size as the font and font size information in the display parameters of each split-screen window to be displayed.
It will be appreciated that in some embodiments, the target font, font size information may be consistent with the font, font size information in at least one of the plurality of original window display parameters. For example, after the notebook acquires the font sizes and font information of the two original windows in fig. 2a, the PPT document window 202 and the PDF document window 203, the font and the font size information of the PPT document window 202 may be used as target font and font size information, and the font size information of the PDF document window 203 may also be used as target font and font size information. In some embodiments, the target font, font size information may be font, font size information in an original window display parameter that is different from any of the plurality of original windows. For example, in the split screen interface shown in fig. 2b, the font size information in the left side window 205 and the right side window 206 is different from the font size information in the PPT document window 202 and the PDF document window 203 in the display interface shown in fig. 2 a.
403: and determining the layout parameters of the original window according to the window position and the size information in the display parameters of the original window. The layout parameters include the relative position of the original window, the size proportion relation of the original window, and the like.
For example, the layout parameters of the original windows may be that the notebook 200 obtains coordinates of four vertices of the original windows, and then determines the relative positions of the two original windows according to the obtained coordinates of the vertices of the plurality of original windows, where the relative positions may include only the positional relationship of the two original windows, such as a left-right relationship and a top-bottom relationship, and may include the offset of the positions of the two original windows, such as a distance offset by 10 pixels in the left direction. It can be understood that the dimensional proportion of the original window may be a dimensional proportion of the original window in one direction, for example, a dimensional proportion of the original window in a width direction (horizontal direction) of the notebook 200, a dimensional proportion of the original window in a height direction (vertical direction) of the notebook 200, or an area proportion of the original window, for example, after the notebook 200 obtains the position coordinates of four vertices of the original window, an area of the original window is calculated, and then a ratio of areas of a plurality of original windows is obtained as the dimensional proportion of the original window.
404: and determining the layout parameters of each split-screen window to be displayed based on the determined layout parameters of the original window.
Illustratively, the layout parameters of the respective split-screen windows to be displayed may be kept consistent with the relative positions, in dimensional proportion relation, and the like in the layout parameters of the original windows. For example, in the split screen interface 204 shown in fig. 2b, the relative position, the dimensional proportionality relation, and the like of the PPT document window in the left window 205 and the PDF document window in the right window 206 are kept identical to those of the PPT document window 202 and the PDF document window 203 shown in fig. 2 a.
In some embodiments, the split-screen windows to be displayed may be sequentially arranged in the width direction or the height direction of the notebook 200. In some embodiments, a portion of the split-screen windows to be displayed may be arranged along the height direction of the notebook 200, and the portion of the split-screen windows serves as a combined split-screen window, and the rest of the split-screen windows are arranged along the width direction of the notebook 200. This will be further described below in connection with the interface diagrams.
405: and displaying each split-screen window on the split-screen interface based on the determined font and font size information of each split-screen window and the layout parameters of each split-screen window.
Illustratively, in the process of steps 401 to 404, after the user operates the screen of the notebook 200 to switch to the split-screen window mode, for example, after the user performs the finger joint sliding operation on the display interface 201 shown in fig. 2a, the processor 110 of the notebook 200 executes the method instructions corresponding to steps 401 to 405 in the process of displaying the interface shown in fig. 2 b. After the notebook 200 calculates the determined fonts and font sizes of the split screen windows and the layout parameters of the split screen windows, the split screen interface shown in fig. 2b is rendered by the graphics processor, and the display screen 190 is controlled to display.
Fig. 5a to 5f are schematic views illustrating some other original window layouts corresponding to some interfaces during switching to the split-screen window mode according to the embodiments of the present application.
Please refer to the interface change diagrams of the notebook 200 shown in fig. 5a to 5 b. In some embodiments, after the user operates the notebook to perform the split window mode, the split windows to be displayed may be sequentially arranged along the width direction of the notebook 200.
Specifically, the user includes three application windows in the display interface 510 of the notebook 200: application window 511, application window 512, and application window 513. Wherein, the font size 12pt in the application window 511, the font size 8pt in the application window 512, and the font size 14pt in the application window 513. Meanwhile, the user adjusts the positions and sizes of the three windows according to the current use requirement, as shown in fig. 5 a. After the user performs the finger joint sliding operation on the touch screen of the notebook 200, a split screen interface 520 of the notebook is shown in fig. 5 b. The split screen interface 520 in fig. 5b includes an application interface 521, an application interface 522, and an application interface 523. It can be seen that in fig. 5b, three application windows are arranged along the width direction of the notebook 200, and the font sizes and font information of the respective split screen windows are identical.
Please refer to the interface change diagrams of the notebook 200 shown in fig. 5c to 5 d. In some embodiments, after the user operates the notebook to perform the split-screen window mode, a portion of the split-screen windows in each of the split-screen windows to be displayed may be arranged along the height direction of the notebook 200, and the portion of the split-screen windows is used as a combined split-screen window and is arranged along the width direction of the notebook 200 with the rest of the split-screen windows.
Illustratively, when the left boundary of a part of the original windows is located in the set threshold range, the split screen windows corresponding to the part of the original windows are distributed along the height direction of the notebook 200, and the split screen windows serving as the hybrid split screen windows and the rest of the split screen windows are distributed along the width direction of the notebook 200. For example, the set threshold range is 1/4 of the distance from the left side of the screen of the notebook 200 to the screen of the notebook 200, and for three original windows, wherein the distance between the left boundary of the original window and the left side of the screen of the notebook 200 is 1/4 of the distance between the two split-screen windows and the screen of the notebook 200, the two split-screen windows are distributed along the height direction of the notebook 200, and the two split-screen windows are distributed as a mixed split-screen window and the remaining one split-screen window along the width direction of the notebook 200.
As shown in fig. 5c, the user includes three application windows in the display interface 530 of the notebook 200: application window 531, application window 532, and application window 533. Wherein, the font size 12pt in the application window 531, the font size 8pt in the application window 532, and the font size 14pt in the application window 533. Meanwhile, the user adjusts the positions and sizes of the three windows according to the current use requirement, as shown in fig. 5 c. After the user performs the finger joint sliding operation shown in fig. 5a on the touch screen of the notebook 200, a split screen interface 540 of the notebook is shown in fig. 5 d. The split screen interface 540 in fig. 5d includes an application interface 541, an application interface 542, and an application interface 543. It can be seen that in fig. 5d, three application windows are arranged along the width direction of the notebook 200, and the font sizes and font information of the respective split screen windows are identical.
Please refer to the interface change diagrams of the notebook 200 shown in fig. 5e to 5 f. In some embodiments, after the user operates the notebook to perform the split window mode, the split windows to be displayed may be sequentially arranged along the height direction of the notebook 200.
For example, when the left boundaries of the plurality of original windows are all within the set threshold range, the plurality of split-screen windows may be aligned in the height direction of the notebook 200. For example, if the set threshold range is 1/4 of the distance from the left side of the screen of the notebook 200, then when the distance between the left boundaries of the plurality of original windows and the left side of the screen of the notebook 200 is 1/4 of the distance between the plurality of split-screen windows and the left side of the screen of the notebook 200, the plurality of split-screen windows are distributed along the height direction of the notebook, and the positions of the plurality of split-screen windows can be determined according to the relative positions thereof.
As shown in fig. 5e, the user includes three application windows in the display interface 550 of the notebook 200: application window 551, application window 552, and application window 553. Wherein, the font size 12pt in the application window 551, the font size 8pt in the application window 552, and the font size 14pt in the application window 553. Meanwhile, the user adjusts the positions and sizes of the three windows according to the current use requirement, as shown in fig. 5 e. After the user performs the finger joint sliding operation shown in fig. 5a on the touch screen of the notebook 200, a split screen interface 560 of the notebook 200 is shown in fig. 5 f. The split screen interface 560 in fig. 5f includes an application interface 561, an application interface 562, and an application interface 563. It can be seen that in fig. 5f, three application windows are arranged along the width direction of the notebook 200, and the font sizes and font information of the respective split screen windows are identical.
In the foregoing embodiment 1, the split-screen display method implemented by the notebook 200 is introduced, and in the process of switching the electronic device such as the notebook to the split-screen window mode, information such as a font, a font size and the like of the content to be displayed in each split-screen window can be adjusted, so that the text size, the font, the line spacing and the like adopted by the content to be displayed in each split-screen window after adjustment are kept uniform, thereby improving the look and feel of each split-screen window, and being beneficial to improving the comfort of browsing the content displayed in each split-screen window by a user. And the layout parameters of the split-screen windows to be displayed are determined by acquiring the position and size proportion relation of the original windows, so that the layout of each split-screen window is consistent or similar to the layout of each original window, the layout of the split-screen windows after split-screen can meet the layout requirements of users, and the user experience is improved. Another procedure for implementing the split screen display method of the present application when the electronic device 200 is a tablet computer is described below through another embodiment 2.
Example 2
The following describes in detail a specific process of the tablet pc 200 implementing the split screen display method according to the embodiments of the present application with reference to the flowchart and the related interface schematic diagrams.
Fig. 6 is a schematic flow chart of a split screen display method according to an embodiment of the application. In the embodiment of the present application, the execution bodies of the steps shown in fig. 6 are all tablet computers 200, and in order to avoid repetitive description, the execution bodies of the steps will not be described again when describing the execution content of the steps.
As shown in fig. 6, the flow includes the steps of:
601: and detecting the operation of switching to the split-screen window mode by the user, and acquiring display parameters of the original window. Step 601 is the same as step 401, and will not be described herein.
602: and determining the font and font size information in the display parameters of each split-screen window to be displayed according to the font and font size information in the display parameters of the original window.
It will be appreciated that the method for determining the font and font size information in the display parameters of each split-screen window to be displayed in step 602 may be determined according to whether the text in the original window with the display content changes with the display proportion of the split-screen window. When judging whether the characters in the original window change along with the change of the display proportion of the split screen window, the characters can be determined according to the attribute information of the application corresponding to the original window. For example, for software such as pdf preview, powerpoint, the word size information of the text displayed in the original window will change with the display ratio of the split screen window, and for software such as word, screen, the word size information of the text displayed in the original window will not change with the display ratio of the split screen window. The determination method of the target font and the font size is different in combination with different application scenarios, and will be specifically developed below.
603: and determining layout parameters of the to-be-displayed split-screen windows based on the determined fonts and font size information of the split-screen windows and the positions of the original windows.
It will be appreciated that the difference between the step 603 and the steps 403 and 404 is that the method for determining layout parameters of each split screen window is different, and the step 603 will be further described below.
For example, after the font and font size information of each split-screen window are determined, the determined change proportion of the font size of each split-screen window to the font size in the corresponding original window can be calculated, and then the proportional relation of a plurality of change proportions is calculated and used as the size proportional relation of the split-screen window. Then, according to the position of the original window, the position relation of the original window is determined, and then the position relation of each split screen window is determined according to the position relation of the original window. And finally, taking the calculated size proportion relation of the split screen energy penetrating buckle and the position relation of each split screen window as layout parameters of each split screen window. It will be understood that the present embodiment is different from embodiment 1 in that the dimensional proportionality relation of each split-screen window is determined according to the font size of the content to be displayed of the original window. The specific calculation process of the size proportion relation of the split screen window will be described below in conjunction with the interface diagram, and will not be described here again.
604: and displaying each split-screen window on the split-screen interface based on the determined font and font size information of each split-screen window and the layout parameters of each split-screen window. Step 604 is the same as step 405, and is not described herein.
The interface changes involved in the above steps 602 and 603 are described below in connection with fig. 7a to 7i, taking two original windows as examples, in different application scenarios.
Fig. 7a to 7i are schematic interface diagrams illustrating a manner in which the tablet pc 200 switches to a corresponding interface of a split-screen window mode in response to a split-screen operation of a user according to an embodiment of the present application.
Fig. 7a to 7c show interface diagrams of scenes in which the characters in the original window are not changed with the display scale of the split-screen window.
The WORD document window 710 is opened full screen on the touch screen of the tablet 200. Referring to operation (2) shown in fig. 7a, the user may perform a left-sliding operation on the right side edge of the screen of the tablet pc 200, and the tablet pc 200 may display the side toolbar 730 in response to the left-sliding operation of the user. As shown in fig. 7b, in a side toolbar 730 displayed on the screen of the tablet 200, an application icon of at least a portion of the applications of the tablet 200 or a thumbnail of at least a portion of the application windows that have been opened in the background may be displayed. Referring to operation (3) shown in fig. 7b, the user may drag-operate left by pressing the application icon 731 or the thumbnail 720 of the WORD document window long on the side toolbar 730 shown in fig. 7 b. When the thumbnail 720 of the WORD document window leaves the side toolbar 730, the user releases his finger, and at this time, the tablet pc 200 executes the split-screen display method in this embodiment, and displays the split-screen interface 711 shown in FIG. 7 c. The left portion of the split screen interface 711 shown in FIG. 7c includes a WORD document window 710 therein, and the right portion of the split screen interface 711 includes a WORD document window 730 therein.
Illustratively, the tablet pc 200 may first obtain the document attribute information of the original window WORD document window 730 corresponding to the WORD document window 710 and the thumbnail 720 of the WORD document window, and determine that the text of the WORD document window 710 and the WORD document window 730 will not change along with the change of the display scale of the split screen window. The WORD size F1 of WORD document window 710 and the WORD size F2 of WORD document window 730 are then collected, and a target WORD size F' is determined based on the WORD sizes F1 and F2. The target WORD size F' may be enlarged and reduced by integrally enlarging and reducing the WORD document window 710 and the WORD document window 730, respectively, so that the WORD sizes of the two windows are consistent, and the combined window size matches the screen size of the tablet pc 200. And then when the WORD sizes in the WORD document window 710 and the WORD document window 730 are both determined to be the WORD size F', the scale is enlarged and reduced, and then the two scales are compared, and the obtained ratio is the size proportional relation of each split screen window. Then, the tablet pc 200 determines the relative position of the split-screen window according to the positional relationship between the WORD document window 710 and the WORD document window 730, to obtain the interface shown in fig. 7 c. The positional relationship between the WORD document window 710 and the WORD document window 730 may be the relative positional relationship between the two windows after the user performs the operation (3).
Illustratively, the calculation process of the size proportional relation of the split screen window is described with a word size F1 of 6pt, a word size F2 of 10pt, and a determined target word size F' of 8 pt. After the WORD size in the WORD document window 710 is changed from 6pt to 8pt, the WORD size is enlarged by 1/3, and after the WORD size in the WORD document window 730 is changed from 10pt to 8pt, the WORD size is reduced by 1/5, correspondingly, the display proportion in the WORD document window 710 needs to be enlarged by 1/3, and the display proportion in the WORD document window 730 needs to be reduced by 1/5, and the ratio of the magnification of the WORD document window 710 to the reduction of the WORD document window 730 is 1/3: 1/5=5: 3, the dimensional proportionality of PPT WORD document window 710 to WORD document window 730 is 5:3.
it will be appreciated that in the split screen interface 711 of fig. 7c, the WORD sizes in the WORD document window 710 and the WORD document window 730 are both F', and the WORD sizes in the WORD document window 710 and the WORD document window 730 are both changed compared with those before split screen, so that the proportion of the two split screen windows is coordinated in the split screen window mode.
It will be appreciated that in some embodiments, when the characters in the original window do not change with the display proportion of the split screen window, the tablet pc 200 may perform a character size reading instruction by connecting the processor to the system character size interface of the original window to be displayed, and read the original window The system word size of the corresponding application. Different operating systems, corresponding word size read instructions are different. For android, for example TM The operating system may execute the getFontSize () function to obtain the system word size of the application corresponding to the original window to be displayed. For example, for windows operating systems, the following instructions may be executed to obtain the system word size of the application corresponding to the original window to be displayed:
TEXTMETRIC tm;
CClientDC dc(this);
dc.GetTextMetrics(&tm)。
fig. 7d to 7f show interface diagrams of scenes in which the text in only one original window varies with the display scale of the split-screen window.
As shown in fig. 7d, the interface displayed by the touch screen of the tablet pc 200 and the operation performed by the user are the same as those of fig. 7a, and will not be described herein. As shown in fig. 7b, in a side toolbar 730 displayed on the screen of the tablet 200, an application icon of at least a portion of the applications of the tablet 200 or a thumbnail of at least a portion of the application windows that have been opened in the background may be displayed. Referring to the operation shown in fig. 7d, the user may drag the thumbnail 740 of the application icon or PDF document window on the side toolbar 730 shown in fig. 7d to the left. When the thumbnail 740 of the PDF document window leaves the side toolbar 730 and the user releases his finger, the tablet pc 200 executes the split-screen display method in this embodiment to display the split-screen interface 712 shown in fig. 7 f. The left portion of the split screen interface 712 shown in FIG. 7f includes a WORD document window 710 and the right portion of the split screen interface 712 includes a PDF document window 741.
For example, the tablet pc 200 may first obtain the document attribute information of the WORD document window 710 and the original window WORD document window 741 corresponding to the thumbnail 740 of the WORD document window, determine that the WORD document window 710 will not change with the change of the display proportion of the split-screen window, and the PDF document window 741 will change with the change of the display proportion of the split-screen window. The WORD size F1 of the WORD document window 710 and the WORD size F3 of the PDF document window 741 are then collected, and the WORD size F1 is determined to be the target WORD size. The scaling required when the WORD size F3 of the PDF document window 741 becomes the target WORD size F1 is calculated, and then the scaling is compared with the scaling 1 of the WORD size of the WORD document window 710, and the obtained ratio is used as the size scaling relationship of each split-screen window. Then, the tablet pc 200 determines the relative position of the split screen window according to the positional relationship between the WORD document window 710 and the PDF document window 741, to obtain the interface shown in fig. 7 f.
It will be appreciated that, in the split screen interface 712 of fig. 7F, the WORD size in the WORD document window 710 and the PDF document window 741 are both F1, and the WORD size in the PDF document window 741 is changed compared to that before split screen, so that in the split screen window mode, the proportion of the two split screen windows is coordinated.
It will be appreciated that in some embodiments, when the text in the original window does not change with the display scale of the split-screen window, the method of fig. 7a to 7c may be used to obtain the font size of the original window. When the text in the original window changes with the display proportion of the split screen window, the text parameters, such as the word size, in the content to be displayed in the original window can be obtained, the tablet computer 200 can firstly obtain the image information of the original window, and then the screen image obtained by the tablet computer 200 can be obtained by recognition of optical character recognition (Optical Character Recognition, OCR). Specifically, the OCR of the tablet pc 200 acquires an image file of an original window to be displayed, then performs text collection and layout information collection on the acquired image file, and then performs text recognition on text characters capable of reflecting the image file in combination with the collected layout information and the collected characters, thereby acquiring the character sizes of the text characters. The text characters can be understood as part of characters which can reflect the fonts and the character sizes of most characters in the image file. The layout information can be understood as text in the image, typesetting information of the image, and the like.
Fig. 7g to 7i show interface diagrams of scenes in which characters in two original windows are changed according to display proportions of split-screen windows.
As shown in fig. 7g, the PDF document window 750 displayed full screen on the touch screen of the tablet pc 200 is displayed, and after the user performs the operation shown in fig. 7a, the interface shown in fig. 7h is obtained. As shown in fig. 7h, in the side toolbar 730 displayed on the screen of the tablet 200, an application icon of at least a portion of the applications of the tablet 200 or a thumbnail of at least a portion of the application windows that have been opened in the background may be displayed. Referring to the operation shown in fig. 7h, the user may drag the thumbnail 760 of the application icon or PDF document window to the left on the side toolbar 730 shown in fig. 7 h. When the thumbnail 760 of the PDF document window leaves the side toolbar 730, the user releases his finger, and at this time, the tablet pc 200 performs the split-screen display method in this embodiment, and displays the split-screen interface 713 shown in fig. 7 i. A PDF document window 750 is included in the left portion of the split screen interface 713 shown in fig. 7i, and a PDF document window 761 is included in the right portion of the split screen interface 713.
Illustratively, the tablet pc 200 may first obtain the document attribute information of the PDF document window 761 corresponding to the PDF document window 750 and the thumbnail 760 of the PDF document window, and determine that both the PDF document window 761 and the PDF document window 750 may change along with the change of the display scale of the split screen window. The WORD size F4 of the WORD document window 710 and the WORD size F5 of the PDF document window 741 are then collected, and a target WORD size f″ is determined based on the WORD sizes F4 and F5. The target word size f″ can be obtained by respectively enlarging or reducing the window display proportion of the PDF document window 750 and the PDF document window 761, so that the word sizes of the two windows are coordinated and the content is convenient for the user to read. The scaling is needed when the font sizes of the PDF document window 750 and the PDF document window 761 are changed to the target font size F', and then the two scaling are compared, and the obtained ratio is used as the size ratio relation of each split screen window. Then, the tablet pc 200 determines the relative position of the split screen window according to the positional relationship between the PDF document window 750 and the PDF document window 761, to obtain the interface shown in fig. 7 f.
It will be appreciated that in the split screen interface 713 of fig. 7i, the font sizes in the PDF document window 750 and the PDF document window 761 are both F ", and are changed from those before split screen, so that in the split screen window mode, the proportion of the two split screen windows is coordinated.
The above embodiment 2 describes a method for implementing a split screen display by using a tablet pc 200, where the method for implementing a split screen display provided in this embodiment can collect text parameters of content to be displayed in two or more split screen windows to be displayed when switching to a split screen window mode, including information such as a font, a font size, a line spacing, and the like, and then adjust content to be displayed in each split screen window to display by using a uniform size text and a uniform font based on the collected information such as the font, the font size, the line spacing, and the like of the content to be displayed in each split screen window, so that the adjusted text size, font size, line spacing, and the like of the content to be displayed in each split screen window remain uniform, thereby improving the look and feel of each split screen window, and facilitating improvement of comfort of browsing content displayed in each split screen window by a user. Another procedure for implementing the split screen display method of the present application when the electronic device 200 is a notebook will be described below with reference to another embodiment.
Example III
The following describes in detail the specific process of the notebook 200 implementing the split screen display method according to the embodiments of the present application with reference to the flowchart and the related interface schematic diagrams.
Fig. 8 is a schematic flow chart of a split screen display method according to an embodiment of the application. In the embodiment of the present application, the execution bodies of the steps shown in fig. 8 are all notebooks 200, and in order to avoid repetitive description, the execution bodies of the steps will not be described in the following description of the execution contents of the steps.
As shown in fig. 8, the flow includes the steps of:
801: and detecting the operation of switching to the split-screen window mode by the user, and acquiring display parameters of the original window. Step 801 is the same as step 401, and will not be described herein.
802: and determining the layout parameters of the original window according to the window position and the size information in the display parameters of the original window. Step 802 is the same as step 403, and will not be described herein.
803: and determining the layout parameters of each split-screen window to be displayed based on the determined layout parameters of the original window. Step 803 is the same as step 404, and will not be described here.
804: and displaying each split-screen window on the split-screen interface based on the layout parameters of each split-screen window.
It can be understood that in step 804, each split window is split-screen displayed on the notebook according to the determined layout parameters of each split window, and it can be understood that the split-screen display method in this embodiment does not adjust the information such as the font, the font size, the line spacing and the like in the whole split window, but determines the layout parameters of the split windows according to the position and the dimensional proportion relation of the original window before split-screen.
As shown in fig. 9a to 9f, some interface changes of the split-screen display method in this embodiment are shown.
Please refer to the interface variation diagrams of the notebook 200 shown in fig. 9a to 9 b. In some embodiments, after the user operates the notebook to perform the split window mode, the split windows to be displayed may be sequentially arranged along the width direction of the notebook 200.
As shown in fig. 9a, the display interface 910 of the notebook 200 is similar to the display interface shown in fig. 5a, including an application window 911, an application window 912, and an application window 913. The user adjusts the positions and sizes of the three windows according to the current use requirement, as shown in fig. 9 a. After the user performs operation (1) as shown in fig. 2a on the touch screen of the notebook 200, the notebook 200 performs the split screen display method in this embodiment, and the split screen interface 920 of the notebook is shown in fig. 9 b. The split screen interface 920 in fig. 9b includes an application interface 921, an application interface 922, and an application interface 923. It can be seen that in fig. 9b, the three application windows are similar to the interface shown in fig. 5b, but the size scaling of the split screen windows is different from fig. 5 b.
Please refer to the interface change diagrams of the notebook 200 shown in fig. 9c to 9 d. In some embodiments, after the user operates the notebook to perform the split-screen window mode, a portion of the split-screen windows in each of the split-screen windows to be displayed may be arranged along the height direction of the notebook 200, and the portion of the split-screen windows is used as a combined split-screen window and is arranged along the width direction of the notebook 200 with the rest of the split-screen windows.
As shown in fig. 9c, the display interface 950 of the notebook 200 is similar to the display interface shown in fig. 5c, including an application window 931, an application window 932, and an application window 933. The user adjusts the positions and sizes of the three windows according to the current use requirement, as shown in fig. 9 c. After the user performs operation (1) as shown in fig. 2a on the touch screen of the notebook 200, a split screen interface 940 of the notebook 200 is shown in fig. 9 d. The split screen interface 940 in fig. 9d includes an application interface 941, an application interface 942, and an application interface 943. In fig. 9d, three application windows are similar to the interface shown in fig. 5d, but the size scaling of each split screen window is different from fig. 5 d.
Please refer to the interface change diagrams of the notebook 200 shown in fig. 9e to 9 f. In some embodiments, after the user operates the notebook to perform the split window mode, the split windows to be displayed may be sequentially arranged along the height direction of the notebook 200.
As shown in fig. 9e, the user includes three application windows in the display interface 950 of the notebook 200: application window 951, application window 952, and application window 953. The user adjusts the positions and sizes of the three windows according to the current use requirement, as shown in fig. 9 e. After the user performs operation (1) as in fig. 2a on the touch screen of the notebook 200, a split screen interface 960 of the notebook 200 is shown in fig. 9 f. The split screen interface 960 in fig. 9f includes an application interface 961, an application interface 962, and an application interface 963. It can be seen that in fig. 9f, the three application windows are similar to the interface shown in fig. 5f, but the size scaling of the split screen windows is different from that of fig. 5 f.
According to the split screen display method, based on the position information and the size information of each original window, the relative position and the window size proportional relation of each original window can be determined, and further the relative position and the window size proportional relation of each split screen window corresponding to each original window can be determined, so that the layout of each split screen window is consistent or similar to the layout of each original window. Therefore, the layout of the split-screen window after split-screen can meet the layout requirement of a user, and the user experience is improved.
In some embodiments, the size information of the original window may be obtained by executing related instructions for obtaining the size of the window by the processor. Specifically, coordinates of four vertices of a rectangular window may be obtained by executing a corresponding function, for example, and then size information of the window may be calculated.
In some embodiments, the position information of the original window may be obtained by executing a related instruction for obtaining the window position of the original window by the processor. For example, in an electronic device supporting the programming language of c++, location information may be obtained through the getwindows rect function. For example, in an electronic device of an android operating system, window position information may be acquired through a getLocationOnScreen (location ()) function. For example, for windows operating systems, the following instructions may be executed to obtain the location information of the original window:
UIWindow*window=(((UIApplication sharedApplication)delegate)window);
CGRect rect=(bView convertRect:bView.bounds toView:window)。
fig. 10 shows a software architecture block diagram of an electronic device 200 according to an embodiment of the present application.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application exemplifies a Windows system of a layered architecture, and illustrates a software structure of the electronic device 200.
Fig. 10 shows a software architecture block diagram of an electronic device 200 according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Windows system is divided into four layers, from top to bottom, an application layer, an application framework layer, windows runtime and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 10, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 10, the application framework layer may include a window manager, a task manager, a telephony manager, a resource manager, a notification manager, a view system, an optical character identifier, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. In this embodiment of the present application, the window manager may obtain a sliding event corresponding to a sliding operation gesture of a user, including word size information, window position information, and display parameters of window size information in an original window, etc. to match a corresponding display task, and display a corresponding interface, for example, display the display parameters described in the above step 401, or display a plurality of split screen windows described in the above step 405, etc., which are specifically referred to the above step 401 or step 405 and are not described herein again.
The task manager is configured to cooperate with the window manager to invoke task content corresponding to the sliding operation of the user, for example, a display task that needs to be controlled by the window manager to be executed, and the task manager invokes the content of the corresponding display task and sends the content to the window manager to be executed, so as to implement a process of displaying the corresponding interface by the electronic device 200.
The content provider is used to store and retrieve data and make such data accessible to applications. Such data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The optical character recognizer may perform analysis and recognition processing on the image file in the window display information acquired by the window manager, to acquire text and layout information, for example, the procedure of acquiring the font size in the display parameter in step 401 above.
The Windows runtime includes a core library and a virtual machine. The Windows runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a touch driver and a sensor driver.
The workflow of the electronic device 200 software and hardware is illustrated below in connection with capturing a scene of a slide up operation switching to a split screen mode window.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch finger joint sliding operation, taking a PPT document window as an example, the PPT document calls an interface of an application framework layer, starts the PPT document, further starts a display driver by calling a kernel layer, and displays the PPT document window in a split screen mode through a display screen 190.
Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one example implementation or technique according to the disclosure. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
The present disclosure also relates to an operating device for performing the method. The apparatus may be specially constructed for the required purposes, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, magnetic-optical disks, read-only memories (ROMs), random Access Memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, application Specific Integrated Circuits (ASICs), or any type of media suitable for storing electronic instructions, and each may be coupled to a computer system bus. Furthermore, the computers referred to in the specification may include a single processor or may be architectures employing multiple processors for increased computing power.
Additionally, the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the disclosed subject matter. Accordingly, the present disclosure is intended to be illustrative, but not limiting, of the scope of the concepts discussed herein.

Claims (22)

1. The split screen display method is applied to electronic equipment and is characterized by comprising the following steps of:
detecting split screen operation of a user in a first interface, wherein the first interface comprises a first window and a second window;
changing from the first interface to a second interface, and displaying a first split-screen window and a second split-screen window in the second interface, wherein the first split-screen window is generated by the first window based on the corresponding change, and the second split-screen window is generated by the second window based on the corresponding change;
wherein the corresponding change comprises a corresponding change in display scale and/or display position.
2. The split-screen display method according to claim 1, wherein changing from the first interface to a second interface, displaying a first split-screen window and a second split-screen window in the second interface, comprises:
acquiring display parameters of the first window and the second window, wherein the corresponding change is determined based on the display parameters of the first window and the second window, and the display parameters are used for describing the display proportion and/or the display position of the windows;
Determining the corresponding change based on the display parameter;
and generating and displaying a first split-screen window and a second split-screen window in the second interface based on the corresponding change.
3. The split screen display method of claim 1, wherein the display parameters include parameters describing a window and a display scale of elements within the window, the elements including text.
4. The split-screen display method according to claim 2, wherein the display parameters include text parameters, wherein the text parameters are used for describing display proportions and/or display positions of characters.
5. The split-screen display method according to claim 4, wherein the determining the corresponding change based on the display parameter comprises:
determining target text parameters of the first split-screen window and the second split-screen window according to the first text parameters of the first window and the second text parameters of the second window;
and determining the corresponding change according to the target text parameter.
6. The split-screen display method according to claim 5, wherein determining the target text parameters of the first split-screen window and the second split-screen window according to the first text parameter of the first window and the second text parameter of the second window comprises:
Acquiring first application attribute information of the first window and second application attribute information of the second window;
and determining the target text parameter according to the first application attribute information, the second application attribute information, the first text parameter and the second text parameter.
7. The split-screen display method according to claim 6, wherein the determining the target text parameter according to the first application attribute information, the second application attribute information, the first text parameter, and the second text parameter comprises:
and determining that the target text parameter is matched with the first text parameter or the second text parameter according to the first application attribute information and the second application attribute information.
8. The split-screen display method according to claim 6, wherein the determining the target text parameter according to the first application attribute information, the second application attribute information, the first text parameter, and the second text parameter comprises:
and determining the target text parameter as a third text parameter which is not matched with the first text parameter and the second text parameter according to the first application attribute information and the second application attribute information.
9. The split-screen display method according to claim 5, wherein the display parameters further include window position information;
the determining the corresponding change based on the display parameter further includes:
determining first layout parameters of the first split-screen window and the second split-screen window according to the target text parameters, the window position information of the first window and the window position information of the second window, wherein the first layout parameters are used for determining first display proportions and/or first display positions of the first split-screen window and the second split-screen window;
and determining the corresponding change according to the first layout parameter.
10. The split-screen display method according to claim 9, wherein the first layout parameter includes first split-screen scale information and first split-screen position information.
11. The split-screen display method according to claim 10, wherein determining the first layout parameters of the first split-screen window and the second split-screen window according to the target text parameter, the window position information of the first window, and the window position information of the second window comprises:
Determining first split-screen proportion information of the first split-screen window and the second split-screen window according to the target text parameter, the first text parameter and the second text parameter;
and determining first split screen position information of the first split screen window and the second split screen window according to the window position information of the first window and the window position information of the second window.
12. The split-screen display method according to claim 5, wherein the display parameters further include window position information and size information;
the determining the corresponding change based on the display parameter further includes:
determining second layout parameters of the first split-screen window and the second split-screen window according to the window position information of the first window, the position information of the second window, the size information of the first window and the size information of the second window, wherein the second layout parameters are used for determining second display proportions and/or second display positions of the first split-screen window and the second split-screen window;
and determining the corresponding change according to the second layout parameter.
13. The split-screen display method according to claim 12, wherein the second layout parameters include second split-screen scale information and second split-screen position information.
14. The split-screen display method according to claim 13, wherein the determining the second layout parameters of the first split-screen window and the second split-screen window according to the window position information of the first window, the position information of the second window, the size information of the first window, and the size information of the second window comprises:
determining second split screen proportion information of the first split screen window and the second split screen window according to the size information of the first window and the size information of the second window;
and determining second split screen position information of the first split screen window and the second split screen window according to the window position information of the first window and the position information of the second window.
15. The split-screen display method according to claim 2, wherein the display parameters include window position information and size information.
16. The split-screen display method of claim 15, wherein the determining the corresponding change based on the display parameter comprises:
determining third layout parameters of the first split-screen window and the second split-screen window according to the position information of the first window, the position information of the second window, the size information of the first window and the size information of the second window, wherein the third layout parameters are used for determining third display proportions and/or third display positions of the first split-screen window and the second split-screen window;
And determining the corresponding change according to the third layout parameter.
17. The split-screen display method according to claim 16, wherein the third layout parameter includes third split-screen ratio information and third split-screen position information;
the determining a third layout parameter of the first split screen window and the second split screen window according to the position information of the first window, the position information of the second window, the size information of the first window and the size information of the second window includes:
determining the third split screen proportion information according to the size information of the first window and the size information of the third window;
and determining the first split screen position information according to the position information of the first window and the position information of the second window.
18. The split-screen display method according to claim 17, wherein the changing from the first interface to a second interface, displaying a first split-screen window and a second split-screen window in the second interface, comprises:
and changing from the first interface to the second interface according to the third split screen position information and the third split screen proportion information, and displaying the first split screen window and the second split screen window in the second interface.
19. The split screen display method according to claim 9 or 15, wherein the window position information includes window position coordinate information and preset reference position information.
20. An electronic device, comprising: one or more processors; one or more memories; the one or more memories stores one or more programs that, when executed by the one or more processors, cause the electronic device to perform the split-screen display method of any of claims 1-19.
21. A computer readable storage medium having stored thereon instructions which, when executed on a computer, cause the computer to perform the split screen display method of any one of claims 1 to 19.
22. A computer program product comprising instructions which, when executed, cause a computer to perform the split screen display method of any one of claims 1 to 19.
CN202210005988.5A 2022-01-05 2022-01-05 Split screen display method, electronic device and readable storage medium Pending CN116450066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210005988.5A CN116450066A (en) 2022-01-05 2022-01-05 Split screen display method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210005988.5A CN116450066A (en) 2022-01-05 2022-01-05 Split screen display method, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN116450066A true CN116450066A (en) 2023-07-18

Family

ID=87126085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210005988.5A Pending CN116450066A (en) 2022-01-05 2022-01-05 Split screen display method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN116450066A (en)

Similar Documents

Publication Publication Date Title
CN114416227B (en) Window switching method, electronic device and readable storage medium
US10599316B2 (en) Systems and methods for adjusting appearance of a control based on detected changes in underlying content
CN103729159B (en) Multi-display apparatus and method of controlling display operation
CN113805743B (en) Method for switching display window and electronic equipment
WO2016039863A1 (en) Landscape springboard
WO2017113624A1 (en) System and method for operating system of mobile device
WO2022028310A1 (en) Method for adding annotations, electronic device and related apparatus
CN113805744A (en) Window display method and electronic equipment
CN114816167A (en) Application icon display method, electronic device and readable storage medium
EP4369164A1 (en) Electronic device and human-computer interaction method
WO2021253922A1 (en) Font switching method and electronic device
CN114461312B (en) Display method, electronic device and storage medium
CN116450066A (en) Split screen display method, electronic device and readable storage medium
US20240184443A1 (en) Display control method, electronic device, and readable storage medium
CN116700554B (en) Information display method, electronic device and readable storage medium
CN116048317B (en) Display method and device
EP4332744A1 (en) Control method and electronic device
WO2024078114A1 (en) Window display method, electronic device, and computer-readable storage medium
US20230393717A1 (en) User interfaces for displaying handwritten content on an electronic device
WO2024109220A1 (en) Widget display method, electronic device, and readable storage medium
CN116719459A (en) Annotation frame display method, electronic device and readable storage medium
CN118245145A (en) Desktop display method, desktop display device, electronic equipment and computer readable storage medium
CN118363513A (en) Display method, electronic equipment and storage medium
CN115877939A (en) Input method, electronic device and storage medium
CN115033138A (en) Icon arrangement method, electronic device and readable 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