CN114625303B - Window display method, terminal device and computer readable storage medium - Google Patents

Window display method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN114625303B
CN114625303B CN202011463200.2A CN202011463200A CN114625303B CN 114625303 B CN114625303 B CN 114625303B CN 202011463200 A CN202011463200 A CN 202011463200A CN 114625303 B CN114625303 B CN 114625303B
Authority
CN
China
Prior art keywords
window
terminal device
content
display
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011463200.2A
Other languages
Chinese (zh)
Other versions
CN114625303A (en
Inventor
葛雄华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211515097.0A priority Critical patent/CN115808999B/en
Priority to CN202011463200.2A priority patent/CN114625303B/en
Publication of CN114625303A publication Critical patent/CN114625303A/en
Application granted granted Critical
Publication of CN114625303B publication Critical patent/CN114625303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application provides a window display method, terminal equipment and a computer readable storage medium. According to the method, when the terminal equipment displays the content through the small window, if the user executes the sliding operation in the window, the terminal equipment can automatically expand the window based on the sliding operation so as to automatically expand the window to display more content, the user can conveniently browse the content, the user experience is improved, and the method has strong usability and practicability.

Description

Window display method, terminal device and computer readable storage medium
Technical Field
The present application belongs to the field of terminal technologies, and in particular, to a window display method, a terminal device, and a computer-readable storage medium.
Background
At present, a terminal device may display content through a small window for a user to view. When the user wants to view more content while the content is displayed through the small window, the user may manually resize the window, for example, manually pull the upper and/or lower edge of the window to expand the window upward and/or downward so that the window may display more content. That is, in the existing small window display, when a user wants to view more contents through a window, the user needs to manually adjust the size of the window, so that the operation is inconvenient, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides a window display method, terminal equipment and a computer readable storage medium, which can solve the problem that in the existing window display, when a user wants to check more contents through a window, the user needs to manually adjust the size of the window, and the operation is inconvenient.
In a first aspect, an embodiment of the present application provides a window display method, which is applied to a terminal device, and the method includes:
the terminal equipment displays first content through a first window, wherein the window size of the first window is smaller than the interface size of a display interface of the terminal equipment;
when a first sliding operation is detected in the first window, the terminal device expands the first window to obtain a second window, wherein the second window is used for displaying the first content and the second content, or the second window is used for displaying the second content, and the second content is a content continuing the first content.
By the window display method, when the terminal equipment displays the content through the small window, if the user executes the sliding operation in the window, the terminal equipment can expand the window based on the sliding operation so as to automatically enlarge the window to display more content, so that the user can browse the content conveniently, the user experience is improved, and the window display method has high usability and practicability.
In a possible implementation manner of the first aspect, the expanding, by the terminal device, the first window to obtain the second window includes:
the terminal equipment determines the extending direction corresponding to the first window and determines the extending distance corresponding to the first window;
and the terminal equipment extends the first window according to the extending direction and the extending distance to obtain the second window.
In the window display method provided by the scheme, the terminal device can expand the first window by performing window extension on the first window, and the expanded first window can additionally display the second content on the basis of the original first content, so that the first window can display more contents for a user to view.
For example, the determining, by the terminal device, the extending direction corresponding to the first window includes:
and the terminal equipment determines a display mode corresponding to the first content and determines an extending direction corresponding to the first window according to the display mode, wherein the display mode comprises transverse display and longitudinal display.
In the window display method provided by the scheme, the terminal device may determine the extending direction of the window extension based on the display mode of the content to avoid the content from being rearranged. For example, when the content is displayed horizontally, the extending direction may be determined to be vertical to increase the window height, so that the extended window can display more content without re-layout of the content. For example, when the content is displayed vertically, the extending direction may be determined to be horizontal to increase the window width, so that the extended window can display more content without re-layout of the content.
For example, the determining, by the terminal device, the extending direction corresponding to the first window includes:
the terminal equipment acquires a first position of the first window in the display interface, and determines an extending direction corresponding to the first window according to the first position.
In the window display method provided by the scheme, the terminal device may determine the extending direction based on the position of the first window in the display interface, for example, when the content is displayed horizontally and the window is close to the upper edge of the display interface, the extending direction may be determined to be downward; for example, when the content is displayed horizontally and the window is near the lower edge of the display interface, the extending direction may be determined to be upward to ensure that the window may be extended to the maximum so that more content may be displayed for the user to view. Or, the terminal device may determine the extending direction by combining the display mode of the content in the first window and the position of the first window in the display interface, so that the content may not be rearranged on the basis of ensuring that the window can be extended to the maximum.
For example, the determining, by the terminal device, the extending direction corresponding to the first window includes:
and the terminal equipment acquires the sliding direction of the first sliding operation and determines the extending direction corresponding to the first window according to the sliding direction.
In the window display method provided in this scheme, when the first window is displayed in the middle of the display interface (that is, the distance between the upper edge of the window of the first window and the upper edge of the display interface is equal to the distance between the lower edge of the window of the first window and the lower edge of the display interface), if the user slides up the first window, the lower edge of the window of the first window may be extended downward; if the user slides down the first window, the upper edge of the window of the first window can be extended upwards, so that the window extension is matched with the sliding operation of the user, and the user experience is improved.
Illustratively, the determining, by the terminal device, the extension distance corresponding to the first window includes:
and the terminal equipment acquires the sliding distance corresponding to the first sliding operation and determines the extending distance corresponding to the first window according to the sliding distance.
In the window display method provided by the scheme, the terminal device can determine the extending distance of the window extension based on the sliding distance of the first sliding operation, so that the window extension can be matched with the sliding operation of the user, and the user experience is improved.
For example, the determining, by the terminal device, the extension distance corresponding to the first window includes:
the terminal device determines a first target window edge corresponding to the first window according to the extending direction, and obtains a second position and a first preset position of the first target window edge in the display interface, wherein the first preset position is a maximum position which can be reached by the first target window edge in the display interface;
and the terminal equipment determines the extension distance corresponding to the first window according to the second position and the first preset position.
In the window display method provided by the scheme, the terminal device can determine the extension distance based on the position of the edge of the target window to be extended in the display interface and the maximum position which can be reached by the edge of the target window, so that the window can be directly extended to the maximum, more contents can be conveniently displayed for viewing, the window extension efficiency is improved, and the user experience is improved.
Optionally, after the terminal device extends the first window according to the extending direction and the extending distance to obtain a second window, the method includes:
the terminal equipment acquires the content height or the content width of the currently displayed content of the second window;
when the content height is smaller than the window height of the second window, the terminal device determines the contraction direction of the second window according to the extension direction, and determines the contraction distance of the second window according to the content height and the window height; alternatively, the first and second electrodes may be,
when the content width is smaller than the window width of the second window, the terminal device determines the contraction direction of the second window according to the extension direction, and determines the contraction distance of the second window according to the content width and the window width;
and the terminal equipment shrinks the second window according to the shrinking direction and the shrinking distance.
In the window display method provided by the scheme, in the process of displaying content through the first window in the extended state, when the content height of the content currently displayed by the first window is smaller than the current window height of the first window (or the content width of the content currently displayed by the first window is smaller than the current window width of the first window), the terminal device may shrink the extended window edge to reduce the current window height (or window width) of the first window, thereby reducing the waste of the display area.
Optionally, after the terminal device extends the first window according to the extending direction and the extending distance to obtain a second window, the method includes:
when a second sliding operation is detected in the first window, the terminal device determines the contraction direction and the contraction distance of the second window, and contracts the second window according to the contraction direction and the contraction distance.
In the window display method provided in this scheme, a sliding operation that triggers window contraction may be set in the terminal device, and when a user wants to contract a window, the user may directly perform the sliding operation in the window to contract the window, and at this time, the contraction distance may be determined according to the sliding distance corresponding to the sliding operation.
Optionally, after the terminal device extends the first window according to the extending direction and the extending distance to obtain a second window, the method includes:
when a third sliding operation is detected in the second window, the terminal device determines a second target window edge corresponding to the second window, and determines a third position and a second preset position of the second target window edge in the display interface;
the terminal equipment determines whether the distance between the third position and the second preset position is smaller than a preset distance;
and when the distance between the third position and the second preset position is smaller than the preset distance, the terminal device determines the window size of a third window and the fourth position of the third window in the display interface, and displays the third window according to the window size of the third window and the fourth position, wherein the content displayed by the third window is continuous with the content in the second window.
In the window display method provided by the scheme, after the window is extended to the preset position, if the user continues to perform the sliding operation, the terminal device can directly add a new window in the display interface to display more contents, so that the user can browse conveniently.
In another possible implementation manner of the first aspect, the expanding, by the terminal device, the first window to obtain a second window includes:
the terminal device determines the window size of a second window and the fifth position of the second window in the display interface, and displays the second window according to the window size and the fifth position of the second window, wherein the second window is used for displaying the second content.
In the window display method provided by the scheme, the terminal equipment can directly perform window expansion through the newly added window so as to display more contents through the newly added window for the user to view.
Illustratively, the determining, by the terminal device, the window size of the second window includes:
and the terminal equipment acquires the window size of the first window and determines the window size of the second window according to the window size of the first window.
In the window display method provided by the scheme, the terminal device can directly add a second window according to the window size of the first window, so that a larger window is directly added to display more contents for a user to view.
Illustratively, the determining, by the terminal device, the window size of the second window includes:
the terminal equipment acquires a display mode corresponding to the first content, a sliding distance corresponding to the first sliding operation and a window size of the first window;
and the terminal equipment determines the window size of the second window according to the display mode, the sliding distance and the window size of the first window.
In the window display method provided by the scheme, the terminal device may determine the window size of the second window according to the content display mode, the sliding distance, and the window size of the first window. For example, when the content is displayed horizontally, the window width of the first window may be determined as the window width of the second window, and the sliding distance may be determined as the window height of the second window, so that the content displayed in addition to the newly added window matches with the sliding operation of the user, thereby improving the user experience.
Optionally, the determining, by the terminal device, a fifth position of the second window in the display interface includes:
the terminal device determines a first position of the first window in the display interface and a display mode corresponding to the first content, and determines a fifth position of the second window in the display interface according to the first position and the display mode.
In the window display method provided by the scheme, the terminal device can determine the position of the second window according to the display mode of the content and the position of the first window, so that the content additionally displayed through the second window is convenient for a user to browse, and the user experience is improved.
Optionally, the determining, by the terminal device, a fifth position of the second window in the display interface includes:
the terminal equipment determines a first position of the first window in the display interface, and determines the first position as a fifth position of the second window in the display interface.
In the window display method provided by the scheme, the terminal device can directly determine the current position of the first window as the position of the second window, so that the newly added second window can be displayed in the current sight range of the user, the newly added displayed content of the second window can be positioned in the sight range of the user, and the user can browse conveniently.
In a possible implementation manner of the first aspect, the terminal device is a terminal device with a foldable display screen, the foldable display screen includes a first display screen and a second display screen, and when the first window is located on the first display screen, the second window is displayed on the second display screen.
Here, when the terminal device is a folding screen terminal device and the first window is displayed on a certain display screen of the terminal device, the terminal device may directly display the newly added second window on another display screen of the terminal device.
In another possible implementation manner of the first aspect, when the first window is a window that is projected to the terminal device by another terminal device, the expanding the first window by the terminal device after obtaining a second window includes:
and the terminal equipment sends the information corresponding to the first sliding operation and the second content to other terminal equipment, and the information corresponding to the first sliding operation and the second content is used for updating the content displayed by other terminal equipment.
In the window display method provided by the scheme, when the first window is a window projected by other terminal devices, after the first window is expanded, the terminal device may send information of content newly displayed in the first window and a first sliding operation to the projected terminal device to indicate the projected terminal device to perform content update, so as to synchronously display the content additionally displayed in the terminal device in the projected terminal device, so that the content displayed by the projected terminal device matches with the sliding operation executed by the user in the first window of the terminal device.
It should be understood that the first sliding operation is an operation of refreshing the first content, so as to directly perform window expansion according to the sliding operation of content refreshing performed by the user to display more content for the user to browse.
In a second aspect, an embodiment of the present application provides a window display apparatus, which is applied to a terminal device, and the apparatus includes:
the display module is used for displaying first content through a first window, and the window size of the first window is smaller than the interface size of a display interface of the terminal equipment;
and the expansion module is used for expanding the first window to obtain a second window when a first sliding operation is detected in the first window, wherein the second window is used for displaying the first content and the second content, or the second window is used for displaying the second content, and the second content is a content continuing the first content.
In a possible implementation manner of the second aspect, the extension module includes:
a distance and direction determining unit, configured to determine an extending direction corresponding to the first window and determine an extending distance corresponding to the first window;
and the extending unit is used for extending the first window according to the extending direction and the extending distance to obtain the second window.
Exemplarily, the distance direction determining unit includes:
and the first direction determination subunit is used for determining a display mode corresponding to the first content and determining an extension direction corresponding to the first window according to the display mode, wherein the display mode comprises horizontal display and longitudinal display.
Illustratively, the distance direction determination unit includes:
and the second direction determination subunit is used for acquiring the first position of the first window in the display interface and determining the extending direction corresponding to the first window according to the first position.
Illustratively, the distance direction determination unit includes:
and the third direction determination subunit is used for acquiring the sliding direction of the first sliding operation and determining the extending direction corresponding to the first window according to the sliding direction.
Optionally, the distance and direction determining unit further includes:
and the first distance determination subunit is configured to acquire a sliding distance corresponding to the first sliding operation, and determine an extension distance corresponding to the first window according to the sliding distance.
Optionally, the distance and direction determining unit further includes:
a second distance determining subunit, configured to determine a first target window edge corresponding to the first window according to the extending direction, and obtain a second position and a first preset position of the first target window edge in the display interface, where the first preset position is a maximum position that the first target window edge can reach in the display interface; and determining the corresponding extension distance of the first window according to the second position and the first preset position.
In a possible implementation manner of the second aspect, the window display device further includes:
the width and height acquisition module is used for acquiring the content height or the content width of the currently displayed content of the second window;
a contraction determining module, configured to determine, when the content height is smaller than the window height of the second window, a contraction direction of the second window according to the extension direction, and determine a contraction distance of the second window according to the content height and the window height; alternatively, the first and second liquid crystal display panels may be,
when the content width is smaller than the window width of the second window, determining the contraction direction of the second window according to the extension direction, and determining the contraction distance of the second window according to the content width and the window width;
and the first contraction module is used for contracting the second window according to the contraction direction and the contraction distance.
In another possible implementation manner of the second aspect, the window display device further includes:
and the second contraction module is used for determining the contraction direction and the contraction distance of the second window when the second sliding operation is detected in the first window, and contracting the second window according to the contraction direction and the contraction distance.
In another possible implementation manner of the second aspect, the window display device further includes:
the target edge determining module is used for determining a second target window edge corresponding to the second window when a third sliding operation is detected in the second window, and determining a third position and a second preset position of the second target window edge in the display interface;
the distance judgment module is used for determining whether the distance between the third position and the second preset position is smaller than a preset distance;
and the first window adding module is used for determining the window size of a third window and determining a fourth position of the third window in the display interface when the distance between the third position and the second preset position is smaller than the preset distance, and displaying the third window according to the window size of the third window and the fourth position, wherein the content displayed by the third window is continued to the content in the second window.
In another possible implementation manner of the second aspect, the expansion module further includes:
and the second window adding unit is used for determining the window size of a second window and the fifth position of the second window in the display interface, and displaying the second window according to the window size of the second window and the fifth position, wherein the second window is used for displaying the second content.
Illustratively, the second window adding unit includes:
and the first window size determining subunit is used for acquiring the window size of the first window and determining the window size of the second window according to the window size of the first window.
Illustratively, the second window adding unit further includes:
a second window size determination subunit, configured to obtain a display manner corresponding to the first content, a sliding distance corresponding to the first sliding operation, and a window size of the first window; and determining the window size of the second window according to the display mode, the sliding distance and the window size of the first window.
Optionally, the second window adding unit is specifically configured to determine a first position of the first window in the display interface and a display mode corresponding to the first content, and determine a fifth position of the second window in the display interface according to the first position and the display mode.
Optionally, the second window adding unit is further specifically configured to determine a first position of the first window in the display interface, and determine the first position as a fifth position of the second window in the display interface.
Illustratively, the terminal device is a terminal device with a foldable display screen, the foldable display screen includes a first display screen and a second display screen, and when the first window is located on the first display screen, the second window is displayed on the second display screen.
Illustratively, the window display apparatus further includes:
and the information sending module is used for sending the information corresponding to the first sliding operation and the second content to the other terminal equipment, and the information corresponding to the first sliding operation and the second content is used for updating the content displayed by the other terminal equipment.
Specifically, the first sliding operation is an operation of refreshing the first content.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the terminal device is caused to implement the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the computer program causes the computer to implement the method of any one of the above first aspects.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the method described in any one of the above first aspects.
It is to be understood that, for the beneficial effects of the second aspect to the fifth aspect, reference may be made to the relevant description in the first aspect, and details are not described herein again.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device to which a window display method provided in an embodiment of the present application is applied;
FIG. 2 is a schematic diagram of a software architecture to which a window displaying method according to an embodiment of the present disclosure is applied;
fig. 3 is a schematic view of an application scenario provided in an embodiment of the present application;
FIG. 4 is a first exemplary illustration of an extension direction determination provided by an embodiment of the present application;
FIG. 5 is a second exemplary illustration of the determination of the extension direction provided by an embodiment of the present application;
FIG. 6 is a first exemplary diagram of a window extension provided by an embodiment of the present application;
FIG. 7 is a second exemplary view of a window extension provided by an embodiment of the present application;
FIG. 8 is a third exemplary view of a window extension provided by an embodiment of the present application;
fig. 9 is a first exemplary diagram of a newly added window provided in an embodiment of the present application;
fig. 10 is a diagram of an example of a newly added window provided in the embodiment of the present application;
fig. 11 is a third exemplary diagram of a newly added window provided in the embodiment of the present application;
fig. 12 is a fourth exemplary diagram of a newly added window provided in the embodiment of the present application;
FIG. 13 is a fifth exemplary diagram of a newly added window provided by an embodiment of the present application;
FIG. 14 is a sixth exemplary graph of newly added windows provided by embodiments of the present application;
FIG. 15 is a seventh exemplary illustration of an add-on window provided by an embodiment of the present application;
fig. 16 is an exemplary diagram eight of a newly added window provided in the embodiment of the present application;
FIG. 17 is a diagram illustrating window extension after window addition according to an embodiment of the present disclosure;
FIG. 18 is a schematic diagram of an application scenario provided in an embodiment of the present application;
FIG. 19 is a schematic diagram of an application scenario provided by another embodiment of the present application;
fig. 20 is a flowchart illustrating a window displaying method according to an embodiment of the present application.
Detailed Description
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing a relative importance or importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically stated.
In addition, "a plurality" mentioned in the embodiments of the present application should be construed as two or more.
The steps involved in the window display method provided in the embodiment of the present application are merely examples, and not all the steps are necessarily executed steps, or the content in each information or message is not always necessary, and may be increased or decreased as needed in the use process. The same steps or messages with the same functions in the embodiments of the present application may be referred to with each other between different embodiments.
The service scenario described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not form a limitation on the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows that along with the evolution of a network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
At present, a terminal device may display content through a window, where the window may be a window corresponding to an application of the terminal device itself, or a window projected by another device on the terminal device in multi-screen cooperation. When content is displayed through a window, the terminal device may display the content through a small window with a default size of the system, where the default size is often smaller than the screen size of the terminal device. When the user wants to view more content, the user can manually resize the window, for example, manually pull the top and/or bottom edges of the window to expand the window size up and/or down so that the window can display more content. That is, in the existing window display, when a user wants to view more contents through a window, the user needs to manually adjust the size of the window, so that the operation is inconvenient, and the user experience is influenced.
In order to solve the above problem, embodiments of the present application provide a window display method, a terminal device, and a computer-readable storage medium. According to the method, when the sliding operation that the user wants to check more contents is detected, the terminal device can automatically expand the window based on the sliding operation so as to display more contents through window expansion, the user can conveniently browse the contents, the user experience is improved, and the method has high usability and practicability.
In this embodiment of the application, the terminal device may be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a desktop computer, or another terminal device having a display screen.
The following first describes a terminal device according to an embodiment of the present application. Referring to fig. 1, fig. 1 shows a schematic structural diagram of a terminal device 100.
The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the terminal device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus, enabling communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through the I2S interface, so as to implement a function of receiving a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture function of terminal device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, and may also be used to transmit data between the terminal device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other terminal devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not constitute a limitation on the structure of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the terminal device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The terminal device 100 implements a display function by the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the terminal device 100, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a Universal Flash Storage (UFS), and the like. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The terminal device 100 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The pressure sensor 180A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a variety of 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 sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure from the change in the capacitance. When a touch operation is applied to the display screen 194, the terminal device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The terminal device 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting thereon or nearby. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the terminal device 100, different from the position of the display screen 194.
The software system of the terminal device 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the terminal device 100.
Fig. 2 is a block diagram of a software structure of the terminal device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The window manager may also adjust window parameters according to the extension direction and the extension distance, so as to implement window extension (which will be described in detail below).
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, 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, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The view system can also perform window drawing according to the display content sent by the application program and the window parameters sent by the window manager, and display the drawn window on the display interface.
The phone manager is used to provide a communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, 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, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises 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. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide a fusion of the 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-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 inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the software and hardware of the terminal device 100 is exemplarily described below with reference to a window extension scenario.
When the touch sensor 180K receives a sliding operation in the window, a corresponding hardware interrupt is issued to the kernel layer. The inner core layer processes the sliding operation into a sliding input event (including information such as sliding distance and sliding direction). The slide input event is stored at the kernel layer. The processor acquires the sliding input event from the kernel layer and distributes the sliding input event to the window manager and the application program corresponding to the window. The application program can determine an extension direction, an extension distance, and newly added display content according to the sliding input event, and send the extension direction and the extension distance to the window manager and the newly added display content to the view system. The window manager can adjust the window parameters according to the extending direction and the extending distance, and send the adjusted window parameters to the view system. The view system can draw the window according to the adjusted window parameter and the newly added display content, and call the display drive through the kernel layer to display the drawn window on the display interface.
Hereinafter, a window display method provided by an embodiment of the present application will be described in detail with reference to the accompanying drawings.
The window display method provided by the embodiment of the application is applied to a scene in which content is displayed through a small window, namely, the window display method is applied to a scene in which the height of the window is smaller than the height of a screen and/or the width of the window is smaller than the width of the screen. The window may be a window corresponding to the terminal device itself, or may also be a window for other devices to screen in the terminal device, for example, a window for other devices to screen in the terminal device in a multi-screen cooperation. Two modes of the window applying the corresponding window for the terminal device and the window projected by the other device on the terminal device are explained in detail below.
1. The window is a window corresponding to the self application of the terminal equipment
After a user clicks or touches a certain application (e.g., an e-book application) in the terminal device, the terminal device may display the content of the e-book application through a window (hereinafter, referred to as a first window) of a default size in response to a click or touch operation by the user, for the user to browse. When the user browses the content currently displayed in the first window, if the user wants to continue browsing new content or wants to return to view browsed content, the user may perform a sliding operation in the first window. After the terminal device detects the sliding operation, the window can be automatically expanded, so that new content or browsed content can be directly additionally displayed through the expanded window, a user can browse conveniently, and user experience is improved. The basic principle of displaying browsed content in the extended window is the same as that of displaying new content in the extended window, and the following description will take the example of displaying new content in the extended window as an example.
It will be appreciated that the terminal device may determine whether new content is present in the application that is not displayed in the window prior to automatically expanding the window. When new content that is not displayed in the window exists in the application, the terminal device may automatically expand the window based on a sliding operation to perform an additional display of the new content. When there is no new content that is not displayed in the window, the terminal device will not perform window expansion.
When the window is expanded, the terminal device can expand the window through window extension and/or newly adding the window so as to display more contents for a user to browse. The following are described separately: (one) window extension; and (II) adding a new window.
(one) Window extension
Before the window extension, the terminal device needs to determine an extension direction and an extension distance of the window extension, so that the terminal device can perform the window extension according to the extension direction and the extension distance. The determination of the extension direction and the extension distance is described below, respectively.
(1) Determination of the direction of extension
The extending direction may be at least one of upward, downward, leftward and rightward. When the extending direction is upward, the terminal device may extend the upper edge of the window upward. When the extending direction is downward, the terminal device may extend the lower edge of the window downward. When the extending direction is leftward, the terminal device may extend the left edge of the window leftward. When the extending direction is rightward, the terminal device may extend rightward, i.e., the right edge of the window. It can be understood that, when the terminal device extends the upper edge of the window upward, the left edge and the right edge of the window connected to the upper edge of the window are also extended upward, so that the extended upper edge of the window can still be connected to the left edge and the right edge of the window, thereby ensuring the integrity of the window. Similarly, when the terminal device extends the lower edge of the window downwards, the left edge of the window extends leftwards, and the right edge of the window extends rightwards, the edges of other windows connected with the terminal device also extend towards the corresponding extending direction.
In the embodiment of the application, the extending direction can be set by a user in a customized manner or can be set by default by the terminal equipment. For example, the user may set the extending direction to be customized to be upward, that is, after the terminal device detects a sliding operation performed by the user in the first window (hereinafter, the sliding operation that triggers the terminal device to perform window extension is referred to as a first sliding operation), the terminal device may directly extend the upper edge of the window upward. For example, the terminal device may set the extending direction to be downward by default, that is, after the terminal device detects the first sliding operation performed by the user in the first window, the terminal device may directly extend the lower edge of the window downward.
In the embodiment of the present application, in order to ensure that the extended window still displays the content in the original layout of the content, so as to avoid the re-layout of the content caused by the window extension, the terminal device may determine the extension direction according to the display mode of the content in the first window. The content may be displayed in a horizontal manner or in a vertical manner. Optionally, when the content is displayed in a horizontal manner, the terminal device may determine the extending direction as upward and/or downward, so as to increase the window height by extending the first window upward and/or downward, so that the extended window may display more content without affecting the original layout of the content. Optionally, when the content is displayed in the vertical display mode, the terminal device may determine the extending direction as left and/or right, so as to increase the window width by extending the first window left and/or right, so that the extended window may display more content without affecting the original layout of the content.
The extending direction is upward and downward, which means that the upward extension of the upper edge of the window and the downward extension of the lower edge of the window are simultaneously performed in each window extension. The extending directions are leftward and rightward, which means that leftward extension of the left edge of the window and rightward extension of the right edge of the window are performed simultaneously in each window extending.
It should be noted that, when the upward extension of the upper edge of the window and the downward extension of the lower edge of the window are performed simultaneously, or the leftward extension of the left edge of the window and the rightward extension of the right edge of the window are performed simultaneously, after the terminal device extends one of the window edges to the preset position corresponding to the window edge, and then when the user continues to perform the first sliding operation in the first window, the terminal device may only perform window extension in a single direction, that is, only extend the other window edge, until the other window edge also extends to the preset position corresponding to the other window edge. For example, when the left edge of the window is extended leftwards and the right edge of the window is extended rightwards at the same time, after the left edge of the window is extended leftwards to the preset position corresponding to the left edge of the window by the terminal device, and then when the user continues to perform the first sliding operation in the first window, the terminal device may only extend rightwards to the right edge of the window until the right edge of the window is extended to the preset position corresponding to the right edge of the window.
The preset position corresponding to the window edge refers to the maximum position that the window edge can reach in the display interface. Optionally, the terminal device may determine the preset position corresponding to the window edge according to the edge of the display interface. For example, in a single-window scene shown in (a) of fig. 3, or in a multi-window scene shown in (b) of fig. 3 (when a window may cover other windows), taking the window 301 corresponding to the e-book application as an example, the preset position corresponding to the window upper edge 3011 of the window 301 may be a position away from the upper edge 30 of the display interface by a preset distance, the preset position corresponding to the window lower edge 3012 of the window 301 may be a position away from the lower edge 31 of the display interface by a preset distance, the preset position corresponding to the window left edge 3013 of the window 301 may be a position away from the left edge 32 of the display interface by a preset distance, and the preset position corresponding to the window right edge 3014 of the window 301 may be a position away from the right edge 33 of the display interface by a preset distance. The preset distance may be determined according to specific situations, and may be any value smaller than a height corresponding to one row of content (or smaller than a width corresponding to one column of content), for example. For example, the preset distance may be 0.
Optionally, in a multi-window scene, in order to avoid that the window extension affects the content display of other windows, the terminal device may also determine, according to the positions of the window edges of other windows in the display interface, the preset position corresponding to the window edge of the window to be extended. For example, in the multi-window scenario shown in (b) of fig. 3, taking the window 301 corresponding to the e-book application as the window to be extended, the preset position corresponding to the window upper edge 3011 of the window 301 may be the window lower edge 3021 of the window 302 corresponding to the bank application (that is, when the login interface is displayed), the preset position corresponding to the window lower edge 3012 of the window 301 may be the lower edge 31 of the display interface, the preset position corresponding to the window left edge 3013 of the window 301 may be the left edge 32 of the display interface, and the preset position corresponding to the window right edge 3014 of the window 301 may be the window left edge 3031 of the window 303 corresponding to the short message application.
In the embodiment of the application, in order to improve the window extension efficiency and improve the user experience, the terminal device may determine the extending direction of the window extension according to the display mode of the content in the first window and the distance between the position of the window edge in the display interface and the preset position corresponding to the window edge.
For example, when the display mode of the content is a landscape display, as shown in (a) of fig. 4, when a distance (hereinafter, referred to as a first distance) R1 between a position of the window upper edge in the display interface and a preset position corresponding to the window upper edge is greater than or equal to a first distance threshold, the terminal device may determine the extending direction to be upward to increase the window height by extending the window upper edge upward to expand the window. For example, when the display mode of the content is a landscape display, as shown in (b) of fig. 4, when a distance (hereinafter, referred to as a second distance) R2 between a position of the window lower edge in the display interface and a preset position corresponding to the window lower edge is greater than or equal to a first distance threshold, the terminal device may determine the extending direction to be downward to increase the window height by extending the window lower edge downward to expand the window. For example, when the display mode of the content is a landscape display, when the first distance R1 is greater than or equal to the first distance threshold and the second distance R2 is greater than or equal to the first distance threshold, the terminal device may determine the extending direction to be upward and/or downward. The first distance threshold may be set according to specific situations, for example, the first distance threshold may be set to a height corresponding to a row of contents, or the first distance threshold may be set to any value greater than 0, and so on.
Further, in a scenario where the first distance R1 is greater than or equal to the first distance threshold and the second distance R2 is greater than or equal to the first distance threshold, when the extending direction is a single direction, in order to ensure that the window extends so that the window can display more content, the terminal device may determine the extending direction according to a size relationship between the first distance R1 and the second distance R2. For example, as shown in (c) of fig. 4, when the first distance R1 is greater than the second distance R2, the terminal device may determine the extending direction as upward. As shown in (d) of fig. 4, when the first distance R1 is smaller than the second distance R2, the terminal device may determine the extending direction as downward.
Alternatively, when the first distance R1 is equal to the second distance R2, the terminal device may also determine the extending direction in which the window extends according to the sliding direction of the first sliding operation. For example, when the sliding direction of the first sliding operation is upward, the terminal device may determine the extending direction as downward; when the sliding direction of the first sliding operation is downward, the terminal device may determine the extending direction as upward, and so on.
Illustratively, when the display manner of the content is the portrait display, as shown in (a) of fig. 5, when a distance R3 between a position of the window left edge in the display interface and a preset position corresponding to the window left edge (hereinafter, referred to as a third distance) is greater than or equal to a second distance threshold, the terminal device may determine the extending direction to the left so as to increase the window width by extending the window left edge to the left, so as to expand the window. For example, when the display mode of the content is a portrait display, as shown in (b) of fig. 5, when a distance (hereinafter, referred to as a fourth distance) R4 between a position of the window right edge in the display interface and a preset position corresponding to the window right edge is greater than or equal to a second distance threshold, the terminal device may determine the extending direction to the right to increase the window width by extending the window right edge to the right to expand the window. For example, when the display mode of the content is a portrait display, when the third distance R3 is greater than or equal to the second distance threshold and the fourth distance R4 is greater than or equal to the second distance threshold, the terminal device may determine the extending direction as left and/or right. The second distance threshold may be set according to specific situations, for example, the second distance threshold may be set to a width corresponding to a column of contents, or the second distance threshold may be set to any value greater than 0, and so on.
Further, in a scenario where the third distance R3 is greater than or equal to the second distance threshold and the fourth distance R4 is greater than or equal to the second distance threshold, when the extending direction is a single direction, in order to ensure that the window extends so that the window can display more content, the terminal device may determine the extending direction according to a size relationship between the third distance R3 and the fourth distance R4. For example, as shown in (c) of fig. 5, when the third distance R3 is greater than the fourth distance R4, the terminal device may determine the extending direction to the left. As shown in (d) in fig. 5, when the third distance R3 is smaller than the fourth distance R4, the terminal device may determine the extending direction to the right.
Alternatively, when the third distance R3 is equal to the fourth distance R4, the terminal device may also determine the extending direction in which the window extends according to the sliding direction of the first sliding operation. For example, when the sliding direction of the first sliding operation is leftward, the terminal device may determine the extending direction as rightward; when the sliding direction of the first sliding operation is rightward, the terminal device may determine the extending direction as leftward, and so on.
(2) Determination of the extension distance
The extension distance refers to the distance that the first window edge needs to move in each window extension. The first window edge refers to a window edge to be extended determined according to an extending direction. For example, when the extending direction is upward, the first window edge is the window upper edge, and the extending distance is the distance that the window upper edge needs to move upward; when the extending direction is towards left, the first window edge is the left edge of the window, and the extending distance is the distance that the left edge of the window needs to move towards left. For example, when the extending direction is multi-directional, the first window edge is an upper window edge and a lower window edge, and the extending distance may include a first extending distance and a second extending distance, where the first extending distance is a distance that the upper window edge needs to move upward, and the second extending distance is a distance that the lower window edge needs to move downward.
In the embodiment of the application, the extension distance can be set by a user in a customized manner or can be set by default by the terminal equipment. For example, when the content is displayed in a horizontal manner and the extending direction is a single direction, the user may set the extending distance to a height corresponding to one (or two) line of content by user-defined setting. For example, when the content is displayed in a vertical manner and the extending direction is multiple directions, i.e., left and right, the terminal device may default the first extending distance corresponding to the left edge of the window and the second extending distance corresponding to the right edge of the window to the width corresponding to one column (or two columns, etc.) of content.
Or the extending distance may be determined by the terminal device according to the sliding distance corresponding to the first sliding operation, so that the window extension may be matched with the sliding operation performed by the user in the window, thereby improving the user experience. For example, when the extending direction is an upward single direction, the terminal device may determine a sliding distance corresponding to the first sliding operation as an extending distance corresponding to the upper edge of the window. For example, when the extending direction is multi-directional, i.e., upward and downward, the terminal device may determine the sliding distance corresponding to the first sliding operation as a first extending distance corresponding to the upper edge of the window and a second extending distance corresponding to the lower edge of the window, respectively, that is, the distance that the upper edge of the window moves upward and the distance that the lower edge of the window moves downward are both the sliding distances corresponding to the first sliding operation; or the terminal device may determine the first extending distance corresponding to the upper edge of the window and the second extending distance corresponding to the lower edge of the window respectively according to that the sum of the first extending distance corresponding to the upper edge of the window and the second extending distance corresponding to the lower edge of the window is the sliding distance corresponding to the first sliding operation, for example, may determine the first extending distance corresponding to the upper edge of the window and the second extending distance corresponding to the lower edge of the window as half of the sliding distance respectively, and so on.
Or the extending distance may be determined by the terminal device according to a distance between a position of the first window edge in the display interface and a preset position corresponding to the first window edge, so as to directly maximize the window through one-time extending, so that the extended window may display more content. For example, when the extending direction is an upward single direction, the terminal device may determine a distance between a position of the upper edge of the window in the display interface and a preset position corresponding to the upper edge of the window as an extending distance corresponding to the upper edge of the window. For example, when the extending direction is multi-directional, i.e., upward and downward, the terminal device may determine a distance between a position of the upper edge of the window in the display interface and a preset position corresponding to the upper edge of the window as a first extending distance corresponding to the upper edge of the window, and may determine a distance between a position of the lower edge of the window in the display interface and a preset position corresponding to the lower edge of the window as a second extending distance corresponding to the lower edge of the window.
It should be understood that, in a scenario where the sliding distance corresponding to the first sliding operation is determined as the extension distance, when the sliding distance is greater than a distance between a position of the first window edge in the display interface and a preset position corresponding to the first window edge, the terminal device may also determine a distance between the position of the first window edge in the display interface and the preset position corresponding to the first window edge as the extension distance corresponding to the first window edge, so as to ensure complete display of the window.
Optionally, when the extension distance is determined according to the sliding distance corresponding to the first sliding operation or the position of the first window edge in the display interface, the terminal device may determine the extension distance by combining the height corresponding to one row of content (or the width corresponding to one column of content), so as to ensure that the content in the window can be completely displayed after the window is extended, and improve user experience. Specifically, the terminal device may determine, as the extended distance, a content height or a content width that can be covered by the sliding distance corresponding to the first sliding operation, or may determine, as the extended distance, a content height or a content width at which the sliding distance corresponding to the first sliding operation is closest to the first sliding operation. For example, when the height corresponding to each row of content (or the width corresponding to each column of content) in the first window is 0.8 cm, when the terminal device detects that the sliding distance corresponding to the first sliding operation is 3 cm, the terminal device may determine, as the extension distance, the total height corresponding to three rows of content (or the total width corresponding to three columns of content) that can be completely covered by the sliding distance, that is, may determine the extension distance to be 2.4 cm; alternatively, the terminal device may determine the total height corresponding to four rows of content closest to the sliding distance (or the total width corresponding to four columns of content) as the extension distance, that is, may determine the extension distance as 3.2 centimeters.
Similarly, the terminal device may determine, as the extension distance, a content height or a content width that can be covered by a distance between a position of the first window edge in the display interface and a preset position corresponding to the first window edge. For example, when the height corresponding to each line of content in the first window (or the width corresponding to each column of content) is 0.8 cm, when the terminal device determines that the distance between the edge of the first window and the preset position corresponding to the edge of the first window is 5 cm, the terminal device may determine the total height corresponding to six lines of content (or the total width corresponding to six columns of content) that can be covered by 5 cm as the extension distance, that is, may determine the extension distance as 4.8 cm.
The following describes a first sliding operation for triggering the terminal device to perform window extension.
The first sliding operation for triggering the terminal device to perform window extension is not limited in the embodiment of the present application, and the first sliding operation may be an operation of sliding upward, an operation of sliding downward, an operation of sliding leftward, an operation of sliding rightward, and the like.
For example, the terminal device may be triggered to extend the lower edge of the window downward, or the terminal device may be triggered to extend the upper edge of the window upward, or the terminal device may be triggered to extend the left edge of the window leftward, or the terminal device may be triggered to extend the right edge of the window rightward by an operation of sliding upward. For example, the operation of sliding to the right may trigger the terminal device to extend the lower edge of the window downwards, or trigger the terminal device to extend the upper edge of the window upwards, or trigger the terminal device to extend the left edge of the window leftwards, or trigger the terminal device to extend the right edge of the window rightwards, and so on.
Optionally, in this embodiment of the present application, the terminal device may determine the content browsing operation of the user as a first sliding operation that triggers the terminal device to perform window extension, so as to perform window extension according to a habitual browsing operation of the user, so that displaying of new content through window extension may be matched with content browsing that is habitual to the user, and user experience is improved. For example, when the display mode of the content is horizontal display, the user is generally used to perform content browsing and refreshing through an operation of sliding up or sliding down, and at this time, the terminal device may determine the operation of sliding up or sliding down as a first sliding operation that triggers the terminal device to perform window extension. When the display mode of the content is the vertical display, the user is generally used to browse and refresh the content through a leftward sliding operation or a rightward sliding operation, and at this time, the terminal device may determine the leftward sliding operation or the rightward sliding operation as a first sliding operation that triggers the terminal device to perform window extension. The following description will exemplarily take the first sliding operation as the content browsing operation by the user as an example.
For example, when the content is displayed in a horizontal manner, if the user performs an upward refresh of the content (i.e., the new content slides out from below the display interface) through an upward sliding operation, the terminal device may determine the upward sliding operation as a first sliding operation that triggers the terminal device to perform window extension. That is, when the terminal device detects an operation of sliding up performed by the user in the first window, the terminal device may then perform upward extension and/or downward extension of the first window in response to the operation of sliding up.
For example, when the content is displayed in a horizontal manner and the window extends in an upward direction, as shown in (a) of fig. 6, after the terminal device detects that the user performs an operation of sliding upward in the first window, as shown in (b) of fig. 6, the terminal device may extend the upper edge 601 of the window upward to extend the upper edge 601 of the window to the position of 601', and may move the content displayed in the first window upward, so that the extension portion 62 formed at the lower side of the first window performs display of new content by extending the upper edge of the window and moving the content, thereby implementing an upward refresh function of the content, meeting the current operation habit of the user, and improving user experience. In a scenario where the display mode of the content is a landscape display and the extending direction of the window extends downward, as shown in (c) of fig. 6, when the terminal device detects an operation of sliding upward performed by the user in the first window, as shown in (d) of fig. 6, the terminal device may extend the window lower edge 602 downward to extend the window lower edge 602 to the position of 602', and display new content through the extending portion 62 formed on the lower side of the first window after the window lower edge extends. In a scenario where the display mode of the content is a landscape display and the extending direction of the window extension is upward and downward, as shown in (e) in fig. 6, when the terminal device detects an operation of upward sliding performed by the user in the first window, as shown in (f) in fig. 6, the terminal device may simultaneously extend the window upper edge 601 and the window lower edge 602 upward to extend the window upper edge 601 to the position of 601 'and extend the window lower edge 602 to the position of 602', and may simultaneously move the content in the first window upward to perform display of new content by performing the extending portion 62 formed on the lower side of the first window after the window upper edge and the window lower edge are extended and the content is moved.
For example, when the content is displayed in a horizontal manner, if the user performs a downward refresh of the content (i.e., the new content slides out from above the display interface) through a downward sliding operation, the terminal device may determine the downward sliding operation as a first sliding operation that triggers the terminal device to perform window extension. That is, when the terminal device detects a downward sliding operation performed by the user in the first window, the terminal device may perform upward extension and/or downward extension of the first window in response to the downward sliding operation.
Similarly, when the content is displayed in the portrait mode, if the user performs a rightward refresh of the content (i.e., the new content slides out from the left of the display interface) through a rightward sliding operation, the terminal device may determine the rightward sliding operation as a first sliding operation that triggers the terminal device to perform window extension. That is, when the terminal device detects a rightward sliding operation performed by the user in the first window, the terminal device may perform leftward extension of the left edge of the window and/or perform rightward extension of the right edge of the window in response to the rightward sliding operation. When the content is displayed in the portrait mode, if the user performs a leftward refresh of the content (i.e., the new content slides out from the right of the display interface) through a leftward sliding operation, the terminal device may determine the leftward sliding operation as a first sliding operation that triggers the terminal device to perform window extension. That is, when the terminal device detects a leftward sliding operation performed by the user in the first window, the terminal device may perform leftward extension of the left edge of the window and/or rightward extension of the right edge of the window in response to the leftward sliding operation.
The following takes the operation of sliding right as an example to trigger the terminal device to perform the first operation of extending the window.
For example, when the display mode of the content is a portrait display and the extending direction of the window extends is a scene to the left, as shown in (a) in fig. 7, after the terminal device detects that the user performs the operation of sliding to the right in the first window, as shown in (b) in fig. 7, the terminal device may extend the window left edge 703 to the left to extend the window left edge 703 to the position of 703', and display the new content by the extending portion 72 formed on the left side of the first window after the window left edge is extended. In a scenario where the content is displayed in a vertical manner and the extending direction of the window extends to the right, as shown in (c) of fig. 7, when the terminal device detects an operation of sliding to the right performed by the user in the first window, as shown in (d) of fig. 7, the terminal device may extend the right edge 704 of the window to the right to extend the right edge 704 to the position of 704', and may move the content displayed in the first window to the right, so that after the right edge of the window is extended and the content is moved, the extending portion 72 formed at the left side of the first window displays new content, thereby implementing a leftward refresh function of the content, meeting the current operation habit of the user, and improving the user experience. In a scenario where the display mode of the content is a portrait display and the extending direction of the window extension is left and right, as shown in (e) of fig. 7, when the terminal device detects an operation of sliding right performed by the user in the first window, as shown in (f) of fig. 7, the terminal device may simultaneously extend the window left edge 703 and the window right edge 704 left to extend the window left edge 703 to the position of 703 'and extend the window right edge 704 to the position of 704' and may simultaneously move the content in the first window right to display new content by the extending portion 72 formed on the left side of the first window after the window left edge and the window right edge are extended and the content is moved.
In a possible implementation manner, after the terminal device responds to a first sliding operation performed by a user in a first window and extends the first window edge to a preset position corresponding to the first window edge, if the user continues to perform the first sliding operation in the first window to perform content refreshing, the terminal device does not extend the first window edge any more, but may directly perform refreshing by sliding the content in the first window, or may add a new window in a display interface to continue content display through the newly added window with the first window to perform refreshing.
For example, in a scene in which the extending direction is a single direction (e.g., the extending direction is downward), after the terminal device responds to an upward sliding operation performed by a user in the first window and extends the lower edge of the window to a preset position (e.g., close to the lower edge of the display interface) corresponding to the lower edge of the window, if the user continues to perform the upward sliding operation in the first window, the terminal device will not extend the lower edge of the window downward any more, and can directly slide the entire content in the first window upward to refresh the content; or, the terminal device may also add a new window in the display interface, so as to display new content by continuing the first window through the newly added window, thereby refreshing the content.
For example, in a scene in which the extending direction is multi-directional (e.g., the extending direction is upward and downward), after the terminal device responds to the user performing an upward sliding operation in the first window, extending the upper edge of the window to a preset position corresponding to the upper edge of the window (e.g., close to the upper edge of the display interface), and extending the lower edge of the window to a preset position corresponding to the lower edge of the window (e.g., close to the lower edge of the display interface), if the user continues to perform the upward sliding operation in the first window to perform content refreshing, the terminal device will not extend the lower edge of the window downward and will not extend the upper edge of the window upward, but may directly slide the entire content in the first window upward to perform content refreshing; or, the terminal device may add a new window in the display interface to display new content by continuing the first window through the added window, so as to refresh the content.
The description about the new window will be described later, and will not be repeated herein.
In this embodiment of the application, in a scenario in which an extending direction (hereinafter referred to as a first extending direction) is a single direction, after the terminal device extends the first window edge to the preset position corresponding to the first window edge in response to a first sliding operation performed by a user in the first window, if the user continues to perform the first sliding operation in the first window to refresh the content, the terminal device may further obtain a position of a second window edge opposite to the first window edge in the display interface. When the distance between the position of the second window edge in the display interface and the preset position corresponding to the second window edge is smaller than a third distance threshold, the terminal device can refresh the content through the content in the sliding window or the newly added window; when the distance between the position of the second window edge in the display interface and the preset position corresponding to the second window edge is greater than or equal to the third distance threshold, the terminal device may further move the first window in a second extending direction opposite to the first extending direction, and may continue to extend the first window edge along the first extending direction for the first window after the movement, so as to further enlarge the first window, so that the first window may display new content for the user to browse, and improve the utilization rate of the display interface.
It should be understood that the third distance threshold may be set according to specific situations, for example, the third distance threshold may be set to a height corresponding to a row of contents, or may be set to a width corresponding to a column of contents, and so on. The window edges may be opposite up and down or left and right. For example, when a first window edge is a window upper edge, a second window edge opposite to the first window edge is a window lower edge; when the first window edge is the window left edge, the second window edge opposite to the first window edge is the window right edge. Similarly, the extending directions may be opposite to each other up and down, or left and right, that is, when the first extending direction is upward, the second extending direction opposite to the first extending direction is downward; when the first extending direction is towards the left, the second extending direction opposite to the first extending direction is towards the right.
When the window is moved, the moving distance of the window movement can be set by a user in a self-defined way or can be set by the terminal device in a default way. For example, when the content is displayed in the horizontal direction, the terminal device may default the moving distance to a height corresponding to one line (or two lines, etc.) of content. For example, when the content is displayed in the portrait mode, the terminal device may default the moving distance to the width corresponding to one column (or two columns, etc.) of content.
Alternatively, the moving distance may be determined by the terminal device according to a sliding distance corresponding to the first sliding operation that the user continues to perform in the first window. For example, the terminal device may determine, as the movement distance, a sliding distance corresponding to a first sliding operation that the user continues to perform in the first window. That is, after the terminal device responds to a first sliding operation (e.g., an upward sliding operation) performed by the user in the first window and extends the edge of the first window to the preset position corresponding to the edge of the first window, if the user continues to perform the upward sliding operation in the first window, the terminal device may obtain a sliding distance corresponding to the upward sliding operation, for example, when the sliding distance corresponding to the upward sliding operation is 2 centimeters, the terminal device may determine the moving distance to be 2 centimeters.
Alternatively, the moving distance may be determined by the terminal device according to a distance between a position of the second window edge in the display interface and a preset position corresponding to the second window edge, for example, the terminal device may determine a distance between a position of the second window edge in the display interface and a preset position corresponding to the second window edge as the moving distance, so as to directly maximize the window by one movement, thereby enabling the window to display more content.
It should be understood that, in a scenario in which the sliding distance corresponding to the first sliding operation is determined as the moving distance, when the sliding distance is greater than a distance between a position of the second window edge in the display interface and a preset position corresponding to the second window edge, the terminal device may also determine a distance between the position of the second window edge in the display interface and the preset position corresponding to the second window edge as the moving distance, so as to ensure complete display of the window.
In the embodiment of the application, when the distance between the position of the second window edge in the display interface and the preset position corresponding to the second window edge is greater than or equal to the third distance threshold, the terminal device may also directly extend the second window edge along the second extending direction, and may move the content in the first window in the second extending direction, so as to further enlarge the first window, so that the first window may display new content for the user to browse, and improve the utilization rate of the display interface. The basic principle of continuing to extend the second window edge along the second extending direction is the same as that of extending the first window edge along the first extending direction, and is not described herein again.
It can be understood that, after the terminal device extends the first window edge to the preset position corresponding to the first window edge and moves (or extends) the second window edge to the preset position corresponding to the second window edge, if the user continues to perform the first sliding operation in the first window to perform content refreshing, the terminal device may perform content refreshing through the content in the sliding window or the newly added window.
For ease of understanding, window movement is described below in connection with a particular application scenario.
As shown in fig. 8 (a), in a scenario where the content is displayed in a horizontal manner and the user performs downward refreshing of the content through an upward sliding operation, as shown in fig. 8 (b), after the terminal device responds to the upward sliding operation performed by the user in the first window and extends the window lower edge 802 to a preset position corresponding to the window lower edge (e.g., a position close to the lower edge 81 of the display interface), if the user continues to perform the upward sliding operation in the first window, the terminal device may obtain a distance between the window upper edge 801 and the upper edge of the display interface. When the distance between the window upper edge 801 and the upper edge 80 of the display interface is greater than or equal to the third distance threshold, as shown in fig. 8 (c) and fig. 8 (d), the terminal device may move the first window upward, and may continue the downward extension of the window lower edge 802 with respect to the moved first window to display new content by continuing to extend the extension 82 formed by the window lower edge 802 downward. After the window upper edge 801 moves to a position close to the upper edge 80 of the display interface and the window lower edge 802 extends to a position close to the lower edge 81 of the display interface, if the user continues to perform the operation of sliding down in the first window, the terminal device may perform content refreshing by sliding the content in the first window up as a whole or adding a new window in the display interface.
In the embodiment of the application, in the process of displaying content through the first window in the extended state, when the content height of the content currently displayed by the first window is smaller than the current window height of the first window (or the content width of the content currently displayed by the first window is smaller than the current window width of the first window), the terminal device may shrink the extended window edge to reduce the current window height (or window width) of the first window, thereby reducing the waste of the display area.
It will be appreciated that the direction of contraction of the window may be determined in accordance with the direction of extension in which the window extends, wherein the direction of contraction is opposite to the direction of extension. That is, when the extending direction is upward extension, the contracting direction may be downward contraction; when the extending direction is extending leftward, the contracting direction may be contracting rightward, and so on.
When the window is shrunk, the shrinking distance of the window shrinking may be determined according to the content height of the content currently displayed by the first window and the current window height of the first window (or may be determined according to the content width of the content currently displayed by the first window and the current window width of the first window). For example, when the content is displayed in a horizontal manner, the terminal device may determine a difference between a current window height of the first window and a content height of the content currently displayed in the first window as a shrinking distance of the window shrinking. When the content is displayed in the vertical direction, the terminal device may determine a difference between a current window width of the first window and a content width of the content displayed in the first window as a window contraction distance.
The terminal device may also be provided with a second sliding operation that triggers the terminal device to perform window contraction, and the second sliding operation may be any sliding operation different from the first sliding operation. When the user wants to shrink the first window in the extended state, the user can execute a second sliding operation in the first window, and when the terminal device detects the second sliding operation executed by the user in the first window, the window can be shrunk.
At this time, the shrinking distance of the window may also be determined according to the sliding distance corresponding to the second sliding operation, for example, the terminal device may determine the sliding distance corresponding to the second sliding operation as the shrinking distance of the window, so that the window shrinking is matched with the sliding operation of the user, and the user experience is improved.
It is understood that the shrinking distance of the window shrinking can also be set by the user or by default by the terminal device. For example, when the content is displayed in a horizontal manner, the user may set the contraction distance to a height corresponding to any number of lines of content, such as one line, two lines, and the like, in a customized manner. For example, when the content is displayed in the portrait mode, the terminal device may default the contraction distance to a width corresponding to any number of columns, such as one column, two columns, and the like.
In this embodiment, the terminal device may further determine a contraction distance according to the original state of the first window, so as to restore the extended first window to the original state. The original state refers to a default state in the display interface when the first window is not extended. Specifically, when the terminal device may obtain the original state, a first position of the first window edge in the display interface, and a second position of the first window edge in the display interface at present, and may determine a distance between the first position and the second position of the first window edge as a contraction distance of the first window edge, so as to retract the first window edge to the default position according to the contraction distance of the first window edge. Similarly, when the window is moved or the second window edge is extended, the terminal device may further obtain a first position of the second window edge in the display interface in the original state, and may obtain a second position of the second window edge currently in the display interface, and may determine a distance between the first position and the second position of the second window edge as a contraction distance of the second window edge, so as to contract the second window edge to the default position according to the contraction distance of the second window edge, thereby restoring the first window to the original state.
The operation of the window extension will be briefly explained below.
When the user performs the first sliding operation in the window, the touch sensor under the display interface may transmit a sliding input event corresponding to the first sliding operation to the processor in the terminal device. After receiving the sliding input event, the processor may distribute the sliding input event to the window manager and the application program corresponding to the window, where the sliding input event may include a sliding direction and a sliding distance performed in the window by the user, and the like. After the application program corresponding to the window receives the sliding input event, the extending direction and the extending distance of the window extension may be determined according to the sliding input event, for example, the extending direction of the window extension may be determined according to the sliding direction, and the extending distance of the window extension may be determined according to the sliding distance. In addition, the application program corresponding to the window can also determine the newly added display content according to the extension distance and the window size, and can send the determined extension direction and the extension distance to the window manager and send the newly added display content to the view system in the terminal device. After receiving the sliding input event, the extending direction and the extending distance, the window manager can adjust the window parameters according to the extending direction and the extending distance, and can transmit the adjusted window parameters to the view system. The window parameters may include window size, window position, and change information of the window. After receiving the adjusted window parameters and the newly added display contents, the view system can draw a window according to the adjusted window parameters and the newly added display contents, and can display the drawn window on a display interface for a user to browse.
(II) adding new window
In the content browsing process, the terminal device may add a new window in response to a sliding operation performed by the user in the first window to display new content through the newly added window.
In this embodiment of the application, after the first window is extended to the preset state through the window extension, if the user continues to perform the first sliding operation in the first window, the terminal device may add a new window in the display interface in response to the first sliding operation that the user continues to perform in the first window, so as to display new content through the newly added second window for the user to browse, where the new content displayed in the second window is continued to the content in the first window. The preset state may be a state in which the first window edge extends to the preset position corresponding to the first window edge, or a state in which the first window edge extends to the preset position corresponding to the first window edge and the second window edge moves (or extends) to the preset position corresponding to the second window edge.
Or, the terminal device may also be provided with a third sliding operation that can trigger the terminal device to directly add a new window. In the content browsing process, the user can directly execute a third sliding operation in the first window to trigger the terminal device to add a new window in the display interface. For example, after the terminal device extends the first window to the preset state through the window extension, the user may directly perform a third sliding operation in the first window, and after the terminal device detects the third sliding operation, the window may be directly added in the display interface. For example, when the terminal device displays content through the first window with the default size, the user may also directly perform the third sliding operation in the first window, and after detecting the third sliding operation, the terminal device may directly add a new window in the display interface. The third sliding operation is not limited in this embodiment, and may be an operation of sliding left, an operation of sliding right, or the like.
That is, in the embodiment of the present application, the terminal device may perform window addition after performing window extension, or may directly perform window addition when the window extension is not performed. The following are described separately: (1) newly adding a window after the window is extended; (2) And (4) directly adding a new window (namely, adding the new window when the window extension is not carried out).
(1) Newly-added window after window extension
In this embodiment, before adding a second window, the terminal device needs to determine the window size (including the window height and the window width) of the second window and the position relationship between the second window and the first window, so as to add the second window according to the window size of the second window and the position relationship between the second window and the first window.
Optionally, the window size of the second window may be determined according to the display mode of the content in the first window and the window size of the first window, so as to ensure that the second window can display the content according to the original content layout of the application, and avoid need of re-layout of the content in the application when the content is displayed through the second window.
For example, when the content is displayed in the horizontal direction, the terminal device may determine the window width of the first window as the window width of the second window, so as to avoid re-layout of the content displayed in the second window, thereby improving the content display efficiency. The window height of the second window may be determined according to the sliding distance corresponding to the first sliding operation that the user continues to execute in the first window, for example, the terminal device may directly determine the sliding distance corresponding to the first sliding operation as the window height of the second window, so that the newly displayed content of the second window is matched with the sliding operation of the user, and the user experience is improved. Alternatively, the window height of the second window may be determined according to the current window height of the first window, for example, the terminal device may determine the current window height of the first window as the window height of the second window, so as to directly maximize the second window, so that the terminal device may display more content through the second window for the user to browse. Of course, the terminal device may also determine the original window height of the first window as the window height of the second window.
For example, when the content is displayed in a portrait manner, the terminal device may determine the window height of the first window as the window height of the second window. The window width of the second window may be determined according to a sliding distance corresponding to the first sliding operation that the user continues to execute in the first window, or the original window width of the first window may be determined as the window width of the second window. The original window height and the original window width refer to the default window height and window width of the terminal device when the first window is not subjected to window extension.
It should be noted that, after determining the window size of the second window, the terminal device may obtain the remaining display area in the display interface, so as to determine whether to add the second window in the display interface according to the remaining display area and the window size of the second window. Specifically, when the display height of the remaining display area is greater than or equal to the window height of the second window, and the display width of the remaining display area is greater than or equal to the window width of the second window, the terminal device determines that the second window can be newly added in the display interface. When the display height of the remaining display area is smaller than the window height of the second window, or the display width of the remaining display area is smaller than the window width of the second window, the terminal device may determine that there is no sufficient display area in the display interface for adding the second window newly, and at this time, the terminal device does not add the second window in the display interface newly.
In an application scenario, the remaining display area refers to a display area of the display interface other than a window corresponding to an application being browsed by the user. In other words, in this scenario, the newly added second window may cover other windows in the display interface, so that the terminal device may preferentially perform content display of the second window. The window corresponding to the application being browsed by the user may include a first window and a second window that is newly added through the newly added window.
In another application scenario, the remaining display area refers to a blank display area of the display interface that is not occupied by a window. In other words, in this scenario, the terminal device may add the second window according to the blank display area in the display interface, so that the added second window does not cover other windows in the display interface, thereby avoiding the added second window from affecting the content display of other windows in the display interface, and improving the user experience. At this time, the other window is any window in the display interface.
In the embodiment of the application, the position relationship between the second window and the first window can be determined according to the display mode of the content in the first window and the browsing habit of the user in the display interface, so that the new content displayed through the second window conforms to the browsing habit of the user, and the user experience is improved.
For example, when the content is displayed in a horizontal manner, if the user is accustomed to browsing from left to right, the terminal device may determine that the second window should be located on the right side of the first window, that is, the terminal device may sequentially add new second windows on the right side of the first window based on the first sliding operation. Optionally, to ensure that more windows may be added to the display interface to display more contents for the user to browse, in this embodiment of the application, a distance between a left edge of a newly added second window and a right edge of a window of an adjacent window may be 0, and the adjacent window may be the first window or may be a second window that has been newly added before the newly added current second window. That is, when the second window is added for the first time, the terminal device may add the second window next to the right edge of the window of the first window; when the second window is newly added for the second time, the terminal device may newly add a second window next to the right edge of the window of the second window newly added for the first time, and when the second window is newly added for the third time, the terminal device may newly add a second window next to the right edge of the window of the second window newly added for the second time, and so on until the window cannot be newly added in the display interface, or the window does not need to be newly added to the content in the application, or the user stops newly adding the window. The content in the application does not need to be added with a new window, which means that the content in the application is completely displayed.
It can be understood that, when the window size of the second window is smaller than the window size of the first window (that is, the window height of the second window is smaller than the current window height of the first window), it indicates that the subsequent terminal device may perform window extension on the second window, and therefore, to improve the extension efficiency of the second window, the terminal device may further determine the specific position of the second window on the right side of the first window according to the extension direction of the window extension.
Specifically, when the extending direction is downward, the terminal device determines that the specific position of the second window on the right side of the first window may be a position closer to the window upper edge of the first window, that is, the distance between the window upper edge of the second window and the window upper edge of the first window is less than or equal to the distance between the window lower edge of the second window and the window lower edge of the first window, and the subsequent terminal device may extend the window lower edge of the second window downward according to the first sliding operation performed by the user to expand the second window to display more content. When the extending direction is upward, the terminal device determines that the specific position of the second window on the right side of the first window may be a position closer to the window lower edge of the first window, that is, the distance between the window upper edge of the second window and the window upper edge of the first window is greater than the distance between the window lower edge of the second window and the window lower edge of the first window, and the subsequent terminal device may extend the window upper edge of the second window upward according to the first sliding operation performed by the user to expand the second window to display more content.
When the window extension of the second window is performed, a user may perform the window extension of the second window by performing the first sliding operation on the first window, or may perform the window extension of the second window by performing the first sliding operation on the second window, which is not limited in the embodiment of the present application.
For example, as shown in (a) in fig. 9 and (b) in fig. 9, after the terminal device responds to a first sliding operation (e.g., an operation of sliding upward) performed by the user in the first window 901, and extends the window lower edge 9011 of the first window 901 to a preset position (e.g., a position close to the lower edge of the display interface) corresponding to the window lower edge, when the user continues to perform the operation of sliding upward in the first window 901, as shown in (c) in fig. 9, the terminal device may add a second window 902 to the right side of the first window 901. Subsequently, when the user continues to perform the operation of sliding up in the first window 901 or the second window 902, as shown in (d) of fig. 9, the terminal device may then extend the window lower edge 9021 of the second window 902 downward. After the window lower edge 9021 of the second window 902 extends to a position close to the lower edge of the display interface, if the user continues to perform the operation of sliding upward in the first window 901 or the second window 902, as shown in (e) in fig. 9 and (f) in fig. 9, the terminal device may continue to add the second window 903 newly on the right side of the window 902, and may continue to extend the window lower edge 9031 of the second window 903 downward in response to the operation of sliding upward in the first window 901, the second window 902, or the second window 903 by the user, and so on until no window can be added newly in the display interface.
For example, as shown in (a) of fig. 10 and (b) of fig. 10, after the terminal device responds to a first sliding operation (e.g., an upward sliding operation) performed by the user in the first window 1001, and extends the window upper edge 1011 of the first window 1001 to a preset position corresponding to the window upper edge (e.g., a position close to the window lower edge 101 of the window 10 corresponding to the short message application), when the user continues to perform the upward sliding operation in the first window 1001, as shown in (c) of fig. 10, the terminal device may add a second window 1002 to the right side of the first window 1001. Subsequently, when the user continues to perform the operation of sliding upward in the first window 1001 or the second window 1002, as shown in (d) in fig. 10, the terminal device may then extend the window upper edge 1021 of the second window 1002 upward. After the window upper edge 1021 of the second window 1002 extends to a position close to the window lower edge 101 of the window 10, if the user continues to perform the operation of sliding upward in the first window 1001 or the second window 1002, as shown in (e) in fig. 10 and (f) in fig. 10, the terminal device may continue to add the second window 1003 on the right side of the window 1002, and may continue to extend the window upper edge 1031 of the second window 1003 upward in response to the operation of sliding upward in the first window 1001, the second window 1002, or the second window 1003, and so on until no window can be added in the display interface.
For example, when the content is displayed in the vertical direction, if the user is used to browse from top to bottom, the terminal device may determine that the second window is located below the first window, that is, the terminal device may sequentially add new second windows to the lower side of the first window based on the first sliding operation. When the window size of the second window is smaller than the window size of the first window (that is, the window width of the second window is smaller than the current window width of the first window), it indicates that the subsequent terminal device may perform window extension on the second window, and therefore, to improve the extension efficiency of the second window, the terminal device may further determine the specific position of the second window on the lower side of the first window according to the extension direction of the window extension.
Specifically, when the extending direction is rightward, the terminal device determines that the specific position of the second window on the lower side of the first window may be a position closer to the left edge of the window of the first window. When the extending direction is towards the left, the terminal device determines that the specific position of the second window on the lower side of the first window can be a position closer to the right edge of the first window.
For example, as shown in fig. 11 (a) and 11 (b), after the terminal device extends the window left edge 1111 of the first window 1101 to a preset position corresponding to the window left edge (e.g., a position close to the left edge of the display interface) in response to a first sliding operation (e.g., an operation of sliding to the right) performed by the user in the first window 1101, when the user continues to perform the operation of sliding to the right in the first window 1101, as shown in fig. 11 (c), the terminal device may add a second window 1102 on the lower side of the first window 1101. Subsequently, when the user continues to perform the operation of sliding to the right in the first window 1101 or the second window 1102, as shown in (d) in fig. 11, the terminal device may then extend the window left edge 1121 of the second window 1102 to the left, and so on until no window can be added in the display interface.
Similarly, when the content is displayed in a horizontal manner, if the user is used to browse from right to left, the terminal device may determine that the second window is located on the left side of the first window. When the window size of the second window is smaller than the window size of the first window and the extending direction is downward, the terminal device determines that the specific position of the second window on the left side of the first window can be a position closer to the upper edge of the first window. When the window size of the second window is smaller than the window size of the first window and the extending direction is upward, the terminal device determines that the specific position of the second window on the left side of the first window may be a position closer to the lower edge of the window of the first window.
When the content is displayed in the vertical mode, if the user is used to browse from bottom to top, the terminal device may determine that the second window is located on the upper side of the first window. When the window size of the second window is smaller than that of the first window and the extending direction is leftward, the terminal device determines that the specific position of the second window on the upper side of the first window may be a position closer to the right edge of the first window. When the window size of the second window is smaller than the window size of the first window and the extending direction is rightward, the terminal device determines that the specific position of the second window on the upper side of the first window may be a position closer to the left edge of the first window.
In the embodiment of the application, after determining that the second window can be newly added in the display interface according to the remaining display area in the display interface, and determining the position relationship between the second window and the first window and the window size of the second window, the terminal device can newly add the second window according to the remaining display area in the display interface, the position relationship between the second window and the first window, and the window size of the second window.
For example, when it is determined that a second window is newly added on the right side of the first window, if the region width of the remaining display region on the right side of the first window is greater than or equal to the window width of the second window, the terminal device may directly add the second window on the right side of the first window to perform new content display. If the area width of the remaining display area on the right side of the first window is smaller than the window width of the second window, it indicates that the remaining display area on the right side of the first window cannot completely display the second window, at this time, the terminal device may move the first window to the left, and add a second window to the right side of the moved first window to display new content. The distance that the first window moves to the left may be determined according to the area width of the remaining display area on the left side of the first window, or may be determined according to the difference between the area width of the remaining display area on the right side of the first window and the window width of the second window.
Optionally, when the area width of the remaining display area on the right side of the first window is greater than or equal to the window width of the second window and the remaining display area also exists on the left side of the first window, in order to ensure that the new content displayed on the second window can be closer to the sight of the user, and facilitate the user to browse the content in the second window, so as to improve the user experience, the terminal device may also first move the first window to the left, and then may add the second window on the right side of the first window to display the new content. The distance of the left movement of the first window can be determined according to the window width of the second window and the area width of the left remaining display area of the first window. For example, when the area width of the remaining display area on the left side of the first window is greater than or equal to the window width of the second window, the distance that the first window moves to the left may be the window width of the second window, so that the second window may be displayed at the original position of the first window, and a user may browse new content in the second window conveniently. For example, when the area width of the remaining display area on the left side of the first window is smaller than the window width of the second window, the distance that the first window moves to the left may be the area width of the remaining display area on the left side of the first window, so that the second window may be close to the line of sight of the user, which is convenient for the user to browse new content in the second window.
It can be understood that, after the first second window is newly added on the right side of the first window, if the left side of the first window still has the remaining display area, when the terminal device continues to perform window addition, the first window and the first second window may be continuously moved to the left as a whole, and then the second window is newly added on the right side of the first second window to display new content, so that the newly added second window may be close to the line of sight of the user, thereby facilitating the user to continuously browse the new content in the newly added second window. Similarly, when a third and a fourth second windows are newly added, the window may be moved according to the remaining display area on the left side of the first window.
For example, in the scenario shown in (a) in fig. 12, when the terminal device determines that a window needs to be added on the right side of the first window 1201, as shown in (b) in fig. 12, the terminal device may first move the first window 1201 to the left, and then add the second window 1202 on the right side of the first window 1201, so that the second window 1202 may be directly displayed at the original position of the first window 1201, and at this time, the line of sight of the user is generally located at the original position of the first window 1201, so that the user can view the new content in the second window 1202 without performing line of sight movement, which greatly facilitates the user to browse. After the second window 1202 is newly added, when the terminal device determines that windows need to be added, as shown in (c) in fig. 12, the terminal device may first move the first window 1201 and the second window 1202 to the left, and then may add a second window 1203 to the right side of the second window 1202, so that the second window 1203 may be close to the current line of sight of the user, thereby facilitating the user to continue browsing new content in the second window 1203.
It should be noted that, in this embodiment of the application, when it is determined that a second window is newly added on the left side of a first window, or it is determined that a second window is newly added on the upper side/lower side of the first window, the terminal device may also refer to the above similar manner to perform window addition, and details are not described here again.
In the embodiment of the application, when the display interface can not display more contents for the user to browse through the window extension and the newly added window, if the user continues to execute the first sliding operation in the first window or any newly added second window to refresh the contents, the terminal device can slide the contents of the first window and all the second windows as a whole, namely, the contents in the second window added for the Nth time can be moved to the second window added for the Nth-1 time, wherein the contents in the second window added for the Nth time, the contents in the first time, the contents in the second window, the first time, and the contents in the second window are moved to the first window to slide the contents, so that the new contents are displayed for the user to browse. Wherein N is an integer greater than or equal to 1.
After the window is newly added, the terminal device may shrink the window edge or delete the window according to the content height and the window height of the content displayed by the window (or the content width and the window width of the content displayed by the window), so as to reduce the waste of the display area and improve the display efficiency. For example, when the content is displayed horizontally, when the terminal device detects that the height of the content in the second window added for the nth time is smaller than the height of the second window added for the nth time, the terminal device may perform window edge shrinking on the second window added for the nth time; when the terminal device detects that the height of the content in the second window added for the nth time is 0, the terminal device may directly delete the second window added for the nth time. For example, when the content is displayed in the portrait mode, when the terminal device detects that the content width in the second window added for the nth time is smaller than the window width of the second window added for the nth time, the terminal device may perform window edge shrinking on the second window added for the nth time; when the terminal device detects that the content width in the second window added at the nth time is 0, the terminal device may directly delete the second window added at the nth time. Wherein n is any value of [1, N ]. The shrinking of the window edge of the second window added at the nth time by the terminal device may refer to the shrinking process in the window extension, which is not described herein again.
It can be understood that, after the window is newly added, the user can actively delete the window according to actual needs. Namely, a fourth sliding operation for triggering the terminal device to delete the window can be set in the terminal device. When the user wants to delete a window, the user may perform a fourth sliding operation in the first window or any of the second windows. And after the terminal equipment detects the fourth sliding operation executed by the user, the window can be deleted. Wherein, the order of window deletion can be determined according to the display order of the windows. For example, the order of window deletion may be the order in which the last displayed window was deleted first and the first displayed window was deleted last. For example, the order of window deletion may be the order in which the last displayed window was deleted last and the first displayed window was deleted first.
Similar to window deletion in the window management interface, in the embodiment of the present application, when window deletion is performed based on a fourth sliding operation of a user, the terminal device may also directly delete the window corresponding to the fourth sliding operation. That is, when window deletion is performed, the user may directly perform the fourth sliding operation in the window (including the first window and the second window) that is desired to be deleted, and after the terminal device detects the fourth sliding operation in the window, the window may be directly deleted.
(2) Directly adding new window (i.e. adding new window when not extending window)
When the content of the application is not suitable for split display, for example, when the picture of the gallery application is displayed through the window, if the picture is split displayed through window extension, the browsing experience of the user is obviously affected, and therefore, in order to improve the browsing experience of the user, for the content which is not suitable for split display, the terminal device may add a second window to display based on the sliding operation executed by the user in the first window. The window size of the newly added second window can be the same as the current window size of the first window, so that the content display effect is improved, and the user experience is improved.
That is, when the terminal device detects a first sliding operation performed by a user in the first window while displaying the first content of an application through the first window, the terminal device may first determine whether or not a second content following the first content in the application is suitable for split display. When the terminal device determines that the second content is not suitable for split display, for example, when the second content is a picture not suitable for split display, the terminal device may directly add a new second window in the display interface to display the second content in response to a first sliding operation performed by the user in the first window.
Or, in this embodiment of the present application, the terminal device may also be provided with a third sliding operation that can directly trigger a new window of the terminal device. In the content browsing process, when the user wants to directly display more contents through one sliding operation or determines that the contents are not suitable for split display, the user can directly execute a third sliding operation in the first window. After detecting the third sliding operation executed by the user in the first window, the terminal device can directly add a second window with the same size as the current window of the first window in the display interface for content display, thereby facilitating the browsing of the user. The third sliding operation may be an operation of sliding upward, an operation of sliding downward, an operation of sliding leftward, an operation of sliding rightward, or the like, which is not limited in this embodiment of the present application.
In this embodiment of the application, before adding a window, the terminal device needs to determine a position relationship between the second window and the first window, so as to add the second window according to the position relationship between the second window and the first window. The position relation between the second window and the first window can be determined according to the browsing habits of the user.
For example, when the user is used to browse in the order from top to bottom and from left to right, the terminal device may determine the position relationship between the second window and the first window according to the order from top to bottom and from left to right. Specifically, when the second window is newly added, the terminal device may first add the second window a to the lower side of the first window. When the second window cannot be added to the lower side of the first window, the terminal device may add a second window B to the right side of the first window, and then may add a second window to the lower side of the second window B. When the second window cannot be added to the lower side of the second window B, the terminal device may add a second window C to the right side of the second window B, and then add a second window to the lower side of the second window C, and so on until the window cannot be added to the display interface, or the content in the application does not need to be added to the window again, or the user stops adding the window again.
For example, in a picture browsing scene, as shown in (a) in fig. 13 and (b) in fig. 13, when the terminal device detects a third sliding operation (e.g., an operation of sliding to the left) performed by the user in the first window 1301, since a window cannot be added to the lower side of the first window 1301, the terminal device may add a second window 1302 to the right side of the first window 1301. Subsequently, when the user continues to perform the operation of sliding left in the first window 1301 or the second window 1302, as shown in (c) in fig. 13, the terminal device may continue to add a second window 1303 on the right side of the second window 1302, and so on until no window can be added in the display interface.
For example, in a picture browsing scene, as shown in (a) in fig. 14 and (b) in fig. 14, when the terminal device detects a third sliding operation (such as an operation of sliding to the left) performed by the user in the first window 1401, the terminal device may add a second window 1402 to the lower side of the first window 1401 in advance. Subsequently, when the user continues the operation of sliding to the left performed in the first window 1401 or the second window 1402, as shown in (c) in fig. 14, the terminal device may continue to add a second window 1403 to the right side of the first window 1401. Subsequently, when the user continues the operation of sliding left performed in the first window 1401, the second window 1402, or the second window 1403, as shown in (d) in fig. 14, the terminal device may then newly add a second window 1404 on the lower side of the second window 1403.
For example, in an electronic book reading scene, as shown in (a) in fig. 15 and (b) in fig. 15, after the terminal device extends the first window 1501 to a preset state in response to a first sliding operation (such as an operation of sliding up) performed by the user in the first window 1501, when the user wants to directly display more contents through one sliding operation, the user may directly perform a third sliding operation in the first window 1501, taking as an example the operation in which the third sliding operation is a sliding left operation. After the terminal device detects the operation of sliding to the left performed by the user in the first window 1501, as shown in (c) of fig. 15, the terminal device may add a second window 1502 directly to the right of the first window 1501. Alternatively, as shown in fig. 15 (d), the terminal device may first move the first window 1501 to the left, and then add the second window 1502 to the original position of the first window 1501, so that the added second window 1502 may be closer to the line of sight of the user, thereby facilitating the browsing of the user. The window size of the second window 1502 is the same as the size of the first window 1501, so that the terminal device can directly display more contents through the second window 1502 for the user to browse.
For example, when the user is used to browse from right to left and from top to bottom, the terminal device may determine the position relationship between the second window and the first window according to the sequence from right to left and from top to bottom.
For example, in the e-book reading scene shown in fig. 16 (a), after the terminal device detects a third sliding operation (e.g., an upward sliding operation) performed by the user in the first window 1601, as shown in fig. 16 (b), the terminal device may add a second window 1602 to the left side of the first window 1601. Subsequently, when the user continues to perform the operation of sliding up in the first window 1601 or the second window 1602, as shown in (c) in fig. 16, the terminal apparatus may newly add a second window 1603 on the lower side of the first window 1601. Subsequently, when the user continues to perform the operation of sliding up in the first window 1601, the second window 1602, or the second window 1603, as shown in (d) in fig. 16, the terminal device may add a second window 1604 on the left side of the second window 1603.
It can be understood that, when the user is used to browse in the order from top to bottom and from right to left, the terminal device may determine the position relationship between the second window and the first window according to the order from top to bottom and from right to left. When a user is used to browse from left to right and from top to bottom, the terminal device may determine the position relationship between the second window and the first window according to the sequence from left to left and from top to bottom.
It should be noted that, in a scenario that the terminal device is a terminal device with a foldable display screen, and the first window is located in the first display screen of the foldable display screen, when the terminal device detects a first sliding operation performed by a user in the first window, the terminal device may directly add a second window in the second display screen of the foldable display screen to display the second content, where the second content is continuous with the first content displayed in the first window. The window size of the second window may be determined by referring to the aforementioned determination method. The position of the second window in the second display screen may be set by the terminal device by default, or may be set by the user by self, or may be determined by the terminal device according to the position of the first window in the first display screen, that is, the terminal device may determine the first display screen and the second display screen as one display interface, and then may determine the position of the second window in the second display screen by referring to the aforementioned determination manner.
In the embodiment of the application, after the second window is newly added, the user can delete the window according to actual needs. That is, the terminal device may be provided with a fifth sliding operation for triggering the terminal device to delete the window, and the fifth sliding operation may be the same as or different from the fourth sliding operation. Specifically, when the user wants to delete a window, the user may perform a fifth sliding operation in the first window or any of the second windows. And after the terminal equipment detects the fifth sliding operation executed by the user, the window can be deleted. Wherein, the order of window deletion can be determined according to the window display order. For example, the order of window deletion may be the order in which the last displayed window was deleted first and the first displayed window was deleted last. For example, the order of window deletion may be the order of last deletion of the last displayed window and first deletion of the first displayed window.
It should be noted that, similar to window deletion in the window management interface, in the embodiment of the present application, when window deletion is performed based on a fifth sliding operation of a user, the terminal device may also directly delete a window corresponding to the fifth sliding operation. That is, when window deletion is performed, the user may directly perform the fifth sliding operation in the window (including the first window and the second window) that is desired to be deleted, and after the terminal device detects the fifth sliding operation in the window, the window may be directly deleted.
In the embodiment of the application, in a scene in which content in an application can be displayed in a split manner, after the terminal device responds to a third sliding operation executed by a user in the first window or the second window to directly add a new second window, the terminal device may further respond to a first sliding operation executed by the user in the first window or the second window to perform window extension on the first window and/or the second window. That is, the user may first perform a third sliding operation in the first window to add a new second window. Then, the user can execute a first sliding operation in the first window or the second window to trigger the terminal device to perform window extension. When the window is extended, the terminal device may respectively perform window extension on all windows corresponding to the application, or may perform window extension on a window corresponding to the first sliding operation, so that the window corresponding to the application may display more contents for a user to browse. Here, the specific window extending operation may refer to the aforementioned window extending, and is not described herein again.
For example, in an e-book reading scene, when the terminal device performs a third sliding operation (such as an operation of sliding leftward) in the first window 1701 while the terminal device is performing content display in the first window 1701 as shown in (a) of fig. 17, the terminal device may add a second window 1702 to the right of the first window 1701 as shown in (b) of fig. 17. After newly adding the second window 1702, when the user performs a first sliding operation (such as an operation of sliding upward) in the first window 1701 or the second window 1702, taking the operation of sliding upward in the second window 1702 as an example, as shown in fig. 17 (c), the terminal device may extend the upper window edges of the first window 1701 and the second window 1702 upward, respectively, so that the first window 1701 and the second window 1702 may display more content. Alternatively, as shown in (d) of fig. 17, the terminal device may extend only the window upper edge of the second window 1702 upward, so that the second window 1702 can display more content. When the window extends, the content in the window also moves correspondingly.
2. The window is a window for other equipment (hereinafter referred to as second terminal equipment) to cast a screen in the terminal equipment (hereinafter referred to as first terminal equipment)
After the first terminal device and the second terminal device establish device cooperation, the first terminal device may display the content of the second terminal device through a first window with a default size, for example, display the content of an application in the second terminal device, so that a user may browse the content of the application in the first terminal device. When the user browses the content of the application through the first window, if the user wants to continue browsing the new content or the browsed content of the application in the first terminal device, the user may perform a sliding operation in the first window, such as an operation of sliding upward or an operation of sliding leftward, and the like. After the first terminal device detects the sliding operation executed by the user in the first window, the window can be automatically expanded to display the new content or the browsed content of the application, so that the user can browse conveniently.
The first terminal device can extend the window through the window extension and/or the new window to display new content or browsed content for a user to browse. Here, the basic principle of the window extension performed by the first terminal device is the same as that of the window extension in the aforementioned "the window is a window corresponding to the terminal device self application", and the basic principle of the new window performed by the first terminal device is also the same as that of the new window in the aforementioned "the window corresponding to the terminal device self application", and specific contents may refer to the foregoing description, and are not described again here.
In the embodiment of the application, when the first terminal device expands the window based on the sliding operation performed by the user in the first window to additionally display new content or browsed content in the first terminal device, the first terminal device may convert a first sliding input event corresponding to the sliding operation detected in the first window into a second sliding input event corresponding to the second terminal device, and send the second sliding input event to the second terminal device, and may also send information of the new content or the browsed content that needs to be additionally displayed to the second terminal device. After receiving the second sliding input event sent by the first terminal device and the information of the new content or the browsed content which needs to be additionally displayed, the second terminal device may update the content displayed by the second terminal device, so as to synchronously display the new content or the browsed content additionally displayed in the first terminal device in the second terminal device, so that the content displayed by the second terminal device is matched with the sliding operation executed by the user in the first window of the first terminal device.
Specifically, when the content is displayed in the horizontal mode, if the content height of the new content (or the browsed content) that is additionally displayed in the first terminal device is greater than or equal to the display height of the second terminal device, the second terminal device may directly display the newly added new content (or the browsed content) in the display interface, and the content height of the displayed new content (or the browsed content) is the display height of the second terminal device, so as to update the content displayed by the second terminal device. If the content height of the new content (or the browsed content) which is additionally displayed in the first terminal device is smaller than the display height of the second terminal device, the second terminal device can display the new content (or the browsed content) and the current content which is partially connected with the new content (or the browsed content) in the display interface, and the total height of the displayed new content (or the browsed content) and the current content is the display height of the second terminal device so as to update the content displayed by the second terminal device. The display height of the second terminal device refers to the height of a display interface of the second terminal device, and the current content is the content being displayed by the second terminal device before the content of the second terminal device is updated.
For example, in a scenario in which the second terminal device displays the gallery application, after the first terminal device 180 and the second terminal device 181 establish device cooperation, as shown in (a) in fig. 18, the first terminal device 180 may display a first picture of the gallery application through a first window 1801 of a default size, where the first picture is a picture currently being displayed by the second terminal device 181. When the user wants to browse the next picture, the user may perform a fourth sliding operation (e.g., an operation of sliding left) in the first window 1801 of the first terminal device 180. Upon detecting the operation of the left-sliding performed by the user in the first window 1801, the first terminal device 180 may add a second window 1802 on the right side of the first window 1801, as shown in (b) in fig. 18, to add a second picture displaying the gallery application through the newly added second window 1802. Meanwhile, the second terminal device 181 may also perform synchronous update of the picture, that is, the picture currently displayed in the display interface may be updated from the first picture to the second picture.
For example, in a scenario in which the second terminal device displays an e-book application, after the first terminal device 190 establishes device cooperation with the second terminal device 191, as shown in (a) of fig. 19, the first terminal device 190 may display first content of the e-book application, which is content currently being displayed by the second terminal device 191, through a first window 1901 of a default size. When the user wants to continue browsing new contents of the e-book application, the user may perform a first sliding operation (such as an operation of sliding up) in the first window 1901 of the first terminal device 190. After the first terminal device 190 detects the operation of the upward sliding performed by the user in the first window 1901, as shown in (b) in fig. 19, the first terminal device 190 may extend the upper window edge of the first window 1901 upward to increase the display of the second content 192 of the e-book application by the extended portion formed by extending the upper window edge upward. Meanwhile, the second terminal device 191 may also perform synchronous update of the content, that is, may display the second content 192 and the first content partially connected to the second content 192 in the display interface.
Specifically, when the content display mode is horizontal display, if the content width of the new content (or the browsed content) that is additionally displayed in the first terminal device is greater than or equal to the display width of the second terminal device, the second terminal device may directly display the newly added new content (or the browsed content) in the display interface, where the content width of the displayed new content (or the browsed content) is the display width of the second terminal device, so as to update the content displayed by the second terminal device. If the content width of the new content (or the browsed content) which is additionally displayed in the first terminal device is smaller than the display width of the second terminal device, the second terminal device can display the new content (or the browsed content) and the current content which is partially connected with the new content (or the browsed content) in the display interface, and the total width of the displayed new content (or the browsed content) and the current content is the display width of the second terminal device so as to update the content displayed by the second terminal device. The display width of the second terminal device refers to the width of a display interface of the second terminal device, and the current content is the content being displayed by the second terminal device before the content of the second terminal device is updated.
In the embodiment of the application, the user may also perform a sliding operation in the second terminal device to trigger the first terminal device expansion window. Specifically, when the first terminal device displays the content of an application in the second terminal device through the first window with the default size, if the user wants to continue browsing the new content or the browsed content of the application in the first terminal device, the user may perform a sliding operation in the display interface of the second terminal device, that is, perform a sliding operation in the window corresponding to the application in the second terminal device. After the second terminal device detects the sliding operation performed by the user, the second terminal device may convert a second sliding input event corresponding to the detected sliding operation into a first sliding input event corresponding to the first terminal device, and send the first sliding input event to the first terminal device. After receiving the first sliding input event sent by the second terminal device, the first terminal device can automatically expand the first window in the first terminal device, so that the first terminal device can display more contents, and a user can browse conveniently.
It is understood that after the window is expanded by the first terminal device, the user may perform corresponding operations on the content of the application in the first terminal device or the second terminal device, for example, copy the content, enlarge the content, reduce the content, and the like. When a user operates the content synchronously displayed in the first terminal device and the second terminal device, such as when the user operates the content in the second terminal device, the first terminal device and the second terminal device can both display the operation performed by the user, such as when copying the content, selection frames of the copied content can be respectively displayed in the first terminal device and the second terminal device. When a user operates the difference content in the first terminal device and the second terminal device, the first terminal device may display the operation being executed by the user, and at this time, the second terminal device does not display the operation being executed by the user in the first terminal device, but may display a prompt message for prompting the user that the hidden content in the application is currently being operated. The difference content refers to content which is displayed in the first terminal device but not displayed in the second terminal device. That is, when a user operates content in a first terminal device, if the operated content is content that is simultaneously displayed in a second terminal device, the first terminal device and the second terminal device can both display the operation being performed by the user; if the operated content is only displayed on the first terminal device and not displayed on the second terminal device, the operation executed by the user may be displayed in the first terminal device, and the prompt information may be displayed in the second terminal device to prompt the user that the hidden content in the application is currently being operated.
The working principle of the window extension in this scenario is briefly explained below.
When a user performs a sliding operation in the first window of the first terminal device, the first terminal device may perform extension of the first window according to the sliding operation, and a process of performing the first window extension by the first terminal device is the same as a process of performing window extension by the terminal device in the aforementioned (first) window extension, "which is not described herein again.
Meanwhile, the first terminal device may convert a first sliding input event corresponding to the sliding operation into a second sliding input event corresponding to the second terminal device and send the second sliding input event to the second terminal device, where the second sliding input event may include a sliding direction, a sliding distance, a second window corresponding to the sliding operation, and an application program corresponding to the second window. Meanwhile, the first terminal device may send information of the newly added display content required for the extension of the first window to the second terminal device. After receiving the second sliding input event and the information of the display content required to be newly added, the second terminal device may send the second sliding input event to a window manager in the second terminal device and an application program corresponding to the second window, and send the information of the display content required to be newly added to the application program. After receiving the second sliding input event and the information of the display content required to be newly added, the application program can determine the newly added display content and send the newly added display content to the view system in the second terminal device. After receiving the second sliding input event, the window manager in the second terminal device may determine a window parameter corresponding to the second window, and send the window parameter to the view system in the second terminal device. After receiving the window parameter and the newly added display content, the view system in the second terminal device may perform window drawing according to the window parameter and the newly added display content, and may display the drawn window on a display interface of the second terminal device for a user to browse, that is, on a position where the second window is located for the user to browse.
When the user performs a sliding operation in the second window of the second terminal device, the touch sensor under the display interface of the second terminal device may transmit a second sliding input event corresponding to the sliding operation to the processor in the second terminal device. After receiving the second sliding input event, the processor may send the second sliding input event to a window manager in the second terminal device and an application program corresponding to the second window. After receiving the second sliding input event, the application program can determine the newly added display content and send the newly added display content to the view system in the second terminal device. The window manager in the second terminal device receives the second sliding input event, may determine a window parameter corresponding to the second window, and sends the window parameter to the view system in the second terminal device. After receiving the window parameter and the newly added display content, the view system in the second terminal device may perform window drawing according to the window parameter and the newly added display content, and may display the drawn window on a display interface of the second terminal device for a user to browse, that is, on a position where the second window is located for the user to browse.
Meanwhile, the second terminal device may convert the second sliding input event into a first sliding input event corresponding to the first terminal device and send the first sliding input event to the first terminal device, where the first sliding input event may include a sliding direction, a sliding distance, a first window corresponding to a sliding operation, and an application program corresponding to the first window. Meanwhile, the second terminal device may send information of the newly added display content of the second terminal device to the first terminal device. After receiving the first sliding input event and the information of the newly added display content, the first terminal device may send the first sliding input event to the application program and a window manager in the first terminal device, and send the information of the newly added display content to the application program. After receiving the first sliding input event and the information of the newly added display content, the application program can determine the extending direction and the extending distance of the window extension according to the first sliding input event and send the extending direction and the extending distance to the window manager in the first terminal device. Meanwhile, the application program can determine the newly added display content according to the information of the newly added display content and send the newly added display content to the view system in the first terminal device. After receiving the first sliding input event, the extending direction and the extending distance, the window manager in the first terminal device may adjust the window parameter of the first window according to the extending direction and the extending distance, and send the adjusted window parameter to the view system in the first terminal device. After receiving the adjusted window parameter and the newly added display content, the view system in the first terminal device may perform window drawing according to the adjusted window parameter and the newly added display content, and may display the drawn window on a display interface of the first terminal device for a user to browse, that is, on a position where the first window is located for the user to browse.
Based on the above description, a window display method provided by the embodiment of the present application will be briefly described below.
Referring to fig. 20, fig. 20 is a schematic flowchart illustrating a window displaying method according to an embodiment of the present application. As shown in fig. 20, the method may include:
s2001, the terminal device displays a first content through a first window, wherein the window size of the first window is smaller than the interface size of a display interface of the terminal device;
s2002, the terminal device detects a first sliding operation executed by the user in the first window:
and S2003, when a first sliding operation is detected in the first window, the terminal device expands the first window to obtain a second window, wherein the second window is used for displaying a first content and a second content, or the second window is used for displaying a second content, and the second content is a content continuing the first content.
In the embodiment of the application, when the content is displayed through the small window, when the sliding operation that the user wants to look over more content is detected by the terminal equipment, the window can be automatically expanded by the terminal equipment to display more content, so that the user can browse conveniently, the user experience is improved, and the method and the device have high usability and practicability.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The embodiments of the present application further provide a terminal device, where the terminal device includes at least one memory, at least one processor, and a computer program that is stored in the at least one memory and is executable on the at least one processor, and when the processor executes the computer program, the terminal device is enabled to implement the steps in any of the method embodiments. Illustratively, the structure of the terminal device may be as shown in fig. 1.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a computer, the computer is enabled to implement the steps in any of the method embodiments.
Embodiments of the present application provide a computer program product, which, when running on a terminal device, enables the terminal device to implement the steps in any of the above method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above may be implemented by instructing relevant hardware by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the methods described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer memory, read-only memory (ROM), random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable storage media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and proprietary practices.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (19)

1. A window display method is applied to terminal equipment, and is characterized by comprising the following steps:
the terminal equipment responds to the operation of opening the application, and displays the first content of the application through a first window, wherein the window size of the first window is smaller than the interface size of a display interface of the terminal equipment;
when a first sliding operation is detected in the first window, the terminal device expands the first window to obtain a second window, wherein the second window is used for displaying the first content and the second content, or the second window is used for displaying the second content, and the second content is a content continuing the first content; the first sliding operation is a content browsing operation for refreshing the first content, and the second window is obtained by extending the first window to the first extending direction;
after the first window is extended to a preset state, if the terminal device detects the first sliding operation again, adding a new window in the display interface to obtain a newly added second window, wherein the newly added second window is used for displaying new content, and the new content is continuously extended to the content displayed in the first window in the preset state; the preset state is a state that the edge of the first window extends to a preset position corresponding to the edge of the first window, or the preset state is a state that the edge of the first window extends to a preset position corresponding to the edge of the first window, and the edge of the second window extends to a preset position corresponding to the edge of the second window.
2. The method of claim 1, wherein the expanding the first window by the terminal device to obtain a second window comprises:
the terminal equipment determines the extending direction corresponding to the first window and determines the extending distance corresponding to the first window;
and the terminal equipment extends the first window according to the extending direction and the extending distance to obtain the second window.
3. The method of claim 2, wherein the determining, by the terminal device, the extending direction corresponding to the first window comprises:
and the terminal equipment determines a display mode corresponding to the first content and determines an extending direction corresponding to the first window according to the display mode, wherein the display mode comprises transverse display and longitudinal display.
4. The method of claim 2, wherein the determining, by the terminal device, the extending direction corresponding to the first window comprises:
the terminal equipment acquires a first position of the first window in the display interface, and determines an extending direction corresponding to the first window according to the first position.
5. The method of claim 2, wherein the determining, by the terminal device, the extending direction corresponding to the first window comprises:
and the terminal equipment acquires the sliding direction of the first sliding operation and determines the extending direction corresponding to the first window according to the sliding direction.
6. The method of claim 2, wherein the determining, by the terminal device, the extension distance corresponding to the first window comprises:
and the terminal equipment acquires the sliding distance corresponding to the first sliding operation and determines the extending distance corresponding to the first window according to the sliding distance.
7. The method of claim 2, wherein the determining, by the terminal device, the extension distance corresponding to the first window comprises:
the terminal device determines a first target window edge corresponding to the first window according to the extending direction, and obtains a second position and a first preset position of the first target window edge in the display interface, wherein the first preset position is a maximum position which can be reached by the first target window edge in the display interface;
and the terminal equipment determines the extension distance corresponding to the first window according to the second position and the first preset position.
8. The method according to any one of claims 2 to 7, wherein the terminal device, after extending the first window according to the extending direction and the extending distance to obtain a second window, comprises:
the terminal equipment acquires the content height or the content width of the currently displayed content of the second window;
when the content height is smaller than the window height of the second window, the terminal device determines the contraction direction of the second window according to the extension direction, and determines the contraction distance of the second window according to the content height and the window height; alternatively, the first and second liquid crystal display panels may be,
when the content width is smaller than the window width of the second window, the terminal device determines the contraction direction of the second window according to the extension direction, and determines the contraction distance of the second window according to the content width and the window width;
and the terminal equipment shrinks the second window according to the shrinking direction and the shrinking distance.
9. The method according to any one of claims 2 to 7, wherein the terminal device, after extending the first window according to the extending direction and the extending distance to obtain a second window, comprises:
when a second sliding operation is detected in the first window, the terminal device determines the contraction direction and the contraction distance of the second window, and contracts the second window according to the contraction direction and the contraction distance.
10. The method according to any one of claims 2 to 7, wherein the terminal device, after extending the first window according to the extending direction and the extending distance to obtain a second window, comprises:
when a third sliding operation is detected in the second window, the terminal device determines a second target window edge corresponding to the second window, and determines a third position and a second preset position of the second target window edge in the display interface;
the terminal equipment determines whether the distance between the third position and the second preset position is smaller than a preset distance;
when the distance between the third position and the second preset position is smaller than the preset distance, the terminal device determines the window size of a third window and the fourth position of the third window in the display interface, and displays the third window according to the window size of the third window and the fourth position, and the content displayed by the third window is continued to the content in the second window.
11. The method of claim 1, wherein the expanding the first window by the terminal device to obtain a second window comprises:
the terminal device determines the window size of a second window and the fifth position of the second window in the display interface, and displays the second window according to the window size and the fifth position of the second window, wherein the second window is used for displaying the second content.
12. The method of claim 11, wherein the determining, by the terminal device, the window size of the second window comprises:
and the terminal equipment acquires the window size of the first window and determines the window size of the second window according to the window size of the first window.
13. The method of claim 11, wherein the terminal device determining the window size of the second window comprises:
the terminal equipment acquires a display mode corresponding to the first content, a sliding distance corresponding to the first sliding operation and a window size of the first window;
and the terminal equipment determines the window size of the second window according to the display mode, the sliding distance and the window size of the first window.
14. The method according to any one of claims 11 to 13, wherein the terminal device determining the fifth position of the second window in the display interface comprises:
the terminal device determines a first position of the first window in the display interface and a display mode corresponding to the first content, and determines a fifth position of the second window in the display interface according to the first position and the display mode.
15. The method according to any one of claims 11 to 13, wherein the terminal device determining the fifth position of the second window in the display interface comprises:
the terminal equipment determines a first position of the first window in the display interface, and determines the first position as a fifth position of the second window in the display interface.
16. The method according to any one of claims 11 to 13, wherein the terminal device is a terminal device having a foldable display screen, the foldable display screen comprises a first display screen and a second display screen, and when the first window is located on the first display screen, the second window is displayed on the second display screen.
17. The method of claim 1, wherein when the first window is a window projected to the terminal device by other terminal devices, the terminal device expands the first window to obtain a second window, and the method comprises:
and the terminal equipment sends the information corresponding to the first sliding operation and the second content to other terminal equipment, and the information corresponding to the first sliding operation and the second content is used for updating the content displayed by other terminal equipment.
18. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, causes the terminal device to carry out the method according to any one of claims 1 to 17.
19. A computer-readable storage medium, in which a computer program is stored, which, when executed by a computer, causes the computer to carry out the method according to any one of claims 1 to 17.
CN202011463200.2A 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium Active CN114625303B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211515097.0A CN115808999B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium
CN202011463200.2A CN114625303B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011463200.2A CN114625303B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211515097.0A Division CN115808999B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114625303A CN114625303A (en) 2022-06-14
CN114625303B true CN114625303B (en) 2022-12-16

Family

ID=81895124

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011463200.2A Active CN114625303B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium
CN202211515097.0A Active CN115808999B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202211515097.0A Active CN115808999B (en) 2020-12-10 2020-12-10 Window display method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN114625303B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265254A (en) * 2008-12-26 2011-11-30 富士胶片株式会社 Information display apparatus, information display method and recording medium
CN102428435A (en) * 2009-03-27 2012-04-25 美尔默公司 Displaying stacked bar charts in a limited display area
CN103034452A (en) * 2012-12-21 2013-04-10 东莞宇龙通信科技有限公司 Terminal and terminal controlling method
CN104423802A (en) * 2013-08-26 2015-03-18 三星电子株式会社 Window expansion method and associated electronic device
CN105760063A (en) * 2016-02-22 2016-07-13 平复信息技术河北有限公司 Bow-shaped shortcut menu for mobile intelligent terminal and working method of menu
CN106155693A (en) * 2016-07-26 2016-11-23 广东欧珀移动通信有限公司 Control method and control device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003526820A (en) * 1997-08-22 2003-09-09 ナトリフィシャル エルエルシー Method and apparatus for simultaneously resizing and rearranging windows in a graphic display
KR101860341B1 (en) * 2011-09-09 2018-05-24 엘지전자 주식회사 Mobile terminal and control method for the same
US20130238747A1 (en) * 2012-03-06 2013-09-12 Apple Inc. Image beaming for a media editing application
CN104102679A (en) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 Method and device for displaying extension information area
CN104750440B (en) * 2013-12-30 2017-09-29 纬创资通股份有限公司 Window management method, electronic installation and the computer program product of multi-screen
US10289292B2 (en) * 2016-06-12 2019-05-14 Apple Inc. Device, method, and graphical user interface for window manipulation and management
US10318130B2 (en) * 2016-12-12 2019-06-11 Google Llc Controlling window using touch-sensitive edge
CN111367456A (en) * 2020-02-28 2020-07-03 青岛海信移动通信技术股份有限公司 Communication terminal and display method in multi-window mode
CN111966252A (en) * 2020-05-14 2020-11-20 华为技术有限公司 Application window display method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265254A (en) * 2008-12-26 2011-11-30 富士胶片株式会社 Information display apparatus, information display method and recording medium
CN102428435A (en) * 2009-03-27 2012-04-25 美尔默公司 Displaying stacked bar charts in a limited display area
CN103034452A (en) * 2012-12-21 2013-04-10 东莞宇龙通信科技有限公司 Terminal and terminal controlling method
CN104423802A (en) * 2013-08-26 2015-03-18 三星电子株式会社 Window expansion method and associated electronic device
CN105760063A (en) * 2016-02-22 2016-07-13 平复信息技术河北有限公司 Bow-shaped shortcut menu for mobile intelligent terminal and working method of menu
CN106155693A (en) * 2016-07-26 2016-11-23 广东欧珀移动通信有限公司 Control method and control device

Also Published As

Publication number Publication date
CN114625303A (en) 2022-06-14
CN115808999B (en) 2023-10-20
CN115808999A (en) 2023-03-17

Similar Documents

Publication Publication Date Title
CN114397978B (en) Application display method and electronic equipment
WO2021036571A1 (en) Desktop editing method and electronic device
CN112714901B (en) Display control method of system navigation bar, graphical user interface and electronic equipment
WO2022042285A1 (en) Method for displaying interface of application program and electronic device
CN113994317A (en) User interface layout method and electronic equipment
CN110830645B (en) Operation method, electronic equipment and computer storage medium
EP4086740A1 (en) Display method and electronic device
CN114115769A (en) Display method and electronic equipment
CN114816167A (en) Application icon display method, electronic device and readable storage medium
WO2022222752A1 (en) Display method and related apparatus
CN114816200A (en) Display method and electronic equipment
EP4131055A1 (en) Annotation method and electronic device
CN114625303B (en) Window display method, terminal device and computer readable storage medium
WO2022002213A1 (en) Translation result display method and apparatus, and electronic device
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
CN116700655B (en) Interface display method and electronic equipment
WO2023098417A1 (en) Interface display method and apparatus
WO2022206645A1 (en) Method and apparatus for scrolling to capture screenshot
WO2023029985A1 (en) Method for displaying dock bar in launcher and electronic device
WO2023169542A1 (en) Display method and electronic device
CN117348953A (en) Display method and related device
CN117130516A (en) Display method and electronic equipment
CN117389437A (en) Multi-window display method and equipment
CN117631939A (en) Touch input method, system, electronic equipment and storage medium
CN115774511A (en) Annotating method and electronic equipment

Legal Events

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