CN111381755A - Interface content switching method and device and storage medium - Google Patents

Interface content switching method and device and storage medium Download PDF

Info

Publication number
CN111381755A
CN111381755A CN201811613915.4A CN201811613915A CN111381755A CN 111381755 A CN111381755 A CN 111381755A CN 201811613915 A CN201811613915 A CN 201811613915A CN 111381755 A CN111381755 A CN 111381755A
Authority
CN
China
Prior art keywords
display area
interface
touch
terminal
background
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.)
Granted
Application number
CN201811613915.4A
Other languages
Chinese (zh)
Other versions
CN111381755B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811613915.4A priority Critical patent/CN111381755B/en
Publication of CN111381755A publication Critical patent/CN111381755A/en
Application granted granted Critical
Publication of CN111381755B publication Critical patent/CN111381755B/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/0485Scrolling or panning
    • 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 disclosure discloses an interface content switching method, and belongs to the technical field of interface interaction. The method is executed by a terminal, a display screen of the terminal comprises a first display area and a second display area, the first display area is arranged on the front side or the back side of the terminal, and the second display area is arranged on the side face of the terminal; the method comprises the following steps: when the touch operation of the initial position in the second display area meets a preset condition, acquiring a target interface corresponding to the touch operation; switching the interface content displayed in the first display area into the interface content of the target interface; the user only needs to perform touch operation meeting requirements once in the whole process, and does not need to perform a plurality of steps, so that the operation flow for switching the interface content is greatly simplified, and the effect of improving the switching efficiency of the interface content is achieved.

Description

Interface content switching method and device and storage medium
Technical Field
The present disclosure relates to the field of interface interaction technologies, and in particular, to an interface content switching method, an interface content switching apparatus, and a storage medium.
Background
In a terminal such as a smart phone, a user often has a need to switch an application running in a background to an application running in a foreground.
In the related art, when a user needs to switch a certain background running application program to a foreground running application program, the terminal can be triggered to display a background application program list through specific operation, the application program switched to the foreground running application program is selected from the background application program list, and the terminal can switch an application interface of the background application program selected by the user to the foreground to display.
Disclosure of Invention
The disclosure provides an interface content switching method, an interface content switching device and a storage medium. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an interface content switching method, where the method is performed by a terminal, a display screen of the terminal includes a first display area and a second display area, the first display area is disposed on a front side or a back side of the terminal, and the second display area is disposed on a side surface of the terminal; the method comprises the following steps:
acquiring a target operation instruction, wherein the target operation instruction is used for indicating touch operation of which the starting position is in the second display area;
when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation;
and switching the interface content displayed in the first display area into the interface content of the target interface.
Optionally, the connecting the first display area and the second display area, where the touch operation is a touch sliding operation, and before the obtaining of the target interface corresponding to the touch sliding operation, the method further includes:
and acquiring the end position of the touch sliding operation, and determining that the touch sliding operation meets the preset condition when the end position of the touch sliding operation is in the first display area.
Optionally, the obtaining of the target interface corresponding to the touch operation includes:
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
Optionally, when the first lateral displacement is greater than a first distance threshold, before an interface of an application program that has entered a background for the last time in the application programs running in the background of the terminal is acquired as the target interface, the method further includes:
acquiring a vertical distance between the end position and the bottom of the first display area;
acquiring the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
Optionally, the touch operation is a touch sliding operation, and the acquiring a target interface corresponding to the touch operation includes:
when the application programs running in the background of the terminal exist and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
when the touch sliding operation is finished, if the finishing position of the touch sliding operation is in the first display area, determining that the touch sliding operation meets the preset condition, and acquiring an interface of an application program corresponding to a label displayed on the top layer of the background application list as the target interface.
Optionally, the tags in the background application list are arranged according to the time sequence of the application programs corresponding to the tags entering the background; and the positive correlation is formed between the time length from the moment that the application program corresponding to the selected label enters the background to the current moment and the second transverse displacement.
Optionally, when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation includes:
when the touch operation meets a preset condition and no application program running in the background of the terminal exists, acquiring the interface type of the current display interface of the first display area;
and acquiring the target interface according to the interface type.
Optionally, the interface type includes a desktop or a non-desktop;
the obtaining the target interface according to the interface type includes:
when the interface type is a desktop, acquiring an interface of the application program which is opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
According to a second aspect of the embodiments of the present disclosure, there is provided an interface content switching apparatus, where the apparatus is used in a terminal, a display screen of the terminal includes a first display area and a second display area, the first display area is disposed on a front side or a back side of the terminal, and the second display area is disposed on a side of the terminal; the device comprises:
the instruction acquisition module is used for acquiring a target operation instruction, and the target operation instruction is used for indicating the touch operation of which the starting position is in the second display area;
the target interface acquisition module is used for acquiring a target interface corresponding to the touch operation when the touch operation meets a preset condition;
and the first switching module is used for switching the interface content displayed in the first display area into the interface content of the target interface.
Optionally, the first display area is connected to the second display area, the touch operation is a touch slide operation, and the apparatus further includes:
the first condition determining module is configured to obtain an end position of the touch sliding operation before the target interface obtaining module obtains the target interface corresponding to the touch operation, and determine that the touch sliding operation meets the preset condition when the end position of the touch sliding operation is in the first display area.
Optionally, the target interface obtaining module is specifically configured to,
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
Optionally, the apparatus further comprises:
a threshold obtaining module, configured to obtain, by the target interface obtaining module, a vertical distance between the end position and the bottom of the first display area before an interface of an application program that has recently entered the background among the applications that run in the background of the terminal is obtained as the target interface, and obtain the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
Optionally, the touch operation is a touch sliding operation, and the target interface acquiring module is specifically configured to,
when the application programs running in the background of the terminal exist and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
and when the touch sliding operation is finished, acquiring an interface of an application program corresponding to the label displayed on the top layer of the background application list as the target interface.
Optionally, the tags in the background application list are arranged according to the time sequence of the application programs corresponding to the tags entering the background; and the positive correlation is formed between the time length from the moment that the application program corresponding to the selected label enters the background to the current moment and the second transverse displacement.
Optionally, the target interface obtaining module is specifically configured to obtain an interface type of a current display interface of the first display area when the touch operation meets a preset condition and there is no application running in the background of the terminal; and switching the interface content displayed in the first display area according to the interface type.
Optionally, the interface type includes a desktop or a non-desktop; the target interface acquisition module is specifically configured to,
when the interface type is a desktop, acquiring an interface of the application program which is opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
According to a third aspect of the embodiments of the present disclosure, there is provided an interface content switching apparatus, where the apparatus is used in a terminal, a display screen of the terminal includes a first display area and a second display area, the first display area is disposed on a front surface or a back surface of the terminal, and the second display area is disposed on a side surface of the terminal; the device comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a target operation instruction, wherein the target operation instruction is used for indicating touch operation of which the starting position is in the second display area;
when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation;
and switching the interface content displayed in the first display area into the interface content of the target interface.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, where the computer-readable storage medium contains executable instructions, and a processor in a terminal calls the executable instructions to implement the interface content switching method according to the first aspect or any one of the alternatives of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when the terminal acquires a target operation instruction corresponding to touch operation with an initial position in a display area on the side face of the terminal, if the touch operation meets a preset condition, a target interface corresponding to the touch operation can be directly acquired, interface content of the target interface corresponding to the touch operation is switched to the display area on the front face or the back face of the terminal to be displayed, a user only needs to perform touch operation meeting requirements once in the whole process, multiple steps do not need to be performed, and therefore the operation flow for switching the interface content is greatly simplified, and the effect of improving the switching efficiency of the interface content is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram illustrating a distribution of display areas of a terminal according to an exemplary embodiment;
fig. 2 is a schematic diagram of a distribution of display areas of another terminal according to the embodiment shown in fig. 1;
FIG. 3 is a schematic diagram of a distribution of display areas of another terminal according to the embodiment shown in FIG. 1;
FIG. 4 is a flow diagram illustrating a method of interface content switching, according to an exemplary embodiment;
FIG. 5 is a flow diagram illustrating a method of interface content switching, according to an exemplary embodiment;
FIG. 6 is a schematic diagram of an operation trajectory involved in the embodiment shown in FIG. 5;
FIG. 7 is a flow diagram illustrating a method of interface content switching, according to an exemplary embodiment;
FIG. 8 is a diagram illustrating a background application list display according to the embodiment shown in FIG. 7;
FIG. 9 is a diagram of another background application list display to which the embodiment shown in FIG. 7 relates;
fig. 10 to 12 are schematic diagrams of three applications selected by a touch-and-slide operation according to the embodiment shown in fig. 7;
FIG. 13 is a diagrammatic illustration of an interface content replacement display according to the embodiment of FIG. 7;
FIG. 14 is a block diagram illustrating an apparatus for generating voice control instructions in accordance with an exemplary embodiment;
FIG. 15 is a block diagram illustrating a computer device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It is to be understood that reference herein to "a number" means one or more and "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The scheme shown in the embodiment of the disclosure can be applied to a terminal with a display screen. For example, the terminal may be a mobile terminal such as a smart phone, a tablet computer, an e-book reader, and the like.
The display screen of the terminal related to the present disclosure includes at least a first display area and a second display area, and wherein the first display area is disposed on a front surface or a rear surface of the terminal and the second display area is disposed on a side surface of the terminal.
Please refer to fig. 1, which is a schematic diagram illustrating a distribution of display areas of a terminal according to an exemplary embodiment. As shown in fig. 1, the display screen of the terminal 100 includes a first display area disposed at a front or rear surface of the terminal 100 and a second display area disposed at a side surface of the terminal 100.
Optionally, the second display area is located on a left side surface or a right side surface of the terminal. Alternatively, the second display region may be located on an upper side or a lower side of the terminal.
In an implementation manner, the first display area and the second display area may belong to the same display screen in terms of a hardware structure, that is, a complete display screen of the terminal is divided into the two display areas, and the two display areas are respectively located on two adjacent faces of the terminal.
In another implementation manner, the first display area and the second display area may also belong to different display screens, that is, the terminal includes two or more independent display screens on a hardware structure, and two independent display screens are respectively located on two adjacent faces of the terminal, the first display area is located in the independent display screen on the front face or the back face of the terminal, and the second display area is located in the independent display screen on the side face of the terminal.
Optionally, the display screen portion where the first display area is located may be a plane in physical structure, and the display screen portion where the second display area is located may be a curved surface in physical structure, so as to implement smooth connection between the two display areas.
Please refer to fig. 2, which illustrates a schematic diagram of a distribution of display areas of another terminal according to an embodiment of the present disclosure. As shown in fig. 2, the display screen of the terminal 200 is disposed at the front, rear, and both side surfaces of the terminal 200. And the display screen of the terminal 200 includes four display areas, namely a front display area 201, a back display area 202, a left side display area 203 and a right side display area 204, according to the position corresponding to the terminal 200. The first display area may be a front display area 201 or a back display area 202; and the second display area may be the left side display area 203 or the right side display area 204.
Please refer to fig. 3, which illustrates a schematic diagram of a distribution of display areas of another terminal according to an embodiment of the present disclosure. As shown in fig. 3, the display screen of the terminal 300 is disposed at the front and both sides of the terminal 300. And the display screen of the terminal 300 includes three display areas, i.e., a front display area 301, a left side display area 302, and a right side display area 303, according to the position corresponding to the terminal 300. The first display area may be a front display area 301; and the second display area may be the left side display area 302 or the right side display area 303.
In the related art, a user needs to switch an application program running in a background to an application program running in a foreground, the user needs to call a background application list through a call-out operation, for example, long-time pressing of a main menu key (Home key) operation, and then select the application program running in the foreground through a click operation in the background application list, and the whole process needs to execute multiple independent operations, so that the operation flow for switching the background application is complicated, and the switching efficiency of interface contents is affected.
In each subsequent embodiment of the disclosure, an operation mode of a display area arranged on the side surface in the terminal is provided, and the background application can be switched to the foreground for running through single-step operation, so that the operation process of switching the background application is greatly simplified, and the effect of improving the switching efficiency of interface contents is achieved.
Fig. 4 is a flowchart illustrating an interface content switching method according to an exemplary embodiment, where the interface content switching method is applied to a terminal, as shown in fig. 4, a display screen of the terminal includes a first display area and a second display area, the first display area is disposed on a front surface or a back surface of the terminal, and the second display area is disposed on a side surface of the terminal; for example, the terminal may be the terminal shown in any of fig. 1 to 3. The method may include the following steps.
In step 401, a target operation instruction is obtained, where the target operation instruction is used to indicate a touch operation with a start position in the second display area.
Alternatively, the touch operation may be a touch slide operation, a touch click operation, or a touch long-press operation, or the like.
In step 402, when the touch operation satisfies a preset condition, a target interface corresponding to the touch operation is obtained.
In step 403, the interface content displayed in the first display area is switched to the interface content of the target interface.
Optionally, the connecting the first display area and the second display area, where the touch operation is a touch sliding operation, and before the obtaining of the target interface corresponding to the touch sliding operation, the method further includes:
and acquiring the end position of the touch sliding operation, and determining that the touch sliding operation meets the preset condition when the end position of the touch sliding operation is in the first display area.
Optionally, the obtaining of the target interface corresponding to the touch operation includes:
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
Optionally, when the first lateral displacement is greater than the first distance threshold, before an interface of an application program that has entered the background for the last time in the application programs running in the background of the terminal is acquired as the target interface, the method further includes:
acquiring the vertical distance between the end position and the bottom of the first display area;
acquiring the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
Optionally, the touch operation is a touch sliding operation, and the acquiring a target interface corresponding to the touch operation includes:
when the application program running in the background of the terminal exists and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
when the touch sliding operation is finished, if the finishing position of the touch sliding operation is in the first display area, determining that the touch sliding operation meets the preset condition, and acquiring an interface of an application program corresponding to a label displayed on the top layer of the background application list as the target interface.
Optionally, the tags in the background application list are arranged according to the time sequence of the application programs corresponding to the tags entering the background; and the time length from the moment that the application program corresponding to the selected label enters the background to the current moment is positively correlated with the second transverse displacement.
Optionally, when the touch operation meets a preset condition, obtaining a target interface corresponding to the touch operation includes:
when the touch operation meets a preset condition and no application program running in the background of the terminal exists, acquiring the interface type of the current display interface of the first display area;
and acquiring the target interface according to the interface type.
Optionally, the interface type includes desktop or non-desktop;
the obtaining the target interface according to the interface type includes:
when the interface type is the desktop, acquiring the interface of the application program opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
To sum up, according to the scheme shown in the embodiment of the present disclosure, when a terminal acquires a target operation instruction corresponding to a touch operation whose starting position is located in a display area on a side of the terminal, if the touch operation meets a preset condition, a target interface corresponding to the touch operation may be directly acquired, and interface content of the target interface corresponding to the touch operation is switched to the display area on the front side or the back side of the terminal for display.
In one possible implementation scenario of the scheme shown in fig. 4, a user may switch to display application interfaces of background applications through a touch-and-slide operation, and may switch between application interfaces of two application programs that are recently started. The implementation of this handover procedure may be as shown in fig. 5 described below.
Fig. 5 is a flowchart illustrating an interface content switching method according to an exemplary embodiment, where as shown in fig. 5, the interface content switching method is applied to a terminal whose display screen includes a first display area and a second display area, the first display area is disposed on a front surface or a back surface of the terminal, and the second display area is disposed on a side surface of the terminal; for example, the terminal may be the terminal shown in any of fig. 1 to 3. The method may include the following steps.
In step 501, a target operation instruction is acquired, where the target operation instruction is used to indicate a touch operation with a start position in the second display area, and the touch operation is a touch slide operation.
In the embodiment of the present disclosure, the display screen of the terminal may be a touch screen, and when a user performs a touch operation on the touch screen, a corresponding operation instruction may be generated in a system of the terminal, where the operation instruction may include information such as an operation time, a touch point coordinate, and whether the operation is completed. When a certain touch operation is a touch slide operation performed from a second display area located on a side surface of the terminal (for example, a real touch point coordinate is located in the second display area), the terminal may acquire an operation instruction corresponding to the operation as a target operation instruction.
In step 502, the end position of the touch slide operation is acquired.
After the terminal acquires the target operation instruction, the end position of the terminal touch sliding operation may be acquired according to the target operation instruction, for example, coordinates of a touch end point included in the target operation instruction are acquired.
In step 503, it is determined whether the end position of the touch slide operation is within the first display area.
For example, the terminal may determine whether the coordinates of the touch end point acquired in step 502 are in a coordinate range corresponding to a first display area on the front or back of the terminal, if so, determine that the end position of the touch sliding operation is in the first display area, otherwise, determine that the end position of the touch sliding operation is not in the first display area.
In this embodiment of the present disclosure, if the terminal determines that the ending position of the touch sliding operation is in the first display area, step 504 may be entered to end the current switching process.
In step 504, a first lateral displacement of the touch slide operation within the first display area is obtained.
Wherein the first lateral displacement is a vertical distance between an end position of the touch slide operation and a zone boundary, which is a connection line of the first display region and the second display region.
For example, please refer to fig. 6, which illustrates an operation trajectory diagram according to an embodiment of the present disclosure. As shown in fig. 6, the first display area of the terminal 60 is a front panel area, the second display area is a right side panel area, the operation trajectory of the touch slide operation from the right side panel area to the front panel area by the user is a trajectory 61, the area boundary is a connection line 62 between the right side panel area and the front panel area, and the length of a perpendicular line 64 from an end point 63 of the touch slide operation to the connection line 62 is the first lateral displacement.
The first distance threshold may be a distance threshold that is set in the terminal in advance by a developer; alternatively, the first distance threshold may be a distance threshold determined by the terminal itself.
For example, the terminal may obtain a vertical distance from the end position of the touch sliding operation to the bottom of the first display area, and obtain the first distance threshold according to the vertical distance from the end position to the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
For example, in fig. 6, a perpendicular line from the end point 63 of the touch slide operation to the bottom edge 65 of the front screen region is a perpendicular line 66, and the length of the perpendicular line 66 is the vertical distance from the end point to the bottom of the first display region. In the disclosed embodiment, the longer the length of the perpendicular 66, the smaller the value of the first distance threshold, and conversely, the shorter the length of the perpendicular 66, the larger the value of the first distance threshold.
In step 505, when the first lateral displacement is greater than a first distance threshold, determining whether an application program running in a background of the terminal exists; if yes, go to step 506, otherwise, go to step 507.
In the embodiment of the present disclosure, the content to be switched may also be different in different display or running states of the terminal, for example, when there is an application program running in the background of the terminal, the content to be switched is an application interface of the application program running in the background, and when there is no application program running in the background of the terminal, the content to be switched is other interface content.
Still referring to fig. 6, when the length of the vertical line 64 is greater than the preset first distance threshold, the switching of the interface content may be triggered. That is, when the touch sliding operation from the right side screen area to the end of the front side screen area is performed by the user to slide a certain distance to the left in the front side screen area, the switching of the interface content in the front side screen area is triggered.
In another possible implementation manner, when the terminal determines that the end position of the touch sliding operation is in the first display area, and it can be determined that the touch sliding operation meets a preset condition, at this time, interface content switching can be triggered; otherwise, if the terminal determines that the end position of the touch sliding operation is not in the first display area, it may be determined that the touch sliding operation does not satisfy the preset condition, at this time, interface content switching may not be triggered, and the switching process is ended.
That is, when the touch slide operation is an operation starting from the display area on the side of the terminal and ending in the front or back display area of the terminal, the touch slide operation may trigger the interface content in the display area where the ending position of the touch slide operation is located to be switched.
For example, when the user touches and slides from the side display area (which may be the display area on the left side or the display area on the right side) of the terminal into the front display area, the interface content in the front display area may be triggered to be switched.
For example, in fig. 2, when the user starts to perform the touch-and-slide operation from the left side display area 203 or the right side display area 204 and finishes performing the touch-and-slide operation in the front side display area 201, the interface content in the front side display area 201 may be directly triggered to be switched.
Or, if the display screen of the terminal includes a display area located on the back of the terminal, when the user touches and slides from the side display area of the terminal into the back display area, the interface content in the back display area may be triggered to be switched.
For example, in fig. 3, when the user starts to perform the touch-and-slide operation from the left side display area 203 or the right side display area 204 and finishes performing the touch-and-slide operation in the back side display area 202, the interface content in the back side display area 202 may be directly triggered to be switched.
In step 506, an interface of the application program that has entered the background last time among the application programs running in the background of the terminal is acquired as a target interface, and interface content displayed in the first display area is switched to interface content of the target interface.
Through the scheme shown in fig. 5, a user may implement switching between two recently started application programs through a touch sliding operation from the side display area to the front or back display area, for example, assuming that the application program currently running in the foreground of the terminal is application program 1, the application program recently running in the background of the terminal is application program 2, after the user performs a touch sliding operation from the side display area to the front display area, the terminal switches the application interface of application program 1 displayed in the front display area to the application interface of application program 2, and when the user performs a touch sliding operation from the side display area to the front display area again, the terminal switches the application interface of application program 2 displayed in the front display area to the application interface of application program 1.
In step 507, the interface type of the current display interface of the first display area is obtained.
Wherein the interface type includes desktop or non-desktop.
In the embodiment of the disclosure, when there is no application running in the background of the terminal, the interface type currently displayed in the first display area may also affect the interface content after switching.
In step 508, when the interface type is the desktop, the interface of the application program that was opened last time is acquired as the target interface, and the interface content displayed in the first display area is switched to the interface content of the target interface.
In this disclosure, when the currently displayed interface in the first display area is a desktop, if the touch sliding operation triggering the switching is received, the terminal may switch and display the application interface of the application program that was last opened but has finished running in the first display area.
In step 509, when the interface type is a non-desktop type, the desktop is acquired as the target interface, and the interface content displayed in the first display area is switched to the interface content of the target interface.
When the currently displayed interface of the first display area is not the desktop, for example, the currently displayed interface of the first display area is an application interface of an application program, or a negative screen of the display system, if the touch sliding operation triggering switching is received, the terminal may switch to display the desktop in the first display area.
To sum up, according to the scheme shown in the embodiment of the present disclosure, when the terminal acquires the target operation instruction corresponding to the touch sliding operation of which the start position is located in the display area on the side of the terminal, if the touch sliding operation meets the preset condition and the terminal runs an application program in the background, the application interface of the application program that has recently entered the background in the application program running in the terminal background can be switched and displayed in the first display area, and the user only needs to execute the touch sliding operation meeting the requirement once in the whole process, and does not need to execute multiple steps, so that the operation flow for switching the background application is greatly simplified, and the effect of improving the switching efficiency of the interface content is achieved.
In addition, according to the scheme disclosed by the embodiment of the disclosure, when the touch sliding operation meets the preset condition and the terminal background does not run the application program, the interface content in the first display area can be switched to the interface or the desktop of the application program which is opened last time, so that the effect of improving the switching efficiency of the interface content is achieved.
In the scheme shown in fig. 4, when the user touches the application interface of the sliding operation switching display background application, the application interface of any one application program in the application programs running in the background may also be switched and displayed. The implementation of this handover procedure may be as shown in fig. 7 described below.
Fig. 7 is a flowchart illustrating an interface content switching method according to an exemplary embodiment, where as shown in fig. 7, the interface content switching method is applied to a terminal whose display screen includes a first display area and a second display area, the first display area is disposed on a front surface or a back surface of the terminal, and the second display area is disposed on a side surface of the terminal; for example, the terminal may be the terminal shown in any of fig. 1 to 3. The method may include the following steps.
In step 701, a target operation instruction is acquired, where the target operation instruction is used to indicate a touch operation with a start position in the second display area, and the touch operation is a touch slide operation.
The execution process of this step may refer to the description in the embodiment shown in fig. 5, and is not described herein again.
In step 702, when a touch point of the touch sliding operation enters a first display area, determining whether an application program running in a terminal background exists; if yes, go to step 703, otherwise, go to step 709.
In the embodiment of the disclosure, in the process of executing the touch sliding operation, the terminal may obtain the coordinates of the touch point of the touch sliding operation in real time, and determine whether the coordinates of the touch point are in the first display area, and when it is determined that the touch point of the touch sliding operation enters the first display area, may further determine whether an application program running in a background of the terminal exists.
In step 703, a background application list is displayed, where the background application list includes tags corresponding to each application program running in the background of the terminal.
When the application programs running in the background exist in the terminal, the terminal can display a background application list in the first display area, wherein the background application list comprises marks corresponding to the application programs running in the background.
And the labels in the background application list are arranged according to the time sequence of the application programs corresponding to the labels entering the background. For example, in the background application list, the tags may be arranged in order from near to far according to the time when the corresponding application program enters the background, that is, the application program corresponding to the first tag in the background application list may be the application program that has recently entered the background, and so on, and the application program corresponding to the last tag is the application program that has entered the background earliest; or, in the background application list, the tags may be arranged in the order from far to near according to the time when the corresponding application program enters the background, that is, the application program corresponding to the first tag in the background application list may be the application program that enters the background earliest, and so on, the application program corresponding to the last tag is the application program that enters the background most recently.
Each label in the background application list can be displayed in the first display area in a horizontal row. For example, please refer to fig. 8, which illustrates a schematic diagram of a background application list display according to an embodiment of the present disclosure. As shown in fig. 8, the first display area is a front display area of the terminal, the labels in the background application list are arranged in a horizontal row from left to right (or from right to left) in the order in the list, and the labels are displayed in a stacked manner.
Alternatively, the tags in the background application list may be displayed in the first display area in a vertical row. For example, please refer to fig. 9, which illustrates a schematic diagram of another background application list display according to an embodiment of the present disclosure. As shown in fig. 9, the first display area is a front display area of the terminal, the labels in the background application list are arranged in a column from top to bottom (or from bottom to top) in the order in the list, and the labels are displayed in a stacked manner.
In step 704, a second lateral displacement of the touch slide operation within the first display area is obtained in real time.
Wherein the second lateral displacement is a real-time vertical distance between an end position of the touch slide operation and a zone boundary, and the zone boundary is a connecting line of the first display zone and the second display zone.
The difference from the first lateral displacement is that the second lateral displacement is a real-time distance from a touch point to a boundary of an area in the touch sliding operation process, and an acquisition mode of the second lateral displacement is similar to that of the first lateral displacement, and is not described herein again.
In step 705, the selected tag in the background application list is determined according to the second lateral shift.
In the embodiment of the disclosure, the user may select the tab in the background application list by the displacement size of the lateral movement in the first display area through the touch slide operation.
Optionally, a positive correlation is formed between a time length from a time when the application program corresponding to the selected tag enters the background to the current time and the second lateral displacement. That is to say, the larger the displacement of the lateral movement of the touch slide operation performed by the user in the first display area, the earlier the time when the application program corresponding to the selected tag enters the background, and correspondingly, the smaller the displacement of the lateral movement of the touch slide operation performed by the user in the first display area, the later the time when the application program corresponding to the selected tag enters the background.
In another possible implementation, a duration from the time when the application program corresponding to the selected tag enters the background to the current time is inversely related to the second lateral shift. That is to say, the larger the displacement of the lateral movement of the touch slide operation performed by the user in the first display area, the later the time when the application program corresponding to the selected tag enters the background, and correspondingly, the smaller the displacement of the lateral movement of the touch slide operation performed by the user in the first display area, the earlier the time when the application program corresponding to the selected tag enters the background.
For example, in the embodiment of the present disclosure, let the second lateral shift be x, the unit is a pixel, when 0 < x < 180, the selected tab is the first tab or the last tab in the background application list, when 180 < x < 360, the selected tab is the second tab or the penultimate tab in the background application list, when x > 360, as the value of x increases, the selected tab sequentially changes from the second tab to the third tab and the fourth tab, and so on; or, the selected label is changed from the last-but-one label to the last-but-one label and the last-but-four label in turn, and so on.
In step 706, the selected tab is exposed at the top level of the background application list.
In the embodiment of the disclosure, the tags in the background application list may be displayed in a stacked manner in the first display area, and the selected tag is stacked on the uppermost layer.
For example, please refer to fig. 10 to 12, which are schematic diagrams illustrating three applications selected by touch-and-slide operation according to an embodiment of the present disclosure.
In fig. 10, when the touch slide operation slides from the right side display area across the area boundary and the lateral shift x to the left in the front side display area does not exceed 180, the leftmost tab in the background application list (the corresponding application is program a) is selected and displayed in a stack on the uppermost layer.
In fig. 11, the touch-and-slide operation continues to slide to the left in the front display area, and when the lateral shift x to the left in the front display area exceeds 180 but does not exceed 360, the second tab from the left in the background application list (the corresponding application is program B) is selected and displayed in the top layer in a stacked manner.
In fig. 12, the touch-and-slide operation continues to slide to the left in the front display area, and when the lateral shift x to the left in the front display area exceeds 360, the third tab from the left in the background application list (the corresponding application is program C) is selected and displayed in the top layer in a stacked manner. When the touch sliding operation continues to slide leftwards in the front display area, the fourth label and the fifth label from the left in the background application list can be selected in sequence.
Optionally, if the touch point leaves the first display area during the execution of the touch sliding operation, the terminal may cancel displaying the background application list.
In step 707, when the touch sliding operation is ended, if the ending position of the touch sliding operation is in the first display area, it is determined that the touch sliding operation meets the preset condition, and an interface of the application program corresponding to the tab displayed on the top layer of the background application list is acquired as a target interface.
In this embodiment of the disclosure, when the touch sliding operation is ended in the first display area, the terminal may acquire, as a target interface, an interface of an application program corresponding to a tab (that is, a selected tab) currently displayed at the top layer in the background application list.
In step 708, the interface content displayed in the first display area is switched to the interface content of the target interface.
For example, please refer to fig. 13, which shows a schematic diagram of an interface content replacement display according to an embodiment of the present disclosure. Assuming that the display state of the background application list is as shown in fig. 12 when the touch slide operation is finished in the first display area, the terminal displays the application interface of the program C in the first display area at this time.
In step 709, when the ending position of the touch sliding operation is in the first display area, it is determined that the touch sliding operation meets the preset condition, and the interface type of the current display interface in the first display area is obtained.
Wherein the interface type includes desktop or non-desktop.
In step 710, when the interface type is desktop, acquiring the interface of the application program opened last time as a target interface; and when the interface type is non-desktop, acquiring the desktop as a target interface. Proceed to step 708
The execution process of step 709 to step 710 is similar to the implementation process of step 507 to step 509 in the embodiment shown in fig. 5, and is not described again here.
In another possible implementation manner, when there is no application running in the background of the terminal, the terminal may further obtain a first lateral displacement (i.e., a vertical distance between an end position of the touch sliding operation and a boundary of the area) of the touch sliding operation in the first display area, and when the first lateral displacement is greater than a second distance threshold, determine that the touch sliding operation satisfies a preset condition. The second distance threshold may be the same as or different from the first distance threshold, and the setting manners of the second distance threshold and the first distance threshold are similar, which is not described herein again.
To sum up, according to the scheme shown in the embodiment of the present disclosure, when the terminal acquires a target operation instruction corresponding to a touch sliding operation whose starting position is located in a display area on a side of the terminal, if the touch sliding operation satisfies a preset condition and an application program runs in a terminal background, an application interface of any application program in the application program running in the terminal background can be selected to be switched and displayed in the first display area according to a real-time lateral displacement of the touch sliding operation in the first display area.
Fig. 14 is a block diagram illustrating an interface content switching apparatus according to an exemplary embodiment, as shown in fig. 14, the interface content switching apparatus may be implemented as all or part of a terminal in a hardware or software and hardware combination manner to execute the steps shown in any one of the embodiments of fig. 4, fig. 5 or fig. 7; the display screen of the terminal comprises a first display area and a second display area, wherein the first display area is arranged on the front surface or the back surface of the terminal, and the second display area is arranged on the side surface of the terminal. The interface content switching device may include:
an instruction obtaining module 1401, configured to obtain a target operation instruction, where the target operation instruction is used to indicate a touch operation of which an initial position is in the second display area;
a target interface obtaining module 1402, configured to obtain, when the touch operation meets a preset condition, a target interface corresponding to the touch operation from an application running in a background of the terminal;
a first switching module 1403, configured to switch the interface content displayed in the first display area to the interface content of the target interface.
Optionally, the first display area is connected to the second display area, the touch operation is a touch slide operation, and the apparatus further includes:
a first condition determining module, configured to obtain an end position of the touch sliding operation before the target interface obtaining module 1402 obtains the target interface corresponding to the touch operation, and determine that the touch sliding operation satisfies the preset condition when the end position of the touch sliding operation is in the first display area.
Optionally, the target interface obtaining module 1402 is specifically configured to,
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
Optionally, the apparatus further comprises:
a threshold obtaining module, configured to, before the target interface obtaining module 1402 obtains, as the target interface, the interface of the application program that has entered the background last time in the application programs that run in the background of the terminal, obtain a vertical distance between the end position and the bottom of the first display area, and obtain the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
Optionally, the touch operation is a touch sliding operation, and the target interface obtaining module 1402 is specifically configured to,
when the application programs running in the background of the terminal exist and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
and when the touch sliding operation is finished, acquiring an interface of an application program corresponding to the label displayed on the top layer of the background application list as the target interface.
Optionally, the tags in the background application list are arranged according to the time sequence of the application programs corresponding to the tags entering the background; and the positive correlation is formed between the time length from the moment that the application program corresponding to the selected label enters the background to the current moment and the second transverse displacement.
Optionally, the target interface obtaining module is specifically configured to obtain an interface type of a current display interface of the first display area when the touch sliding operation meets a preset condition and there is no application running in the background of the terminal; and switching the interface content displayed in the first display area according to the interface type.
Optionally, the interface type includes a desktop or a non-desktop; the target interface acquisition module is specifically configured to,
when the interface type is a desktop, acquiring an interface of the application program which is opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure provides an interface content switching apparatus, which can implement all or part of the steps in any one of the embodiments shown in fig. 4, fig. 5, or fig. 7, in which a display screen of the terminal includes a first display area and a second display area, the first display area is disposed on a front side or a back side of the terminal, and the second display area is disposed on a side surface of the terminal; the interface content switching device further comprises: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a target operation instruction, wherein the target operation instruction is used for indicating touch operation of which the starting position is in the second display area;
when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation;
and switching the interface content displayed in the first display area into the interface content of the target interface.
Optionally, the connecting the first display area and the second display area, where the touch operation is a touch sliding operation, and before the obtaining of the target interface corresponding to the touch sliding operation, the method further includes:
and acquiring the end position of the touch sliding operation, and determining that the touch sliding operation meets the preset condition when the end position of the touch sliding operation is in the first display area.
Optionally, the obtaining of the target interface corresponding to the touch operation includes:
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
Optionally, when the first lateral displacement is greater than a first distance threshold, before an interface of an application program that has entered a background for the last time in the application programs running in the background of the terminal is acquired as the target interface, the method further includes:
acquiring a vertical distance between the end position and the bottom of the first display area;
acquiring the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
Optionally, the touch operation is a touch sliding operation, and the acquiring a target interface corresponding to the touch operation includes:
when the application programs running in the background of the terminal exist and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
when the touch sliding operation is finished, if the finishing position of the touch sliding operation is in the first display area, determining that the touch sliding operation meets the preset condition, and acquiring an interface of an application program corresponding to a label displayed on the top layer of the background application list as the target interface.
Optionally, the tags in the background application list are arranged according to the time sequence of the application programs corresponding to the tags entering the background; and the positive correlation is formed between the time length from the moment that the application program corresponding to the selected label enters the background to the current moment and the second transverse displacement.
Optionally, when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation includes:
when the touch operation meets a preset condition and no application program running in the background of the terminal exists, acquiring the interface type of the current display interface of the first display area;
and acquiring the target interface according to the interface type.
Optionally, the interface type includes a desktop or a non-desktop; the obtaining the target interface according to the interface type includes:
when the interface type is a desktop, acquiring an interface of the application program which is opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
FIG. 15 is a block diagram illustrating a computer device according to an example embodiment. The computer device may be implemented as the terminal described above. The computer device can be implemented as a terminal device with a voice control function in the above-mentioned scheme of the present disclosure. The computer device 1500 includes a Central Processing Unit (CPU)1501, a system memory 1504 including a Random Access Memory (RAM)1502 and a Read Only Memory (ROM)1503, and a system bus 1505 connecting the system memory 1504 and the central processing unit 1501. The computer device 1500 also includes a basic input/output system (I/O system) 1506 for facilitating information transfer between devices within the computer, and a mass storage device 1507 for storing an operating system 1513, application programs 1514, and other program modules 1515.
The basic input/output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 1508 and the input device 1509 are connected to the central processing unit 1501 via an input output controller 1510 connected to the system bus 1505. The basic input/output system 1506 may also include an input/output controller 1510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 1510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer-readable media provide non-volatile storage for the computer device 1500. That is, the mass storage device 1507 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1504 and mass storage device 1507 described above may be collectively referred to as memory.
The computer device 1500 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the present disclosure. That is, the computer device 1500 may be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505 or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1511.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 1501 implements all or part of the steps of the method shown in fig. 4, 5 or 7 by executing the one or more programs.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in embodiments of the disclosure may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The embodiment of the disclosure further provides a computer storage medium, which is used for storing computer software instructions for the terminal and includes a program designed for executing the interface content switching method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. The interface content switching method is characterized in that the method is executed by a terminal, a display screen of the terminal comprises a first display area and a second display area, the first display area is arranged on the front side or the back side of the terminal, and the second display area is arranged on the side face of the terminal; the method comprises the following steps:
acquiring a target operation instruction, wherein the target operation instruction is used for indicating touch operation of which the starting position is in the second display area;
when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation;
and switching the interface content displayed in the first display area into the interface content of the target interface.
2. The method according to claim 1, wherein the first display area is connected to the second display area, the touch operation is a touch slide operation, and before the obtaining of the target interface corresponding to the touch slide operation, the method further includes:
and acquiring the end position of the touch sliding operation, and determining that the touch sliding operation meets the preset condition when the end position of the touch sliding operation is in the first display area.
3. The method according to claim 2, wherein the obtaining of the target interface corresponding to the touch operation includes:
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
4. The method according to claim 3, wherein before acquiring, as the target interface, an interface of an application program that has entered a background last time in the application programs running in the background of the terminal when the first lateral displacement is greater than a first distance threshold, the method further includes:
acquiring a vertical distance between the end position and the bottom of the first display area;
acquiring the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
5. The method according to claim 1, wherein the touch operation is a touch slide operation, and the acquiring a target interface corresponding to the touch operation comprises:
when the application programs running in the background of the terminal exist and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
when the touch sliding operation is finished, if the finishing position of the touch sliding operation is in the first display area, determining that the touch sliding operation meets the preset condition, and acquiring an interface of an application program corresponding to a label displayed on the top layer of the background application list as the target interface.
6. The method according to claim 5, wherein the tags in the background application list are arranged according to the time sequence of the corresponding application program entering the background; and the positive correlation is formed between the time length from the moment that the application program corresponding to the selected label enters the background to the current moment and the second transverse displacement.
7. The method according to any one of claims 1 to 6, wherein the obtaining of the target interface corresponding to the touch operation when the touch operation meets a preset condition includes:
when the touch operation meets a preset condition and no application program running in the background of the terminal exists, acquiring the interface type of the current display interface of the first display area;
and acquiring the target interface according to the interface type.
8. The method of claim 7, wherein the interface type comprises desktop or non-desktop;
the obtaining the target interface according to the interface type includes:
when the interface type is a desktop, acquiring an interface of the application program which is opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
9. An interface content switching device is used in a terminal, a display screen of the terminal comprises a first display area and a second display area, the first display area is arranged on the front side or the back side of the terminal, and the second display area is arranged on the side face of the terminal; the device comprises:
the instruction acquisition module is used for acquiring a target operation instruction, and the target operation instruction is used for indicating the touch operation of which the starting position is in the second display area;
the target interface acquisition module is used for acquiring a target interface corresponding to the touch operation when the touch operation meets a preset condition;
and the first switching module is used for switching the interface content displayed in the first display area into the interface content of the target interface.
10. The apparatus according to claim 9, wherein the first display region is connected to the second display region, and the touch operation is a touch slide operation, the apparatus further comprising:
the first condition determining module is configured to obtain an end position of the touch sliding operation before the target interface obtaining module obtains the target interface corresponding to the touch operation, and determine that the touch sliding operation meets the preset condition when the end position of the touch sliding operation is in the first display area.
11. The apparatus according to claim 10, wherein the target interface acquisition module is specifically configured to,
when an application program running in the background of the terminal exists, acquiring a first transverse displacement of the touch sliding operation in the first display area, wherein the first transverse displacement is a vertical distance from an end position of the touch sliding operation to an area boundary, and the area boundary is a connecting line between the first display area and the second display area;
and when the first transverse displacement is larger than a first distance threshold value, acquiring an interface of an application program which enters the background for the last time from the application programs running in the background of the terminal as the target interface.
12. The apparatus of claim 11, further comprising:
a threshold obtaining module, configured to obtain, by the target interface obtaining module, a vertical distance between the end position and the bottom of the first display area before an interface of an application program that has recently entered the background among the applications that run in the background of the terminal is obtained as the target interface, and obtain the first distance threshold according to the vertical distance between the end position and the bottom of the first display area; the first distance threshold is inversely related to a vertical distance between the end position and the bottom of the first display region.
13. The apparatus according to claim 10, wherein the touch operation is a touch slide operation, the target interface acquisition module being configured to,
when the application programs running in the background of the terminal exist and the touch point of the touch sliding operation enters the first display area, displaying a background application list, wherein the background application list comprises labels corresponding to the application programs running in the background of the terminal;
acquiring a second lateral displacement of the touch sliding operation in the first display area in real time, wherein the second lateral displacement is a real-time vertical distance between an end position of the touch sliding operation and an area boundary, and the area boundary is a connecting line of the first display area and the second display area;
determining the selected label in the background application list according to the second transverse displacement;
displaying the selected label on the top layer of the background application list;
and when the touch sliding operation is finished, acquiring an interface of an application program corresponding to the label displayed on the top layer of the background application list as the target interface.
14. The apparatus according to claim 13, wherein the tags in the background application list are arranged according to the time sequence of the corresponding application programs entering the background; and the positive correlation is formed between the time length from the moment that the application program corresponding to the selected label enters the background to the current moment and the second transverse displacement.
15. The apparatus according to any one of claims 9 to 14,
the target interface obtaining module is specifically configured to obtain an interface type of a current display interface of the first display area when the touch operation meets a preset condition and no application program running in the background of the terminal exists; and switching the interface content displayed in the first display area according to the interface type.
16. The apparatus of claim 15, wherein the interface type comprises a desktop or non-desktop; the target interface acquisition module is specifically configured to,
when the interface type is a desktop, acquiring an interface of the application program which is opened last time as the target interface;
and when the interface type is non-desktop, acquiring the desktop as the target interface.
17. An interface content switching device is used in a terminal, a display screen of the terminal comprises a first display area and a second display area, the first display area is arranged on the front side or the back side of the terminal, and the second display area is arranged on the side face of the terminal; the device comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a target operation instruction, wherein the target operation instruction is used for indicating touch operation of which the starting position is in the second display area;
when the touch operation meets a preset condition, acquiring a target interface corresponding to the touch operation;
and switching the interface content displayed in the first display area into the interface content of the target interface.
18. A computer-readable storage medium, wherein the computer-readable storage medium contains executable instructions, and a processor in a terminal calls the executable instructions to implement the interface content switching method according to any one of claims 1 to 8.
CN201811613915.4A 2018-12-27 2018-12-27 Interface content switching method and device and storage medium Active CN111381755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811613915.4A CN111381755B (en) 2018-12-27 2018-12-27 Interface content switching method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811613915.4A CN111381755B (en) 2018-12-27 2018-12-27 Interface content switching method and device and storage medium

Publications (2)

Publication Number Publication Date
CN111381755A true CN111381755A (en) 2020-07-07
CN111381755B CN111381755B (en) 2022-03-01

Family

ID=71217894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811613915.4A Active CN111381755B (en) 2018-12-27 2018-12-27 Interface content switching method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111381755B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344185A (en) * 2021-04-28 2022-11-15 Oppo广东移动通信有限公司 Interface interaction method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068518A1 (en) * 2011-10-28 2014-03-06 Tencent Technology (Shenzhen) Company Limited Method and device for switching application program of touch screen terminal
CN108228073A (en) * 2018-01-31 2018-06-29 北京小米移动软件有限公司 Interface display method and device
CN108446068A (en) * 2018-03-29 2018-08-24 维沃移动通信有限公司 A kind of interface switching method and mobile terminal
CN108920071A (en) * 2018-06-21 2018-11-30 Oppo广东移动通信有限公司 Control method, device, storage medium and mobile terminal based on special-shaped display screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068518A1 (en) * 2011-10-28 2014-03-06 Tencent Technology (Shenzhen) Company Limited Method and device for switching application program of touch screen terminal
CN108228073A (en) * 2018-01-31 2018-06-29 北京小米移动软件有限公司 Interface display method and device
CN108446068A (en) * 2018-03-29 2018-08-24 维沃移动通信有限公司 A kind of interface switching method and mobile terminal
CN108920071A (en) * 2018-06-21 2018-11-30 Oppo广东移动通信有限公司 Control method, device, storage medium and mobile terminal based on special-shaped display screen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344185A (en) * 2021-04-28 2022-11-15 Oppo广东移动通信有限公司 Interface interaction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111381755B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN107547750B (en) Control method, device and the storage medium of terminal
US10373359B2 (en) Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
US10430068B2 (en) Method for displaying interface content and user equipment
CN109164964B (en) Content sharing method and device, terminal and storage medium
US20160202887A1 (en) Method for managing application icon and terminal
CN108829327B (en) Writing method and device of interactive intelligent equipment
CN105094617A (en) Screen capturing method and device
CN108694012B (en) Method and system for displaying objects on screen
US20100321323A1 (en) Method and apparatus for reducing multi-touch input error in portable communication system
CN104992094A (en) Terminal operation method and terminal
CN111831182B (en) Application icon control method and device and electronic equipment
CN105760103A (en) Screen capturing method and terminal
WO2022121790A1 (en) Split-screen display method and apparatus, electronic device, and readable storage medium
US20150121301A1 (en) Information processing method and electronic device
KR20130112629A (en) Menu contolling method of media equipment, apparatus thereof, and medium storing program source thereof
CN106371715B (en) Method and device for realizing multi-item switching
CN112148168A (en) Icon moving method and device and electronic equipment
CN111381755B (en) Interface content switching method and device and storage medium
CN105204714A (en) Method for switching application interface and terminal
CN105389105A (en) Method and system for moving application function interface, and mobile device
CN104536652A (en) List display method and terminal
WO2020249103A1 (en) Control method and apparatus for intelligent interactive device
CN109491732B (en) Virtual control display method and device and vehicle-mounted display screen
JP5834253B2 (en) Image processing apparatus, image processing method, and image processing program
CN107562260B (en) A kind of method and device of touch control

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