CN111752430A - Application interface moving method and related equipment - Google Patents
Application interface moving method and related equipment Download PDFInfo
- Publication number
- CN111752430A CN111752430A CN202010497238.5A CN202010497238A CN111752430A CN 111752430 A CN111752430 A CN 111752430A CN 202010497238 A CN202010497238 A CN 202010497238A CN 111752430 A CN111752430 A CN 111752430A
- Authority
- CN
- China
- Prior art keywords
- display screen
- screen
- application interface
- display
- determining
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
- G06F3/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses an application interface moving method and related equipment, wherein a screen moving gesture which acts on an application interface displayed on a first display screen is responded firstly to enter a screen moving mode; determining a second display screen of the application interface according to the screen moving gesture, and associating the first display screen, the second display screen and the application interface; the screen moving gesture is followed, the first display screen is controlled to display a part of interfaces of the application interface, and the second display screen is controlled to display the rest part of interfaces of the application interface; the interface is moved visually, and the screen moving experience of a user is effectively improved.
Description
Technical Field
The present invention relates to the field of application interface technologies, and in particular, to an application interface moving method, an application interface moving apparatus, an application interface moving device, and a computer storage medium.
Background
With the development of science and technology, the number of screens capable of supporting user operation is increasing at present, and a problem exists in an interaction scene aiming at multiple screens: when a user needs to move an application on the screen 1 to the screen 2, a button or a menu is provided for the user to serve as an entrance, after the user clicks, the user can see that the application interface disappears on the screen 1 and simultaneously displays the application interface on the screen 2, the user cannot see the moving process of the application interface, the interaction is very hard, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides an application interface moving method and related equipment, which can realize the visualization of interface movement and improve the screen moving experience of a user.
In a first aspect, an embodiment of the present invention provides an application interface moving method, including:
responding to a screen moving gesture acting on an application interface displayed on a first display screen, and entering a screen moving mode;
determining a second display screen of the application interface according to the screen moving gesture;
associating the first display screen, the second display screen, and the application interface;
and following the screen moving gesture, controlling the first display screen to display a part of interfaces of the application interface, and controlling the second display screen to display the rest part of interfaces of the application interface.
Optionally, the responding to a screen-moving gesture applied to an application interface displayed on the first display screen enters a screen-moving mode, including:
detecting gesture operation acting on the application interface;
and identifying the gesture operation, and determining whether the gesture is a screen moving gesture.
Optionally, the determining a second display screen of the application interface according to the screen movement gesture includes:
and determining a second display screen of the application interface according to the motion direction of the screen moving gesture.
Optionally, the determining a second display screen of the application interface according to the screen movement gesture includes:
and determining a second display screen of the application interface according to the corresponding relation between the preset screen moving gesture and the preset second display screen and the screen moving gesture.
Optionally, the associating the first display screen and the second display screen with the application interface includes:
and determining the unique screen code of the first display screen as a first screen code member in the interface class of the application interface, determining the unique screen code of the second display screen as a second screen code member in the interface class, and determining the unique interface code of the application interface as an interface code member in the interface class so as to finish the association operation among the first display screen, the second display screen and the application interface.
Optionally, the controlling, following the screen-moving gesture, the first display screen to display a part of the interfaces of the application interface and the second display screen to display the remaining part of the interfaces of the application interface includes:
determining a first display proportion of a part of interfaces displayed on the first display screen in the application interface at the current time;
determining a second display proportion according to the first display proportion, wherein the sum of the first display proportion and the second display proportion is 1;
and displaying a part of the rest interfaces of the application interface on the second display screen according to the second display scale.
Optionally, the controlling, following the screen-moving gesture, the first display screen to display a part of the interfaces of the application interface and the second display screen to display the remaining part of the interfaces of the application interface includes:
determining a first abscissa of the application interface on the first display screen at the current moment when the resolutions of the first display screen and the second display screen are the same;
and determining a second abscissa of the application interface on the second display screen according to the absolute value of the first abscissa, wherein the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative.
Optionally, the controlling, following the screen-moving gesture, the first display screen to display a part of the interfaces of the application interface and the second display screen to display the remaining part of the interfaces of the application interface includes:
determining a first ordinate of the application interface on the first display screen at the current time when the resolutions of the first display screen and the second display screen are the same;
and determining a second ordinate of the application interface on the second display screen according to the absolute value of the first ordinate, wherein the sum of the absolute value of the first ordinate and the absolute value of the second ordinate is the pixel height of the first display screen, and the first ordinate and the second ordinate are positive, negative or positive.
In a second aspect, an embodiment of the present invention provides an application interface mobile apparatus, including:
the response module is used for responding to a screen moving gesture which acts on an application interface displayed on the first display screen and entering a screen moving mode;
the determining module is used for determining a second display screen of the application interface according to the screen moving gesture;
the association module is used for associating the first display screen and the second display screen with the application interface;
and the display module is used for controlling the first display screen to display a part of interfaces of the application interface and controlling the second display screen to display the rest part of interfaces of the application interface along with the screen moving gesture.
Optionally, the response module includes:
the detection submodule is used for detecting gesture operation acting on the application interface;
and the recognition submodule is used for recognizing the gesture operation and determining whether the gesture is a screen moving gesture.
Optionally, the determining module includes:
and the first determining submodule is used for determining a second display screen of the application interface according to the motion direction of the screen moving gesture.
Optionally, the determining module includes:
and the second determining submodule is used for determining the second display screen of the application interface according to the corresponding relation between the preset screen moving gesture and the preset second display screen and the screen moving gesture.
Optionally, the associating module includes:
and the processing submodule is used for determining the unique screen code of the first display screen as a first screen code member in the interface class of the application interface, determining the unique screen code of the second display screen as a second screen code member in the interface class, and determining the unique interface code of the application interface as an interface code member in the interface class so as to finish the association operation among the first display screen, the second display screen and the application interface.
Optionally, the display module comprises:
the first proportion determining submodule is used for determining that a part of interfaces displayed on the first display screen account for a first display proportion of the application interface at the current time;
the second proportion determining submodule is used for determining a second display proportion according to the first display proportion, and the sum of the first display proportion and the second display proportion is 1;
and the display sub-module is used for displaying the rest part of the interfaces of the application interface on the second display screen according to the second display scale.
Optionally, the display module comprises:
the first coordinate determination submodule is used for determining a first abscissa of the application interface on the first display screen at the current moment when the resolutions of the first display screen and the second display screen are the same;
and the second coordinate determination submodule is used for determining a second abscissa of the application interface on the second display screen according to the absolute value of the first abscissa, the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative.
Optionally, the display module comprises:
a third coordinate determination submodule, configured to determine a first ordinate of the application interface on the first display screen at the current time when resolutions of the first display screen and the second display screen are the same;
and the fourth coordinate determination submodule is used for determining a second vertical coordinate of the application interface on the second display screen according to the absolute value of the first vertical coordinate, the sum of the absolute value of the first vertical coordinate and the absolute value of the second vertical coordinate is the pixel height of the first display screen, and the first vertical coordinate and the second vertical coordinate are positive, negative and positive.
In a third aspect, an embodiment of the present invention provides an application interface mobile device, including: a processor and a memory;
the processor is connected to the memory, wherein the memory is used for storing program codes, and the processor is used for calling the program codes to execute the application interface moving method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, perform the application interface moving method according to the first aspect.
In the embodiment of the invention, a screen moving gesture which acts on an application interface displayed on a first display screen is responded to enter a screen moving mode; determining a second display screen of the application interface according to the screen moving gesture, and associating the first display screen, the second display screen and the application interface; the screen moving gesture is followed, the first display screen is controlled to display a part of interfaces of the application interface, and the second display screen is controlled to display the rest part of interfaces of the application interface; the interface is moved visually, and the screen moving experience of a user is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an application interface moving method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an application interface moving method according to an embodiment of the present invention;
fig. 3 is an interface movement diagram of an application interface movement method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application interface mobile device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an application interface mobile device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
It should be understood that the terms "first," "second," and the like in the description and claims of this application and in the drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by the person skilled in the art that the described embodiments of the invention can be combined with other embodiments.
The application interface in this context refers to an interface for user operation and feedback information, for example, various software interfaces, such as a home interface of software.
In the prior art, when an application interface on a screen 1 is moved to a screen 2, a button or a menu is provided for a user as an entrance, and after the user clicks, the user sees that the application interface disappears on the screen 1 and displays the application interface on the screen 2, so that the user cannot see the moving process of the application interface, the screen moving interaction is very hard, and the user experience is poor. Therefore, the application interface moving method can display the screen moving process in a visual mode, and improves the screen moving experience of a user.
Fig. 1 is a schematic flow chart illustrating an application interface moving method according to an embodiment of the present invention; the application interface moving method comprises the following steps:
101. responding to a screen moving gesture acting on an application interface displayed on a first display screen, and entering a screen moving mode;
specifically, when the screen moving gesture is detected, the screen moving mode is entered.
102. Determining a second display screen of the application interface according to the screen moving gesture;
specifically, according to the screen moving gesture, it can be determined that the second display screen of the application interface is to be complementarily displayed together with the first display screen, that is, the application interface is moved to which display screen for complementary display, where complementary display refers to that the first display screen and the second display screen jointly complete display of a certain application interface, that is, the first display screen displays a part of the application interface, and the second display screen displays the rest of the application interface.
103. Associating the first display screen and the second display screen with an application interface;
specifically, in order to implement the complementary display, the first display screen, the second display screen and the application interface need to be associated together, and an association relationship between the first display screen and the application interface is established, so that the application interface can be displayed on the first display screen and the second display screen at the same time, and after the association, the display contents of the two display screens are completely the same.
104. And following the screen moving gesture, controlling the first display screen to display a part of interfaces of the application interface, and controlling the second display screen to display the rest part of interfaces of the application interface.
Specifically, after the screen is associated with the interface, the first display screen is controlled to display a part of the interface of the application interface and the second display screen is controlled to display the rest part of the interface of the application interface, which is required to be controlled to follow the change or movement of the screen moving gesture, so as to realize the complementary display.
Therefore, by using the moving method of fig. 1, the visualization of the interface moving process can be realized, and the screen moving experience of the user is effectively improved. And the isolation on hardware among different screens is broken, and a user drags the application interface from one screen to another screen through a screen moving gesture. In the moving process, the application interface is gradually moved out of the boundary of the first display screen and is simultaneously gradually moved into the second display screen, and finally the whole application interface is moved out of the first display screen and is moved into the second display screen, so that the visual effect of a user is that different screens are communicated, the technological sense is enhanced, and better multi-screen interaction experience is provided for the user.
The mobile method of the embodiment is realized according to the following principle: each display screen has an ID called a unique screen code (displayID), and each application interface also has an ID called a unique interface code (layerID). Typically, the layerID of an application interface is associated with a certain displayID, and the application interface can be displayed on a designated display screen (a display screen corresponding to the displayID). By using the moving method of the embodiment, after entering the screen moving mode, the ID of the second display screen of the application interface is automatically added to the application interface to be moved. Thus, in the screen-shifting mode, the application interface can be displayed on another designated screen at the same time, but only a mirror image display is performed at the moment, namely, the contents displayed on the two screens are the same. And then controlling the two screens to respectively display a part of the application interface, wherein the two screens form a complete interface.
Further, referring to fig. 2, fig. 2 is a schematic flowchart of an application interface moving method according to an embodiment of the present invention; step 101 comprises:
A. detecting gesture operation acting on an application interface;
B. and recognizing the gesture operation and determining whether the gesture is a screen moving gesture.
Specifically, the gesture operation may be recognized according to the characteristics of the preset screen moving gesture, and the characteristics of the gesture operation are extracted to perform feature matching, so as to determine whether the gesture is a screen moving gesture. For example, if the screen movement gesture is three-finger sliding, it may be detected whether the feature of the current gesture operation is the feature of the three-finger sliding, and if the features are matched, it may be determined that the current gesture is the screen movement gesture, a screen movement mode is entered, and the display screen where the current application interface is located, that is, the unique screen code of the first display screen, is obtained. And when the current gesture is determined not to be the screen moving gesture, directly ending the judgment.
Further, referring to fig. 2, step 102 includes:
and determining a second display screen of the application interface according to the motion direction of the screen moving gesture.
Specifically, the movement direction of the screen-sliding gesture generally includes left sliding, right sliding, up sliding, and down sliding, and specifically, when the magnitude of up sliding or down sliding occurring during left sliding is smaller than the magnitude of left sliding, the movement direction at this time is determined as left sliding, and similarly, when the magnitude of up sliding or down sliding occurring during right sliding is smaller than the magnitude of right sliding, the movement direction at this time is determined as right; and when the amplitude of the left slip or the right slip appearing during the downward slip is smaller than that of the downward slip, determining the motion direction at the moment as the downward slip, and when the amplitude of the left slip or the right slip appearing during the upward slip is smaller than that of the upward slip, determining the motion direction at the moment as the upward slip. The second display screen of the application interface in the screen shifting mode can be determined according to the motion direction of the screen shifting gesture, that is, the display id of the second display screen at this time is determined, taking sliding up as an example, the second display screen of the application interface is the display screen located above the first display screen, and the display id of the second display screen is the display id of the display screen above.
In addition, optionally, step 102 may further include:
and determining the second display screen of the application interface according to the corresponding relation between the preset screen moving gesture and the preset second display screen and the screen moving gesture.
Specifically, another method for determining the second display screen of the application interface is to determine according to the current screen moving gesture and a preset corresponding relation table, that is, to determine the displayID of the second display screen. The preset corresponding relation table stores the corresponding relation between the preset screen moving gesture and the preset display id of the second display screen, and then table lookup can be performed according to the screen moving gesture to determine the display id of the second display screen corresponding to the screen moving gesture. Taking the first display screen as an example, which has four second display screens in the up, down, left and right directions, respectively, display screen P1, display screen P2, display screen P3 and display screen P4, respectively, corresponding to screen moving gestures of up-sliding, down-sliding, left-sliding and right-sliding, different screen moving gestures are set for screen moving operations in the four directions, for example, up-sliding starts a screen moving mode if pressed by one finger length, down-sliding starts a screen moving mode if pressed by two fingers length, left-sliding starts a screen moving mode if pressed by three fingers length, and right-sliding starts a screen moving mode if pressed by four fingers length. The corresponding relationship between the displayids of the plurality of second display screens and the screen movement gesture may be preset, and a corresponding relationship table may be established in advance according to the corresponding relationship as in table 1 below:
TABLE 1
Screen movement gesture | displayID of second display screen |
One finger long press | Display ID of display Screen P1 |
Two fingers long press | Display ID of display Screen P2 |
Three fingers long press | Display ID of display Screen P3 |
Four fingers long press | Display ID of display Screen P4 |
Next, when the second display screen of the application interface needs to be determined, after the current screen moving gesture is determined, according to the screen moving gesture, table 1 may be directly looked up, and the display id of the second display screen of the application interface at this time is determined to be the display id of which display screen, for example, when the screen moving gesture at this time is a two-length press, the screen moving mode is entered at this time, according to the two-length press, table 1 may determine that the second display screen of the current application interface is display screen P2, and the display id of the second display screen is the display id of display screen P2.
Further, referring to fig. 2, it is necessary to associate the first display screen, the second display screen and the current application interface, specifically, step 103 includes:
and determining the unique screen code of the first display screen as a first screen code member in the interface class of the application interface, determining the unique screen code of the second display screen as a second screen code member in the interface class, and determining the unique interface code of the application interface as an interface code member in the interface class so as to finish the association operation among the first display screen, the second display screen and the application interface.
Specifically, each application interface corresponds to an interface class, and an interface code member, a first screen code member and a second screen code member are defined in the interface class, wherein the interface code member is used for uniquely identifying a certain application interface object, and the screen code member is used for representing the ID of the display screen to which the application interface object belongs. Each display screen corresponds to a screen class, and a screen code member is defined in the screen class and is used for uniquely identifying a certain display screen object. And setting the screen code member of a certain application interface object as the displayID of a certain display screen object, and finishing the association of the application interface and the display screen. In this embodiment, the interface class of the application interface has a first screen code member and a second screen code member, which indicate that the application interface belongs to two display screens at the same time. One screen can display a plurality of interfaces, and one interface can also be displayed on a plurality of screens.
In practice, the second screen-coded member of each application interface is set to an invalid value (e.g., -1) by default, that is, the application interface is only displayed on one screen by default. When an application interface object displayed on a display screen A receives a trigger event (such as three-finger sliding) of a specific screen-moving gesture, the second screen code member of the application interface is assigned as the display ID of the display screen B, for example, when a current music interface is on a main screen (i.e. the display screen A), the display ID of the main screen is 0 (i.e. the first screen code member of the music interface is 0), and when the three-finger sliding event is received, the second screen code member of the music interface is set from an invalid value to the display ID (value is 1) of a secondary screen (i.e. the display screen B), so that the music interface is simultaneously associated with the main screen and the secondary screen, and the music interface can be simultaneously displayed on the two screens. When the above configuration is completed, it is ensured that the music interface can be displayed on two screens at the same time, and the next step is to calculate the coordinates of the interface so that the music interface displays one part on the main screen and the other part on the sub-screen,
in one possible embodiment, step 104 includes:
s11, determining that a part of interfaces displayed on the first display screen account for a first display proportion of the application interface at the current time;
specifically, after the first display screen and the second display screen are associated with the application interface, along with the movement of the screen-moving gesture, a first display proportion and a second display proportion corresponding to each moment are determined, so that the application interface with the first display proportion is displayed on the first display screen at each moment, and the application interface with the second display proportion is displayed on the second display screen. The method comprises the steps of firstly determining the proportion of a part of interfaces displayed on a first display screen in an application interface at the current moment as a first display proportion.
S21, determining a second display proportion according to the first display proportion, wherein the sum of the first display proportion and the second display proportion is 1;
specifically, since the sum of the first display scale and the second display scale is 1, the second display scale may be determined according to the first display scale.
And S31, displaying a part of the rest interfaces of the application interface on the second display screen according to the second display scale.
Specifically, the second display screen is controlled to display the application interface with the second display scale according to the second display scale, so that the application interface with the first display scale is displayed on the first display screen at the current moment, and the application interface with the second display scale is displayed on the second display screen. And displaying and controlling at each moment according to the method, so that the visualization of the screen moving process can be realized. In particular, the method is suitable for the situation that the resolutions of the first display screen and the second display screen are the same or different.
For example, taking the example that the y-axis coordinate is always 0 and only the x-axis coordinate is considered during the screen shifting process, for example, the resolution of the main screen is 1920 × 720, the pixel width of the main screen is 1920, the resolution of the sub-screen is 640 × 480, the pixel width of the sub-screen is 640, the application interface is dragged to the position 480 on the main screen at a certain moment, and 480/1920 — 1/4 shows 1/4 on the main screen, and the remaining 3/4 is displayed on the sub-screen, so the x-axis starting position of the application interface on the sub-screen is-640 × 3/4 — 480 and the coordinate of the application interface is (-480, 0).
In a possible embodiment, step 104, in addition to implementing the complementary display of the first display screen and the second display screen by using the display scale, can implement the complementary display by ensuring that the coordinates of the two are complementary based on the size of the screen, which is described in two cases, one is complementary based on the pixel width and the other is complementary based on the pixel height.
In the first case, when the pixel width is taken as the base for complementation, step 104 includes:
s12, when the resolutions of the first display screen and the second display screen are the same, determining a first abscissa of the application interface on the first display screen at the current time;
specifically, referring to fig. 2, coordinates of the application interface on the first display screen at the current time are obtained, where the coordinates include a first abscissa and a first ordinate. In this embodiment, the first ordinate is not changed, and the description will be given by way of example.
And S22, determining a second abscissa of the application interface on the second display screen according to the absolute value of the first abscissa, wherein the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative.
Specifically, in this embodiment, a horizontal sliding is taken as an example, at this time, the ordinate of the application interface does not change, the second abscissa of the second display screen is calculated with the pixel width of the first display screen (or the second display screen) as a base, the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative. The complementary with the pixel width as the base refers to the case that the resolution of the two screens is the same, for example, the pixel width of the two screens is 1920, and if the coordinate of the application interface on the main screen is (1000,0) at a certain moment, the coordinate on the sub-screen is (-920,0), wherein |1000| + | -920|, is equal to the pixel width 1920, and at this time, the absolute value of the x-axis coordinate (1000) of the application interface on the main screen is complementary with the absolute value (| -920|) of the coordinate on the sub-screen with the pixel width (1920) as the base.
Referring to fig. 3, fig. 3 is a schematic diagram of interface movement of an application interface movement method according to an embodiment of the present invention, for example, the widths of the pixels of the main screen PM1 and the sub-screen PM2 are both 1920 pixels, and the music interface is displayed in a full screen, that is, the width of the music interface is also 1920 pixels, so that after the music interface moves 480 pixels to the left on the main screen PM1, the coordinates of the interface on the main screen PM1 are (1920-480,0), that is, Pos (1440-x-axis coordinates, 0-y-axis coordinates), and the coordinates of the interface on the sub-screen PM2 are Pos (-480, 0).
In the second case, when the pixel height is taken as the base for complementation, step 104 includes:
s31, when the resolutions of the first display screen and the second display screen are the same, determining a first vertical coordinate of the application interface on the first display screen at the current time;
specifically, referring to fig. 2, coordinates of the application interface on the first display screen at the current time are obtained, where the coordinates include a first abscissa and a first ordinate. In this embodiment, the first abscissa is not changed, and the description will be given by way of example.
And S32, determining a second ordinate of the application interface on the second display screen according to the absolute value of the first ordinate, wherein the sum of the absolute value of the first ordinate and the absolute value of the second ordinate is the pixel height of the first display screen, and the first ordinate and the second ordinate are positive, negative.
Specifically, in this embodiment, taking vertical sliding as an example, at this time, the abscissa of the application interface is not changed, the pixel height of the first display screen (or the second display screen) is taken as a base, the second ordinate of the second display screen is calculated, the sum of the absolute value of the first ordinate and the absolute value of the second ordinate is the pixel height of the first display screen, and the first ordinate and the second ordinate are positive, negative. The complementation based on the pixel height is similar to the complementation based on the pixel width, and the description is omitted.
Referring to fig. 2, the complementary display is implemented based on the size of the screen as a base, and the application interfaces are displayed on the two screens simultaneously and together present a complete interface. It is worth pointing out that in addition to the lateral sliding and the longitudinal sliding, for the case where both the lateral sliding and the longitudinal sliding exist, the second abscissa and the second ordinate of the second display screen can still be determined by using the above method.
Based on the description of the embodiment of the application interface moving method, an embodiment of the present invention further discloses an application interface moving apparatus, referring to fig. 4, where fig. 4 is a schematic structural diagram of the application interface moving apparatus provided in the embodiment of the present invention, and the application interface moving apparatus includes:
the response module 401 is configured to enter a screen moving mode in response to a screen moving gesture applied to an application interface displayed on the first display screen;
a determining module 402, configured to determine a second display screen of the application interface according to the screen moving gesture;
an association module 403, configured to associate the first display screen and the second display screen with an application interface;
and the display module 404 is configured to control the first display screen to display a part of the interfaces of the application interface and control the second display screen to display the remaining part of the interfaces of the application interface, following the screen-moving gesture.
Therefore, the application interface mobile device realizes the visualization of interface movement and effectively improves the screen moving experience of a user.
In one possible embodiment, the response module includes:
the detection submodule is used for detecting gesture operation acting on the application interface;
and the recognition submodule is used for recognizing the gesture operation and determining whether the gesture is a screen moving gesture.
In one possible embodiment, the determining module includes:
and the first determining submodule is used for determining a second display screen of the application interface according to the motion direction of the screen moving gesture.
In one possible embodiment, the determining module includes:
and the second determining submodule is used for determining the second display screen of the application interface according to the corresponding relation between the preset screen moving gesture and the preset second display screen and the screen moving gesture.
In one possible embodiment, the association module includes:
and the processing submodule is used for determining the unique screen code of the first display screen as a first screen code member in the interface class of the application interface, determining the unique screen code of the second display screen as a second screen code member in the interface class, and determining the unique interface code of the application interface as an interface code member in the interface class so as to finish the association operation among the first display screen, the second display screen and the application interface.
In one possible embodiment, the display module includes:
the first proportion determining submodule is used for determining that a part of interfaces displayed on the first display screen account for a first display proportion of the application interface at the current time;
the second proportion determining submodule is used for determining a second display proportion according to the first display proportion, and the sum of the first display proportion and the second display proportion is 1;
and the display sub-module is used for displaying the rest part of the interface of the application interface on the second display screen according to the second display scale.
In one possible embodiment, the display module includes:
the first coordinate determination submodule is used for determining a first abscissa of the application interface on the first display screen at the current moment when the resolutions of the first display screen and the second display screen are the same;
and the second coordinate determination submodule is used for determining a second abscissa of the application interface on the second display screen according to the absolute value of the first abscissa, the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative.
In one possible embodiment, the display module includes:
the third coordinate determination submodule is used for determining a first vertical coordinate of the application interface on the first display screen at the current moment when the resolutions of the first display screen and the second display screen are the same;
and the fourth coordinate determination submodule is used for determining a second vertical coordinate of the application interface on the second display screen according to the absolute value of the first vertical coordinate, the sum of the absolute value of the first vertical coordinate and the absolute value of the second vertical coordinate is the pixel height of the first display screen, and the first vertical coordinate and the second vertical coordinate are positive, negative and positive.
It is to be noted that, for a specific function implementation manner of the application interface moving apparatus, reference may be made to the description of the application interface moving method, and details are not described here again. Each unit or module in the application interface mobile device may be respectively or completely combined into one or several other units or modules to form, or some unit(s) or module(s) thereof may be further split into multiple units or modules with smaller functions to form, which may achieve the same operation without affecting the achievement of the technical effect of the embodiments of the present invention. The above units or modules are divided based on logic functions, and in practical applications, the functions of one unit (or module) may also be implemented by a plurality of units (or modules), or the functions of a plurality of units (or modules) may be implemented by one unit (or module).
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides application interface mobile equipment.
Fig. 5 is a schematic structural diagram of an application interface mobile device according to an embodiment of the present invention. As shown in fig. 5, the application interface moving apparatus may be applied to the application interface moving apparatus 500, and the application interface moving apparatus 500 may include: the processor 501, the network interface 504 and the memory 505, and the application interface mobile device 500 may further include: a user interface 503, and at least one communication bus 502. Wherein a communication bus 502 is used to enable connective communication between these components. The user interface 503 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 503 may also include a standard wired interface and a standard wireless interface. The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 505 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 505 may alternatively be at least one memory device located remotely from the processor 501. As shown in fig. 5, the memory 505, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the application interface mobile device 500 shown in fig. 5, the network interface 504 may provide network communication functions; while the user interface 503 is primarily an interface for providing input to a user; and processor 501 may be configured to invoke a device control application stored in memory 505 to implement the method steps of the application interface movement method described above.
It should be understood that the application interface mobile device 500 described in the embodiment of the present invention may perform the application interface moving method described above, and may also perform the description of the application interface moving apparatus described above, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer program executed by the application interface moving apparatus, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the application interface moving method can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (18)
1. An application interface moving method is characterized by comprising the following steps:
responding to a screen moving gesture acting on an application interface displayed on a first display screen, and entering a screen moving mode;
determining a second display screen of the application interface according to the screen moving gesture;
associating the first display screen, the second display screen, and the application interface;
and following the screen moving gesture, controlling the first display screen to display a part of interfaces of the application interface, and controlling the second display screen to display the rest part of interfaces of the application interface.
2. The method of claim 1, wherein entering a screen-shift mode in response to a screen-shift gesture applied to an application interface displayed on the first display screen comprises:
detecting gesture operation acting on the application interface;
and identifying the gesture operation, and determining whether the gesture is a screen moving gesture.
3. The method of claim 1, wherein determining the second display screen of the application interface according to the screen movement gesture comprises:
and determining a second display screen of the application interface according to the motion direction of the screen moving gesture.
4. The method of claim 1, wherein determining the second display screen of the application interface according to the screen movement gesture comprises:
and determining a second display screen of the application interface according to the corresponding relation between the preset screen moving gesture and the preset second display screen and the screen moving gesture.
5. The method of any of claims 1-4, wherein associating the first display screen, the second display screen, and the application interface comprises:
and determining the unique screen code of the first display screen as a first screen code member in the interface class of the application interface, determining the unique screen code of the second display screen as a second screen code member in the interface class, and determining the unique interface code of the application interface as an interface code member in the interface class so as to finish the association operation among the first display screen, the second display screen and the application interface.
6. The method according to any one of claims 1 to 4, wherein the following the screen-moving gesture, controlling the first display screen to display a part of the interfaces of the application interface and controlling the second display screen to display the remaining part of the interfaces of the application interface comprises:
determining a first display proportion of a part of interfaces displayed on the first display screen in the application interface at the current time;
determining a second display proportion according to the first display proportion, wherein the sum of the first display proportion and the second display proportion is 1;
and displaying a part of the rest interfaces of the application interface on the second display screen according to the second display scale.
7. The method according to any one of claims 1 to 4, wherein the following the screen-moving gesture, controlling the first display screen to display a part of the interfaces of the application interface and controlling the second display screen to display the remaining part of the interfaces of the application interface comprises:
determining a first abscissa of the application interface on the first display screen at the current moment when the resolutions of the first display screen and the second display screen are the same;
and determining a second abscissa of the application interface on the second display screen according to the absolute value of the first abscissa, wherein the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative.
8. The method according to any one of claims 1 to 4, wherein the following the screen-moving gesture, controlling the first display screen to display a part of the interfaces of the application interface and controlling the second display screen to display the remaining part of the interfaces of the application interface comprises:
determining a first ordinate of the application interface on the first display screen at the current time when the resolutions of the first display screen and the second display screen are the same;
and determining a second ordinate of the application interface on the second display screen according to the absolute value of the first ordinate, wherein the sum of the absolute value of the first ordinate and the absolute value of the second ordinate is the pixel height of the first display screen, and the first ordinate and the second ordinate are positive, negative or positive.
9. An application interface mobile apparatus, comprising:
the response module is used for responding to a screen moving gesture which acts on an application interface displayed on the first display screen and entering a screen moving mode;
the determining module is used for determining a second display screen of the application interface according to the screen moving gesture;
the association module is used for associating the first display screen and the second display screen with the application interface;
and the display module is used for controlling the first display screen to display a part of interfaces of the application interface and controlling the second display screen to display the rest part of interfaces of the application interface along with the screen moving gesture.
10. The apparatus of claim 9, wherein the response module comprises:
the detection submodule is used for detecting gesture operation acting on the application interface;
and the recognition submodule is used for recognizing the gesture operation and determining whether the gesture is a screen moving gesture.
11. The apparatus of claim 9, wherein the determining module comprises:
and the first determining submodule is used for determining a second display screen of the application interface according to the motion direction of the screen moving gesture.
12. The apparatus of claim 9, wherein the determining module comprises:
and the second determining submodule is used for determining the second display screen of the application interface according to the corresponding relation between the preset screen moving gesture and the preset second display screen and the screen moving gesture.
13. The apparatus according to any one of claims 9 to 12, wherein the associating means comprises:
and the processing submodule is used for determining the unique screen code of the first display screen as a first screen code member in the interface class of the application interface, determining the unique screen code of the second display screen as a second screen code member in the interface class, and determining the unique interface code of the application interface as an interface code member in the interface class so as to finish the association operation among the first display screen, the second display screen and the application interface.
14. The apparatus of any of claims 9 to 12, wherein the display module comprises:
the first proportion determining submodule is used for determining that a part of interfaces displayed on the first display screen account for a first display proportion of the application interface at the current time;
the second proportion determining submodule is used for determining a second display proportion according to the first display proportion, and the sum of the first display proportion and the second display proportion is 1;
and the display sub-module is used for displaying the rest part of the interfaces of the application interface on the second display screen according to the second display scale.
15. The apparatus of any of claims 9 to 12, wherein the display module comprises:
the first coordinate determination submodule is used for determining a first abscissa of the application interface on the first display screen at the current moment when the resolutions of the first display screen and the second display screen are the same;
and the second coordinate determination submodule is used for determining a second abscissa of the application interface on the second display screen according to the absolute value of the first abscissa, the sum of the absolute value of the first abscissa and the absolute value of the second abscissa is the pixel width of the first display screen, and the first abscissa and the second abscissa are positive, negative.
16. The apparatus of any of claims 9 to 12, wherein the display module comprises:
a third coordinate determination submodule, configured to determine a first ordinate of the application interface on the first display screen at the current time when resolutions of the first display screen and the second display screen are the same;
and the fourth coordinate determination submodule is used for determining a second vertical coordinate of the application interface on the second display screen according to the absolute value of the first vertical coordinate, the sum of the absolute value of the first vertical coordinate and the absolute value of the second vertical coordinate is the pixel height of the first display screen, and the first vertical coordinate and the second vertical coordinate are positive, negative and positive.
17. An application interface mobile device, comprising: a processor and a memory;
the processor is coupled to a memory, wherein the memory is configured to store program code and the processor is configured to invoke the program code to perform the application interface movement method of any of claims 1-8.
18. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, perform the application interface moving method according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010497238.5A CN111752430A (en) | 2020-06-03 | 2020-06-03 | Application interface moving method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010497238.5A CN111752430A (en) | 2020-06-03 | 2020-06-03 | Application interface moving method and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111752430A true CN111752430A (en) | 2020-10-09 |
Family
ID=72674387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010497238.5A Withdrawn CN111752430A (en) | 2020-06-03 | 2020-06-03 | Application interface moving method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111752430A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938030A (en) * | 2012-09-29 | 2013-02-20 | 周万荣 | Method and terminal for setting permission of application and controlling restricted region |
CN106775526A (en) * | 2016-12-06 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | Interface display control method and device |
CN107678664A (en) * | 2017-08-28 | 2018-02-09 | 中兴通讯股份有限公司 | A kind of terminal interface switching, the method, apparatus and terminal of gesture processing |
CN109491558A (en) * | 2017-09-11 | 2019-03-19 | 上海博泰悦臻网络技术服务有限公司 | Exchange method and device, storage medium and vehicle device are applied between the screen of onboard system |
US20190303052A1 (en) * | 2018-03-30 | 2019-10-03 | Brother Kogyo Kabushiki Kaisha | Computer-readable medium, information processing device, and method for customizing a screen to be displayed on a display apparatus |
-
2020
- 2020-06-03 CN CN202010497238.5A patent/CN111752430A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938030A (en) * | 2012-09-29 | 2013-02-20 | 周万荣 | Method and terminal for setting permission of application and controlling restricted region |
CN106775526A (en) * | 2016-12-06 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | Interface display control method and device |
CN107678664A (en) * | 2017-08-28 | 2018-02-09 | 中兴通讯股份有限公司 | A kind of terminal interface switching, the method, apparatus and terminal of gesture processing |
CN109491558A (en) * | 2017-09-11 | 2019-03-19 | 上海博泰悦臻网络技术服务有限公司 | Exchange method and device, storage medium and vehicle device are applied between the screen of onboard system |
US20190303052A1 (en) * | 2018-03-30 | 2019-10-03 | Brother Kogyo Kabushiki Kaisha | Computer-readable medium, information processing device, and method for customizing a screen to be displayed on a display apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10929013B2 (en) | Method for adjusting input virtual keyboard and input apparatus | |
US10627990B2 (en) | Map information display device, map information display method, and map information display program | |
US20180232135A1 (en) | Method for window displaying on a mobile terminal and mobile terminal | |
CN101667058B (en) | Interactive method for switching focuses among multiple systems | |
JP5522755B2 (en) | INPUT DISPLAY CONTROL DEVICE, THIN CLIENT SYSTEM, INPUT DISPLAY CONTROL METHOD, AND PROGRAM | |
US20120013645A1 (en) | Display and method of displaying icon image | |
US20140129941A1 (en) | Information display processing device | |
CN112099686B (en) | Icon display control method and device and electronic equipment | |
JP2010134897A (en) | Drawing device, drawing method, program and recording medium | |
US10843896B2 (en) | System and method of initiating elevator service by entering an elevator call | |
US20170355556A1 (en) | System and method of initiating elevator service by entering an elevator call | |
WO2016107462A1 (en) | Information input method and device, and smart terminal | |
CN109597548B (en) | Menu display method, device, equipment and storage medium | |
CN106201207A (en) | A kind of virtual reality exchange method and device | |
CN106415471A (en) | Processing method for user interface of terminal, user interface and terminal | |
CN104461312A (en) | Display control method and electronic equipment | |
US20120313968A1 (en) | Image display system, information processing apparatus, display device, and image display method | |
US11455071B2 (en) | Layout method, device and equipment for window control bars | |
CN104951140A (en) | Touch screen menu displaying method and system | |
CN105446629A (en) | Content pane switching method, device and terminal | |
CN104714739A (en) | Information processing method and electronic equipment | |
CN106095303A (en) | A kind of method for operating application program and device | |
CN111752430A (en) | Application interface moving method and related equipment | |
CN112637653B (en) | Television touch remote control method and system | |
CN105549837A (en) | Method and device for displaying contact items of contact list based on touch-screen apparatus |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20201009 |
|
WW01 | Invention patent application withdrawn after publication |