WO2020007116A1 - Split-screen window adjustment method and apparatus, storage medium and electronic device - Google Patents

Split-screen window adjustment method and apparatus, storage medium and electronic device Download PDF

Info

Publication number
WO2020007116A1
WO2020007116A1 PCT/CN2019/085899 CN2019085899W WO2020007116A1 WO 2020007116 A1 WO2020007116 A1 WO 2020007116A1 CN 2019085899 W CN2019085899 W CN 2019085899W WO 2020007116 A1 WO2020007116 A1 WO 2020007116A1
Authority
WO
WIPO (PCT)
Prior art keywords
split
screen display
screen
display window
window
Prior art date
Application number
PCT/CN2019/085899
Other languages
French (fr)
Chinese (zh)
Inventor
李同喜
付亮晶
曹丹
林志泳
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020007116A1 publication Critical patent/WO2020007116A1/en

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • 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/0486Drag-and-drop
    • 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
    • G06F3/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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

Definitions

  • the present application relates to the field of electronic devices, and in particular, to a method, a device, a storage medium, and an electronic device for adjusting a split screen window.
  • terminals have begun to gradually change from simply providing call equipment to a platform for universal software operation.
  • the platform no longer aims to provide call management, but provides an operating environment including call management, game entertainment, office notes, mobile payment and other applications.
  • call management game entertainment
  • office notes office notes
  • mobile payment mobile payment
  • Split screen is currently a relatively common user scenario for Android (Android) system smart terminals. Users pay more attention to the experience when using split screens. If users use split screens, they will have higher requirements for the quickness of split screen operations, the expressiveness of display, the convenience of entering and exiting, and the user-friendliness. In addition, the fluency in the operation process also relatively affects the experience. The performance and intuitive feeling of the user on the mobile phone will be associated with the split-screen operation, which will affect the brand and reputation of the product.
  • the embodiments of the present application provide a method, a device, a storage medium, and an electronic device for adjusting a split screen window, which can improve the size adjustment efficiency of the split screen display window.
  • an embodiment of the present application provides a method for adjusting a split screen window, including:
  • an embodiment of the present application further provides a split-screen window adjustment device, including:
  • a generating module for generating a partition bar between two adjacent split-screen display windows when in a split-screen display state
  • a detection module configured to detect a user's drag operation on the divider
  • a ratio acquisition module configured to acquire the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation
  • An adjustment module is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
  • an embodiment of the present application further provides a storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the foregoing split-screen window adjustment method are implemented.
  • an embodiment of the present application further provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor implements the foregoing split screen window when the program is executed. Steps of the adjustment method.
  • FIG. 1 is a schematic flowchart of a method for adjusting a split screen window according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a split screen display according to an embodiment of the present application.
  • FIG. 3 is a schematic scenario diagram of a method for adjusting a split screen window according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of split screen exit provided by an embodiment of the present application.
  • FIG. 5 is another schematic flowchart of a method for adjusting a split screen window according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another scenario of a method for adjusting a split screen window according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a method for adjusting a split screen window according to an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of a split-screen window adjusting device according to an embodiment of the present application.
  • FIG. 9 is another schematic structural diagram of a split-screen window adjusting device according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 11 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • An embodiment of the present application provides a method for adjusting a split screen window, including:
  • obtaining the zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation includes:
  • Adjusting the two adjacent split-screen display windows to perform zoom processing according to the zoom ratio includes:
  • the first split-screen display window is enlarged according to the enlargement ratio, and the second split-screen display window is reduced according to the reduction ratio.
  • obtaining a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows include:
  • a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
  • acquiring the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to a drag distance of the drag operation includes:
  • obtaining the enlargement ratio of the first split screen window according to the target reduction ratio includes:
  • obtaining the target reduction ratio corresponding to the drag distance of the drag operation includes:
  • obtaining the enlargement ratio of the first split screen window according to the target reduction ratio includes:
  • the target reduction ratio is directly used as the enlargement ratio of the first split screen window directly.
  • acquiring the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to a drag distance of the drag operation includes:
  • the reduction ratio corresponding to the drag distance is used as the reduction ratio of the second split screen display window.
  • the method before acquiring the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation, the method further includes:
  • the method for adjusting a split screen window further includes:
  • the device can be specifically integrated into an electronic device.
  • the electronic device can be an electronic device with image processing functions, such as a mobile interconnected network device (such as a smart phone or a tablet). device.
  • FIG. 1 is a schematic flowchart of a method for adjusting a split screen window according to an embodiment of the present application, including the following steps:
  • each split-screen display window When the electronic device is in the split-screen display state, the electronic device will display multiple split-screen display windows, such as two, three, or more split-screen display windows.
  • the position of each split-screen display window on the screen can be set according to actual needs, and each split-screen display window will display an application (hereinafter referred to as an application).
  • the positions between multiple split-screen display windows may be set according to actual requirements, for example, multiple split-screen display windows may be isolated from each other.
  • the two adjacent split-screen display windows may be two adjacent split-screen display windows.
  • the electronic device when the electronic device handles the split-screen display state, it can display two split-screen display windows, that is, an upper split-screen display window and a lower split-screen display window. Adjacent to the two split screen display windows. In one embodiment, left and right split screen display windows can also be displayed.
  • the upper split-screen display window performs split-screen display of application A
  • the lower split-screen display window performs split-screen display of application B.
  • a divider bar when the electronic device processes the split screen display state, in order to facilitate the adjustment of the window size, a divider bar may also be generated between two adjacent split screen display windows.
  • the divider bar is located between two adjacent split-screen display windows in multiple split-screen display windows.
  • the current split-screen interface includes two split-screen display windows, it is between the two split-screen display windows.
  • Generate a separator bar For example, referring to FIG. 2, a separator bar 10 can be generated between the upper and lower split screen display windows.
  • split-screen interface when the split-screen interface includes three split-screen display windows, a separate bar is generated between two adjacent split-screen display windows, that is, two separate bars are generated in total.
  • the user can drag or drag the divider to adjust the window.
  • the partition bar can be directly displayed on the screen display interface of the electronic device, and can also be called (or generated) in various ways.
  • the divider may be the edge line of the screen display interface.
  • the split screen display mode of the display screen of the electronic device may be set in advance in the embodiment of the present application.
  • the split screen display mode may include, for example, an upper and lower split screen display or a left and right split screen display.
  • the display screen of the electronic device can be divided into display areas consistent with the split screen display mode.
  • the display screen of an electronic device can be divided into a first display area and a second display area that are uniform in size and are arranged vertically, that is, two split screen display windows are displayed.
  • the display screen of the electronic device can also be divided into sizes The first display area and the second display area that are unequal and are distributed left and right, that is, two left and right split screen display windows are displayed.
  • the electronic device can detect the user's operation on the divider in real time. Thereby, the user's drag operation on the divider is detected.
  • a user may perform a drag operation on the partition bar 10.
  • the electronic device will detect the drag operation, and the electronic device may detect related information of the drag operation, such as drag direction, drag Track, drag duration, drag distance, drag speed, and more.
  • the zoom ratio of the split-screen display window is the ratio of the size of the split-screen display window to the original split-screen display window; for example, the original size of the split-screen display window is c1, and the size of the split-screen display window is c2.
  • the scaling ratio b c2 / c1.
  • the scaling ratio of the split-screen display window may also be a size difference between the zoomed split-screen display window and the original split-screen window, and a size ratio of the original split-screen window.
  • the original size of the split-screen display window is c1
  • the size of the split-screen display window after zooming is c2.
  • the zoom ratio b (c2-c1) / c1.
  • the zoom ratio may include a reduction ratio and an enlargement ratio.
  • the reduction ratio of the split-screen display window is the size ratio of the reduced split-screen display window to the original split-screen display window.
  • the enlargement ratio of the split-screen display window is the ratio of the size of the enlarged split-screen display window to the original split-screen display window.
  • the split-screen display window to be enlarged and the split-screen display window to be reduced need to be determined first. However, it is determined The enlargement ratio of the split-screen display window to be enlarged and the reduction ratio of the split-screen display window to be reduced need to be determined first. Specifically, in order to facilitate the determination of the split-screen display window to be scaled, the window to be scaled may be determined based on the dragging direction of the drag operation, and the zoom ratio may be determined based on the drag distance.
  • the step "Getting the zoom ratio corresponding to two adjacent split-screen display windows based on a drag operation” includes:
  • the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window are obtained according to the drag distance of the drag operation.
  • a window facing the dragging direction may be determined as a window to be reduced, and a display window facing away from the dragging direction may be determined as The window to be enlarged. That is, the step "obtaining the first split-screen display window to be enlarged and the second split-screen display window to be reduced from two adjacent split-screen display windows based on the dragging direction of the drag operation" may include:
  • the split-screen display window that is away from the dragging direction is selected as the second split-screen display window to be enlarged.
  • the electronic device when the user can drag the partition bar 10 to the upper part of the screen, the electronic device will detect that the dragging direction of the drag operation is the upper part of the screen. At this time, since the upper split screen display window is located at the upper part of the screen, The upper split-screen display window is oriented toward the dragging direction, that is, the upper split-screen display window is located in the dragging direction. At this time, it can be determined that the upper split-screen display window is the second split-screen display window to be reduced.
  • the lower split-screen display window is located below the screen, the lower split-screen display window is away from the dragging direction. At this time, it can be determined that the lower split-screen display window is the second split-screen display window to be enlarged.
  • the multi-screen display window to be enlarged or the multi-screen display window to be reduced may be determined according to the dragging direction, and then other multi-screen display windows are used as the multi-screen display window to be reduced, or The split-screen display window to be enlarged.
  • the electronic device when the user can drag the partition bar 10 to the upper part of the screen, the electronic device will detect that the dragging direction of the drag operation is the upper part of the screen. At this time, since the upper split screen display window is located at the upper part of the screen, The upper split-screen display window is oriented toward the dragging direction, that is, the upper split-screen display window is located in the dragging direction. At this time, it can be determined that the upper split-screen display window is the second split-screen display window to be reduced. Then, the electronic device will use the other split-screen display window, that is, the lower split-screen display window as the first split-screen display window to be enlarged.
  • an enlargement ratio and a reduction ratio can be obtained based on a drag distance of a drag operation.
  • the method for obtaining a zoom ratio based on a drag distance can include multiple types.
  • a drag can be established in advance. The mapping relationship between the distance and the zoom ratio, so that after the drag distance is obtained, the zoom ratio (such as the enlargement ratio and the reduction ratio) corresponding to the drag distance can be obtained based on the mapping relationship.
  • mapping relationship there may be multiple manifestations of the mapping relationship, for example, it may be in the form of a table.
  • the mapping relationship may be in the form of a table.
  • a zoom ratio in order to obtain a zoom ratio that meets actual requirements, a zoom ratio may be obtained based on the drag distance first, and then a corresponding zoom ratio may be obtained based on the zoom ratio. Therefore, the enlargement of other windows can be determined based on the window shrinking, which improves the intelligence of window size adjustment.
  • the step "obtaining the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to the drag distance of the drag operation" may include:
  • the target reduction ratio s1 corresponding to the drag distance can be obtained, and the reduction ratio s1 is used as the reduction ratio of the upper split screen display window; then, the reduction ratio s1 is obtained Corresponding magnification s2.
  • the mapping relationship between the drag distance and the reduction ratio can be established in advance, so that when the drag distance is obtained later, the reduction ratio corresponding to the drag distance can be obtained based on the mapping relationship.
  • the mapping relationship can be in the form of a table, for example, refer to the following table (that is, Table 2)
  • the method for obtaining the enlargement ratio based on the target reduction ratio may include multiple methods.
  • the target reduction ratio may be directly used as the enlargement.
  • the ratio that is, the enlargement ratio and the reduction ratio are equal.
  • the enlargement ratio may be 70%.
  • the reduction ratio when the scaling ratio is a ratio of the window size after scaling to the original size, the reduction ratio may be added by 100% to obtain the enlargement ratio.
  • the size of the display screen may also be considered when obtaining the enlargement ratio based on the reduction ratio, so that the size adjustment of the window conforms to the size of the actual display screen, and the effect of window size adjustment is improved.
  • the step "obtaining the enlargement ratio of the first split screen window according to the target reduction ratio” may include:
  • This solution can calculate the size of the reduced window based on the determined reduction ratio, and then determine the enlargement ratio based on the size of the screen and the size of the reduced window.
  • the size difference between the screen size and the reduced size may be displayed, and then the maximum magnification ratio is calculated based on the size difference and the size of the split-screen display window to be enlarged; then, based on Maximum magnification Select an appropriate magnification.
  • the target reduction ratio s1 corresponding to the drag distance can be obtained, and the reduction ratio s1 is used as the reduction ratio of the upper split screen display window; then, according to the reduction ratios s1 and The size of the split-screen display window is used to calculate the reduced size of the upper split-screen display window. Based on the size of the display screen and the reduced size of the upper split-screen display window, the maximum magnification of the lower split-screen display window is calculated. Magnification Select a suitable magnification for the lower split screen display window.
  • the method in the embodiment of the present application may further include:
  • dragging speed can be used to identify the user's true intention.
  • the split screen exit can also be triggered when the drag speed is fast.
  • the method in the embodiment of the present application may further include: when the dragging speed is greater than or equal to a preset speed, exiting the split screen display state.
  • no longer "exiting the split-screen display state when the drag speed is greater than or equal to a preset speed" may include:
  • the first split screen display window to be closed and the second split screen display to be enlarged are determined from two adjacent split screen display windows based on the drag direction of the drag operation. window;
  • a window that is away from the dragging direction may be selected as the window to be enlarged.
  • Other windows are to be closed and so on.
  • the electronic device when the user drags the separator bar quickly upward, the electronic device will detect the drag speed V, and when the speed V is greater than a preset threshold, exit the split-screen display state. Specifically, the upper split-screen display window is closed. , Enlarge the lower split screen display window to match the display screen, if it matches the size of the display screen, etc.
  • the size after scaling can be calculated according to the size and scaling ratio of two adjacent split-screen display windows, and then the size of the split-screen display window can be adjusted to the scaled size.
  • the step "adjusting the size of two adjacent split-screen display windows according to the zoom ratio” may include:
  • the first split screen display window is enlarged according to the enlargement ratio, and the second split screen display window is reduced according to the reduction ratio.
  • the size of the lower split screen display window can be enlarged according to the enlargement ratio; the size of the upper split screen display window can be reduced according to the reduction ratio.
  • the embodiment of the present application introduces the method of the present application in the case of splitting into two split-screen display windows in the split-screen display state
  • the application is not limited to the scenario where the split-screen is divided into two display windows. It is applicable to the scenario where the screen is divided into two or more such as three or four display windows.
  • the specific implementation is the same as or similar to the implementation of dividing into two display windows. You can refer to the above content and will not repeat them here.
  • the electronic device may be any intelligent electronic device capable of running applications, such as a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant.
  • PDA for short, Mobile Internet Device (MID) or Wearable Device.
  • a separator bar is generated between two adjacent split-screen display windows; a user's drag operation on the separator bar is detected; and an adjacent two The scaling ratio corresponding to each split-screen display window; the size of two adjacent split-screen display windows is adjusted according to the zoom ratio.
  • This solution can adjust the size of the split-screen display window based on the user's drag operation on the divider, eliminating the need for users to perform tedious operations, and simplifying the resize operation of the split-screen window. For users, only the drag of the divider is required. The size adjustment of the split-screen display window can be realized, and the size adjustment efficiency of the split-screen display window is improved.
  • FIG. 5 is a schematic flowchart of another split-screen window adjustment method according to an embodiment of the present application, including the following steps:
  • the electronic device When in the split-screen display state, the electronic device generates a separation bar between two adjacent split-screen display windows.
  • each split-screen display window When the electronic device is in the split-screen display state, the electronic device will display multiple split-screen display windows, such as two, three, or more split-screen display windows.
  • the position of each split-screen display window on the screen can be set according to actual needs, and each split-screen display window will display an application (hereinafter referred to as an application).
  • the positions between multiple split-screen display windows may be set according to actual requirements.
  • multiple split-screen display windows may overlap each other or may be isolated from each other.
  • two split screen display windows that is, left and right split screen display windows may be displayed.
  • the left split screen display window performs split screen display of application A
  • the right split screen display window performs split screen display of application B.
  • a divider bar may also be generated between two adjacent split screen display windows.
  • the divider bar is located between two adjacent split-screen display windows in multiple split-screen display windows. For example, if the current split-screen interface includes two split-screen display windows, it is between the two split-screen display windows.
  • Generate a separator bar For example, referring to Figure 6, you can generate a separator bar between the left and right split screen display windows.
  • the electronic device detects a user's drag operation on the divider.
  • the electronic device can detect the user's operation on the divider in real time. Thereby, the user's drag operation on the divider is detected.
  • the user can perform a drag operation to the right of the divider.
  • the electronic device will detect the drag operation, and the electronic device may detect related information of the drag operation, such as the drag direction, Drag track, drag duration, drag distance, drag speed, and more.
  • the electronic device determines a first split-screen display window to be enlarged and a second split-screen display window to be reduced from two adjacent split-screen display windows.
  • a window facing the dragging direction may be determined as a window to be reduced, and a display window facing away from the dragging direction may be determined as The window to be enlarged.
  • the electronic device selects the split-screen display window facing the dragging direction as the second split-screen display window to be reduced from the two adjacent split-screen display windows;
  • the split screen display window in the moving direction is used as the second split screen display window to be enlarged.
  • the electronic device when the user can drag the divider bar to the right of the screen, the electronic device will detect that the drag direction of the drag operation is the right side of the screen. At this time, the left split screen display window can be used as the enlarged screen.
  • the first split screen display window uses the right split screen display window as the second split screen display window to be reduced.
  • an enlargement ratio and a reduction ratio can be obtained based on a drag distance of a drag operation.
  • the method for obtaining a zoom ratio based on a drag distance can include multiple types.
  • a drag can be established in advance. The mapping relationship between the distance and the zoom ratio, so that after the drag distance is obtained, the zoom ratio (such as the enlargement ratio and the reduction ratio) corresponding to the drag distance can be obtained based on the mapping relationship.
  • a zoom ratio in order to obtain a zoom ratio that meets actual requirements, a zoom ratio may be obtained based on the drag distance first, and then a corresponding zoom ratio may be obtained based on the zoom ratio. Therefore, the enlargement of other windows can be determined based on the window shrinking, which improves the intelligence of window size adjustment.
  • the electronic device can obtain the target reduction ratio corresponding to the drag distance of the drag operation; use the target reduction ratio as the reduction ratio of the second split-screen display window; and obtain the enlargement ratio of the first split-screen window according to the target reduction ratio.
  • the target reduction ratio s1 corresponding to the drag distance can be obtained, and the reduction ratio s1 is used as the reduction ratio of the right split screen display window; then, according to the reduction ratio s1 Gets the enlargement ratio s2 of the left split screen display window.
  • the method for obtaining the enlargement ratio based on the target reduction ratio may include multiple methods.
  • the target reduction ratio may be directly used as the enlargement.
  • the ratio that is, the enlargement ratio and the reduction ratio are equal.
  • the enlargement ratio may be 70%.
  • the reduction ratio when the scaling ratio is a ratio of the window size after scaling to the original size, the reduction ratio may be added by 100% to obtain the enlargement ratio.
  • the size of the display screen may also be considered when obtaining the enlargement ratio based on the reduction ratio, so that the size adjustment of the window conforms to the size of the actual display screen, and the effect of window size adjustment is improved.
  • the electronic device can calculate the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window; and obtain the enlarged ratio of the first split-screen display window according to the size of the display screen and the reduced size.
  • This solution can calculate the size of the reduced window based on the determined reduction ratio, and then determine the enlargement ratio based on the size of the screen and the size of the reduced window.
  • the size difference between the screen size and the reduced size may be displayed, and then the maximum magnification ratio is calculated based on the size difference and the size of the split-screen display window to be enlarged; then, based on Maximum magnification Select an appropriate magnification.
  • the electronic device enlarges the first split-screen display window according to the enlargement ratio, and reduces the second split-screen display window according to the reduction ratio.
  • the electronic device can enlarge the size of the left split-screen display window according to the enlargement ratio; reduce the size of the right split-screen display window according to the reduction ratio.
  • the electronic device may be any intelligent electronic device capable of running applications, such as a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant.
  • PDA for short, Mobile Internet Device (MID) or Wearable Device.
  • a separator bar is generated between two adjacent split-screen display windows; a user's drag operation on the separator bar is detected; and an adjacent two The scaling ratio corresponding to each split-screen display window; the size of two adjacent split-screen display windows is adjusted according to the zoom ratio.
  • This solution can adjust the size of the split-screen display window based on the user's drag operation on the divider, eliminating the need for users to perform tedious operations, and simplifying the resize operation of the split-screen window.
  • the size adjustment of the split-screen display window can be realized, and the size adjustment efficiency of the split-screen display window is improved.
  • An embodiment of the present application further provides a split-screen window adjusting device, including: a generating module, configured to generate a partition bar between two adjacent split-screen display windows when in a split-screen display state;
  • a detection module configured to detect a user's drag operation on the divider
  • a ratio acquisition module configured to acquire the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation
  • An adjustment module is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
  • the ratio acquisition module includes:
  • a window determining submodule configured to determine, based on a dragging direction of the drag operation, a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows ;
  • a proportion acquisition submodule configured to acquire an enlargement ratio of the first split-screen display window and a reduction ratio of the second split-screen display window according to a drag distance of the drag operation
  • the adjusting module is configured to enlarge the first split-screen display window according to the enlargement ratio, and reduce the second split-screen display window according to the reduction ratio.
  • the window determination submodule is configured to:
  • a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
  • the ratio acquisition sub-module is configured to:
  • the ratio acquisition sub-module is configured to:
  • the ratio acquisition sub-module is configured to obtain a target reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the reduction ratio established in advance.
  • the ratio acquisition sub-module is configured to: when the scaling ratio is a ratio of the difference between the size change after scaling and the original size, the target reduction ratio may be directly used as the first split screen window Magnification.
  • the split-screen window adjustment device further includes: a judgment module and an exit module;
  • the judging module is configured to obtain a dragging speed of the drag operation before the scaling obtaining module obtains a zoom ratio; and determine whether the dragging speed is less than a preset speed;
  • the ratio acquisition module is configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation when the determination module determines that the drag speed is less than a preset speed;
  • the exit module is configured to determine from the two adjacent split-screen display windows based on the drag direction of the drag operation when the judging module determines that the drag speed is greater than or equal to the preset speed.
  • the embodiment of the present application also provides a split-screen window adjustment device.
  • the meanings of the terms are the same as in the above-mentioned split-screen window adjustment method.
  • FIG. 7 is a schematic structural diagram of a split-screen window adjustment device according to an embodiment of the present application.
  • the split-screen window adjustment device 30 includes: a generation module 301, a detection module 302, a ratio acquisition module 303, and an adjustment module 304. details as follows:
  • a generating module 301 configured to generate a separating bar between two adjacent split-screen display windows when in a split-screen display state
  • a detection module 302 configured to detect a drag operation of a user with respect to the partition bar
  • a scale obtaining module 303 configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation
  • An adjustment module 304 is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
  • the scale acquisition module 303 may include: a window determination sub-module 3031 and a scale acquisition sub-module 3032;
  • a window determining sub-module 3031 is configured to determine a first split-screen display window to be enlarged and a second split-screen display to be reduced from the two adjacent split-screen display windows based on a dragging direction of the drag operation. window;
  • a proportion acquisition submodule 3032 configured to acquire an enlargement ratio of the first split-screen display window and a reduction ratio of the second split-screen display window according to a drag distance of the drag operation
  • the adjusting module 304 is configured to enlarge the first split-screen display window according to the enlargement ratio, and reduce the second split-screen display window according to the reduction ratio.
  • the window determination sub-module 3031 may be specifically configured to:
  • a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
  • the ratio acquisition sub-module 3032 may be used for:
  • the ratio acquisition sub-module 3032 may be used for:
  • the split screen window adjusting device 30 in the embodiment of the present application may further include a determination module 305 and an exit module 306;
  • the judging module 305 is configured to obtain a dragging speed of the drag operation before the scaling obtaining module obtains a zoom ratio; and determine whether the dragging speed is less than a preset speed;
  • the ratio acquisition module 303 is configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation when the determination module 305 determines that the drag speed is less than a preset speed;
  • the exit module 306 is configured to, when the judging module 305 determines that the drag speed is greater than or equal to the preset speed, based on the drag direction of the drag operation, display windows from the two adjacent split screens Determine the first split-screen display window to be closed and the second split-screen display window to be enlarged;
  • the ratio acquisition sub-module 3032 is configured to obtain a target reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the reduction ratio established in advance.
  • the ratio acquisition sub-module 3032 is configured to: directly use the target reduction ratio as the first split screen window when the scaling ratio is a ratio of the difference between the size change after scaling and the original size. Magnification.
  • the proportion acquisition sub-module 3032 is configured to:
  • the reduction ratio corresponding to the drag distance is used as the reduction ratio of the second split screen display window.
  • the above modules can be implemented as independent entities, or can be arbitrarily combined, and implemented as the same or several entities.
  • the specific implementation of the above units can refer to the previous embodiments, and will not be repeated here.
  • the split-screen window adjusting device 30 when the split-screen window adjusting device 30 provided in the embodiment of the present application is in a split-screen display state, a separation bar is generated between two adjacent split-screen display windows by the generating module 301; the detection module 302 detects user targeting The drag operation of the divider; the scaling acquisition module 303 obtains the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation; the adjustment module 304 adjusts the adjacent pixels according to the zoom ratio Adjust the size of the two split-screen display windows.
  • This solution can adjust the size of the split-screen display window based on the user's drag operation on the divider, eliminating the need for users to perform tedious operations, and simplifying the resize operation of the split-screen window. For users, only the drag of the divider The size adjustment of the split-screen display window can be realized, and the size adjustment efficiency of the split-screen display window is improved.
  • the present application also provides a storage medium on which a computer program is stored, which is characterized in that when the computer program is executed by a processor, the method for adjusting a split screen provided by the method embodiment is implemented.
  • the present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, when the processor executes the program, the analysis method provided in the method embodiment is implemented. Screen window adjustment method.
  • an electronic device is also provided, and the electronic device may be a device such as a smart phone or a tablet computer.
  • the electronic device 400 includes a processor 401 and a memory 402.
  • the processor 401 is electrically connected to the memory 402.
  • the processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device.
  • the processor 401 executes the electronic program by running or loading the application program stored in the memory 402, and calling the data stored in the memory 402. Various functions of the device and processing data, so as to monitor the overall electronic equipment.
  • the processor 401 in the electronic device 400 will load instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 will run and store the instructions in the memory 402 Applications in order to implement various functions, such as:
  • a partition bar is generated between two adjacent split-screen display windows; a user's drag operation on the partition bar is detected; and the two adjacent split screens are obtained based on the drag operation A scaling ratio corresponding to the display window; and adjusting the sizes of the two adjacent split-screen display windows according to the scaling ratio.
  • the electronic device 500 may include a radio frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 504, an audio circuit 506, and a wireless fidelity (
  • RF radio frequency
  • a WiFi (Wireless Fidelity) module 507 includes a processor 508 having one or more processing cores, a power supply 509, and other components.
  • the radio frequency circuit 501 can be used to send and receive information, or to receive and send signals during a call. In particular, after receiving the downlink information of the base station, it is processed by one or more processors 508. In addition, the uplink-related data is sent to the base station. .
  • the radio frequency circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, Subscriber Identity Module) card, a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc.
  • the radio frequency circuit 501 can also communicate with a network and other devices through wireless communication.
  • This wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA, Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), Email, Short Messaging Service (SMS), etc.
  • GSM Global System for Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • Email Short Messaging Service
  • the memory 502 may be used to store application programs and data.
  • the application program stored in the memory 502 contains executable code.
  • Applications can be composed of various functional modules.
  • the processor 508 executes various functional applications and data processing by running an application program stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .;
  • the data (such as audio data, phone book, etc.) created by the use of electronic devices.
  • the memory 502 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 508 and the input unit 503 with access to the memory 502.
  • a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 502 may further include a memory controller to provide the processor 508 and the input unit 503 with access to the memory 502.
  • the input unit 503 can be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
  • the input unit 503 may include a touch-sensitive surface and other input devices.
  • a touch-sensitive surface also known as a touch display or touchpad, collects user touch operations on or near it (such as the user using a finger, stylus or any suitable object or accessory on the touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connection device according to a preset program.
  • the touch-sensitive surface may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the processor 508, and can receive the command sent by the processor 508 and execute it.
  • the display unit 504 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 504 may include a display panel.
  • the display panel may be configured using a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface may cover the display panel.
  • the touch-sensitive surface When the touch-sensitive surface detects a touch operation on or near the touch-sensitive surface, the touch-sensitive surface is transmitted to the processor 508 to determine the type of the touch event, and then the processor 508 displays the touch event according to the type of the touch event.
  • the corresponding visual output is provided on the panel.
  • the touch-sensitive surface and the display panel are implemented as two separate components to implement input and input functions, in some embodiments, the touch-sensitive surface and the display panel may be integrated to implement input and output functions.
  • the electronic device may further include at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and / or when the electronic device is moved to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). It can detect the magnitude and direction of gravity when it is stationary.
  • attitude of the mobile phone such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; as for electronic devices, other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can also be configured, not here More details.
  • the audio circuit 506 may provide an audio interface between the user and the electronic device through a speaker or a microphone.
  • the audio circuit 506 can convert the received audio data into an electrical signal and transmit it to a speaker.
  • the speaker converts the audio signal into a sound signal and outputs it.
  • the microphone converts the collected sound signal into an electrical signal, which is converted by the audio circuit 506 into
  • the audio circuit 506 may further include an earphone jack to provide communication between the peripheral headset and the electronic device.
  • Wireless fidelity is a short-range wireless transmission technology. Electronic devices can help users send and receive email, browse web pages, and access streaming media through the wireless fidelity module 507, which provides users with wireless broadband Internet access.
  • FIG. 11 shows the wireless fidelity module 507, it can be understood that it does not belong to the necessary configuration of the electronic device, and can be omitted as needed without changing the essence of the invention.
  • the processor 508 is a control center of an electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
  • the electronic device is executed by running or executing an application program stored in the memory 502 and calling data stored in the memory 502.
  • the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc.
  • the modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 508.
  • the electronic device also includes a power source 509 (such as a battery) that powers various components.
  • a power source 509 such as a battery
  • the power supply may be logically connected to the processor 508 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.
  • the power supply 509 may also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power supply status indicator, and any other components.
  • the electronic device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the above modules may be implemented as independent entities, or may be arbitrarily combined, and implemented as the same or several entities.
  • the above modules refer to the foregoing method embodiments, and details are not described herein again.
  • the execution process may include the process of the embodiment of the split-screen window adjustment method.
  • the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks, or optical disks.
  • Each functional module may be integrated into a processing chip, or each module may exist separately physically, or Two or more modules are integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules. Specific examples are used herein to explain the principle and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, according to this application, The idea may be changed in the specific implementation and the scope of application. In summary, the content of this specification should not be understood as a limitation on this application.

Abstract

Disclosed are a split-screen window adjustment method and apparatus, a storage medium, and an electronic device. The method comprises: when in a split-screen display state, generating a partition bar between two adjacent split-screen display windows; detecting a drag operation of a user on the partition bar; acquire a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation; and adjusting the size of the two adjacent split-screen display windows according to the zoom ratio.

Description

分屏窗口调节方法、装置、存储介质和电子设备Method and device for adjusting split screen window, storage medium and electronic equipment
本申请要求于2018年07月03日提交中国专利局、申请号为201810717182.2、发明名称为“分屏窗口调节方法、装置、存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on July 3, 2018 with the Chinese Patent Office, application number 201810717182.2, and the invention name is "split-screen window adjustment method, device, storage medium and electronic device", the entire content of which is approved Citations are incorporated in this application.
技术领域Technical field
本申请涉及电子设备领域,具体涉及一种分屏窗口调节方法、装置、存储介质和电子设备。The present application relates to the field of electronic devices, and in particular, to a method, a device, a storage medium, and an electronic device for adjusting a split screen window.
背景技术Background technique
随着终端技术的发展,终端已经开始从以前简单地提供通话设备渐渐变成一个通用软件运行的平台。该平台不再以提供通话管理为主要目的,而是提供一个包括通话管理、游戏娱乐、办公记事、移动支付等各类应用软件在内的运行环境,随着大量的普及,已经深入至人们的生活、工作的方方面面。With the development of terminal technology, terminals have begun to gradually change from simply providing call equipment to a platform for universal software operation. The platform no longer aims to provide call management, but provides an operating environment including call management, game entertainment, office notes, mobile payment and other applications. With the widespread popularity, it has penetrated into people's Every aspect of life and work.
分屏目前是Android(安卓)***智能终端的一种比较常见的用户场景。用户对于分屏使用时的体验是比较重视的,如果用户在使用分屏时,对分屏操作的快捷性,显示的表现力,进入与退出是否方便,人性化,都会有较高的要求,还有操作过程中的流畅度也比较影响体验,用户对手机的性能与直观感受会跟分屏操作关联起来,影响到产品的品牌与声誉。Split screen is currently a relatively common user scenario for Android (Android) system smart terminals. Users pay more attention to the experience when using split screens. If users use split screens, they will have higher requirements for the quickness of split screen operations, the expressiveness of display, the convenience of entering and exiting, and the user-friendliness. In addition, the fluency in the operation process also relatively affects the experience. The performance and intuitive feeling of the user on the mobile phone will be associated with the split-screen operation, which will affect the brand and reputation of the product.
发明内容Summary of the invention
本申请实施例提供一种分屏窗口调节方法、装置、存储介质和电子设备,可以提升分屏显示窗口的尺寸调节效率。The embodiments of the present application provide a method, a device, a storage medium, and an electronic device for adjusting a split screen window, which can improve the size adjustment efficiency of the split screen display window.
第一方面,本申请实施例提供一种分屏窗口调节方法,包括:In a first aspect, an embodiment of the present application provides a method for adjusting a split screen window, including:
当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;When in the split screen display state, a divider is generated between two adjacent split screen display windows;
检测用户针对所述分隔条的拖动操作;Detecting a user's drag operation on the separator;
基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;Obtaining a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation;
根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。Adjusting the size of the two adjacent split-screen display windows according to the scaling ratio.
第二方面,本申请实施例还提供了一种分屏窗口调节装置,包括:In a second aspect, an embodiment of the present application further provides a split-screen window adjustment device, including:
生成模块,用于当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;A generating module for generating a partition bar between two adjacent split-screen display windows when in a split-screen display state;
检测模块,用于检测用户针对所述分隔条的拖动操作;A detection module, configured to detect a user's drag operation on the divider;
比例获取模块,用于基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;A ratio acquisition module, configured to acquire the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation;
调节模块,用于根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。An adjustment module is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
第三方面,本申请实施例还提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述分屏窗口调节方法的步骤。According to a third aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the foregoing split-screen window adjustment method are implemented.
第四方面,本申请实施例还提供一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述分屏窗口调节方法的步骤。According to a fourth aspect, an embodiment of the present application further provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor implements the foregoing split screen window when the program is executed. Steps of the adjustment method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本申请实施例提供的分屏窗口调节方法的一种流程示意图。FIG. 1 is a schematic flowchart of a method for adjusting a split screen window according to an embodiment of the present application.
图2为本申请实施例提供的分屏显示示意图。FIG. 2 is a schematic diagram of a split screen display according to an embodiment of the present application.
图3为本申请实施例提供的分屏窗口调节方法的场景示意图。FIG. 3 is a schematic scenario diagram of a method for adjusting a split screen window according to an embodiment of the present application.
图4为本申请实施例提供的分屏退出示意图。FIG. 4 is a schematic diagram of split screen exit provided by an embodiment of the present application.
图5为本申请实施例提供的分屏窗口调节方法的另一种流程示意图。FIG. 5 is another schematic flowchart of a method for adjusting a split screen window according to an embodiment of the present application.
图6为本申请实施例提供的分屏窗口调节方法的另一种场景示意图。FIG. 6 is a schematic diagram of another scenario of a method for adjusting a split screen window according to an embodiment of the present application.
图7为本申请实施例提供的分屏窗口调节方法的一种结构示意图。FIG. 7 is a schematic structural diagram of a method for adjusting a split screen window according to an embodiment of the present application.
图8为本申请实施例提供的分屏窗口调节装置的另一种结构示意图。FIG. 8 is another schematic structural diagram of a split-screen window adjusting device according to an embodiment of the present application.
图9为本申请实施例提供的分屏窗口调节装置的另一种结构示意图。FIG. 9 is another schematic structural diagram of a split-screen window adjusting device according to an embodiment of the present application.
图10为本申请实施例提供的电子设备的一种结构示意图。FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图11为本申请实施例提供的电子设备的另一种结构示意图。FIG. 11 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components. The principle of the present application is illustrated by implementing in an appropriate computing environment. The following description is based on the exemplified specific embodiments of the present application, which should not be construed as limiting other specific embodiments that are not detailed herein.
本申请的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本申请的运算***、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器***、微电脑为主的***、主架构型计算机、及分布式运算环境,其中包括了任何的上述***或装置。The principles of this application operate using many other general-purpose or special-purpose operations, communication environments, or configurations. Examples of well-known computing systems, environments, and configurations suitable for this application may include, but are not limited to, handheld phones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment that includes any of the aforementioned systems or devices.
本申请实施例提供了一种分屏窗口调节方法,包括:An embodiment of the present application provides a method for adjusting a split screen window, including:
当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;When in the split screen display state, a divider is generated between two adjacent split screen display windows;
检测用户针对所述分隔条的拖动操作;Detecting a user's drag operation on the separator;
基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;Obtaining a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation;
根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。Adjusting the size of the two adjacent split-screen display windows according to the scaling ratio.
在一些实施例中,基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例,包括:In some embodiments, obtaining the zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation includes:
基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口;Determining a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows based on a dragging direction of the drag operation;
根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例;Obtaining an enlargement ratio of the first split-screen display window and a decrease ratio of the second split-screen display window according to a drag distance of the drag operation;
根据所述缩放比例调节所述相邻两个分屏显示窗口进行缩放处理,包括:Adjusting the two adjacent split-screen display windows to perform zoom processing according to the zoom ratio includes:
根据所述放大比例对所述第一分屏显示窗口进行放大,并根据所述缩小比例对所述第二分屏显示窗口进行缩小。The first split-screen display window is enlarged according to the enlargement ratio, and the second split-screen display window is reduced according to the reduction ratio.
在一些实施例中,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中获取待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口,包括:In some embodiments, based on the dragging direction of the drag operation, obtaining a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows, include:
从所述相邻两个分屏显示窗口中,选择朝向所述拖动方向的分屏显示窗口作为待缩小的第二分屏显示窗口;Selecting, from the two adjacent split-screen display windows, the split-screen display window facing the dragging direction as a second split-screen display window to be reduced;
从所述相邻两个分屏显示窗口中,选择背离所述拖动方向的分屏显示窗口作为待放大的第一分屏显示窗口。From the two adjacent split-screen display windows, a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
在一些实施例中,根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例,包括:In some embodiments, acquiring the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to a drag distance of the drag operation includes:
获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
根据所述目标缩小比例获取所述第一分屏窗口的放大比例。Obtaining the enlargement ratio of the first split screen window according to the target reduction ratio.
在一些实施例中,根据所述目标缩小比例获取所述第一分屏窗口的放大比例,包括:In some embodiments, obtaining the enlargement ratio of the first split screen window according to the target reduction ratio includes:
根据所述目标缩小比例和所述第一分屏显示窗口的尺寸计算所述第二分屏显示窗口的缩小后尺寸;Calculating the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window;
根据显示屏幕的尺寸以及所述缩小后尺寸,获取所述第一分屏显示窗口的放大比例。Obtaining the enlargement ratio of the first split-screen display window according to the size of the display screen and the reduced size.
在一些实施例中,获取所述拖动操作的拖动距离对应的目标缩小比例,包括:In some embodiments, obtaining the target reduction ratio corresponding to the drag distance of the drag operation includes:
基于预先建立的拖动距离与缩小比例之间的映射关系,获取所述拖动操作的拖动距离对应的目标缩小比例。Based on the mapping relationship between the drag distance and the reduction ratio established in advance, a target reduction ratio corresponding to the drag distance of the drag operation is obtained.
在一些实施例中,根据所述目标缩小比例获取所述第一分屏窗口的放大比例,包括:In some embodiments, obtaining the enlargement ratio of the first split screen window according to the target reduction ratio includes:
当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,直接将所述目标缩小比例直接作为所述第一分屏窗口的放大比例。When the scaling ratio is a ratio of the difference in size after scaling to the original size, the target reduction ratio is directly used as the enlargement ratio of the first split screen window directly.
在一些实施例中,根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例,包括:In some embodiments, acquiring the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to a drag distance of the drag operation includes:
基于预先建立的拖动距离与缩放比例之间的映射关系,获取所述拖动操作的拖动距离对应的放大比例和缩小比例;Obtaining an enlargement ratio and a reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the zoom ratio established in advance;
将拖动距离对应的放大比例作为所述第一分屏显示窗口的放大比例;Using the enlargement ratio corresponding to the drag distance as the enlargement ratio of the first split screen display window;
将拖动距离对应的缩小比例作为所述第二分屏显示窗口的缩小比例。The reduction ratio corresponding to the drag distance is used as the reduction ratio of the second split screen display window.
在一些实施例中,在基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例之前,所述方法还包括:In some embodiments, before acquiring the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation, the method further includes:
获取所述拖动操作的拖动速度;Obtaining a drag speed of the drag operation;
判断所述拖动速度是否小于预设速度;Determining whether the drag speed is less than a preset speed;
若是,则执行基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例的步骤。If yes, perform the step of obtaining a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation.
在一些实施例中,分屏窗口调节方法,还包括:In some embodiments, the method for adjusting a split screen window further includes:
当所述拖动速度大于或等于所述预设速度时,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待关闭的第一分屏显示窗口和待放大的第二分屏显示窗口;When the drag speed is greater than or equal to the preset speed, based on the drag direction of the drag operation, determine the first split screen display window and The second split screen display window to be enlarged;
退出分屏显示状态,关闭所述第一分屏显示窗口,并根据显示屏幕的尺寸对所述第二分屏显示窗口进行放大。Exit the split screen display state, close the first split screen display window, and enlarge the second split screen display window according to the size of the display screen.
以下将分别进行详细说明。Each will be described in detail below.
本实施例将从分屏窗口调节装置的角度进行描述,该装置具体可以集成在电子设备中,该电子设备可以为移动互连接网络设备(如智能手机、平板电脑)等具备图像处理功能的电子设备。This embodiment will be described from the perspective of a split-screen window adjustment device. The device can be specifically integrated into an electronic device. The electronic device can be an electronic device with image processing functions, such as a mobile interconnected network device (such as a smart phone or a tablet). device.
参考图1,图1为本申请实施例提供的分屏窗口调节方法的一种流程示意图,包括以下步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method for adjusting a split screen window according to an embodiment of the present application, including the following steps:
101、当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条。101. When in a split-screen display state, a partition bar is generated between two adjacent split-screen display windows.
在电子设备处于分屏显示状态时,电子设备将会显示多个分屏显示窗口,比如两个、三个或者三个以上的分屏显示窗口。其中,每个分屏显示窗口在屏幕中的位置可以根据实际需求设定,每个分屏显示窗口将对一个应用程序(以下简称应用)进行显示。When the electronic device is in the split-screen display state, the electronic device will display multiple split-screen display windows, such as two, three, or more split-screen display windows. The position of each split-screen display window on the screen can be set according to actual needs, and each split-screen display window will display an application (hereinafter referred to as an application).
本申请实施例中,多个分屏显示窗口之间的位置可以根据实际需求设定,比如,可以多个分屏显示窗口之间可以相互隔离等。In the embodiment of the present application, the positions between multiple split-screen display windows may be set according to actual requirements, for example, multiple split-screen display windows may be isolated from each other.
其中,相邻两个分屏显示窗口可以为位置相邻的两个分屏显示窗口,The two adjacent split-screen display windows may be two adjacent split-screen display windows.
比如,参考图2,当电子设备处理分屏显示状态时,可以显示两个分屏显示窗口,也即上分屏显示窗口、下分屏显示窗口,此时,上下分屏显示窗口即为相邻两个分屏显示窗 口。在一实施例中,还可以显示左右两个分屏显示窗口。For example, referring to FIG. 2, when the electronic device handles the split-screen display state, it can display two split-screen display windows, that is, an upper split-screen display window and a lower split-screen display window. Adjacent to the two split screen display windows. In one embodiment, left and right split screen display windows can also be displayed.
参考图2,上分屏显示窗口对应用A进行分屏显示,下分屏显示窗口对应用B进行分屏显示。Referring to FIG. 2, the upper split-screen display window performs split-screen display of application A, and the lower split-screen display window performs split-screen display of application B.
在一实施例中,当电子设备处理分屏显示状态时为了便于调节窗口尺寸,还可以在相邻两个分屏显示窗口之间生成分隔条。其中,分隔条位于多个分屏显示窗口中相邻两个分屏显示窗口之间,比如,若当前分屏界面包括两个分屏显示窗口时,则在该两个分屏显示窗口之间生成一个分隔条,例如,参考图2,可以在上下分屏显示窗口之间生成一个分隔条10。In an embodiment, when the electronic device processes the split screen display state, in order to facilitate the adjustment of the window size, a divider bar may also be generated between two adjacent split screen display windows. Wherein, the divider bar is located between two adjacent split-screen display windows in multiple split-screen display windows. For example, if the current split-screen interface includes two split-screen display windows, it is between the two split-screen display windows. Generate a separator bar. For example, referring to FIG. 2, a separator bar 10 can be generated between the upper and lower split screen display windows.
又比如,在一实施例中,当分屏界面包括三个分屏显示窗口,则分别在两两相邻的分屏显示窗口之间生成一个分隔条,也即一共生成两个分隔条。For another example, in an embodiment, when the split-screen interface includes three split-screen display windows, a separate bar is generated between two adjacent split-screen display windows, that is, two separate bars are generated in total.
用户可以拉动或者拖动分隔条,进行窗口调节操作。分隔条可以直接就展示在电子设备的屏幕显示界面,也可以通过各种方式调出(或者生成)。比如,分隔条可以为屏幕显示界面的边缘线。The user can drag or drag the divider to adjust the window. The partition bar can be directly displayed on the screen display interface of the electronic device, and can also be called (or generated) in various ways. For example, the divider may be the edge line of the screen display interface.
在一实施例中,本申请实施例可以在分屏显示之前,预先设置电子设备的显示屏的分屏显示方式,分屏显示方式例如可以包括上下分屏显示或者左右分屏显示。按照分屏显示方式便可以将电子设备的显示屏划分为与分屏显示方式一致的显示区域。例如,可以将电子设备的显示屏划分为大小一致并且呈上下分布的第一显示区域和第二显示区域,即显示上下两个分屏显示窗口,当然还可以将电子设备的显示屏划分为大小不等并且呈左右分布的第一显示区域和第二显示区域,也即显示左右两个分屏显示窗口。In one embodiment, before the split screen display, the split screen display mode of the display screen of the electronic device may be set in advance in the embodiment of the present application. The split screen display mode may include, for example, an upper and lower split screen display or a left and right split screen display. According to the split screen display mode, the display screen of the electronic device can be divided into display areas consistent with the split screen display mode. For example, the display screen of an electronic device can be divided into a first display area and a second display area that are uniform in size and are arranged vertically, that is, two split screen display windows are displayed. Of course, the display screen of the electronic device can also be divided into sizes The first display area and the second display area that are unequal and are distributed left and right, that is, two left and right split screen display windows are displayed.
102、检测用户针对分隔条的拖动操作。102. Detect a user's drag operation on the separator.
比如,电子设备可以通过实时检测用户针对分隔条的操作的方式。从而检测用户针对分隔条的拖动操作。For example, the electronic device can detect the user's operation on the divider in real time. Thereby, the user's drag operation on the divider is detected.
比如,参考图3,用户可以针对分隔条10进行拖动操作,此时,电子设备将会检测到该拖动操作,电子设备可以检测到拖动操作的相关信息,比如,拖动方向、拖动轨迹、拖动时长、拖动距离、拖动速度,等等。For example, referring to FIG. 3, a user may perform a drag operation on the partition bar 10. At this time, the electronic device will detect the drag operation, and the electronic device may detect related information of the drag operation, such as drag direction, drag Track, drag duration, drag distance, drag speed, and more.
103、基于拖动操作获取相邻两个分屏显示窗口对应的缩放比例。103. Obtain a zoom ratio corresponding to two adjacent split-screen display windows based on a drag operation.
其中,分屏显示窗口的缩放比例为缩放后分屏显示窗口与原始分屏显示窗口的尺寸比值;比如,分屏显示窗口的原始尺寸为c1、缩放后分屏显示窗口的尺寸为c2,此时,缩放比例b=c2/c1。The zoom ratio of the split-screen display window is the ratio of the size of the split-screen display window to the original split-screen display window; for example, the original size of the split-screen display window is c1, and the size of the split-screen display window is c2. At this time, the scaling ratio b = c2 / c1.
在一实施例中,分屏显示窗口的缩放比例还可以为缩放分屏显示窗口和原始分屏窗口的尺寸差值、与原始分屏窗口的尺寸比值。比如,分屏显示窗口的原始尺寸为c1、缩放后分屏显示窗口的尺寸为c2,此时,缩放比例b=(c2-c1)/c1。In an embodiment, the scaling ratio of the split-screen display window may also be a size difference between the zoomed split-screen display window and the original split-screen window, and a size ratio of the original split-screen window. For example, the original size of the split-screen display window is c1, and the size of the split-screen display window after zooming is c2. At this time, the zoom ratio b = (c2-c1) / c1.
其中,缩放比例可以包括缩小比例和放大比例;其中,分屏显示窗口的缩小比例为缩小后分屏显示窗口与原始分屏显示窗口的尺寸比值。分屏显示窗口的放大比例为放大后分屏显示窗口与原始分屏显示窗口的尺寸比值。The zoom ratio may include a reduction ratio and an enlargement ratio. The reduction ratio of the split-screen display window is the size ratio of the reduced split-screen display window to the original split-screen display window. The enlargement ratio of the split-screen display window is the ratio of the size of the enlarged split-screen display window to the original split-screen display window.
在一实施例中,由于需要对一个分屏显示窗口放大、对另一个分屏显示窗口缩小,因此,需要先确定待放大的分屏显示窗口、以及待缩小的分屏显示窗口,然而,确定需要先确定待放大的分屏显示窗口的放大比例,待缩小的分屏显示窗口的缩小比例。具体地,为了为便于确定待缩放的分屏显示窗口,可以基于拖动操作的拖动方向来确定待缩放窗口,以及基于拖动距离来确定缩放比例。In one embodiment, since one split-screen display window needs to be enlarged and the other split-screen display window needs to be reduced, the split-screen display window to be enlarged and the split-screen display window to be reduced need to be determined first. However, it is determined The enlargement ratio of the split-screen display window to be enlarged and the reduction ratio of the split-screen display window to be reduced need to be determined first. Specifically, in order to facilitate the determination of the split-screen display window to be scaled, the window to be scaled may be determined based on the dragging direction of the drag operation, and the zoom ratio may be determined based on the drag distance.
比如,步骤“基于拖动操作获取相邻两个分屏显示窗口对应的缩放比例”,包括:For example, the step "Getting the zoom ratio corresponding to two adjacent split-screen display windows based on a drag operation" includes:
基于拖动操作的拖动方向,从相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口;Based on the dragging direction of the drag operation, determine a first split-screen display window to be enlarged and a second split-screen display window to be reduced from two adjacent split-screen display windows;
根据拖动操作的拖动距离获取第一分屏显示窗口的放大比例和第二分屏显示窗口的缩 小比例。The enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window are obtained according to the drag distance of the drag operation.
其中,基于拖动方向确定待缩放窗口的方式可以有多种,比如,在一实施例中,可以将朝向拖动方向的窗口确定为待缩小的窗口,将背离拖动方向的显示窗口确定为待放大的窗口。也即,步骤“基于拖动操作的拖动方向,从相邻两个分屏显示窗口中获取待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口”,可以包括:There may be multiple ways to determine the window to be zoomed based on the dragging direction. For example, in one embodiment, a window facing the dragging direction may be determined as a window to be reduced, and a display window facing away from the dragging direction may be determined as The window to be enlarged. That is, the step "obtaining the first split-screen display window to be enlarged and the second split-screen display window to be reduced from two adjacent split-screen display windows based on the dragging direction of the drag operation" may include:
从相邻两个分屏显示窗口中,选择朝向拖动方向的分屏显示窗口作为待缩小的第二分屏显示窗口;From the two adjacent split-screen display windows, select the split-screen display window that faces the dragging direction as the second split-screen display window to be reduced;
从相邻两个分屏显示窗口中,选择背离拖动方向的分屏显示窗口作为待放大的第二分屏显示窗口。From the two adjacent split-screen display windows, the split-screen display window that is away from the dragging direction is selected as the second split-screen display window to be enlarged.
比如,参考图3,用户可以向屏幕上方拖动分隔条10时,电子设备将会检测到该拖动操作的拖动方向为屏幕上方,此时,由于上分屏显示窗口位于屏幕上方,因此,上分屏显示窗口朝向拖动方向,也即上分屏显示窗口位于拖动方向上,此时,可以确定上分屏显示窗口为待缩小的第二分屏显示窗口。For example, referring to FIG. 3, when the user can drag the partition bar 10 to the upper part of the screen, the electronic device will detect that the dragging direction of the drag operation is the upper part of the screen. At this time, since the upper split screen display window is located at the upper part of the screen, The upper split-screen display window is oriented toward the dragging direction, that is, the upper split-screen display window is located in the dragging direction. At this time, it can be determined that the upper split-screen display window is the second split-screen display window to be reduced.
由于下分屏显示窗口位于屏幕下方,因此,下分屏显示窗口背离拖动方向,此时,可以确定下显示窗口为待放大的第二分屏显示窗口。Because the lower split-screen display window is located below the screen, the lower split-screen display window is away from the dragging direction. At this time, it can be determined that the lower split-screen display window is the second split-screen display window to be enlarged.
在一实施例中,还可以先根据拖动方向确定待放大的分屏显示窗口、或者待缩小的分屏显示窗口,然后,将其他的分屏显示窗口作为待缩小的分屏显示窗口、或者待放大的分屏显示窗口。In one embodiment, the multi-screen display window to be enlarged or the multi-screen display window to be reduced may be determined according to the dragging direction, and then other multi-screen display windows are used as the multi-screen display window to be reduced, or The split-screen display window to be enlarged.
例如,参考图3,用户可以向屏幕上方拖动分隔条10时,电子设备将会检测到该拖动操作的拖动方向为屏幕上方,此时,由于上分屏显示窗口位于屏幕上方,因此,上分屏显示窗口朝向拖动方向,也即上分屏显示窗口位于拖动方向上,此时,可以确定上分屏显示窗口为待缩小的第二分屏显示窗口。然后,电子设备将会将其他分屏显示窗口也即下分屏显示窗口作为待放大的第一分屏显示窗口。For example, referring to FIG. 3, when the user can drag the partition bar 10 to the upper part of the screen, the electronic device will detect that the dragging direction of the drag operation is the upper part of the screen. At this time, since the upper split screen display window is located at the upper part of the screen, The upper split-screen display window is oriented toward the dragging direction, that is, the upper split-screen display window is located in the dragging direction. At this time, it can be determined that the upper split-screen display window is the second split-screen display window to be reduced. Then, the electronic device will use the other split-screen display window, that is, the lower split-screen display window as the first split-screen display window to be enlarged.
本申请实施例可以基于拖动操作的拖动距离来获取放大比例和缩小比例,其中,基于拖动距离获取缩放比例的方式可以包括多种,比如,在一实施例中,可以预先建立拖动距离与缩放比例之间的映射关系,这样后续在得到拖动距离之后,便可以基于该映射关系获取拖动距离对应的缩放比例(如放大比例、缩小比例)。In the embodiment of the present application, an enlargement ratio and a reduction ratio can be obtained based on a drag distance of a drag operation. The method for obtaining a zoom ratio based on a drag distance can include multiple types. For example, in one embodiment, a drag can be established in advance. The mapping relationship between the distance and the zoom ratio, so that after the drag distance is obtained, the zoom ratio (such as the enlargement ratio and the reduction ratio) corresponding to the drag distance can be obtained based on the mapping relationship.
其中,映射关系的表现形式可以有多种,比如,可以为表格形式。例如,参考下表为预设拖动距离与缩放比例之间的对应关系。Among them, there may be multiple manifestations of the mapping relationship, for example, it may be in the form of a table. For example, refer to the following table for the correspondence between the preset drag distance and the zoom ratio.
拖动距离Drag distance 放大比例Magnification 缩小比例Scale down
L1L1 150%150% 70%70%
L2L2 200%200% 10%10%
表1Table 1
例如,参考图3,当拖动操作的拖动距离为L=L1时,可以基于上述表格得到放大比例为150%、缩小比例为70%。然后,将放大比例150%作为待放大窗口的放大比例,将缩小比例70%作为待缩小窗口的缩小比例。For example, referring to FIG. 3, when the drag distance of the drag operation is L = L1, based on the above table, an enlargement ratio of 150% and a reduction ratio of 70% can be obtained. Then, the enlargement ratio of 150% is taken as the enlargement ratio of the window to be enlarged, and the decrease ratio of 70% is taken as the reduction ratio of the window to be enlarged.
又比如,在一实施例中,为了能够得到符合实际需求的缩放比例,还可以先基于拖动距离获取缩小比例,然后,基于缩小比例获取相应的放大比例。因此,可以基于窗口缩小情况来确定其他窗口的放大情况,提升了窗口尺寸调节的智能性。For another example, in an embodiment, in order to obtain a zoom ratio that meets actual requirements, a zoom ratio may be obtained based on the drag distance first, and then a corresponding zoom ratio may be obtained based on the zoom ratio. Therefore, the enlargement of other windows can be determined based on the window shrinking, which improves the intelligence of window size adjustment.
比如,步骤“根据拖动操作的拖动距离获取第一分屏显示窗口的放大比例和第二分屏显示窗口的缩小比例”,可以包括:For example, the step "obtaining the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to the drag distance of the drag operation" may include:
获取拖动操作的拖动距离对应的目标缩小比例;Get the target reduction ratio corresponding to the drag distance of the drag operation;
将目标缩小比例作为第二分屏显示窗口的缩小比例;Use the target reduction ratio as the reduction ratio of the second split screen display window;
根据目标缩小比例获取第一分屏窗口的放大比例。Get the enlargement ratio of the first split screen window according to the target reduction ratio.
比如,参考图3,当用户向上拖动分隔条时,可以获取拖动距离对应的目标缩小比例s1,并将该缩小比例s1作为上分屏显示窗口的缩小比例;然后,根据缩小比例s1获取相应的放大比例s2。For example, referring to FIG. 3, when the user drags the divider bar upward, the target reduction ratio s1 corresponding to the drag distance can be obtained, and the reduction ratio s1 is used as the reduction ratio of the upper split screen display window; then, the reduction ratio s1 is obtained Corresponding magnification s2.
其中,可以预先建立拖动距离与缩小比例之间的映射关系,这样后续在得到拖动距离时,可以基于该映射关系获取拖动距离对应的缩小比例。该映射关系可以表格形式,比如,参考下表(即表2)The mapping relationship between the drag distance and the reduction ratio can be established in advance, so that when the drag distance is obtained later, the reduction ratio corresponding to the drag distance can be obtained based on the mapping relationship. The mapping relationship can be in the form of a table, for example, refer to the following table (that is, Table 2)
拖动距离Drag distance 缩小比例Scale down
L1L1 70%70%
L2L2 10%10%
表2Table 2
例如,参考图3,当拖动操作的拖动距离为L=L1时,可以基于上述表格得到缩小比例为70%。For example, referring to FIG. 3, when the drag distance of the drag operation is L = L1, a reduction ratio of 70% can be obtained based on the above table.
其中,基于目标缩小比例获取放大比例的方式可以包括多种,比如,在一实施例中,当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,可以直接将目标缩小比例直接作为放大比例,也即放大比例与缩小比例相等。The method for obtaining the enlargement ratio based on the target reduction ratio may include multiple methods. For example, in an embodiment, when the zoom ratio is the ratio of the difference between the size change after the zoom and the original size, the target reduction ratio may be directly used as the enlargement. The ratio, that is, the enlargement ratio and the reduction ratio are equal.
例如,缩小比例为70%时,那么放大比例可以为70%。For example, when the reduction ratio is 70%, the enlargement ratio may be 70%.
又比如,在一实施例中,当缩放比例为缩放后窗口尺寸与原始尺寸的比值时,可以将缩小比例加上100%得到放大比例。例如,缩小比例为70%时,那么放大比例可以为70%+100%=170%。For another example, in an embodiment, when the scaling ratio is a ratio of the window size after scaling to the original size, the reduction ratio may be added by 100% to obtain the enlargement ratio. For example, when the reduction ratio is 70%, the enlargement ratio may be 70% + 100% = 170%.
在一实施例中,还可以在基于缩小比例获取放大比例时考虑显示屏幕的尺寸,使得窗口的尺寸调节符合实际显示屏幕的尺寸,提升窗口尺寸调节的效果。In an embodiment, the size of the display screen may also be considered when obtaining the enlargement ratio based on the reduction ratio, so that the size adjustment of the window conforms to the size of the actual display screen, and the effect of window size adjustment is improved.
比如,步骤“根据目标缩小比例获取第一分屏窗口的放大比例”,可以包括:For example, the step "obtaining the enlargement ratio of the first split screen window according to the target reduction ratio" may include:
根据目标缩小比例和第一分屏显示窗口的尺寸计算第二分屏显示窗口的缩小后尺寸;Calculate the reduced size of the second split screen display window according to the target reduction ratio and the size of the first split screen display window;
根据显示屏幕的尺寸以及缩小后尺寸,获取第一分屏显示窗口的放大比例。According to the size of the display screen and the reduced size, an enlargement ratio of the first split-screen display window is obtained.
该方案可以基于确定的缩小比例计算出缩小后窗口的尺寸,然后,基于屏幕的尺寸和缩小后窗口的尺寸决定放大比例。This solution can calculate the size of the reduced window based on the determined reduction ratio, and then determine the enlargement ratio based on the size of the screen and the size of the reduced window.
比如,在一实施例中,可以显示屏幕的尺寸以及缩小后尺寸之间的尺寸差值,然后,基于尺寸差值和待放大的分屏显示窗口的尺寸,计算出最大放大比例;然后,基于最大放大比例选择合适的放大比例。For example, in an embodiment, the size difference between the screen size and the reduced size may be displayed, and then the maximum magnification ratio is calculated based on the size difference and the size of the split-screen display window to be enlarged; then, based on Maximum magnification Select an appropriate magnification.
例如,参考图3,当用户向上拖动分隔条时,可以获取拖动距离对应的目标缩小比例s1,并将该缩小比例s1作为上分屏显示窗口的缩小比例;然后,根据缩小比例s1和分屏显示窗口的尺寸计算出上分屏显示窗口的缩小后尺寸,根据显示屏幕的尺寸以及上分屏显示窗口的缩小后尺寸,计算出下分屏显示窗口的最大放大比例,然后,基于最大放大比例为下分屏显示窗口选择一个合适的放大比例。For example, referring to FIG. 3, when the user drags the separator bar upward, the target reduction ratio s1 corresponding to the drag distance can be obtained, and the reduction ratio s1 is used as the reduction ratio of the upper split screen display window; then, according to the reduction ratios s1 and The size of the split-screen display window is used to calculate the reduced size of the upper split-screen display window. Based on the size of the display screen and the reduced size of the upper split-screen display window, the maximum magnification of the lower split-screen display window is calculated. Magnification Select a suitable magnification for the lower split screen display window.
在一实施例中,为防止误操作,还可以基于拖动操作的拖动速度来确定是否对窗口进行缩放。比如,本申请实施例方法还可以包括:In an embodiment, in order to prevent misoperation, it is also possible to determine whether to zoom the window based on the drag speed of the drag operation. For example, the method in the embodiment of the present application may further include:
获取拖动操作的拖动速度;Get the drag speed of the drag operation;
判断拖动速度是否小于预设速度;Determine whether the drag speed is less than the preset speed;
若是,则执行基于拖动操作获取相邻两个分屏显示窗口对应的缩放比例的步骤。If yes, perform a step of obtaining a zoom ratio corresponding to two adjacent split-screen display windows based on a drag operation.
考虑到如果拖动速度很快的情况下,一般用户不是需要分屏显示窗口的尺寸,因此,为避免误操作,提升窗口调节的准确性,可以用拖动速度来识别用户真实的意图。Considering that if the dragging speed is fast, the average user does not need to display the size of the window in split screens. Therefore, in order to avoid misoperations and improve the accuracy of window adjustment, dragging speed can be used to identify the user's true intention.
在一实施例中,为提升分屏操作的多样性和智能性,还可以在拖动速度很快的情况下, 触发分屏退出。比如,本申请实施例方法还可以包括:当拖动速度大于或等于预设速度时,退出分屏显示状态。In an embodiment, in order to improve the diversity and intelligence of the split screen operation, the split screen exit can also be triggered when the drag speed is fast. For example, the method in the embodiment of the present application may further include: when the dragging speed is greater than or equal to a preset speed, exiting the split screen display state.
具体地,在退出分屏显示状态时,还需要确定保留的窗口以及关闭的窗口;因此,不再“当拖动速度大于或等于预设速度时,退出分屏显示状态”,可以包括:Specifically, when exiting the split-screen display state, it is also necessary to determine the reserved window and closed window; therefore, no longer "exiting the split-screen display state when the drag speed is greater than or equal to a preset speed" may include:
当拖动速度大于或等于预设速度时,基于拖动操作的拖动方向,从相邻两个分屏显示窗口中确定待关闭的第一分屏显示窗口和待放大的第二分屏显示窗口;When the drag speed is greater than or equal to the preset speed, the first split screen display window to be closed and the second split screen display to be enlarged are determined from two adjacent split screen display windows based on the drag direction of the drag operation. window;
退出分屏显示状态,关闭第一分屏显示窗口,并根据显示屏幕的尺寸对第二分屏显示窗口进行放大。Exit the split screen display state, close the first split screen display window, and enlarge the second split screen display window according to the size of the display screen.
其中,基于拖动方向确定待关闭和待放大窗口的方式可以参考上述基于拖动方向确定待放大和缩小的方式,这里不再赘述,比如,可以选取背离拖动方向为的窗口为待放大窗口,其他窗口为待关闭窗口等等。For the manner of determining the window to be closed and enlarged based on the dragging direction, refer to the foregoing method for determining to be enlarged and reduced based on the dragging direction, which is not repeated here. For example, a window that is away from the dragging direction may be selected as the window to be enlarged. , Other windows are to be closed and so on.
例如,参考图4,当用户向上快速拖动分隔条时,电子设备将检测到拖动速度V,当速度V大于预设阈值时,退出分屏显示状态,具体地,关闭上分屏显示窗口,将下分屏显示窗口放大到与显示屏幕匹配,若与显示屏幕尺寸一致等。For example, referring to FIG. 4, when the user drags the separator bar quickly upward, the electronic device will detect the drag speed V, and when the speed V is greater than a preset threshold, exit the split-screen display state. Specifically, the upper split-screen display window is closed. , Enlarge the lower split screen display window to match the display screen, if it matches the size of the display screen, etc.
104、根据缩放比例对相邻两个分屏显示窗口的尺寸进行调节。104. Adjust the size of two adjacent split-screen display windows according to the zoom ratio.
比如,可以根据相邻两个分屏显示窗口的尺寸和缩放比例,计算缩放后尺寸,然后,将分屏显示窗口的尺寸调节至缩放后尺寸。For example, the size after scaling can be calculated according to the size and scaling ratio of two adjacent split-screen display windows, and then the size of the split-screen display window can be adjusted to the scaled size.
在一实施例中,步骤“根据缩放比例对相邻两个分屏显示窗口的尺寸进行调节”,可以包括:In an embodiment, the step "adjusting the size of two adjacent split-screen display windows according to the zoom ratio" may include:
根据放大比例对第一分屏显示窗口进行放大,并根据缩小比例对第二分屏显示窗口进行缩小。The first split screen display window is enlarged according to the enlargement ratio, and the second split screen display window is reduced according to the reduction ratio.
比如,参考图3,可以根据放大比例对下分屏显示窗口的尺寸进行放大;根据缩小比例对上分屏显示窗口的尺寸进行缩小。For example, referring to FIG. 3, the size of the lower split screen display window can be enlarged according to the enlargement ratio; the size of the upper split screen display window can be reduced according to the reduction ratio.
应当理解的是:本申请实施例虽然是以分屏显示状态时分成两个分屏显示窗口的情况介绍本申请的方法,但是,本申请不限于分屏成两个显示窗口的场景,还可以适用于分屏时分成两个以上如三个、四个显示窗口的场景,具体实现方式与分成两个显示窗口的实现方式相同或类似,可以参考上述的内容,这里不再赘述。It should be understood that although the embodiment of the present application introduces the method of the present application in the case of splitting into two split-screen display windows in the split-screen display state, the application is not limited to the scenario where the split-screen is divided into two display windows. It is applicable to the scenario where the screen is divided into two or more such as three or four display windows. The specific implementation is the same as or similar to the implementation of dividing into two display windows. You can refer to the above content and will not repeat them here.
本申请实施例中,上述电子设备可以是任何能够运行应用程序的智能电子设备,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present application, the electronic device may be any intelligent electronic device capable of running applications, such as a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant. PDA for short, Mobile Internet Device (MID) or Wearable Device.
由上可知,本申请实施例可以当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;检测用户针对分隔条的拖动操作;基于拖动操作获取相邻两个分屏显示窗口对应的缩放比例;根据缩放比例对相邻两个分屏显示窗口的尺寸进行调节。该方案可以基于用户针对分隔条的拖动操作来实现对分屏显示窗口的尺寸调节,无需用户进行繁琐的操作,简化了分屏窗口尺寸调节操作,对于用户来说,只需要拖动分隔条即可实现分屏显示窗口的尺寸调节,提升了分屏显示窗口的尺寸调节效率。As can be seen from the above, in the embodiment of the present application, when in the split-screen display state, a separator bar is generated between two adjacent split-screen display windows; a user's drag operation on the separator bar is detected; and an adjacent two The scaling ratio corresponding to each split-screen display window; the size of two adjacent split-screen display windows is adjusted according to the zoom ratio. This solution can adjust the size of the split-screen display window based on the user's drag operation on the divider, eliminating the need for users to perform tedious operations, and simplifying the resize operation of the split-screen window. For users, only the drag of the divider is required. The size adjustment of the split-screen display window can be realized, and the size adjustment efficiency of the split-screen display window is improved.
根据上述实施例的描述,以下将进一步地来说明本申请的分屏窗口调节方法。Based on the description of the above embodiments, the split screen window adjustment method of the present application will be further described below.
请参阅图5,图5为本申请实施例提供的另一种分屏窗口调节方法的流程示意图,包括以下步骤:Please refer to FIG. 5. FIG. 5 is a schematic flowchart of another split-screen window adjustment method according to an embodiment of the present application, including the following steps:
201、当处于分屏显示状态时,电子设备在相邻两个分屏显示窗口之间生成分隔条。201. When in the split-screen display state, the electronic device generates a separation bar between two adjacent split-screen display windows.
在电子设备处于分屏显示状态时,电子设备将会显示多个分屏显示窗口,比如两个、三个或者三个以上的分屏显示窗口。其中,每个分屏显示窗口在屏幕中的位置可以根据实际需求设定,每个分屏显示窗口将对一个应用程序(以下简称应用)进行显示。When the electronic device is in the split-screen display state, the electronic device will display multiple split-screen display windows, such as two, three, or more split-screen display windows. The position of each split-screen display window on the screen can be set according to actual needs, and each split-screen display window will display an application (hereinafter referred to as an application).
本申请实施例中,多个分屏显示窗口之间的位置可以根据实际需求设定,比如,可以多个分屏显示窗口之间可以相互重叠,或者可以相互隔离等。In the embodiment of the present application, the positions between multiple split-screen display windows may be set according to actual requirements. For example, multiple split-screen display windows may overlap each other or may be isolated from each other.
比如,参考图6,当电子设备处理分屏显示状态时,可以显示两个分屏显示窗口,也即左右两个分屏显示窗口。For example, referring to FIG. 6, when the electronic device handles the split screen display state, two split screen display windows, that is, left and right split screen display windows may be displayed.
参考图6,左分屏显示窗口对应用A进行分屏显示,右分屏显示窗口对应用B进行分屏显示。Referring to FIG. 6, the left split screen display window performs split screen display of application A, and the right split screen display window performs split screen display of application B.
在一实施例中,当电子设备处理分屏显示状态时为了便于调节窗口尺寸,还可以在相邻两个分屏显示窗口之间生成分隔条。其中,分隔条位于多个分屏显示窗口中相邻两个分屏显示窗口之间,比如,若当前分屏界面包括两个分屏显示窗口时,则在该两个分屏显示窗口之间生成一个分隔条,例如,参考图6,可以在左右分屏显示窗口之间生成一个分隔条。In an embodiment, when the electronic device processes the split screen display state, in order to facilitate the adjustment of the window size, a divider bar may also be generated between two adjacent split screen display windows. Wherein, the divider bar is located between two adjacent split-screen display windows in multiple split-screen display windows. For example, if the current split-screen interface includes two split-screen display windows, it is between the two split-screen display windows. Generate a separator bar. For example, referring to Figure 6, you can generate a separator bar between the left and right split screen display windows.
202、电子设备检测用户针对分隔条的拖动操作。202. The electronic device detects a user's drag operation on the divider.
比如,电子设备可以通过实时检测用户针对分隔条的操作的方式。从而检测用户针对分隔条的拖动操作。For example, the electronic device can detect the user's operation on the divider in real time. Thereby, the user's drag operation on the divider is detected.
比如,参考图6,用户可以针对分隔条向右进行拖动操作,此时,电子设备将会检测到该拖动操作,电子设备可以检测到拖动操作的相关信息,比如,拖动方向、拖动轨迹、拖动时长、拖动距离、拖动速度,等等。For example, referring to FIG. 6, the user can perform a drag operation to the right of the divider. At this time, the electronic device will detect the drag operation, and the electronic device may detect related information of the drag operation, such as the drag direction, Drag track, drag duration, drag distance, drag speed, and more.
203、电子设备基于拖动操作的拖动方向,从相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口。203. Based on the dragging direction of the drag operation, the electronic device determines a first split-screen display window to be enlarged and a second split-screen display window to be reduced from two adjacent split-screen display windows.
其中,基于拖动方向确定待缩放窗口的方式可以有多种,比如,在一实施例中,可以将朝向拖动方向的窗口确定为待缩小的窗口,将背离拖动方向的显示窗口确定为待放大的窗口。There may be multiple ways to determine the window to be zoomed based on the dragging direction. For example, in one embodiment, a window facing the dragging direction may be determined as a window to be reduced, and a display window facing away from the dragging direction may be determined as The window to be enlarged.
比如,电子设备从相邻两个分屏显示窗口中,选择朝向拖动方向的分屏显示窗口作为待缩小的第二分屏显示窗口;从相邻两个分屏显示窗口中,选择背离拖动方向的分屏显示窗口作为待放大的第二分屏显示窗口。For example, the electronic device selects the split-screen display window facing the dragging direction as the second split-screen display window to be reduced from the two adjacent split-screen display windows; The split screen display window in the moving direction is used as the second split screen display window to be enlarged.
比如,参考图6,用户可以向屏幕右边拖动分隔条时,电子设备将会检测到该拖动操作的拖动方向为屏幕右方,此时,可以将左分屏显示窗口作为待放大的第一分屏显示窗口,将右分屏显示窗口作为待缩小的第二分屏显示窗口。For example, referring to FIG. 6, when the user can drag the divider bar to the right of the screen, the electronic device will detect that the drag direction of the drag operation is the right side of the screen. At this time, the left split screen display window can be used as the enlarged screen. The first split screen display window uses the right split screen display window as the second split screen display window to be reduced.
204、根据拖动操作的拖动距离获取第一分屏显示窗口的放大比例和第二分屏显示窗口的缩小比例。204. Obtain the enlargement ratio of the first split-screen display window and the reduction ratio of the second split-screen display window according to the drag distance of the drag operation.
本申请实施例可以基于拖动操作的拖动距离来获取放大比例和缩小比例,其中,基于拖动距离获取缩放比例的方式可以包括多种,比如,在一实施例中,可以预先建立拖动距离与缩放比例之间的映射关系,这样后续在得到拖动距离之后,便可以基于该映射关系获取拖动距离对应的缩放比例(如放大比例、缩小比例)。In the embodiment of the present application, an enlargement ratio and a reduction ratio can be obtained based on a drag distance of a drag operation. The method for obtaining a zoom ratio based on a drag distance can include multiple types. For example, in one embodiment, a drag can be established in advance. The mapping relationship between the distance and the zoom ratio, so that after the drag distance is obtained, the zoom ratio (such as the enlargement ratio and the reduction ratio) corresponding to the drag distance can be obtained based on the mapping relationship.
又比如,在一实施例中,为了能够得到符合实际需求的缩放比例,还可以先基于拖动距离获取缩小比例,然后,基于缩小比例获取相应的放大比例。因此,可以基于窗口缩小情况来确定其他窗口的放大情况,提升了窗口尺寸调节的智能性。For another example, in an embodiment, in order to obtain a zoom ratio that meets actual requirements, a zoom ratio may be obtained based on the drag distance first, and then a corresponding zoom ratio may be obtained based on the zoom ratio. Therefore, the enlargement of other windows can be determined based on the window shrinking, which improves the intelligence of window size adjustment.
比如,电子设备可以获取拖动操作的拖动距离对应的目标缩小比例;将目标缩小比例作为第二分屏显示窗口的缩小比例;根据目标缩小比例获取第一分屏窗口的放大比例。For example, the electronic device can obtain the target reduction ratio corresponding to the drag distance of the drag operation; use the target reduction ratio as the reduction ratio of the second split-screen display window; and obtain the enlargement ratio of the first split-screen window according to the target reduction ratio.
比如,参考图6,当用户向右边拖动分隔条时,可以获取拖动距离对应的目标缩小比例s1,并将该缩小比例s1作为右分屏显示窗口的缩小比例;然后,根据缩小比例s1获取左分屏显示窗口的放大比例s2。For example, referring to FIG. 6, when the user drags the separator bar to the right, the target reduction ratio s1 corresponding to the drag distance can be obtained, and the reduction ratio s1 is used as the reduction ratio of the right split screen display window; then, according to the reduction ratio s1 Gets the enlargement ratio s2 of the left split screen display window.
其中,基于目标缩小比例获取放大比例的方式可以包括多种,比如,在一实施例中,当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,可以直接将目标缩小比例直接作 为放大比例,也即放大比例与缩小比例相等。The method for obtaining the enlargement ratio based on the target reduction ratio may include multiple methods. For example, in an embodiment, when the zoom ratio is the ratio of the difference between the size change after the zoom and the original size, the target reduction ratio may be directly used as the enlargement. The ratio, that is, the enlargement ratio and the reduction ratio are equal.
例如,缩小比例为70%时,那么放大比例可以为70%。For example, when the reduction ratio is 70%, the enlargement ratio may be 70%.
又比如,在一实施例中,当缩放比例为缩放后窗口尺寸与原始尺寸的比值时,可以将缩小比例加上100%得到放大比例。例如,缩小比例为70%时,那么放大比例可以为70%+100%=170%。For another example, in an embodiment, when the scaling ratio is a ratio of the window size after scaling to the original size, the reduction ratio may be added by 100% to obtain the enlargement ratio. For example, when the reduction ratio is 70%, the enlargement ratio may be 70% + 100% = 170%.
在一实施例中,还可以在基于缩小比例获取放大比例时考虑显示屏幕的尺寸,使得窗口的尺寸调节符合实际显示屏幕的尺寸,提升窗口尺寸调节的效果。In an embodiment, the size of the display screen may also be considered when obtaining the enlargement ratio based on the reduction ratio, so that the size adjustment of the window conforms to the size of the actual display screen, and the effect of window size adjustment is improved.
比如,电子设备可以根据目标缩小比例和第一分屏显示窗口的尺寸计算第二分屏显示窗口的缩小后尺寸;根据显示屏幕的尺寸以及缩小后尺寸,获取第一分屏显示窗口的放大比例。For example, the electronic device can calculate the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window; and obtain the enlarged ratio of the first split-screen display window according to the size of the display screen and the reduced size. .
该方案可以基于确定的缩小比例计算出缩小后窗口的尺寸,然后,基于屏幕的尺寸和缩小后窗口的尺寸决定放大比例。This solution can calculate the size of the reduced window based on the determined reduction ratio, and then determine the enlargement ratio based on the size of the screen and the size of the reduced window.
比如,在一实施例中,可以显示屏幕的尺寸以及缩小后尺寸之间的尺寸差值,然后,基于尺寸差值和待放大的分屏显示窗口的尺寸,计算出最大放大比例;然后,基于最大放大比例选择合适的放大比例。For example, in an embodiment, the size difference between the screen size and the reduced size may be displayed, and then the maximum magnification ratio is calculated based on the size difference and the size of the split-screen display window to be enlarged; then, based on Maximum magnification Select an appropriate magnification.
205、电子设备根据放大比例对第一分屏显示窗口进行放大,并根据缩小比例对第二分屏显示窗口进行缩小。205. The electronic device enlarges the first split-screen display window according to the enlargement ratio, and reduces the second split-screen display window according to the reduction ratio.
比如,参考图6,电子设备可以根据放大比例对左分屏显示窗口的尺寸进行放大;根据缩小比例对右分屏显示窗口的尺寸进行缩小。For example, referring to FIG. 6, the electronic device can enlarge the size of the left split-screen display window according to the enlargement ratio; reduce the size of the right split-screen display window according to the reduction ratio.
本申请实施例中,上述电子设备可以是任何能够运行应用程序的智能电子设备,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present application, the electronic device may be any intelligent electronic device capable of running applications, such as a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant. PDA for short, Mobile Internet Device (MID) or Wearable Device.
由上可知,本申请实施例可以当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;检测用户针对分隔条的拖动操作;基于拖动操作获取相邻两个分屏显示窗口对应的缩放比例;根据缩放比例对相邻两个分屏显示窗口的尺寸进行调节。该方案可以基于用户针对分隔条的拖动操作来实现对分屏显示窗口的尺寸调节,无需用户进行繁琐的操作,简化了分屏窗口尺寸调节操作,对于用户来说,只需要拖动分隔条即可实现分屏显示窗口的尺寸调节,提升了分屏显示窗口的尺寸调节效率。As can be seen from the above, in the embodiment of the present application, when in the split-screen display state, a separator bar is generated between two adjacent split-screen display windows; a user's drag operation on the separator bar is detected; and an adjacent two The scaling ratio corresponding to each split-screen display window; the size of two adjacent split-screen display windows is adjusted according to the zoom ratio. This solution can adjust the size of the split-screen display window based on the user's drag operation on the divider, eliminating the need for users to perform tedious operations, and simplifying the resize operation of the split-screen window. The size adjustment of the split-screen display window can be realized, and the size adjustment efficiency of the split-screen display window is improved.
本申请实施例还提供了一种分屏窗口调节装置,包括:生成模块,用于当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;An embodiment of the present application further provides a split-screen window adjusting device, including: a generating module, configured to generate a partition bar between two adjacent split-screen display windows when in a split-screen display state;
检测模块,用于检测用户针对所述分隔条的拖动操作;A detection module, configured to detect a user's drag operation on the divider;
比例获取模块,用于基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;A ratio acquisition module, configured to acquire the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation;
调节模块,用于根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。An adjustment module is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
在一些实施例中,所述比例获取模块,包括:In some embodiments, the ratio acquisition module includes:
窗口确定子模块,用于基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口;A window determining submodule, configured to determine, based on a dragging direction of the drag operation, a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows ;
比例获取子模块,用于根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例;A proportion acquisition submodule, configured to acquire an enlargement ratio of the first split-screen display window and a reduction ratio of the second split-screen display window according to a drag distance of the drag operation;
所述调节模块,用于根据所述放大比例对所述第一分屏显示窗口进行放大,并根据所述缩小比例对所述第二分屏显示窗口进行缩小。The adjusting module is configured to enlarge the first split-screen display window according to the enlargement ratio, and reduce the second split-screen display window according to the reduction ratio.
在一些实施例中,所述窗口确定子模块,用于:In some embodiments, the window determination submodule is configured to:
从所述相邻两个分屏显示窗口中,选择朝向所述拖动方向的分屏显示窗口作为待缩小 的第二分屏显示窗口;Selecting, from the two adjacent split-screen display windows, the split-screen display window facing the dragging direction as a second split-screen display window to be reduced;
从所述相邻两个分屏显示窗口中,选择背离所述拖动方向的分屏显示窗口作为待放大的第一分屏显示窗口。From the two adjacent split-screen display windows, a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
在一些实施例中,所述比例获取子模块,用于:In some embodiments, the ratio acquisition sub-module is configured to:
获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
根据所述目标缩小比例获取所述第一分屏窗口的放大比例。Obtaining the enlargement ratio of the first split screen window according to the target reduction ratio.
在一些实施例中,所述比例获取子模块,用于:In some embodiments, the ratio acquisition sub-module is configured to:
获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
根据所述目标缩小比例和所述第一分屏显示窗口的尺寸计算所述第二分屏显示窗口的缩小后尺寸;Calculating the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window;
根据显示屏幕的尺寸以及所述缩小后尺寸,获取所述第一分屏显示窗口的放大比例。Obtaining the enlargement ratio of the first split-screen display window according to the size of the display screen and the reduced size.
在一些实施例中,所述比例获取子模块,用于:基于预先建立的拖动距离与缩小比例之间的映射关系,获取所述拖动操作的拖动距离对应的目标缩小比例。In some embodiments, the ratio acquisition sub-module is configured to obtain a target reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the reduction ratio established in advance.
在一些实施例中,所述比例获取子模块,用于:当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,可以直接将所述目标缩小比例直接作为所述第一分屏窗口的放大比例。In some embodiments, the ratio acquisition sub-module is configured to: when the scaling ratio is a ratio of the difference between the size change after scaling and the original size, the target reduction ratio may be directly used as the first split screen window Magnification.
在一些实施例中,分屏窗口调节装置还包括:判断模块和退出模块;In some embodiments, the split-screen window adjustment device further includes: a judgment module and an exit module;
所述判断模块,用于在比例获取模块获取缩放比例之前,获取所述拖动操作的拖动速度;判断所述拖动速度是否小于预设速度;The judging module is configured to obtain a dragging speed of the drag operation before the scaling obtaining module obtains a zoom ratio; and determine whether the dragging speed is less than a preset speed;
所述比例获取模块,用于在所述判断模块判断所述拖动速度小于预设速度时,基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;The ratio acquisition module is configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation when the determination module determines that the drag speed is less than a preset speed;
所述退出模块,用于在判断模块判断所述拖动速度大于或等于所述预设速度时,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待关闭的第一分屏显示窗口和待放大的第二分屏显示窗口;The exit module is configured to determine from the two adjacent split-screen display windows based on the drag direction of the drag operation when the judging module determines that the drag speed is greater than or equal to the preset speed. A first split-screen display window to be closed and a second split-screen display window to be enlarged;
退出分屏显示状态,关闭所述第一分屏显示窗口,并根据显示屏幕的尺寸对所述第二分屏显示窗口进行放大。Exit the split screen display state, close the first split screen display window, and enlarge the second split screen display window according to the size of the display screen.
为了便于更好的实施本申请实施例提供的分屏窗口调节方法,本申请实施例还提供了一种分屏窗口调节装置。其中名词的含义与上述分屏窗口调节方法中相同,具体实现细节可以参考方法实施例中的说明。In order to facilitate better implementation of the split-screen window adjustment method provided in the embodiment of the present application, the embodiment of the present application also provides a split-screen window adjustment device. The meanings of the terms are the same as in the above-mentioned split-screen window adjustment method. For specific implementation details, refer to the description in the method embodiment.
参考图7,图7为本申请实施例提供的一种分屏窗口调节装置的结构示意图,该分屏窗口调节装置30包括:生成模块301、检测模块302、比例获取模块303以及调节模块304;具体如下:Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a split-screen window adjustment device according to an embodiment of the present application. The split-screen window adjustment device 30 includes: a generation module 301, a detection module 302, a ratio acquisition module 303, and an adjustment module 304. details as follows:
生成模块301,用于当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;A generating module 301, configured to generate a separating bar between two adjacent split-screen display windows when in a split-screen display state;
检测模块302,用于检测用户针对所述分隔条的拖动操作;A detection module 302, configured to detect a drag operation of a user with respect to the partition bar;
比例获取模块303,用于基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;A scale obtaining module 303, configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation;
调节模块304,用于根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。An adjustment module 304 is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
在一实施例中,参考图8,所述比例获取模块303,可以包括:窗口确定子模块3031和比例获取子模块3032;In an embodiment, referring to FIG. 8, the scale acquisition module 303 may include: a window determination sub-module 3031 and a scale acquisition sub-module 3032;
窗口确定子模块3031,用于基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口;A window determining sub-module 3031 is configured to determine a first split-screen display window to be enlarged and a second split-screen display to be reduced from the two adjacent split-screen display windows based on a dragging direction of the drag operation. window;
比例获取子模块3032,用于根据所述拖动操作的拖动距离获取所述第一分屏显示窗口 的放大比例和所述第二分屏显示窗口的缩小比例;A proportion acquisition submodule 3032, configured to acquire an enlargement ratio of the first split-screen display window and a reduction ratio of the second split-screen display window according to a drag distance of the drag operation;
所述调节模块304,用于根据所述放大比例对所述第一分屏显示窗口进行放大,并根据所述缩小比例对所述第二分屏显示窗口进行缩小。The adjusting module 304 is configured to enlarge the first split-screen display window according to the enlargement ratio, and reduce the second split-screen display window according to the reduction ratio.
在一实施例中,窗口确定子模块3031,可以具体用于:In an embodiment, the window determination sub-module 3031 may be specifically configured to:
从所述相邻两个分屏显示窗口中,选择朝向所述拖动方向的分屏显示窗口作为待缩小的第二分屏显示窗口;Selecting, from the two adjacent split-screen display windows, the split-screen display window facing the dragging direction as a second split-screen display window to be reduced;
从所述相邻两个分屏显示窗口中,选择背离所述拖动方向的分屏显示窗口作为待放大的第一分屏显示窗口。From the two adjacent split-screen display windows, a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
在一实施例中,比例获取子模块3032,可以用于:In an embodiment, the ratio acquisition sub-module 3032 may be used for:
获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
根据所述目标缩小比例获取所述第一分屏窗口的放大比例。Obtaining the enlargement ratio of the first split screen window according to the target reduction ratio.
在一实施例中,比例获取子模块3032,可以用于:In an embodiment, the ratio acquisition sub-module 3032 may be used for:
获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
根据所述目标缩小比例和所述第一分屏显示窗口的尺寸计算所述第二分屏显示窗口的缩小后尺寸;Calculating the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window;
根据显示屏幕的尺寸以及所述缩小后尺寸,获取所述第一分屏显示窗口的放大比例。Obtaining the enlargement ratio of the first split-screen display window according to the size of the display screen and the reduced size.
在一实施例中,参考图9,本申请实施例的分屏窗口调节装置30还可以包括判断模块305和退出模块306;In an embodiment, referring to FIG. 9, the split screen window adjusting device 30 in the embodiment of the present application may further include a determination module 305 and an exit module 306;
所述判断模块305,用于在比例获取模块获取缩放比例之前,获取所述拖动操作的拖动速度;判断所述拖动速度是否小于预设速度;The judging module 305 is configured to obtain a dragging speed of the drag operation before the scaling obtaining module obtains a zoom ratio; and determine whether the dragging speed is less than a preset speed;
所述比例获取模块303,用于在所述判断模块305判断所述拖动速度小于预设速度时,基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;The ratio acquisition module 303 is configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation when the determination module 305 determines that the drag speed is less than a preset speed;
所述退出模块306,用于在判断模块305判断所述拖动速度大于或等于所述预设速度时,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待关闭的第一分屏显示窗口和待放大的第二分屏显示窗口;The exit module 306 is configured to, when the judging module 305 determines that the drag speed is greater than or equal to the preset speed, based on the drag direction of the drag operation, display windows from the two adjacent split screens Determine the first split-screen display window to be closed and the second split-screen display window to be enlarged;
退出分屏显示状态,关闭所述第一分屏显示窗口,并根据显示屏幕的尺寸对所述第二分屏显示窗口进行放大。在一实施例中,所述比例获取子模块3032,用于:基于预先建立的拖动距离与缩小比例之间的映射关系,获取所述拖动操作的拖动距离对应的目标缩小比例。Exit the split screen display state, close the first split screen display window, and enlarge the second split screen display window according to the size of the display screen. In one embodiment, the ratio acquisition sub-module 3032 is configured to obtain a target reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the reduction ratio established in advance.
在一实施例中,所述比例获取子模块3032,用于:当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,直接将所述目标缩小比例直接作为所述第一分屏窗口的放大比例。In an embodiment, the ratio acquisition sub-module 3032 is configured to: directly use the target reduction ratio as the first split screen window when the scaling ratio is a ratio of the difference between the size change after scaling and the original size. Magnification.
在一实施例中,比例获取子模块3032,用于:In one embodiment, the proportion acquisition sub-module 3032 is configured to:
基于预先建立的拖动距离与缩放比例之间的映射关系,获取所述拖动操作的拖动距离对应的放大比例和缩小比例;Obtaining an enlargement ratio and a reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the zoom ratio established in advance;
将拖动距离对应的放大比例作为所述第一分屏显示窗口的放大比例;Using the enlargement ratio corresponding to the drag distance as the enlargement ratio of the first split screen display window;
将拖动距离对应的缩小比例作为所述第二分屏显示窗口的缩小比例。The reduction ratio corresponding to the drag distance is used as the reduction ratio of the second split screen display window.
具体实施时,以上各个模块可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined, and implemented as the same or several entities. The specific implementation of the above units can refer to the previous embodiments, and will not be repeated here.
由上可知,本申请实施例提供的分屏窗口调节装置30当处于分屏显示状态时,通过生成模块301在相邻两个分屏显示窗口之间生成分隔条;由检测模块302检测用户针对所述分隔条的拖动操作;由比例获取模块303基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;由调节模块304根据所述缩放比例对所述相邻两个分屏显示窗口的尺 寸进行调节。该方案可以基于用户针对分隔条的拖动操作来实现对分屏显示窗口的尺寸调节,无需用户进行繁琐的操作,简化了分屏窗口尺寸调节操作,对于用户来说,只需要拖动分隔条即可实现分屏显示窗口的尺寸调节,提升了分屏显示窗口的尺寸调节效率。As can be seen from the above, when the split-screen window adjusting device 30 provided in the embodiment of the present application is in a split-screen display state, a separation bar is generated between two adjacent split-screen display windows by the generating module 301; the detection module 302 detects user targeting The drag operation of the divider; the scaling acquisition module 303 obtains the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation; the adjustment module 304 adjusts the adjacent pixels according to the zoom ratio Adjust the size of the two split-screen display windows. This solution can adjust the size of the split-screen display window based on the user's drag operation on the divider, eliminating the need for users to perform tedious operations, and simplifying the resize operation of the split-screen window. For users, only the drag of the divider The size adjustment of the split-screen display window can be realized, and the size adjustment efficiency of the split-screen display window is improved.
本申请还提供一种存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现方法实施例提供的分屏窗口调节方法。The present application also provides a storage medium on which a computer program is stored, which is characterized in that when the computer program is executed by a processor, the method for adjusting a split screen provided by the method embodiment is implemented.
本申请还提供一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现方法实施例提供的分屏窗口调节方法。The present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, when the processor executes the program, the analysis method provided in the method embodiment is implemented. Screen window adjustment method.
在本申请又一实施例中还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。如图10所示,电子设备400包括处理器401、存储器402。其中,处理器401与存储器402电性连接。In another embodiment of the present application, an electronic device is also provided, and the electronic device may be a device such as a smart phone or a tablet computer. As shown in FIG. 10, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. The processor 401 executes the electronic program by running or loading the application program stored in the memory 402, and calling the data stored in the memory 402. Various functions of the device and processing data, so as to monitor the overall electronic equipment.
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能,比如:In this embodiment, the processor 401 in the electronic device 400 will load instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 will run and store the instructions in the memory 402 Applications in order to implement various functions, such as:
当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;检测用户针对所述分隔条的拖动操作;基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。When in the split-screen display state, a partition bar is generated between two adjacent split-screen display windows; a user's drag operation on the partition bar is detected; and the two adjacent split screens are obtained based on the drag operation A scaling ratio corresponding to the display window; and adjusting the sizes of the two adjacent split-screen display windows according to the scaling ratio.
请参阅图11,图11为本申请实施例提供的电子设备结构示意图。该电子设备500可以包括射频(RF,Radio Frequency)电路501、包括有一个或一个以上计算机可读存储介质的存储器502、输入单元503、显示单元504、传感器504、音频电路506、无线保真(WiFi,Wireless Fidelity)模块507、包括有一个或者一个以上处理核心的处理器508、以及电源509等部件。本领域技术人员可以理解,图11中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 11, which is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 500 may include a radio frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 504, an audio circuit 506, and a wireless fidelity ( A WiFi (Wireless Fidelity) module 507 includes a processor 508 having one or more processing cores, a power supply 509, and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or some components may be combined, or different components may be arranged.
射频电路501可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器508处理;另外,将涉及上行的数据发送给基站。通常,射频电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,射频电路501还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通信***(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。The radio frequency circuit 501 can be used to send and receive information, or to receive and send signals during a call. In particular, after receiving the downlink information of the base station, it is processed by one or more processors 508. In addition, the uplink-related data is sent to the base station. . Generally, the radio frequency circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, Subscriber Identity Module) card, a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, the radio frequency circuit 501 can also communicate with a network and other devices through wireless communication. This wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA, Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), Email, Short Messaging Service (SMS), etc.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器508通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器508和输入单元503对存储器 502的访问。The memory 502 may be used to store application programs and data. The application program stored in the memory 502 contains executable code. Applications can be composed of various functional modules. The processor 508 executes various functional applications and data processing by running an application program stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; The data (such as audio data, phone book, etc.) created by the use of electronic devices. In addition, the memory 502 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 508 and the input unit 503 with access to the memory 502.
输入单元503可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元503可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器508,并能接收处理器508发来的命令并加以执行。The input unit 503 can be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, in a specific embodiment, the input unit 503 may include a touch-sensitive surface and other input devices. A touch-sensitive surface, also known as a touch display or touchpad, collects user touch operations on or near it (such as the user using a finger, stylus or any suitable object or accessory on the touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the processor 508, and can receive the command sent by the processor 508 and execute it.
显示单元504可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元504可包括显示面板。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器508以确定触摸事件的类型,随后处理器508根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图11中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 504 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 504 may include a display panel. Optionally, the display panel may be configured using a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near the touch-sensitive surface, the touch-sensitive surface is transmitted to the processor 508 to determine the type of the touch event, and then the processor 508 displays the touch event according to the type of the touch event. The corresponding visual output is provided on the panel. Although in FIG. 11, the touch-sensitive surface and the display panel are implemented as two separate components to implement input and input functions, in some embodiments, the touch-sensitive surface and the display panel may be integrated to implement input and output functions.
电子设备还可包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device may further include at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and / or when the electronic device is moved to the ear. Backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). It can detect the magnitude and direction of gravity when it is stationary. It can be used to identify the attitude of the mobile phone (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; as for electronic devices, other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can also be configured, not here More details.
音频电路506可通过扬声器、传声器提供用户与电子设备之间的音频接口。音频电路506可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路506接收后转换为音频数据,再将音频数据输出处理器508处理后,经射频电路501以发送给比如另一电子设备,或者将音频数据输出至存储器502以便进一步处理。音频电路506还可能包括耳塞插孔,以提供外设耳机与电子设备的通信。The audio circuit 506 may provide an audio interface between the user and the electronic device through a speaker or a microphone. The audio circuit 506 can convert the received audio data into an electrical signal and transmit it to a speaker. The speaker converts the audio signal into a sound signal and outputs it. On the other hand, the microphone converts the collected sound signal into an electrical signal, which is converted by the audio circuit 506 into After the audio data is processed by the audio data output processor 508, it is sent to, for example, another electronic device via the radio frequency circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may further include an earphone jack to provide communication between the peripheral headset and the electronic device.
无线保真(WiFi)属于短距离无线传输技术,电子设备通过无线保真模块507可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图11示出了无线保真模块507,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wireless fidelity (WiFi) is a short-range wireless transmission technology. Electronic devices can help users send and receive email, browse web pages, and access streaming media through the wireless fidelity module 507, which provides users with wireless broadband Internet access. Although FIG. 11 shows the wireless fidelity module 507, it can be understood that it does not belong to the necessary configuration of the electronic device, and can be omitted as needed without changing the essence of the invention.
处理器508是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器508可包括一个或多个处理核心;优选的,处理器508可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器508中。The processor 508 is a control center of an electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. The electronic device is executed by running or executing an application program stored in the memory 502 and calling data stored in the memory 502. Various functions and processing data to monitor the overall electronic equipment. Optionally, the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc. The modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 508.
电子设备还包括给各个部件供电的电源509(比如电池)。优选的,电源可以通过电 源管理***与处理器508逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源509还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device also includes a power source 509 (such as a battery) that powers various components. Preferably, the power supply may be logically connected to the processor 508 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 509 may also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power supply status indicator, and any other components.
尽管图11中未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 11, the electronic device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。In specific implementation, the above modules may be implemented as independent entities, or may be arbitrarily combined, and implemented as the same or several entities. For the specific implementation of the above modules, refer to the foregoing method embodiments, and details are not described herein again.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如分屏窗口调节方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that a person of ordinary skill in the art can understand that all or part of the steps in the various methods of the foregoing embodiments can be completed by a program instructing related hardware, and the program can be stored in a computer-readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor in the terminal. The execution process may include the process of the embodiment of the split-screen window adjustment method. The storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks, or optical disks.
以上对本申请实施例提供的一种分屏窗口调节方法、装置、存储介质和电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, storage medium, and electronic device for adjusting a split screen window provided by the embodiments of the present application have been described in detail above. Each functional module may be integrated into a processing chip, or each module may exist separately physically, or Two or more modules are integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules. Specific examples are used herein to explain the principle and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, according to this application, The idea may be changed in the specific implementation and the scope of application. In summary, the content of this specification should not be understood as a limitation on this application.

Claims (20)

  1. 一种分屏窗口调节方法,其特征在于,包括以下步骤:A method for adjusting a split screen window, which comprises the following steps:
    当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;When in the split screen display state, a divider is generated between two adjacent split screen display windows;
    检测用户针对所述分隔条的拖动操作;Detecting a user's drag operation on the separator;
    基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;Obtaining a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation;
    根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。Adjusting the size of the two adjacent split-screen display windows according to the scaling ratio.
  2. 如权利要求1所述的分屏窗口调节方法,其特征在于,基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例,包括:The method for adjusting a split-screen window according to claim 1, wherein obtaining the zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation comprises:
    基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口;Determining a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows based on a dragging direction of the drag operation;
    根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例;Obtaining an enlargement ratio of the first split-screen display window and a decrease ratio of the second split-screen display window according to a drag distance of the drag operation;
    根据所述缩放比例调节所述相邻两个分屏显示窗口进行缩放处理,包括:Adjusting the two adjacent split-screen display windows to perform zoom processing according to the zoom ratio includes:
    根据所述放大比例对所述第一分屏显示窗口进行放大,并根据所述缩小比例对所述第二分屏显示窗口进行缩小。The first split-screen display window is enlarged according to the enlargement ratio, and the second split-screen display window is reduced according to the reduction ratio.
  3. 如权利要求2所述的分屏窗口调节方法,其特征在于,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中获取待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口,包括:The method for adjusting a split-screen window according to claim 2, wherein the first split-screen display window to be enlarged is obtained from the two adjacent split-screen display windows based on the dragging direction of the drag operation And the second split screen display window to be reduced, including:
    从所述相邻两个分屏显示窗口中,选择朝向所述拖动方向的分屏显示窗口作为待缩小的第二分屏显示窗口;Selecting, from the two adjacent split-screen display windows, the split-screen display window facing the dragging direction as a second split-screen display window to be reduced;
    从所述相邻两个分屏显示窗口中,选择背离所述拖动方向的分屏显示窗口作为待放大的第一分屏显示窗口。From the two adjacent split-screen display windows, a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
  4. 如权利要求2所述的分屏窗口调节方法,其特征在于,根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例,包括:The method for adjusting a split-screen window according to claim 2, wherein the enlargement ratio of the first split-screen display window and the reduction of the second split-screen display window are obtained according to the drag distance of the drag operation. Proportions, including:
    获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
    将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
    根据所述目标缩小比例获取所述第一分屏窗口的放大比例。Obtaining the enlargement ratio of the first split screen window according to the target reduction ratio.
  5. 如权利要求4所述的分屏窗口调节方法,其特征在于,根据所述目标缩小比例获取所述第一分屏窗口的放大比例,包括:The method for adjusting a split-screen window according to claim 4, wherein obtaining the enlargement ratio of the first split-screen window according to the target reduction ratio comprises:
    根据所述目标缩小比例和所述第一分屏显示窗口的尺寸计算所述第二分屏显示窗口的缩小后尺寸;Calculating the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window;
    根据显示屏幕的尺寸以及所述缩小后尺寸,获取所述第一分屏显示窗口的放大比例。Obtaining the enlargement ratio of the first split-screen display window according to the size of the display screen and the reduced size.
  6. 如权利要求3所述的分屏窗口调节方法,其特征在于,获取所述拖动操作的拖动距离对应的目标缩小比例,包括:The method for adjusting a split screen window according to claim 3, wherein obtaining the target reduction ratio corresponding to the drag distance of the drag operation comprises:
    基于预先建立的拖动距离与缩小比例之间的映射关系,获取所述拖动操作的拖动距离对应的目标缩小比例。Based on the mapping relationship between the drag distance and the reduction ratio established in advance, a target reduction ratio corresponding to the drag distance of the drag operation is obtained.
  7. 如权利要求4所述的分屏窗口调节方法,其特征在于,根据所述目标缩小比例获取所述第一分屏窗口的放大比例,包括:The method for adjusting a split-screen window according to claim 4, wherein obtaining the enlargement ratio of the first split-screen window according to the target reduction ratio comprises:
    当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,直接将所述目标缩小比例直接作为所述第一分屏窗口的放大比例。When the scaling ratio is a ratio of the difference in size after scaling to the original size, the target reduction ratio is directly used as the enlargement ratio of the first split screen window directly.
  8. 如权利要求2所述的分屏窗口调节方法,其特征在于,根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例,包括:The method for adjusting a split-screen window according to claim 2, wherein the enlargement ratio of the first split-screen display window and the reduction of the second split-screen display window are obtained according to the drag distance of the drag operation. Proportions, including:
    基于预先建立的拖动距离与缩放比例之间的映射关系,获取所述拖动操作的拖动距离对应的放大比例和缩小比例;Obtaining an enlargement ratio and a reduction ratio corresponding to the drag distance of the drag operation based on a mapping relationship between the drag distance and the zoom ratio established in advance;
    将拖动距离对应的放大比例作为所述第一分屏显示窗口的放大比例;Using the enlargement ratio corresponding to the drag distance as the enlargement ratio of the first split screen display window;
    将拖动距离对应的缩小比例作为所述第二分屏显示窗口的缩小比例。The reduction ratio corresponding to the drag distance is used as the reduction ratio of the second split screen display window.
  9. 如权利要求1所述的分屏窗口调节方法,其特征在于,在基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例之前,所述方法还包括:The method for adjusting a split-screen window according to claim 1, wherein before the zoom ratio corresponding to the two adjacent split-screen display windows is obtained based on the drag operation, the method further comprises:
    获取所述拖动操作的拖动速度;Obtaining a drag speed of the drag operation;
    判断所述拖动速度是否小于预设速度;Determining whether the drag speed is less than a preset speed;
    若是,则执行基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例的步骤。If yes, perform the step of obtaining a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation.
  10. 如权利要求9所述的分屏窗口调节方法,其特征在于,还包括:The method for adjusting a split-screen window according to claim 9, further comprising:
    当所述拖动速度大于或等于所述预设速度时,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待关闭的第一分屏显示窗口和待放大的第二分屏显示窗口;When the drag speed is greater than or equal to the preset speed, based on the drag direction of the drag operation, determine the first split screen display window and The second split screen display window to be enlarged;
    退出分屏显示状态,关闭所述第一分屏显示窗口,并根据显示屏幕的尺寸对所述第二分屏显示窗口进行放大。Exit the split screen display state, close the first split screen display window, and enlarge the second split screen display window according to the size of the display screen.
  11. 一种分屏窗口调节装置,其特征在于,包括:A split-screen window adjusting device is characterized in that it includes:
    生成模块,用于当处于分屏显示状态时,在相邻两个分屏显示窗口之间生成分隔条;A generating module for generating a partition bar between two adjacent split-screen display windows when in a split-screen display state;
    检测模块,用于检测用户针对所述分隔条的拖动操作;A detection module, configured to detect a user's drag operation on the divider;
    比例获取模块,用于基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;A ratio acquisition module, configured to acquire the zoom ratios corresponding to the two adjacent split-screen display windows based on the drag operation;
    调节模块,用于根据所述缩放比例对所述相邻两个分屏显示窗口的尺寸进行调节。An adjustment module is configured to adjust the sizes of the two adjacent split-screen display windows according to the zoom ratio.
  12. 如权利要求11所述的分屏窗口调节装置,其特征在于,所述比例获取模块,包括:The device for adjusting a split screen window according to claim 11, wherein the proportion acquisition module comprises:
    窗口确定子模块,用于基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待放大的第一分屏显示窗口和待缩小的第二分屏显示窗口;A window determining submodule, configured to determine, based on a dragging direction of the drag operation, a first split-screen display window to be enlarged and a second split-screen display window to be reduced from the two adjacent split-screen display windows ;
    比例获取子模块,用于根据所述拖动操作的拖动距离获取所述第一分屏显示窗口的放大比例和所述第二分屏显示窗口的缩小比例;A proportion acquisition submodule, configured to acquire an enlargement ratio of the first split-screen display window and a reduction ratio of the second split-screen display window according to a drag distance of the drag operation;
    所述调节模块,用于根据所述放大比例对所述第一分屏显示窗口进行放大,并根据所述缩小比例对所述第二分屏显示窗口进行缩小。The adjusting module is configured to enlarge the first split-screen display window according to the enlargement ratio, and reduce the second split-screen display window according to the reduction ratio.
  13. 如权利要求12所述的分屏窗口调节装置,其特征在于,所述窗口确定子模块,用于:The device for adjusting a split screen window according to claim 12, wherein the window determining submodule is configured to:
    从所述相邻两个分屏显示窗口中,选择朝向所述拖动方向的分屏显示窗口作为待缩小的第二分屏显示窗口;Selecting, from the two adjacent split-screen display windows, the split-screen display window facing the dragging direction as a second split-screen display window to be reduced;
    从所述相邻两个分屏显示窗口中,选择背离所述拖动方向的分屏显示窗口作为待放大的第一分屏显示窗口。From the two adjacent split-screen display windows, a split-screen display window that is away from the dragging direction is selected as the first split-screen display window to be enlarged.
  14. 如权利要求12所述的分屏窗口调节装置,其特征在于,所述比例获取子模块,用于:The device for adjusting a split screen window according to claim 12, wherein the proportion acquisition submodule is configured to:
    获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
    将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
    根据所述目标缩小比例获取所述第一分屏窗口的放大比例。Obtaining the enlargement ratio of the first split screen window according to the target reduction ratio.
  15. 如权利要求14所述的分屏窗口调节装置,其特征在于,所述比例获取子模块,用于:The device for adjusting a split screen window according to claim 14, wherein the proportion acquisition submodule is configured to:
    获取所述拖动操作的拖动距离对应的目标缩小比例;Obtaining a target reduction ratio corresponding to a drag distance of the drag operation;
    将所述目标缩小比例作为所述第二分屏显示窗口的缩小比例;Using the target reduction ratio as the reduction ratio of the second split screen display window;
    根据所述目标缩小比例和所述第一分屏显示窗口的尺寸计算所述第二分屏显示窗口的缩小后尺寸;Calculating the reduced size of the second split-screen display window according to the target reduction ratio and the size of the first split-screen display window;
    根据显示屏幕的尺寸以及所述缩小后尺寸,获取所述第一分屏显示窗口的放大比例。Obtaining the enlargement ratio of the first split-screen display window according to the size of the display screen and the reduced size.
  16. 如权利要求14所述的分屏窗口调节装置,其特征在于,所述比例获取子模块,用于:基于预先建立的拖动距离与缩小比例之间的映射关系,获取所述拖动操作的拖动距离对应的目标缩小比例。The device for adjusting a split screen window according to claim 14, wherein the proportion acquisition sub-module is configured to acquire the drag operation based on a mapping relationship between a pre-established drag distance and a reduction ratio. The reduction ratio of the target corresponding to the drag distance.
  17. 如权利要求14所述的分屏窗口调节装置,其特征在于,所述比例获取子模块,用于:当缩放比例为缩放后尺寸变化差值与原始尺寸的比值时,直接将所述目标缩小比例直接作为所述第一分屏窗口的放大比例。The device for adjusting a split-screen window according to claim 14, wherein the proportion acquisition sub-module is configured to directly reduce the target when the zoom ratio is a ratio of the difference between the size change after scaling and the original size. The ratio is directly used as the enlargement ratio of the first split screen window.
  18. 如权利要求11所述的分屏窗口调节装置,其特征在于,还包括:判断模块和退出模块;The device for adjusting a split screen window according to claim 11, further comprising: a judgment module and an exit module;
    所述判断模块,用于在比例获取模块获取缩放比例之前,获取所述拖动操作的拖动速度;判断所述拖动速度是否小于预设速度;The judging module is configured to obtain a dragging speed of the drag operation before the scaling obtaining module obtains a zoom ratio; and determine whether the dragging speed is less than a preset speed;
    所述比例获取模块,用于在所述判断模块判断所述拖动速度小于预设速度时,基于所述拖动操作获取所述相邻两个分屏显示窗口对应的缩放比例;The ratio acquisition module is configured to obtain a zoom ratio corresponding to the two adjacent split-screen display windows based on the drag operation when the determination module determines that the drag speed is less than a preset speed;
    所述退出模块,用于在判断模块判断所述拖动速度大于或等于所述预设速度时,基于所述拖动操作的拖动方向,从所述相邻两个分屏显示窗口中确定待关闭的第一分屏显示窗口和待放大的第二分屏显示窗口;The exit module is configured to determine from the two adjacent split-screen display windows based on the drag direction of the drag operation when the judging module determines that the drag speed is greater than or equal to the preset speed. A first split-screen display window to be closed and a second split-screen display window to be enlarged;
    退出分屏显示状态,关闭所述第一分屏显示窗口,并根据显示屏幕的尺寸对所述第二分屏显示窗口进行放大。Exit the split screen display state, close the first split screen display window, and enlarge the second split screen display window according to the size of the display screen.
  19. 一种存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-10任一项所述方法的步骤。A storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1-10 are implemented.
  20. 一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-10任一项所述方法的步骤。An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that when the processor executes the program, the device according to any one of claims 1-10 The method steps are described.
PCT/CN2019/085899 2018-07-03 2019-05-07 Split-screen window adjustment method and apparatus, storage medium and electronic device WO2020007116A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810717182.2 2018-07-03
CN201810717182.2A CN109062466A (en) 2018-07-03 2018-07-03 Split screen window adjusting method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020007116A1 true WO2020007116A1 (en) 2020-01-09

Family

ID=64819025

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/085899 WO2020007116A1 (en) 2018-07-03 2019-05-07 Split-screen window adjustment method and apparatus, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN109062466A (en)
WO (1) WO2020007116A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062466A (en) * 2018-07-03 2018-12-21 Oppo广东移动通信有限公司 Split screen window adjusting method, device, storage medium and electronic equipment
CN110286972A (en) * 2019-05-14 2019-09-27 华为技术有限公司 A kind of method and electronic equipment of Folding screen display application
CN110324464A (en) * 2019-05-17 2019-10-11 华为技术有限公司 A kind of application display method and electronic equipment
CN110471725A (en) * 2019-07-02 2019-11-19 华为技术有限公司 A kind of split screen method and electronic equipment
CN110661917B (en) * 2019-08-07 2022-04-12 华为技术有限公司 Display method and electronic equipment
CN115473996B (en) * 2021-06-11 2024-04-05 荣耀终端有限公司 Video shooting method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426097A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Real time adjustment method for split screen size and split screen apparatus
CN107678672A (en) * 2017-09-30 2018-02-09 维沃移动通信有限公司 A kind of display processing method and mobile terminal
CN109062466A (en) * 2018-07-03 2018-12-21 Oppo广东移动通信有限公司 Split screen window adjusting method, device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894869A (en) * 2017-11-27 2018-04-10 深圳市金立通信设备有限公司 A kind of method, terminal device and the computer-readable medium of split screen processing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426097A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Real time adjustment method for split screen size and split screen apparatus
CN107678672A (en) * 2017-09-30 2018-02-09 维沃移动通信有限公司 A kind of display processing method and mobile terminal
CN109062466A (en) * 2018-07-03 2018-12-21 Oppo广东移动通信有限公司 Split screen window adjusting method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109062466A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
WO2020007116A1 (en) Split-screen window adjustment method and apparatus, storage medium and electronic device
WO2018103525A1 (en) Method and device for tracking facial key point, and storage medium
WO2016165568A1 (en) Method for scaling video image, and mobile terminal
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
US20170187566A1 (en) Alerting Method and Mobile Terminal
CN105786878B (en) Display method and device of browsing object
WO2020007147A1 (en) Application switching method and apparatus for split screen, storage medium, and electronic device
WO2021012931A1 (en) Icon management method and terminal
US10133480B2 (en) Method for adjusting input-method keyboard and mobile terminal thereof
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
WO2020007114A1 (en) Method and apparatus for switching split-screen application, storage medium, and electronic device
CN112596648B (en) Page processing method and device, electronic equipment and readable storage medium
CN105975190B (en) Graphical interface processing method, device and system
WO2021083256A1 (en) Touch-control response method and electronic device
CN109067981B (en) Split screen application switching method and device, storage medium and electronic equipment
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
WO2020007144A1 (en) Switching method and device for split screen application, storage medium and electronic device
WO2020238647A1 (en) Hand gesture interaction method and terminal
US20230291827A1 (en) Screen state control method and apparatus, and storage medium
WO2021037074A1 (en) Audio output method and electronic apparatus
US20210132791A1 (en) Key control method, storage medium, and smart terminal
WO2020248527A1 (en) Video file playing method and apparatus, and storage medium and terminal
US11327639B2 (en) Split view exiting method, split view exiting device, and electronic device
WO2021208890A1 (en) Screen capturing method and electronic device
WO2021190370A1 (en) Screenshot method and electronic apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19829841

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19829841

Country of ref document: EP

Kind code of ref document: A1