WO2023131312A9 - 窗口交互方法和电子设备 - Google Patents

窗口交互方法和电子设备 Download PDF

Info

Publication number
WO2023131312A9
WO2023131312A9 PCT/CN2023/071082 CN2023071082W WO2023131312A9 WO 2023131312 A9 WO2023131312 A9 WO 2023131312A9 CN 2023071082 W CN2023071082 W CN 2023071082W WO 2023131312 A9 WO2023131312 A9 WO 2023131312A9
Authority
WO
WIPO (PCT)
Prior art keywords
window
interface
electronic device
floating
floating window
Prior art date
Application number
PCT/CN2023/071082
Other languages
English (en)
French (fr)
Other versions
WO2023131312A1 (zh
Inventor
闫超杰
刘俊丰
Original Assignee
荣耀终端有限公司
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
Priority claimed from CN202210114778.XA external-priority patent/CN116456020A/zh
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to EP23737174.5A priority Critical patent/EP4351116A1/en
Publication of WO2023131312A1 publication Critical patent/WO2023131312A1/zh
Publication of WO2023131312A9 publication Critical patent/WO2023131312A9/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1641Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1647Details related to the display arrangement, including those related to the mounting of the display in the housing including at least an additional display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0241Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call
    • H04M1/0243Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call using the relative angle between housings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Definitions

  • the present application relates to the field of terminal technology, and in particular, to a window interaction method and electronic device.
  • many electronic devices can support the display of floating windows of electronic devices.
  • the user can trigger the display of the floating window corresponding to the translation function by copying the text to be translated, and the user can also view the translated content through the floating window corresponding to the translation function.
  • Embodiments of the present application provide a window interaction method and an electronic device, so that the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.
  • embodiments of the present application provide a window interaction method, which is applied to an electronic device.
  • the electronic device includes a first display screen.
  • the method includes: the electronic device uses the first display screen to display a first interface; wherein the first interface includes A first window, a second window, and a first sliding bar for adjusting the size of the first window and the second window; the content displayed in the first window and the content displayed in the second window all belong to the first application;
  • the electronic device displays a second interface; wherein the second interface includes a first floating window, a first window, a second window, and a first sliding bar; first The width of the floating window is smaller than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies the first state.
  • the electronic device can reasonably display the floating window according to the user's split-screen requirement for the display screen, thereby enhancing the user's experience of using the floating window.
  • the second interface also includes a first area, and the first area is an area in the second interface except the first floating window.
  • the method further includes: responding to a second operation on the first area.
  • the electronic device displays a third interface; the third interface includes a second floating window, and the second floating window satisfies the second state; the second state is different or the same as the first state. In this way, the electronic device can realize the non-modality of the floating window and increase the user's experience of using the floating window.
  • the second operation includes: an operation of sliding the first sliding bar to the first area in the second interface.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.
  • the method further includes: in response to a third operation on the electronic device, the electronic device displays a fourth interface; wherein the fourth interface includes a third floating window; the width of the third floating window is smaller than the first The height of the display screen, the third floating window satisfies the first state.
  • the electronic device can flip the floating window according to the flipping of the screen, thereby increasing the user's experience of using the floating window.
  • the fourth interface is an interface of the electronic device in a landscape screen state.
  • the electronic device further includes a second display screen
  • the method further includes: in response to a fourth operation on the electronic device, the electronic device uses the second display screen to display a fifth interface; wherein, in the fifth interface It includes a fourth floating window and a second window; the width of the fourth floating window is the same as the width of the second display screen.
  • the electronic device in response to the fourth operation on the electronic device, uses the second display screen to display the fifth interface, including: in response to the fourth operation on the electronic device, the electronic device acquires the first data; The first data includes folding angle data; the folding angle data is detected based on the angle chain sensor; when the electronic device determines that the folding angle data meets the first preset condition, the electronic device uses the second display screen to display the fifth interface. In this way, the electronic device can switch the floating window in the internal and external display screens according to the detected folding angle.
  • the method before the electronic device uses the first display screen to display the first interface, the method further includes: when the preset function of the first application is turned on, the electronic device uses the first display screen to display the sixth interface; The content displayed in the sixth interface belongs to the first application; the electronic device uses the first display screen to display the first interface, including: in response to the fifth operation on the sixth interface, the electronic device uses the first display screen to display the first interface.
  • the terminal device can easily open parallel horizons.
  • the electronic device in response to the first operation on the first window or the second window, displays the second interface, including: in response to the first operation on the first window or the second window, the electronic device The seventh interface is displayed; the seventh interface includes the first text; in response to the operation on the first text, the electronic device displays the first control; the first control includes a copy option and a translation option; in response to the operation on the copy option, the electronic device The device displays a floating ball control; in response to operating the floating ball control, the electronic device displays a second interface. In this way, the electronic device can conveniently open the floating window according to the user's copy operation.
  • the electronic device uses the first display screen to display the first interface, including: the electronic device uses the first display screen to display an eighth interface; the eighth interface includes the second text; responding to the second text
  • the electronic device displays the second control; the second control includes a copy option and a translation option; in response to the operation of the translation option, the electronic device uses the first display screen to display the first interface.
  • the electronic device can conveniently open the floating window according to the user's translation operation.
  • the electronic device includes a first display screen
  • the method includes: the electronic device uses the first display screen to display a first interface; wherein the first interface includes a first window and a second Window, the content displayed in the first window belongs to the first application, and the content displayed in the second window belongs to the second application; in response to the first operation on the first window, the electronic device displays a first floating window in the first window;
  • the first floating window is a non-modal dialog box, and the first floating window satisfies the first state;
  • the electronic device displays the second floating window in the second window;
  • the second floating window is A modeless dialog box, and the second floating window satisfies the first state.
  • the electronic device can realize flexible display of the floating window in the split-screen window.
  • the first window also includes a first area, and the first area is an area in the first window except the first floating window.
  • the method also includes: responding to a third operation on the first area.
  • the electronic device displays a third interface; the third interface includes: a third floating window in the first window, and a second floating window in the second window; the third floating window satisfies the second state; the second state is the same as the first The status is different or the same. In this way, each floating window in the split-screen window can be non-modal, thereby increasing the user's experience of using floating windows.
  • the second window also includes a second area, and the second area is an area in the second window except the second floating window.
  • the method also includes: responding to a fourth operation on the second area.
  • the electronic device displays a fourth interface; the fourth interface includes: a first floating window in the first window, and a fourth floating window in the second window; the fourth floating window satisfies the second state; the second state is the same as the first The status is different or the same. In this way, each floating window in the split-screen window can be non-modal, thereby increasing the user's experience of using floating windows.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.
  • the width of the first floating window is half the width of the first display screen; the width of the second floating window is half the width of the first display screen.
  • the method further includes: in response to a fifth operation on the electronic device, the electronic device displays a fifth interface; wherein the fifth interface includes a fifth floating window in the first window, and a second window The sixth floating window in , the fifth floating window satisfies the first state, and the sixth floating window satisfies the first state.
  • the floating window in the split-screen window can be flexibly displayed according to the user's flip operation.
  • the electronic device in response to the fifth operation on the electronic device, displays a fifth interface, including: in response to the fifth operation on the electronic device, the electronic device obtains first data; the first data includes an angle Acceleration data; angular acceleration data is detected based on the gyroscope sensor; when the electronic device determines that the angular acceleration data meets the first preset condition, the electronic device displays the fifth interface. In this way, the electronic device can flexibly display the screen based on the detected angular acceleration data.
  • the width of the fifth floating window is half the height of the first display screen; the width of the sixth floating window is half the height of the first display screen.
  • the first interface further includes a first sliding bar for adjusting the size of the first window and the size of the second window
  • the method further includes: in response to sliding the first sliding bar to the third In the operation of the area, the electronic device displays a sixth interface; wherein the sixth interface includes a seventh floating window in the third window and an eighth floating window in the fourth window.
  • the width of the third window is smaller than the width of the fourth window.
  • the width of the seventh floating window is smaller than the width of the eighth floating window; or, in response to the operation of sliding the first sliding bar to the fourth area, the electronic device displays the seventh interface; wherein the seventh interface includes the fifth window the first floating ball control, and the ninth floating window in the sixth window, the width of the fifth window is smaller than the width of the sixth window, and the width of the ninth floating window is smaller than the width of the sixth window; or, in response to changing the first When the sliding bar slides to the fifth area, the electronic device displays an eighth interface; the eighth interface includes an eighth floating window, and the width of the eighth floating window is smaller than the width of the first display screen.
  • the method further includes: in response to the operation of sliding the first sliding bar to the sixth area. , the electronic device displays a ninth interface; wherein, the ninth interface includes a first floating ball control in a seventh window, and a second floating ball control in an eighth window; the width of the seventh window is greater than the width of the eighth window; Alternatively, in response to the operation of sliding the first sliding bar to the seventh area, the electronic device displays a tenth interface; wherein the tenth interface includes a ninth floating window; the width of the ninth floating window is smaller than the width of the first display screen. In this way, the floating window in the split-screen window can be displayed flexibly according to the user's operation.
  • the method further includes: in response to the operation of sliding the first sliding bar to the eighth area.
  • the electronic device displays an eleventh interface; wherein the eleventh interface includes a second floating ball control. In this way, the floating window in the split-screen window can be displayed flexibly according to the user's operation.
  • the electronic device further includes a second display screen
  • the method further includes: in response to a sixth operation on the electronic device, the electronic device uses the second display screen to display a twelfth interface; wherein, the twelfth interface
  • the interface includes a ninth window and a tenth window, and the widths of the ninth window and the tenth window are the same as the width of the second display screen. In this way, the electronic device can flexibly display floating windows on multiple screens according to the user's folding of the folding screen.
  • the electronic device in response to the sixth operation on the electronic device, uses the second display screen to display a twelfth interface, including: in response to the sixth operation on the electronic device, the electronic device obtains the second data ;
  • the second data includes folding angle data; the folding angle data is detected based on the angle chain sensor; when the electronic device determines that the folding angle data meets the second preset condition, the electronic device uses the second display screen to display the twelfth interface.
  • the electronic device can detect the angle of the folding screen and determine the display of multiple display screens of the electronic device according to the folding angle.
  • the electronic device includes a first display screen
  • the method includes: when the preset function of the first application is not enabled, in response to an operation of opening the first application, the electronic device The first display screen is used to display the first interface; in response to the first operation on the first interface, the electronic device displays the second interface; the second interface includes a first floating window; the width of the first floating window is smaller than that of the first display screen width; in response to opening the preset function of the first application and the operation of opening the first application, the electronic device displays the first interface; in response to the first operation of the first interface, the electronic device displays the third interface; in the third interface It includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the second window.
  • the second window includes a first floating ball control corresponding to the first floating window.
  • the first window The displayed content and the content displayed in the second window belong to the first application; in response to the second operation of the first floating ball control, the electronic device displays a fourth interface; the fourth interface includes the first floating window, the first window , the second window, and the first sliding bar; the width of the first floating window is smaller than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies the first state. In this way, the electronic device can display a floating window in an interface using parallel horizons.
  • inventions of the present application provide a window interaction device applied to an electronic device.
  • the electronic device includes a first display screen.
  • the method includes: a display unit configured to display a first interface using the first display screen; wherein, the first The interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the second window; the content displayed in the first window and the content displayed in the second window belong to the first window.
  • An application in response to the first operation on the first window or the second window, the display unit is also used to display a second interface; wherein the second interface includes a first floating window, a first window, a second window, and The first sliding bar; the width of the first floating window is smaller than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies the first state.
  • the second interface also includes a first area, and the first area is an area in the second interface except the first floating window.
  • the display unit It is also used to display a third interface; the third interface includes a second floating window, and the second floating window satisfies the second state; the second state is different or the same as the first state.
  • the second operation includes: an operation of sliding the first sliding bar to the first area in the second interface.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.
  • the display unit in response to the third operation of the electronic device, is configured to display a fourth interface; wherein the fourth interface includes a third floating window; the width of the third floating window is smaller than the first display The height of the screen, the third floating window satisfies the first state.
  • the fourth interface is an interface of the electronic device in a landscape screen state.
  • the electronic device further includes a second display screen, and in response to a fourth operation on the electronic device, the display unit is configured to display a fifth interface using the second display screen; wherein the fifth interface includes The fourth floating window and the second window; the width of the fourth floating window is the same as the width of the second display screen.
  • the processing unit in response to the fourth operation of the electronic device, is configured to obtain first data; the first data includes folding angle data; the folding angle data is detected based on the angle chain sensor; When the electronic device determines that the folding angle data meets the first preset condition, the display unit is configured to use the second display screen to display the fifth interface.
  • the display unit when the preset function of the first application is turned on, the display unit is configured to use the first display screen to display the sixth interface; the content displayed in the sixth interface belongs to the first application; in response to The fifth operation on the sixth interface is a display unit configured to display the first interface using the first display screen.
  • the display unit in response to the first operation on the first window or the second window, is configured to display a seventh interface; the seventh interface includes the first text; in response to the first operation on the first text Operation, the display unit is used to display the first control; the first control includes a copy option and a translation option; in response to the operation on the copy option, the display unit is used to display the floating ball control; in response to the operation on the floating ball control , the electronic device displays the second interface.
  • the display unit is configured to display an eighth interface using the first display screen; the eighth interface includes second text; in response to an operation on the second text, the display unit is configured to display the second control; the second control includes a copy option and a translation option; in response to the operation of the translation option, the display unit is used to display the first interface using the first display screen.
  • the electronic device includes a first display screen
  • the method includes a display unit configured to display a first interface using the first display screen; wherein the first interface includes a first window and In the second window, the content displayed in the first window belongs to the first application, and the content displayed in the second window belongs to the second application; in response to the first operation on the first window, the display unit is used to display in the first window
  • the first floating window; the first floating window is a non-modal dialog box, and the first floating window satisfies the first state; in response to the second operation on the second window, the display unit is used to display the second window in the second window.
  • a floating window; the second floating window is a non-modal dialog box, and the second floating window satisfies the first state.
  • the first window also includes a first area, and the first area is an area in the first window except the first floating window.
  • the display unit Used to display the third interface; the third interface includes: a third floating window in the first window, and a second floating window in the second window; the third floating window satisfies the second state; the second state and the first state different or the same.
  • the second window also includes a second area, and the second area is an area in the second window except the second floating window.
  • the display unit Used to display the fourth interface; the fourth interface includes: a first floating window in the first window, and a fourth floating window in the second window; the fourth floating window satisfies the second state; the second state and the first state different or the same.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.
  • the width of the first floating window is half the width of the first display screen; the width of the second floating window is half the width of the first display screen.
  • the display unit in response to a fifth operation on the electronic device, is configured to display a fifth interface; wherein the fifth interface includes a fifth floating window in the first window and a fifth floating window in the second window.
  • the sixth floating window, the fifth floating window satisfies the first state, and the sixth floating window satisfies the first state.
  • the processing unit in response to the fifth operation of the electronic device, is configured to obtain first data; the first data includes angular acceleration data; the angular acceleration data is detected based on a gyroscope sensor; in When the electronic device determines that the angular acceleration data meets the first preset condition, the display unit is used to display the fifth interface.
  • the width of the fifth floating window is half the height of the first display screen; the width of the sixth floating window is half the height of the first display screen.
  • the first interface further includes a first sliding bar for adjusting the size of the first window and the size of the second window.
  • a display unit configured to display a sixth interface; wherein the sixth interface includes a seventh floating window in the third window and an eighth floating window in the fourth window, and the width of the third window is smaller than the width of the fourth window, The width of the seventh floating window is smaller than the width of the eighth floating window; or, in response to the operation of sliding the first sliding bar to the fourth area, the display unit is used to display the seventh interface; wherein the seventh interface includes the fifth The first floating ball control in the window, and the ninth floating window in the sixth window, the width of the fifth window is smaller than the width of the sixth window, and the width of the ninth floating window is smaller than the width of the sixth window; or, in response to The operation of sliding the first sliding bar to the fifth area, the display unit, is used to display an eighth interface; wherein the eighth interface includes an eighth floating window, and the width of
  • the display unit in response to the operation of sliding the first sliding bar to the sixth area, is configured to display a ninth interface; wherein the ninth interface includes the first suspended ball in the seventh window control, and the second floating ball control in the eighth window; the width of the seventh window is greater than the width of the eighth window; or, in response to the operation of sliding the first sliding bar to the seventh area, the display unit is used to display the Ten interfaces; wherein, the tenth interface includes a ninth floating window; the width of the ninth floating window is smaller than the width of the first display screen.
  • the display unit in response to the operation of sliding the first sliding bar to the eighth area, is configured to display an eleventh interface; wherein the eleventh interface includes a second floating ball control.
  • the electronic device further includes a second display screen, and in response to the sixth operation of the electronic device, the display unit is configured to display a twelfth interface using the second display screen; wherein, the twelfth interface includes a ninth window and a tenth window, and the widths of the ninth window and the tenth window are the same as the width of the second display screen.
  • the processing unit in response to the sixth operation of the electronic device, is configured to obtain second data; the second data includes folding angle data; the folding angle data is detected based on the angle chain sensor; When the electronic device determines that the folding angle data meets the second preset condition, the display unit is configured to use the second display screen to display the twelfth interface.
  • the electronic device includes a first display screen
  • the method includes: when the preset function of the first application is not enabled, in response to an operation of opening the first application, the display unit , used to display the first interface using the first display screen; in response to the first operation on the first interface, the display unit is used to display the second interface; the second interface includes a first floating window; the width of the first floating window Less than the width of the first display screen; in response to opening the preset function of the first application and opening the operation of the first application, the display unit is used to display the first interface; in response to the first operation of the first interface, the display unit , used to display the third interface; the third interface includes a first window, a second window, a first sliding bar for adjusting the size of the first window and the size of the second window, and the second window includes a first floating window For the corresponding first floating ball control, the content displayed in the first window and the content displayed in the second window all belong to the first application; in response to the second interface
  • the second aspect and any implementation manner of the second aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • inventions of the present application provide a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to execute any method of the first aspect.
  • the third aspect and any implementation manner of the third aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the third aspect and any implementation manner of the third aspect please refer to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • inventions of the present application provide a computer program product.
  • the computer program product includes a computer program that, when run on a computer, causes the computer to execute any method of the first aspect.
  • the fourth aspect and any implementation manner of the fourth aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the fourth aspect and any implementation manner of the fourth aspect please refer to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory that is not packaged with the processor.
  • Figure 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the software architecture of the electronic device provided by the embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a window manager provided by an embodiment of the present application.
  • Figure 4 is a schematic structural diagram of a folding screen mobile phone provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of an interface for displaying a floating window provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of an interface for displaying a floating window under another parallel field of view provided by an embodiment of the present application
  • Figure 7 is a schematic diagram of an interface for displaying a floating window in a vertical screen state provided by an embodiment of the present application.
  • Figure 8 is a schematic interface diagram of a folding screen mobile phone screen flipping provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of a non-modal interface provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of an interface for adjusting the window size in a parallel field of view provided by an embodiment of the present application
  • Figure 11 is a schematic interface diagram for screen switching of a folding screen mobile phone provided by an embodiment of the present application.
  • Figure 12 is a schematic diagram of an application split-screen display interface provided by an embodiment of the present application.
  • Figure 13 is a schematic diagram of an interface for opening a floating window using split-screen display provided by an embodiment of the present application
  • Figure 14 is a schematic diagram of an interface for displaying a floating window in another vertical screen state provided by an embodiment of the present application.
  • Figure 15 is a schematic interface diagram of another folding screen mobile phone screen flip provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of another non-modal interface provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of an interface for adjusting the window size in an application split-screen display interface provided by an embodiment of the present application
  • Figure 18 is a schematic diagram of another interface for adjusting the window size in an application split-screen display interface provided by an embodiment of the present application.
  • Figure 19 is a schematic diagram of an interface for screen switching of an alternative folding screen mobile phone provided by an embodiment of the present application.
  • Figure 20 is a schematic flowchart of a window interaction method provided by an embodiment of the present application.
  • Figure 21 is a schematic flow chart of another window interaction method provided by an embodiment of the present application.
  • Figure 22 is a schematic structural diagram of a window interaction device provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects.
  • the first value and the second value are only used to distinguish different values, and their order is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
  • At least one refers to one or more, and “plurality” refers to two or more.
  • “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are in an “or” relationship.
  • “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • At least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
  • the parallel view function can be understood as displaying different contents of the same application in two windows of the same interface
  • the application split-screen display function can be understood as displaying the contents of different applications in two windows of the same interface.
  • embodiments of the present application provide a window interaction method and an electronic device, so that the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.
  • the above-mentioned electronic equipment can also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc.
  • Electronic devices can be mobile phones with window display functions, folding screen mobile phones, smart TVs, wearable devices, tablets, computers with wireless transceiver functions, virtual reality (VR) electronic devices, augmented reality (augmented) reality, AR) electronic equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • VR virtual reality
  • AR augmented reality
  • wireless terminals in industrial control wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • the embodiments of the present application do not limit the specific technology and specific device form used by the electronic device.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142.
  • Antenna 1 antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Display 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an angle chain sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, etc. .
  • the angle chain sensor can be used to detect the folding angle of the electronic device, and the gyroscope sensor can be used to detect the horizontal and vertical screen flip status of the electronic device.
  • the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic equipment.
  • the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the processor 110 is configured to execute the ambient light detection method in the embodiment of the present application.
  • the controller can be the nerve center and command center of the electronic device.
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the electronic device implements display functions through the GPU, display screen 194, and application processor.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use organic light-emitting diode (OLED).
  • OLED organic light-emitting diode
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • Software systems of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
  • the embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.
  • FIG. 2 is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application.
  • electronic devices can divide the Android system into five layers, namely application layer (applications), application framework layer (application framework), Android runtime (Android runtime) and system library, hardware abstraction layer ( hardware abstract layer (HAL, not shown in the figure) and kernel layer.
  • application layer applications
  • application framework layer application framework
  • Android runtime Android runtime
  • system library hardware abstraction layer
  • hardware abstract layer HAL, not shown in the figure
  • kernel layer kernel layer
  • the application layer can include a series of application packages.
  • the application layer may include: settings, calendar, map, alarm clock and other application programs (application programs may be referred to as applications for short), and this embodiment of the present application does not impose any restrictions on this.
  • the application layer may also include a situation awareness module, a business logic processing module, a business presentation module, etc.
  • the situation awareness module, business logic processing module and business presentation module can be independent APPs, or can be integrated in different APPs, or can be integrated in the same APP, which is not limited by this application.
  • the situation awareness module runs permanently or in a low-power mode and has the ability to perceive external facts or environment.
  • the situation awareness module can detect related events and obtain the status of events from other applications or application framework layers or system layers or kernel layers in the application layer through APIs (application programming interfaces), such as detecting Bluetooth connections, network connections, and monitoring users. SMS, custom timers, etc.
  • APIs application programming interfaces
  • the main function of the context awareness module is to monitor whether there is a copy event on the clipboard. When a copy event is detected on the clipboard, it notifies the business logic processing module of the copy event.
  • the context awareness module can also be used to obtain the source application (APP) of the cut content in the clipboard, that is, the application package name.
  • APP source application
  • the clipboard content recognizes that the cut content is copied from a specific application through the context awareness module.
  • the situation awareness module can also detect whether there is an operation to exit the current page. When an operation to exit the current page is detected, the business logic processing module is notified.
  • the business logic processing module (such as the calculation engine) has business logic processing capabilities and is used to realize the display and disappearance logic of various floating balls or floating windows. For example, the business logic processing module receives the copy event triggered by the user and the clipboard content sent by the situation awareness module, determines whether the translation conditions are met, and thereby determines whether to display the floating ball. The business logic processing module can also determine whether to display the floating window and display the translation results in the floating window based on the click event of the floating ball triggered by the user and the content of the translation result obtained from the third-party server. In addition, the business logic processing module can also be used to determine whether to display or disappear the floating ball or floating window on the electronic device based on the disappearance event of the floating ball or floating window triggered by the user.
  • the business logic processing module can also identify copied text or text extracted by OCR technology. For example, it can be identified that the text is at least one of the types of schedule, link to be shared, Taobao password, website address, etc. For another example, the language of the text can also be identified.
  • the business presentation module (such as YOYO suggestion) is used to display or disappear the floating ball or floating window on the screen of the mobile phone.
  • the business presentation module receives a command to display a floating ball or a floating window sent by the business logic processing module, and notifies the window manager to display the floating ball or floating window on the electronic device.
  • the business presentation module can also present the text copied by the user and its corresponding translation results in the floating window.
  • the business presentation module can also notify the window manager to display or disappear the floating ball or floating window on the electronic device based on the disappearance event of the floating ball or floating window triggered by the user.
  • the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, etc., an activity manager, a clipboard manager, etc. This embodiment of the present application does not do this. Any restrictions.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Clipboard manager is used to manage the clipboard.
  • the clipboard is a temporary storage area used to temporarily store exchange information.
  • the activity manager is used to manage the life cycle of each application and the navigation rollback function. It is responsible for the creation of Android's main thread and the maintenance of the life cycle of each application.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • the system library can include multiple functional modules.
  • surface manager surface manager
  • media libraries Media Libraries
  • 3D graphics processing libraries for example: OpenGL ES
  • 2D graphics engines for example: SGL
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • FIG. 3 is a schematic structural diagram of a window manager provided by an embodiment of the present application.
  • the window manager may include: application windows, sub-windows (not shown) and system windows.
  • the application window corresponds to the application window of a certain application, such as the application window of a reading application, which is used to display the content in the reading application, or the application window of a translation application, which is used to display the content of the translation application, or the memo application.
  • the application window is used to display the content within the Notes application.
  • the interface of each application is composed of activities, and activities are composed of views. View is the existence form of the window, and the window is the carrier of the view.
  • the application process is notified that any activity belongs to the application process. That is to say, for example, the reading application corresponds to one activity, and the memo application corresponds to another activity because it is a different application from the reading application.
  • the default window type for all activities is the base window (TYPE_BASE_APPLICATION), that is, all other types of application windows will appear above the base window.
  • the child window is attached to the parent window, that is, it cannot exist independently and needs to rely on an application, such as application input method window, application prompt box window, etc.
  • an application such as application input method window, application prompt box window, etc.
  • the child window is also invisible.
  • the system window is different from the application window and does not need to correspond to the Activity. Unlike child windows, there is no need for a parent window.
  • the system window does not belong to any application. It is created by the system and belongs only to the system itself. It often requires declaring permissions to create, such as shutdown dialog window, status bar window, search bar window, input method window, warning dialog box, and system volume bar. wait.
  • a floating ball and a floating window are provided in the system window. It can be seen from the above analysis that the floating ball and floating window are system windows and cannot be set in the application window.
  • the essence of floating windows and floating balls is to hand over a view to a window manager for management. Due to the underlying system limitations of Android, the z-axis range of the application window is 1 ⁇ 99, the range of the sub-window is 1001 ⁇ 1999, and the system window is (2000 ⁇ 2999), therefore, floating windows and floating balls can only be implemented within the system window range. If you want to pop up a custom system-level window, you need to dynamically apply for permissions.
  • the Z-axis is the concept of the hierarchy of Android windows. The larger the Z-axis, the window is at the top.
  • the floating ball and floating window set in the system window do not have the function of activity.
  • additional sliding operations, sliding conflicts, etc. need to be set inside the system window, and Determine the focus of the response window based on the user's click and other operations. The details will be more clear based on the following descriptions.
  • the electronic device is a folding screen mobile phone as an example for illustration. This example does not constitute a limitation to the embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a folding screen mobile phone provided by an embodiment of the present application.
  • the folding screen mobile phone includes an inner screen and an external screen.
  • the folding screen mobile phone can use the external screen to display including The interface of the floating window, or when the folding screen mobile phone is in the unfolded state (or understood as the folding angle is between 70 degrees and 180 degrees, etc.), the folding screen mobile phone can use the internal screen to display the interface including the floating window.
  • the folding angle when the foldable screen mobile phone is in the folded state or in the unfolded state is only an example and cannot limit the embodiments of the present application.
  • the display of the inner screen of a folding screen mobile phone will be used as an example to illustrate the window interaction method. This example does not constitute a limitation to the embodiment of the present application.
  • the floating window will be displayed in the parallel field of view (or called scene one, as shown in the embodiments corresponding to Figures 5-9) and the floating window will be displayed in the application split screen (or Called Scenario 2, take the embodiments corresponding to Figures 10-12 as an example to illustrate the specific implementation of the window interaction method.
  • Scenario 1 A folding screen mobile phone displays a floating window in a parallel field of view.
  • the folding screen mobile phone can support the floating window display in two parallel horizon functions: Method 1, the folding screen mobile phone supports triggering the floating window in the interface corresponding to the parallel horizon of the application; or, Method 2, the folding screen mobile phone supports Open the parallel view of the application after triggering the floating window.
  • Method 1 Folding screen mobile phones support triggering floating windows in the application's parallel horizon interface.
  • the folding screen mobile phone can use the parallel view function to display applications, and based on the user's operation, the folding screen mobile phone can display a floating window in the interface corresponding to the parallel view.
  • the setting interface of the folding screen mobile phone can be provided with an option switch such as "Parallel Horizon".
  • an option switch such as "Parallel Horizon”.
  • the electronic device can trigger The translation function displays the floating ball corresponding to the translation function; further, when the user triggers the floating ball, the translation result can be displayed.
  • FIG. 5 is a schematic diagram of an interface for displaying a floating window under a parallel field of view provided by an embodiment of the present application.
  • opening a floating window in a news application is taken as an example for illustration.
  • the folding screen phone When the "Parallel Vision" function corresponding to the news application is turned on, when the folding screen phone receives the user's operation to open the news application, the folding screen phone can display the interface shown in (a) in Figure 5, which can be full screen. Displays the main page of the news application.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger any news, the folding screen mobile phone can display the interface shown in (b) of Figure 5.
  • the main page 501 of the news application and the content page 502 of the news application can be displayed in left and right split screens. It can be understood that the interface shown in (b) in Figure 5 can be called an interface corresponding to the parallel horizon of the application.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of selecting the word "patent" on the content page 502, the folding screen mobile phone can display as shown in Figure 5
  • the interface shown in (c) of Figure 5 may include an option bar 503, and the option bar 503 may include operation options such as copy and translation.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger the "copy” option in the option bar 503 corresponding to the word "patent", the folding screen mobile phone can recognize the user's intention.
  • the interface shown in (d) in Figure 5 is displayed.
  • the interface may include a floating ball logo 504.
  • the floating ball logo 504 may be used to indicate that the folding screen mobile phone is recognizing the user's intention, and the user's intention recognized by the folding screen mobile phone is Intention can be translated. It can be understood that during the recognition process of the folding screen mobile phone, the user's intention can be recognized without the user's operation. For example, the user does not need to click on any content on the page in Figure 5(d).
  • the folding screen mobile phone When the folding screen mobile phone recognizes that the user's intention is to translate the word "patent", it can display an interface as shown in (e) in Figure 5.
  • the interface can include: a floating ball 505, which is used to convey to the user Provides a portal for displaying translation results.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger the floating ball 505, the folding screen mobile phone can display the interface shown in (f) in Figure 5.
  • a floating window 506 may be displayed in the interface, and the translation result of “patent” may be displayed in the floating window 506 .
  • the translation results displayed in the floating window 506 include the English word "patent" copied by the user to be queried, and the translation result of the Chinese definition of the word, that is, "patent".
  • the content displayed in the floating window 506 also includes: controls for voice reading, controls for copying translation results, controls for switching translation languages, etc.
  • the floating window 506 can be centered and displayed at the bottom of the inner screen of the folding screen mobile phone, and the floating window 506 is a certain distance away from the left and right sides of the inner screen.
  • the floating window 506 is the initial state of the floating window, that is, the default form displayed after the user clicks on the floating ball 505 is a half-screen state. For example, due to the display of the floating window 506, the display of the floating ball 505 can be canceled to achieve a better user experience.
  • the folding screen phone in addition to opening the floating window 506 based on the interface shown in (a) to (f) in Figure 5, can also open the floating window 506 based on the following convenient operations. Open the floating window.
  • the floating window can be centered and displayed at the bottom of the screen.
  • Method 2 Folding screen mobile phones support opening parallel horizons of applications after triggering the floating window.
  • the user can open the content page of the application without opening the parallel view of the application, and trigger the floating window in the content page. Further, the user can open it from the settings. Parallel view of the application, and open the main page and content page of the application, so that the folding screen phone can display the main page and content page in left and right split screens, and the content page can include the floating ball corresponding to the previously triggered floating window, folding The screen mobile phone can display the floating window based on the user's trigger on the floating ball.
  • FIG. 6 is a schematic diagram of an interface for displaying a floating window under another parallel view provided by an embodiment of the present application.
  • opening a floating window in a news application is taken as an example for illustration.
  • the folding screen phone When the "Parallel Vision" function corresponding to the news application is not turned on, when the folding screen phone receives the user's operation to open the news application, the folding screen phone can display the interface shown in (a) in Figure 6. In this interface The main page of the news application can be displayed in full screen.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger any news, the folding screen mobile phone can display the interface shown in (b) in Figure 6.
  • the content page of the news application can be displayed in full screen.
  • the interface when the folding screen mobile phone receives a user triggering the floating window corresponding to the word "patent", the interface may also include a floating window 601. It can be understood that the floating window 601 can be centered and displayed at the bottom of the inner screen of the folding screen mobile phone, and the floating window 601 is a certain distance away from the left and right sides of the inner screen. Among them, the method of triggering the display of the floating window in the interface shown in (b) in Figure 6 can be referred to the description in the interface shown in (c) to (f) in Figure 5, and will not be described again here. .
  • the folding screen phone displays the floating window 601 as shown in (b) of Figure 6, when the folding screen phone receives the message that the user opens the settings application from the background, the parallel view function corresponding to the news application is turned on in the settings application.
  • the folding screen mobile phone can display the interface shown in (c) in Figure 6.
  • the interface shown in (c) in Figure 6 can display the news application in full screen. home page.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger any news, the folding screen mobile phone can display the interface shown in (d) of Figure 6.
  • the main page 602 of the news application and the content page 603 of the news application can be displayed in left and right split screens.
  • the content page 603 can include a floating ball 604 .
  • the floating ball 604 may be another display form of a floating window displayed in the content page of the news application before opening the parallel view of the news application.
  • the floating ball 604 may be a floating window as shown in (b) of Figure 6 Another display form of window 601.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger the floating ball 604, the folding screen mobile phone can display the interface shown in (e) of Figure 6.
  • This figure 6 The interface shown in (e) includes a floating window 605.
  • the floating window 605 can be centered and displayed at the bottom of the inner screen of the folding screen mobile phone, and the floating window 605 is a certain distance away from the left and right sides of the inner screen.
  • FIG. 7 is a schematic diagram of an interface for displaying a floating window in a vertical screen state according to an embodiment of the present application.
  • the interface may include a floating window 701 in a half-screen state displayed in an application using a parallel view when the folding screen mobile phone is in a vertical screen state.
  • the floating window in the half-screen state occupies about half of the screen size of the current application and displays part of the translation result content.
  • the half-screen floating window can also be exemplarily used as the default floating window form, that is, the first floating window displayed after the user copies text.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of tapping the floating window 701 and sliding down, the folding screen mobile phone can display (as shown in Figure 7).
  • the interface may include a bottom-state floating window 702 displayed in an application that uses a parallel view when the foldable screen mobile phone is in a vertical screen state.
  • the floating window in the bottom state is displayed in the center at the bottom of the screen of the current application without displaying any translation result content, which is conducive to the user to continue accessing the content in the current application to improve the user experience.
  • the folding screen mobile phone may display the following: The interface shown in (c) in Figure 7.
  • the interface may include a full-screen floating window 703 displayed in an application that uses a parallel view when the folding screen mobile phone is in a vertical screen state.
  • the floating window in the full-screen state can, for example, occupy the middle of the entire current application screen. Its expansion is based on the user's drag operation and is used to display more translation result content than the half-screen floating window, so as to improve user experience.
  • the folding screen mobile phone can also be operated based on other users.
  • the interface shown in (a) in Figure 7, the interface shown in (b) in Figure 7, and the interface shown in (c) in Figure 7 Switching is performed in the interface shown, which is not specifically limited in the embodiments of this application.
  • the floating window can display different forms according to different operations of the user. In this way, users' different needs for floating windows displayed in applications using parallel horizons are met, and users' experience of using the floating window function is improved.
  • the floating window displayed in an application using parallel horizons can be flexibly adjusted according to the user's flipping needs, thereby improving the user's experience of using the floating window function in a folding screen mobile phone.
  • the folding screen mobile phone is in the vertical screen state
  • the floating window in the folding screen mobile phone can be in the half screen state. Screen state (corresponding embodiment in Figure 8).
  • FIG. 8 is a schematic interface diagram for flipping the screen of a folding screen mobile phone provided by an embodiment of the present application.
  • FIG. 8 when the floating window displayed in the application using the parallel view of the folding screen phone is in the half-screen state, when the folding screen phone receives the user's flip of the screen, for example, the user flips the screen from the folding screen phone.
  • the folding screen phone can display the interface shown in (b) in Figure 8.
  • the folding screen phone The floating window displayed on the mobile phone can be in half-screen state.
  • the floating window of a folding screen mobile phone in portrait mode has three states, namely half screen state, bottom state and full screen state, and the width and height difference of the inner screen of the folding screen mobile phone is small, therefore
  • the floating window of a folding screen phone in the horizontal screen state can also have three states, namely half screen state, bottom state and full screen state, so that the folding screen phone can adjust the floating window displayed in the application using parallel view according to the user's flipping requirements. Flexible adjustment.
  • the floating window displayed in an application that uses a parallel view on a folding screen phone when the folding screen phone receives the user's flip of the screen, for example, the user flips from the vertical screen state of the folding screen phone to the vertical screen state of the folding screen phone.
  • the floating window in the folding screen phone When operating in the horizontal screen state, the floating window in the folding screen phone can be in the bottom state; or, when the floating window displayed in the application that uses the parallel view on the folding screen phone is in the full screen state, when the folding screen phone receives the user's
  • the screen is flipped, for example, when the user flips the folding screen phone from the vertical screen state to the horizontal screen state of the folding screen phone, the floating window in the folding screen phone can be in a full-screen state.
  • the floating window displayed in the application using parallel view on the folding screen mobile phone can satisfy the non-modal (or called non-modal dialog box).
  • FIG. 9 is a schematic diagram of a non-modal interface provided by an embodiment of the present application. This non-modality can be understood as that when the floating window exists, the user can touch or click on areas outside the floating window.
  • the folding screen mobile phone can display the interface shown in (b) in Figure 9.
  • the interface shown in (b) in Figure 9 The floating window can be in the bottom state.
  • non-modal floating window allows users to browse and trigger areas other than the floating window without closing the floating window on the folding screen mobile phone, improving the user experience.
  • the window attribute of the floating window is set to FLAG_NOT_TOUCH_MODAL. Therefore, in this mode, the system will pass touch/click events outside the current window area to the underlying window, and click events within the current window area will be processed by the current window.
  • the floating window when the floating window is in the half-screen state or the full-screen state, set the window attribute of the floating window to FLAG_NOT_TOUCH_MODAL to control focus event processing; when the floating window is in the bottom state, set the window attribute of the floating window to FLAG_NOT_FOCUSABLE.
  • the focus event is handed over to the original text processing of the current application, which is the reading application currently being used by the user in the embodiment of the present application.
  • FLAG_NOT_FOCUSABLE Indicates that the current window does not need to obtain focus, nor does it need to receive various input events. This tag will also enable FLAG_NOT_TOUCH_MODAL, and the final event will be directly passed to the lower-level window with specific focus.
  • FLAG_NOT_TOUCH_MODAL Indicates that in this mode, the system will pass touch/click events outside the current window area to the underlying window, and click events within the current window area will be processed by the current window. This tag is very important and generally needs to be turned on, otherwise other windows will not receive touch/click events.
  • FIG. 10 is a schematic diagram of an interface for adjusting the window size in a parallel field of view provided by an embodiment of the present application.
  • the interface may include: a main page 1001 (or window 1001) displayed in left and right split screens and a content page 1002 (or window 1002).
  • the main page A sliding bar 1003 for adjusting the window size may be provided in the middle of the content page 1001 and the content page 1002.
  • the interface may also include a floating window 1004 centered at the bottom of the inner screen of the folding screen.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, when the user touches the sliding bar 1003 and slides to the left, the folding screen mobile phone can display as shown in the figure The interface shown in (b) in 10.
  • the area (or width) of the main page 1005 in the interface shown in (b) of Figure 10 is smaller than the area (or width) of the main page 1001 in the interface shown in (a) of Figure 10 width); the area (or width) of the content page 1006 in the interface shown in (b) of Figure 10 is greater than the area (or width) of the content page 1002 in the interface shown in (a) of Figure 10 .
  • the folding screen 1007 in the interface is in the bottom state.
  • FIG. 11 is a schematic interface diagram for screen switching of a folding screen mobile phone provided by an embodiment of the present application.
  • the folding screen mobile phone displays the window 1101, the window 1102 and the floating window 1103 as shown in (a) of Figure 11, when the folding screen mobile phone receives the user's folded mobile phone screen (or understood as the folding screen angle satisfies 0 degrees - 70 degrees), the folding screen mobile phone can turn off the internal screen display and display the interface shown in (b) in Figure 11 on the external screen. In this interface, the window 1102 of the internal screen of the folding screen mobile phone can be displayed. content, and the floating window 1104.
  • the floating window 1103 shown in (a) in Figure 11 is in a half-screen state, and the floating window 1103 is centered and displayed at the bottom of the inner screen, and the width of the floating window 1104 is smaller than the width of the inner screen; in Figure 11
  • the floating window shown in (b) is also in a half-screen state, and the floating window 1104 is displayed at the bottom of the inner screen.
  • the width of the floating window 1104 is equal to the width of the outer screen. It can be seen that the state of the floating window during the folding process of a folding screen mobile phone, such as the half-screen state of the floating window, does not change.
  • Scenario 2 The foldable screen mobile phone displays a floating window in the application split-screen display interface.
  • the folding screen mobile phone can enable application split screen based on the embodiment corresponding to Figure 12, and open floating windows in different applications based on the embodiment corresponding to Figure 13.
  • FIG. 12 is a schematic diagram of an application split-screen display interface provided by an embodiment of the present application.
  • the folding screen mobile phone When the folding screen mobile phone receives the user's operation to open the news application, the folding screen mobile phone can display the interface shown in (a) in Figure 12, which can display the main page of the news application in full screen.
  • the folding screen phone when the folding screen phone receives the user's operation of sliding inward along the right screen edge, the folding screen phone can display as shown in Figure 12 (b)
  • the interface shown in (b) in Figure 12 may include a smart multi-window (or dock) 1201.
  • the smart multi-window 1201 may include: controls 1202 corresponding to the email application, memo Controls for applications, controls for video applications, controls for gallery applications, and controls for adding or deleting applications in smart multi-windows.
  • the folding screen mobile phone when the folding screen mobile phone receives the operation of the user tapping the control 1202 corresponding to the email application in the smart multi-window 1201, and continues to drag the control 1202 corresponding to the email application, When operating the control 1202 to the right area of the screen, the folding screen mobile phone can briefly display the interface shown in (c) in Figure 12, and then jump to the interface shown in (d) in Figure 12.
  • the interface shown in (c) in Figure 12 can display icons of news applications and email icons in left and right split screens; the interface shown in (d) in Figure 12 can display news in left and right split screens.
  • FIG. 13 is a schematic diagram of an interface for opening a floating window using split-screen display according to an embodiment of the present application.
  • the folding screen mobile phone can display the interface shown in (b) in Figure 13.
  • the floating window 1301 can be displayed in the interface shown in (b) in Figure 13.
  • the floating window 1301 can be displayed in the news.
  • the bottom end of the corresponding window of the application, and the width of the floating window 1301 is consistent with the width of the corresponding window of the news application.
  • the folding screen mobile phone when the folding screen mobile phone receives the user triggering the "hello" word corresponding in the window corresponding to the email application
  • the folding screen mobile phone can display the interface shown in (d) in Figure 13
  • the floating window 1301 and the interface shown in (d) in Figure 13 can be displayed.
  • the floating window 1302 may be displayed at the bottom of the window corresponding to the email application, and the width of the floating window 1302 is consistent with the width of the corresponding window of the news application.
  • the floating window when the user opens a floating window in each window of the application split-screen display, the floating window can be displayed at the bottom of each window, and the width of the floating window is consistent with the width of the window where the application split-screen is located.
  • the folding screen mobile phone can display three floating window states in any window according to the user's operation on the floating window in any window.
  • FIG. 14 is a schematic diagram of an interface for displaying a floating window in another vertical screen state provided by an embodiment of the present application.
  • three states of floating windows displayed in the left window 1401 of the folding screen mobile phone are taken as an example to illustrate.
  • the three states of floating windows can also be displayed in the right window 1402 of the folding screen mobile phone. status, which will not be described in detail later.
  • the interface may include a floating window in a half-screen state that can be displayed separately in the interface that applies split-screen display when the folding screen mobile phone is in the portrait state, such as window 1401.
  • a floating window 1403 in a half-screen state is displayed in Window 1402
  • a floating window 1404 in a half-screen state is displayed in window 1402 .
  • any floating window in the half-screen state occupies about half the size of the window where the current split-screen application is located, and displays part of the translation result content.
  • the half-screen floating window can also be exemplarily used as the default floating window form, that is, the first floating window displayed after the user copies text.
  • the folding screen phone when the folding screen phone receives the user's operation of tapping the floating window in window 1401 and sliding down, the folding screen phone can display as shown in Figure 14 The interface shown in (b).
  • the interface may include a floating window in the bottom state displayed in the window 1401 when the folding screen mobile phone is in the portrait state.
  • the floating window in window 1402 may not change.
  • the floating window in the bottom state is located at the bottom of the window where the current split-screen application is located, and does not display any translation result content, which is conducive to the user to continue to access the content in the current application to improve the user experience.
  • the folding screen mobile phone when the folding screen mobile phone receives the operation of the user tapping the floating window in window 1401 and sliding upward, and sliding to the upper edge of the screen in the portrait screen state. , the folding screen mobile phone can display the interface shown in (c) in Figure 14.
  • the interface may include a full-screen floating window displayed in the window 1401 when the folding screen mobile phone is in the vertical screen state.
  • the floating window in window 1402 may not change.
  • the floating window in the full-screen state can be displayed in the window where the current split-screen application is located. Its expansion is based on the user's drag operation and is used to display more translation result content than the half-screen floating window to improve the user experience. .
  • the folding screen mobile phone can also be operated based on other users, in the interface shown in (a) in Figure 14, the interface shown in (b) in Figure 14, and the interface shown in (c) in Figure 14. Switching is performed in the interface shown, which is not specifically limited in the embodiments of this application.
  • each floating window displayed in the interface shown in (a) in Figure 14, the interface shown in (b) in Figure 14, and the interface shown in (c) in Figure 14 can be It is displayed at the bottom of the window where the split-screen application is located, and the width of the floating window is consistent with the width of the window where the split-screen application is located.
  • the floating window can display different forms according to different operations of the user. In this way, users' different needs for each floating window in the application split-screen display interface are met, and the user's experience of using the floating window function is improved.
  • each floating window in the interface that applies split-screen display can be flexibly adjusted according to the user's flipping needs, thereby improving the user's experience of using the floating window function in the folding screen mobile phone.
  • each floating window in the folding screen mobile phone can be in the half-screen state.
  • Half-screen state (corresponding embodiment in Figure 15).
  • FIG. 15 is a schematic interface diagram for screen flipping of another foldable screen mobile phone provided by an embodiment of the present application.
  • FIG. 15 when the floating windows in each application split screen of the folding screen mobile phone are in the half-screen state, when the folding screen mobile phone receives the user turning the screen, for example, the user flips the screen from the vertical position of the folding screen mobile phone.
  • the folding screen mobile phone can display the interface shown in (b) in Figure 15.
  • the folding screen mobile phone Each floating window displayed in can be in half-screen state.
  • the floating window in a folding screen mobile phone in portrait mode has three states, namely half screen state, bottom state and full screen state, and the width and height difference of the inner screen of the folding screen mobile phone is small, Therefore, the floating window of a folding screen mobile phone in the horizontal screen state can also have three states, namely half screen state, bottom state and full screen state, so that the folding screen mobile phone can adjust each floating window displayed in the application split screen according to the user's flipping requirements. Flexible adjustment.
  • each floating window in the folding screen phone when the floating windows displayed in each application split screen of the folding screen phone are in the bottom state, when the folding screen phone receives the user's flip of the screen, for example, the user flips from the vertical screen state of the folding screen phone to the vertical screen state of the folding screen phone.
  • each floating window in the folding screen phone When operating in the horizontal screen state, each floating window in the folding screen phone can be in the bottom state; or, when the floating windows displayed in each application split screen of the folding screen phone are in the full screen state, when the folding screen phone receives
  • each floating window in the folding screen phone when the user flips the screen, for example, when the user flips the folding screen phone from the vertical screen state to the horizontal screen state of the folding screen phone, each floating window in the folding screen phone can be in the full screen state.
  • each floating window in the split screen of the folding screen mobile phone application can be non-modal.
  • FIG. 16 is a schematic diagram of another non-modal interface provided by an embodiment of the present application.
  • the folding screen mobile phone when the folding screen mobile phone receives the user When an operation is triggered in an area other than the floating window 1601 in the window corresponding to the news application (the area where the dotted box 1603 is located as shown in (a) in Figure 16), the folding screen mobile phone can display (b) in Figure 16 In the interface shown in (b) of FIG. 16 , the floating window 1601 in the window corresponding to the news application may be in the bottom state, and the floating window 1602 in the window corresponding to the email application may be in the half-screen state.
  • the floating window 1601 in the window corresponding to the news application may be in the bottom state
  • the floating window 1602 in the window corresponding to the email application may be in the half-screen state.
  • the folding screen mobile phone can display as shown in Figure 16 In the interface shown in (c) of Figure 16, the floating window 1602 in the window corresponding to the email application can be in the bottom state, and the floating window 1601 in the window corresponding to the news application can be in the half state. screen state.
  • each floating window in the application split-screen display interface is non-modal, and the non-modal floating window allows the user to browse and browse areas other than the floating window in each application split-screen window. Trigger to improve user experience.
  • FIG. 17 is a schematic diagram of an interface for adjusting the window size in an application split-screen display interface provided by an embodiment of the present application.
  • the interface may include: a window 1701 (or simply window 1701) corresponding to the news application located on the left side of the screen, a floating window 1704 in the window 1701, The window 1702 (or simply window 1702) corresponding to the email application on the right, the floating window 1705 in the window 1702, and the sliding bar 1703.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, the user taps the sliding bar 1703 and slides to the left (for example, slides to the dotted box). 1706), the folding screen mobile phone can display the interface shown in (b) in Figure 17.
  • the width of the floating window 1709 in the interface shown in (b) of Figure 17 is smaller than the width of the floating window 1704 shown in (a) of Figure 17 .
  • the width of the window 1710 is greater than the width of the floating window 1705 shown in (a) of FIG. 17 .
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, the user taps the sliding bar 1703 and slides to the left (for example, slides to the dotted line
  • the folding screen mobile phone can display an interface as shown in (c) in Figure 17 .
  • the floating ball 1711 can be displayed in the window 1701 of the interface shown in (c) of Figure 17, and the floating window 1712 can be displayed in the window 1702.
  • the floating window 1712 can be displayed centered at the bottom of the window 1702.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, the user taps the sliding bar 1703 and slides to the left (for example, slides to the dotted line
  • the folding screen mobile phone can display an interface as shown in (d) in Figure 17 .
  • the floating window 1713 may be displayed in the center of the window 1702 in the interface shown in (d) of FIG. 17 .
  • FIG. 18 is a schematic diagram of another interface for adjusting the window size in an application split-screen display interface provided by an embodiment of the present application.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, the user touches the sliding bar 1703 and slides to the right (for example, slides to the area where the dotted box 1801 is located).
  • the folding screen mobile phone can display the interface shown in (b) in Figure 18.
  • the interface shown in (b) of Figure 18 may include: a floating ball 1802 displayed in the window 1702, and a floating ball 1711 displayed in the window 1701.
  • the content displayed in the interface shown in (a) in FIG. 18 is consistent with the content displayed in the interface shown in (c) in FIG. 17 , and will not be described again here.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, the user taps the sliding bar 1703 and continues to slide to the right (for example, slides to the dotted line
  • the folding screen mobile phone can display an interface as shown in (d) in Figure 18.
  • the window 1701 in the interface shown in (d) of Figure 18 can be displayed in full screen, and the window 1701 includes a floating ball 1711.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's adjustment of the window size, for example, the user taps the sliding bar 1703 and continues to slide to the left (for example, slides to the dotted line
  • the folding screen mobile phone can display an interface as shown in (c) in Figure 18 .
  • the window 1702 in the interface shown in (c) of Figure 18 can be displayed in full screen, and the window 1702 includes a floating window 1713.
  • FIG. 19 is a schematic interface diagram of another screen switching for a folding screen mobile phone provided by an embodiment of the present application.
  • the folding screen mobile phone When the internal screen of the folding screen mobile phone as shown in (a) of Figure 19 displays window 1901 and window 1902, a floating window 1903 is displayed in window 1901, and a floating window 1904 is displayed in window 1902, when the folding screen mobile phone receives When the user folds the mobile phone screen (or understands that the folding screen angle satisfies 0 degrees to 70 degrees), the folding screen mobile phone can turn off the internal screen display and display the interface shown in (b) in Figure 19 on the external screen. In this interface, window 1905 and window 1906 can be displayed in upper and lower split screens.
  • FIG. 20 is a schematic flowchart of window interaction provided by an embodiment of the present application.
  • the software architecture of the electronic device may include multiple layers, such as an application layer, an application framework layer, etc.; the application layer may include a business presentation module, and the application framework layer may Window managers can be included.
  • the window interaction method based on the parallel horizon function may include the following steps:
  • the translation event may be an event that triggers the display of a floating window corresponding to the translation function of the text to be translated.
  • the user when the user turns on the parallel horizon function of the application in the settings application and opens at least two windows in the application based on the parallel horizon function, for example, when opening the main page and content page of the application, the user can Trigger translation events in any window, such as the main page or the content page.
  • the window manager In response to the user triggering a translation event in any window, the window manager sends a message indicating display of the floating window to the business presentation module.
  • the business presentation module calls the display to center the floating window at the bottom of the screen, and the floating window is in a half-screen state.
  • the floating window is non-modal.
  • the floating window can be displayed centered at the bottom of the screen.
  • the module in the electronic device can display the floating window based on the steps shown in S2004-S2006 below.
  • the window change event may be a sliding event for a sliding bar between two windows in an application using parallel horizons.
  • the window manager In response to the user triggering the window change event, the window manager sends a message indicating display of the floating window to the business presentation module.
  • the window manager updates the floating window and obtains the updated floating window.
  • the updated floating window may be a floating window in a bottom state.
  • the business presentation module calls the display to center the floating window at the bottom of the screen, and the updated floating window is in the bottom state.
  • the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.
  • FIG. 21 is a schematic flowchart of another window interaction provided by an embodiment of the present application.
  • the software architecture of the electronic device may include multiple layers, such as an application layer, an application framework layer, etc.; the application layer may include a business presentation module, and the application framework layer A window manager may be included; the service presentation module may include a first service presentation module for managing floating window A and a second service presentation module for managing floating window B.
  • the window interaction method based on the application split-screen display function may include the following steps:
  • the window manager In response to the user triggering a translation event in window A, the window manager sends a message instructing to display floating window A in window A to the first service presentation module.
  • the first service presentation module calls the display to display floating window A in window A.
  • the window manager In response to the user triggering a translation event in window B, the window manager sends a message instructing to display floating window B in window B to the second service presentation module.
  • the second service presentation module calls the display to display floating window B in window B.
  • the module in the electronic device can split the split-screen window based on the steps shown in S2107-S2110 below. Each floating window in the screen window is displayed.
  • the user triggers a window change event.
  • the window change event may be a sliding event for the sliding bar between the two windows in the application split-screen interface.
  • the window manager updates the display of floating window A in window A and updates the display of floating window B in window B according to the window change.
  • window manager may refer to the description in the corresponding embodiment of FIG. 17 to update the floating window displayed in the window.
  • Window A may be window 1701 in Figure 17
  • window B may be window 1702 in Figure 17.
  • the window manager when the user lightly touches the sliding bar 1703 and slides to the left (for example, sliding to the area where the dotted box 1706 is located), the window manager can refer to Figure 17
  • the interface shown in (b) updates the floating window.
  • the floating ball can be displayed in the application split-screen interface of the electronic device.
  • the window manager can refer to the interface shown in (b) in Figure 18 to update the floating window.
  • the electronic device's application split-screen interface can cancel the display of the content in the right window of the electronic device, and the electronic device can display the content in the left window of the electronic device in full screen.
  • the window manager can refer to the interface shown in (d) in Figure 18 to update the floating window.
  • the application split-screen interface of the electronic device can cancel the display of the content in the left window of the electronic device, and the electronic device can display the right side of the electronic device in full screen the contents of the window.
  • the window manager can refer to the interface shown in (c) in Figure 18 to update the floating window.
  • the window manager can refer to Figure 1703.
  • the interface shown in (c) in 17 updates the floating window.
  • the window manager when the user lightly touches the sliding bar 1703 and slides to the left (for example, sliding to the area where the dotted box 1708 is located), the window manager can refer to Figure 1703.
  • the interface shown in (d) in 17 updates the floating window.
  • the window manager sends a message for instructing to display the updated floating window A in window A to the first service presentation module, and sends a message for instructing to display the updated floating window A in window B to the second service presentation module. Message from window B.
  • the first service presentation module calls the display to display the updated floating window A in window A
  • the second service presentation module calls the display to display the updated floating window B in window B.
  • the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.
  • FIG. 22 is a schematic structural diagram of a window interaction device provided by an embodiment of the present application.
  • the window interaction device 220 can be used in communication equipment, circuits, hardware components or chips.
  • the window interaction device includes: a display unit 2201, a processing unit 2202 and a communication unit 2203.
  • the display unit 2201 is used to support the step of exiting the display executed by the resource allocation method
  • the processing unit 2202 is used to support the step of information processing performed by the window interactive device
  • the communication unit 2203 is used to support the data sending and data receiving executed by the resource allocation method. step.
  • the communication unit 2203 may be an input or output interface, a pin or a circuit, etc.
  • the window interaction device may also include: a storage unit 2204.
  • the processing unit 2202, the communication unit 2203, and the storage unit 2204 are connected through lines.
  • the storage unit 2204 may include one or more memories, which may be devices used to store programs or data in one or more devices or circuits.
  • the storage unit 2204 may exist independently and be connected to the processing unit 2202 of the window interaction device through a communication line.
  • the storage unit 2204 can also be integrated with the processing unit 2202.
  • the storage unit 2204 may store computer execution instructions for the method in the terminal device, so that the processing unit 2202 executes the method in the above embodiment.
  • the storage unit 2204 may be a register, cache, RAM, etc., and the storage unit 2204 may be integrated with the processing unit 2202.
  • the storage unit 2204 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, and the storage unit 2204 may be independent from the processing unit 2202.
  • ROM read-only memory
  • the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired link (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • a wired link e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium can be Any available media that a computer can store or is a data storage device such as a server, data center, or other integrated server that includes one or more available media.
  • available media may include magnetic media (eg, floppy disks, hard disks, or tapes), optical media (eg, Digital versatile disc (digital versatile disc, DVD)), or semiconductor media (for example, solid state disk (solid state disk, SSD)), etc.
  • Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another.
  • the storage media can be any target media that can be accessed by the computer.
  • the computer-readable medium may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer-readable medium may include a magnetic disk memory or other disk storage device.
  • any connection line is also properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • Disk and optical disk include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Reproduce data. Combinations of the above should also be included within the scope of computer-readable media.
  • CD compact disc
  • DVD digital versatile disc
  • Blu-ray disc where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Reproduce data. Combinations of the above should also be included within the scope of computer-readable media.
  • the above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of them should be covered. within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种窗口交互方法和电子设备,应用于电子设备,电子设备包括第一显示屏,方法包括:电子设备利用第一显示屏显示第一界面;响应于对第一窗口或第二窗口的第一操作,电子设备显示第二界面;其中,第二界面中包括第一悬浮窗、第一窗口、第二窗口、以及第一滑动杆;第一悬浮窗的宽度小于第一显示屏的宽度,第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态。这样,使得电子设备可以根据用户针对于显示屏的分屏需求,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。

Description

窗口交互方法和电子设备
本申请要求于2022年1月10日提交中国专利局、申请号为202210023810.3、申请名称为“窗口交互方法及电子设备”的中国专利申请的优先权,以及要求于2022年01月30日提交中国专利局、申请号为202210114778.X、申请名称为“窗口交互方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种窗口交互方法和电子设备。
背景技术
随着互联网的普及和发展,人们对于电子设备的功能需求也越发多样化。例如,为了满足用户对于多个功能的使用需求,较多电子设备可以支持电子设备的悬浮窗的显示。例如,用户可以通过复制待翻译文本触发翻译功能对应的悬浮窗的显示,并且,用户也可以通过该翻译功能对应的悬浮窗查看翻译内容。
然而,当用户对显示界面进行分屏时,则电子设备难以根据用户对于界面的分屏需求,对悬浮窗的显示进行调节,进而影响用户的使用体验。
发明内容
本申请实施例提供一种窗口交互方法和电子设备,使得电子设备可以根据用户针对于显示屏的分屏需求,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
第一方面,本申请实施例提供一种窗口交互方法,应用于电子设备,电子设备包括第一显示屏,方法包括:电子设备利用第一显示屏显示第一界面;其中,第一界面中包括第一窗口、第二窗口、以及用于调整第一窗口的大小以及第二窗口的大小的第一滑动杆;第一窗口中显示的内容以及第二窗口中显示的内容均属于第一应用;响应于对第一窗口或第二窗口的第一操作,电子设备显示第二界面;其中,第二界面中包括第一悬浮窗、第一窗口、第二窗口、以及第一滑动杆;第一悬浮窗的宽度小于第一显示屏的宽度,第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态。这样,使得电子设备可以根据用户针对于显示屏的分屏需求,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
在一种可能的实现方式中,第二界面中还包括第一区域,第一区域为第二界面中除第一悬浮窗以外的区域,方法还包括:响应于对第一区域的第二操作,电子设备显示第三界面;第三界面中包括第二悬浮窗,第二悬浮窗满足第二状态;第二状态与第一状态不同或相同。这样,电子设备可以实现悬浮窗的非模态,增加用户使用悬浮窗的体验。
在一种可能的实现方式中,第二操作包括:在第二界面中将第一滑动杆滑动至第一区域的操作。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种; 第二状态包括底部态。
在一种可能的实现方式中,方法还包括:响应于对电子设备的第三操作,电子设备显示第四界面;其中,第四界面包括第三悬浮窗;第三悬浮窗的宽度小于第一显示屏的高度,第三悬浮窗满足第一状态。这样,电子设备可以实现根据屏幕翻转,对悬浮窗进行翻转,增加用户使用悬浮窗的体验。
在一种可能的实现方式中,当第二界面为电子设备在处于竖屏状态下的界面时,第四界面为电子设备处于横屏状态下的界面。
在一种可能的实现方式中,电子设备还包括第二显示屏,方法还包括:响应于对电子设备的第四操作,电子设备利用第二显示屏显示第五界面;其中,第五界面中包括第四悬浮窗以及第二窗口;第四悬浮窗的宽度与第二显示屏的宽度相同。
在一种可能的实现方式中,响应于对电子设备的第四操作,电子设备利用第二显示屏显示第五界面,包括:响应于对电子设备的第四操作,电子设备获取第一数据;第一数据包括折叠角度数据;折叠角度数据是基于角链传感器检测得到的;在电子设备确定折叠角度数据满足第一预设条件时,电子设备利用第二显示屏显示第五界面。这样,使得电子设备可以根据检测到的折叠角度,对内外显示屏中的悬浮窗进行切换。
在一种可能的实现方式中,电子设备利用第一显示屏显示第一界面之前,方法还包括:在第一应用的预设功能开启的情况,电子设备利用第一显示屏显示第六界面;第六界面中显示的内容属于第一应用;电子设备利用第一显示屏显示第一界面,包括:响应于对第六界面的第五操作,电子设备利用第一显示屏显示第一界面。这样,终端设备可以便捷的开启平行视界。
在一种可能的实现方式中,响应于对第一窗口或第二窗口的第一操作,电子设备显示第二界面,包括:响应于对第一窗口或第二窗口的第一操作,电子设备显示第七界面;第七界面中包括第一文本;响应于对第一文本的操作,电子设备显示第一控件;第一控件中包括复制选项以及翻译选项;响应于对复制选项的操作,电子设备显示悬浮球控件;响应于对悬浮球控件的操作,电子设备显示第二界面。这样,电子设备可以根据用户的复制操作,便捷的开启悬浮窗。
在一种可能的实现方式中,电子设备利用第一显示屏显示第一界面,包括:电子设备利用第一显示屏显示第八界面;第八界面中包括第二文本;响应于对第二文本的操作,电子设备显示第二控件;第二控件中包括复制选项以及翻译选项;响应于对翻译选项的操作,电子设备利用第一显示屏显示第一界面。这样,使得电子设备可以根据用户的翻译操作,便捷的开启悬浮窗。
在一种可能的实现方式中,应用于电子设备,电子设备包括第一显示屏,方法包括:电子设备利用第一显示屏显示第一界面;其中,第一界面中包括第一窗口以及第二窗口,第一窗口中显示的内容属于第一应用,第二窗口中显示的内容属于第二应用;响应于对第一窗口的第一操作,电子设备在第一窗口中显示第一悬浮窗;第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态;响应于对第二窗口的第二操作,电子设备在第二窗口中显示第二悬浮窗;第二悬浮窗为非模态对话框,且第二悬浮窗满足第一状态。这样,使得电子设备可以实现在分屏窗口中对于悬浮窗的灵活显示。
在一种可能的实现方式中,第一窗口中还包括第一区域,第一区域为第一窗口中 除第一悬浮窗以外的区域,方法还包括:响应于对第一区域的第三操作,电子设备显示第三界面;第三界面中包括:第一窗口中的第三悬浮窗,以及第二窗口中的第二悬浮窗;第三悬浮窗满足第二状态;第二状态与第一状态不同或相同。这样,使得分屏窗口中的各悬浮窗均可以实现非模态,增加用户使用悬浮窗的体验。
在一种可能的实现方式中,第二窗口中还包括第二区域,第二区域为第二窗口中除第二悬浮窗以外的区域,方法还包括:响应于对第二区域的第四操作,电子设备显示第四界面;第四界面中包括:第一窗口中的第一悬浮窗,以及第二窗口中的第四悬浮窗;第四悬浮窗满足第二状态;第二状态与第一状态不同或相同。这样,使得分屏窗口中的各悬浮窗均可以实现非模态,增加用户使用悬浮窗的体验。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;第二状态包括底部态。
在一种可能的实现方式中,第一悬浮窗的宽度为第一显示屏的宽度的一半;第二悬浮窗的宽度为第一显示屏的宽度的一半。
在一种可能的实现方式中,方法还包括:响应于对电子设备的第五操作,电子设备显示第五界面;其中,第五界面包括第一窗口中的第五悬浮窗、以及第二窗口中的第六悬浮窗,第五悬浮窗满足第一状态,第六悬浮窗满足第一状态。这样,使得分屏窗口中的悬浮窗可以根据用户的翻转操作灵活显示。
在一种可能的实现方式中,响应于对电子设备的第五操作,电子设备显示第五界面,包括:响应于对电子设备的第五操作,电子设备获取第一数据;第一数据包括角加速度数据;角加速度数据是基于陀螺仪传感器检测得到的;在电子设备确定角加速度数据满足第一预设条件时,电子设备显示第五界面。这样,使得电子设备可以根据检测到的角加速度数据对屏幕进行灵活显示。
在一种可能的实现方式中,第五悬浮窗的宽度为第一显示屏的高度的一半;第六悬浮窗的宽度为第一显示屏的高度的一半。
在一种可能的实现方式中,第一界面中还包括用于调整第一窗口的大小以及第二窗口的大小的第一滑动杆,方法还包括:响应于将第一滑动杆滑动到第三区域的操作,电子设备显示第六界面;其中,第六界面中包括第三窗口中的第七悬浮窗,以及第四窗口中的第八悬浮窗,第三窗口的宽度小于第四窗口的宽度,第七悬浮窗的宽度小于第八悬浮窗的宽度;或者,响应于将第一滑动杆滑动到第四区域的操作,电子设备显示第七界面;其中,第七界面中包括第五窗口中的第一悬浮球控件,以及第六窗口中的第九悬浮窗,第五窗口的宽度小于第六窗口的宽度,第九悬浮窗的宽度小于第六窗口的宽度;或者,响应于将第一滑动杆滑动到第五区域的操作,电子设备显示第八界面;其中,第八界面中包括第八悬浮窗,第八悬浮窗的宽度小于第一显示屏的宽度。
在一种可能的实现方式中,响应于将第一滑动杆滑动到第四区域的操作,电子设备显示第七界面之后,方法还包括:响应于将第一滑动杆滑动到第六区域的操作,电子设备显示第九界面;其中,第九界面中包括第七窗口中的第一悬浮球控件,以及第八窗口中的第二悬浮球控件;第七窗口的宽度大于第八窗口的宽度;或者,响应于将第一滑动杆滑动到第七区域的操作,电子设备显示第十界面;其中,第十界面中包括第九悬浮窗;第九悬浮窗的宽度小于第一显示屏的宽度。这样,使得分屏窗口中的悬 浮窗可以根据用户的操作灵活的显示。
在一种可能的实现方式中,响应于将第一滑动杆滑动到第六区域的操作,电子设备显示第九界面之后,方法还包括:响应于将第一滑动杆滑动到第八区域的操作,电子设备显示第十一界面;其中,第十一界面中包括第二悬浮球控件。这样,使得分屏窗口中的悬浮窗可以根据用户的操作灵活的显示。
在一种可能的实现方式中,电子设备还包括第二显示屏,方法还包括:响应于对电子设备的第六操作,电子设备利用第二显示屏显示第十二界面;其中,第十二界面中包括第九窗口以及第十窗口,第九窗口的宽度与第十窗口的宽度均与第二显示屏的宽度相同。这样,使得电子设备可以根据用户对于折叠屏的折叠,灵活的在多个屏幕中显示悬浮窗。
在一种可能的实现方式中,响应于对电子设备的第六操作,电子设备利用第二显示屏显示第十二界面,包括:响应于对电子设备的第六操作,电子设备获取第二数据;第二数据包括折叠角度数据;折叠角度数据是基于角链传感器检测得到的;在电子设备确定折叠角度数据满足第二预设条件时,电子设备利用第二显示屏显示第十二界面。这样,使得电子设备可以实现根据折叠屏角度的检测,并根据折叠角度确定电子设备的多个显示屏的显示。
在一种可能的实现方式中,应用于电子设备,电子设备包括第一显示屏,方法包括:在第一应用的预设功能未开启的情况下,响应于开启第一应用的操作,电子设备利用第一显示屏显示第一界面;响应于对第一界面的第一操作,电子设备显示第二界面;第二界面中包括第一悬浮窗;第一悬浮窗的宽度小于第一显示屏的宽度;响应于开启第一应用的预设功能,且打开第一应用的操作,电子设备显示第一界面;响应于对第一界面的第一操作,电子设备显示第三界面;第三界面中包括第一窗口、第二窗口、用于调整第一窗口的大小以及第二窗口的大小的第一滑动杆,第二窗口中包括第一悬浮窗对应的第一悬浮球控件,第一窗口中显示的内容以及第二窗口中显示的内容均属于第一应用;响应于对第一悬浮球控件的第二操作,电子设备显示第四界面;第四界面中包括第一悬浮窗、第一窗口、第二窗口、以及第一滑动杆;第一悬浮窗的宽度小于第一显示屏的宽度,第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态。这样,使得电子设备可以实现在使用平行视界的界面中显示悬浮窗。
第二方面,本申请实施例提供一种窗口交互装置,应用于电子设备,电子设备包括第一显示屏,方法包括:显示单元,用于利用第一显示屏显示第一界面;其中,第一界面中包括第一窗口、第二窗口、以及用于调整第一窗口的大小以及第二窗口的大小的第一滑动杆;第一窗口中显示的内容以及第二窗口中显示的内容均属于第一应用;响应于对第一窗口或第二窗口的第一操作,显示单元,还用于显示第二界面;其中,第二界面中包括第一悬浮窗、第一窗口、第二窗口、以及第一滑动杆;第一悬浮窗的宽度小于第一显示屏的宽度,第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态。
在一种可能的实现方式中,第二界面中还包括第一区域,第一区域为第二界面中除第一悬浮窗以外的区域,响应于对第一区域的第二操作,显示单元,还用于显示第三界面;第三界面中包括第二悬浮窗,第二悬浮窗满足第二状态;第二状态与第一状 态不同或相同。
在一种可能的实现方式中,第二操作包括:在第二界面中将第一滑动杆滑动至第一区域的操作。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;第二状态包括底部态。
在一种可能的实现方式中,响应于对电子设备的第三操作,显示单元,用于显示第四界面;其中,第四界面包括第三悬浮窗;第三悬浮窗的宽度小于第一显示屏的高度,第三悬浮窗满足第一状态。
在一种可能的实现方式中,当第二界面为电子设备在处于竖屏状态下的界面时,第四界面为电子设备处于横屏状态下的界面。
在一种可能的实现方式中,电子设备还包括第二显示屏,响应于对电子设备的第四操作,显示单元,用于利用第二显示屏显示第五界面;其中,第五界面中包括第四悬浮窗以及第二窗口;第四悬浮窗的宽度与第二显示屏的宽度相同。
在一种可能的实现方式中,响应于对电子设备的第四操作,处理单元,用于获取第一数据;第一数据包括折叠角度数据;折叠角度数据是基于角链传感器检测得到的;在电子设备确定折叠角度数据满足第一预设条件时,显示单元,用于利用第二显示屏显示第五界面。
在一种可能的实现方式中,在第一应用的预设功能开启的情况,显示单元,用于利用第一显示屏显示第六界面;第六界面中显示的内容属于第一应用;响应于对第六界面的第五操作,显示单元,用于利用第一显示屏显示第一界面。
在一种可能的实现方式中,响应于对第一窗口或第二窗口的第一操作,显示单元,用于显示第七界面;第七界面中包括第一文本;响应于对第一文本的操作,所显示单元,用于显示第一控件;第一控件中包括复制选项以及翻译选项;响应于对复制选项的操作,显示单元,用于显示悬浮球控件;响应于对悬浮球控件的操作,电子设备显示第二界面。
在一种可能的实现方式中,显示单元,用于利用第一显示屏显示第八界面;第八界面中包括第二文本;响应于对第二文本的操作,显示单元,用于显示第二控件;第二控件中包括复制选项以及翻译选项;响应于对翻译选项的操作,显示单元,用于利用第一显示屏显示第一界面。
在一种可能的实现方式中,应用于电子设备,电子设备包括第一显示屏,方法包括显示单元,用于利用第一显示屏显示第一界面;其中,第一界面中包括第一窗口以及第二窗口,第一窗口中显示的内容属于第一应用,第二窗口中显示的内容属于第二应用;响应于对第一窗口的第一操作,显示单元,用于在第一窗口中显示第一悬浮窗;第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态;响应于对第二窗口的第二操作,显示单元,用于在第二窗口中显示第二悬浮窗;第二悬浮窗为非模态对话框,且第二悬浮窗满足第一状态。
在一种可能的实现方式中,第一窗口中还包括第一区域,第一区域为第一窗口中除第一悬浮窗以外的区域,响应于对第一区域的第三操作,显示单元,用于显示第三界面;第三界面中包括:第一窗口中的第三悬浮窗,以及第二窗口中的第二悬浮窗; 第三悬浮窗满足第二状态;第二状态与第一状态不同或相同。
在一种可能的实现方式中,第二窗口中还包括第二区域,第二区域为第二窗口中除第二悬浮窗以外的区域,响应于对第二区域的第四操作,显示单元,用于显示第四界面;第四界面中包括:第一窗口中的第一悬浮窗,以及第二窗口中的第四悬浮窗;第四悬浮窗满足第二状态;第二状态与第一状态不同或相同。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;第二状态包括底部态。
在一种可能的实现方式中,第一悬浮窗的宽度为第一显示屏的宽度的一半;第二悬浮窗的宽度为第一显示屏的宽度的一半。
在一种可能的实现方式中,响应于对电子设备的第五操作,显示单元,用于显示第五界面;其中,第五界面包括第一窗口中的第五悬浮窗、以及第二窗口中的第六悬浮窗,第五悬浮窗满足第一状态,第六悬浮窗满足第一状态。
在一种可能的实现方式中,响应于对电子设备的第五操作,处理单元,用于获取第一数据;第一数据包括角加速度数据;角加速度数据是基于陀螺仪传感器检测得到的;在电子设备确定角加速度数据满足第一预设条件时,显示单元,用于显示第五界面。
在一种可能的实现方式中,第五悬浮窗的宽度为第一显示屏的高度的一半;第六悬浮窗的宽度为第一显示屏的高度的一半。
在一种可能的实现方式中,第一界面中还包括用于调整第一窗口的大小以及第二窗口的大小的第一滑动杆,响应于将第一滑动杆滑动到第三区域的操作,显示单元,用于显示第六界面;其中,第六界面中包括第三窗口中的第七悬浮窗,以及第四窗口中的第八悬浮窗,第三窗口的宽度小于第四窗口的宽度,第七悬浮窗的宽度小于第八悬浮窗的宽度;或者,响应于将第一滑动杆滑动到第四区域的操作,显示单元,用于显示第七界面;其中,第七界面中包括第五窗口中的第一悬浮球控件,以及第六窗口中的第九悬浮窗,第五窗口的宽度小于第六窗口的宽度,第九悬浮窗的宽度小于第六窗口的宽度;或者,响应于将第一滑动杆滑动到第五区域的操作,显示单元,用于显示第八界面;其中,第八界面中包括第八悬浮窗,第八悬浮窗的宽度小于第一显示屏的宽度。
在一种可能的实现方式中,响应于将第一滑动杆滑动到第六区域的操作,显示单元,用于显示第九界面;其中,第九界面中包括第七窗口中的第一悬浮球控件,以及第八窗口中的第二悬浮球控件;第七窗口的宽度大于第八窗口的宽度;或者,响应于将第一滑动杆滑动到第七区域的操作,显示单元,用于显示第十界面;其中,第十界面中包括第九悬浮窗;第九悬浮窗的宽度小于第一显示屏的宽度。
在一种可能的实现方式中,响应于将第一滑动杆滑动到第八区域的操作,显示单元,用于显示第十一界面;其中,第十一界面中包括第二悬浮球控件。
在一种可能的实现方式中,电子设备还包括第二显示屏,响应于对电子设备的第六操作,显示单元,用于利用第二显示屏显示第十二界面;其中,第十二界面中包括第九窗口以及第十窗口,第九窗口的宽度与第十窗口的宽度均与第二显示屏的宽度相同。
在一种可能的实现方式中,响应于对电子设备的第六操作,处理单元,用于获取第二数据;第二数据包括折叠角度数据;折叠角度数据是基于角链传感器检测得到的;在电子设备确定折叠角度数据满足第二预设条件时,显示单元,用于利用第二显示屏显示第十二界面。
在一种可能的实现方式中,应用于电子设备,电子设备包括第一显示屏,方法包括:在第一应用的预设功能未开启的情况下,响应于开启第一应用的操作,显示单元,用于利用第一显示屏显示第一界面;响应于对第一界面的第一操作,显示单元,用于显示第二界面;第二界面中包括第一悬浮窗;第一悬浮窗的宽度小于第一显示屏的宽度;响应于开启第一应用的预设功能,且打开第一应用的操作,显示单元,用于显示第一界面;响应于对第一界面的第一操作,显示单元,用于显示第三界面;第三界面中包括第一窗口、第二窗口、用于调整第一窗口的大小以及第二窗口的大小的第一滑动杆,第二窗口中包括第一悬浮窗对应的第一悬浮球控件,第一窗口中显示的内容以及第二窗口中显示的内容均属于第一应用;响应于对第一悬浮球控件的第二操作,显示单元,用于显示第四界面;第四界面中包括第一悬浮窗、第一窗口、第二窗口、以及第一滑动杆;第一悬浮窗的宽度小于第一显示屏的宽度,第一悬浮窗为非模态对话框,且第一悬浮窗满足第一状态。
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第三方面以及第三方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第三方面以及第三方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第四方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第四方面以及第四方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第四方面以及第四方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的电子设备的软件架构示意图;
图3为本申请实施例提供的一种窗口管理器的结构示意图;
图4为本申请实施例提供的一种折叠屏手机的结构示意图;
图5为本申请实施例提供的一种显示悬浮窗的界面示意图;
图6为本申请实施例提供的另一种平行视界下显示悬浮窗的界面示意图;
图7为本申请实施例提供的一种竖屏状态下的显示悬浮窗的界面示意图;
图8为本申请实施例提供的一种折叠屏手机屏幕翻转的界面示意图;
图9为本申请实施例提供的一种非模态的界面示意图;
图10为本申请实施例提供的一种调整平行视界中的窗口大小的界面示意图;
图11为本申请实施例提供的一种折叠屏手机屏幕切换的界面示意图;
图12为本申请实施例提供的一种应用分屏显示的界面示意图;
图13为本申请实施例提供的一种应用分屏显示打开悬浮窗的界面示意图;
图14为本申请实施例提供的另一种竖屏状态下的显示悬浮窗的界面示意图;
图15为本申请实施例提供的另一种折叠屏手机屏幕翻转的界面示意图;
图16为本申请实施例提供的另一种非模态的界面示意图;
图17为本申请实施例提供的一种调整应用分屏显示界面中的窗口大小的界面示意图;
图18为本申请实施例提供的另一种调整应用分屏显示界面中的窗口大小的界面示意图;
图19为本申请实施例提供的一另种折叠屏手机屏幕切换的界面示意图;
图20为本申请实施例提供的一种窗口交互方法的流程示意图;
图21为本申请实施例提供的另一种窗口交互方法的流程示意图;
图22为本申请实施例提供的一种窗口交互装置的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。
随着电子设备的功能需求的多样化,较多电子设备可以支持平行视界功能或者应用分 屏显示功能。其中,该平行视界功能可以理解为在同一界面的两个窗口中分别显示同一应用的不同内容;该应用分屏显示功能可以理解为在同一界面的两个窗口分别显示不同应用的内容。
通常情况下,电子设备无法支持用户在平行视界(或应用分屏)所对应的界面中开启悬浮窗。另外,电子设备接收到用户由竖屏状态切换到横屏状态的操作时,也无法对平行视界(或应用分屏)所对应的界面中开启的悬浮窗进行自动翻转;并且该悬浮窗为模态,该模态可以理解为在悬浮窗存在的情况下,用户无法触摸或点击悬浮窗以外的区域。
有鉴于此,本申请实施例提供一种窗口交互方法和电子设备,使得电子设备可以根据用户针对于显示屏的分屏需求,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。上述电子设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。电子设备可以为具有窗口显示功能的手机(mobile phone)、折叠屏手机、智能电视、穿戴式设备、平板、带无线收发功能的电脑、虚拟现实(virtual reality,VR)电子设备、增强现实(augmented reality,AR)电子设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对电子设备所采用的具体技术和具体设备形态不做限定。
示例性的,图1为本申请实施例提供的一种电子设备的结构示意图。
如图1所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,角链传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,触摸传感器180K,环境光传感器180L等。
本申请实施例中,角链传感器可以用于检测电子设备的折叠角度,陀螺仪传感器用于检测电子设备的横竖屏翻转状态。
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,处理器110用于执行本申请实施例中的环境光的检测方法。
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用有机发光二极管(organic light-emitting diode,OLED)。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。
示例性的,图2为本申请实施例提供的电子设备的软件架构示意图。
如图2所示,电子设备可以将Android系统分为五层,分别为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Android runtime)和系统库、硬件抽象层(hardware abstract layer,HAL,图中未示出)以及内核层(kernel)。
其中,应用程序层可以包括一系列应用程序包。例如,应用程序层可以包括:设置、日历、地图以及闹钟等应用程序(应用程序可以简称为应用),本申请实施例对此不做任何限制。
本申请实施例中,应用程序层还可以包括情景感知模块、业务逻辑处理模块和业务呈现模块等。情景感知模块、业务逻辑处理模块和业务呈现模块可以是独立的APP,或者可以分别集成在不同的APP中,或者可以集成在同一个APP中,本申请不做限定。
其中,情境感知模块,常驻运行或以低功耗形式运行,具有感知外部事实或者环境的能力。情境感知模块可以通过API(应用程序接口)从应用程序层的其他应用程序或应用程序框架层或系统层或内核层来检测相关事件和获取事件的状态,比如检测蓝牙连接、网络连接、监测用户短信、定制定时器等。在本申请实施例中,情境感知模块主要作用是监听剪贴板是否有复制事件,当监听到剪贴板有复制事件,将复制事件通知给业务逻辑处理模块。情境感知模块还可以用于获取剪切板中的剪切内容的来源应用(APP),即应用包名。也就是说,剪切板内容通过情境感知模块识别该剪切的内容是从某个具体的应用中复制的。另外,情境感知模块还可以检测是否有退出当前页面的操作,当检测到退出当前页面的操作,通知业务逻辑处理模块。
业务逻辑处理模块(如:计算引擎)具有业务逻辑处理能力,用于实现各种悬浮球或悬浮窗的展示,消失的逻辑。例如,业务逻辑处理模块接收到用户触发的复制事件及情境感知模块发送的剪切板内容,判断是否满足翻译条件,从而判断是否显示悬浮球。业务逻辑处理模块还可以根据用户触发的点击悬浮球事件以及从第三方服务器获取的翻译结果内容,判断是否显示悬浮窗并将翻译结果显示在悬浮窗内。另外,业务逻辑处理模块还可以用于根据用户触发的悬浮球或悬浮窗消失的事件,判断是否将电子设备上的悬浮球或悬 浮窗展示或者消失。
此外,业务逻辑处理模块还可以识别复制文本或者OCR技术提取的文本。例如可以识别出文本为日程、待分享链接、淘宝口令、网址等类型中的至少一种。又例如还可以识别出文本的语种。
业务呈现模块(如:YOYO建议),用于将悬浮球或悬浮窗显示或者消失在手机的屏幕上。例如,业务呈现模块接收到业务逻辑处理模块发送的显示悬浮球或悬浮窗的命令,通知窗口管理器将该悬浮球或悬浮窗显示在电子设备上。同时,业务呈现模块还可以在悬浮窗内呈现用户复制的文本及其对应的翻译结果。另外,业务呈现模块还可以用户根据用户触发的悬浮球或悬浮窗消失的事件,通知窗口管理器将电子设备上的悬浮球或悬浮窗展示或者消失。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等,活动管理器,剪贴板管理器等,本申请实施例对此不做任何限制。
窗口管理器用于管理窗口程序,窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
剪贴板管理器用于对剪贴板进行管理。剪贴板是用于临时存放交换信息的临时存储区域。
活动管理器用于管理各个应用程序的生命周期以及导航回退功能,负责Android的主线程创建,各个应用程序的生命周期的维护。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
如图2所示,系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
如图2所示,内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
示例性的,图3为本申请实施例提供的一种窗口管理器的结构示意图。
如图3所示,窗口管理器中可以包括:应用窗口,子窗口(未示出)及系统窗口。
应用窗口对应于某个应用的应用窗口,例如某个阅读应用的应用窗口,用于显示阅读应用内的内容,又例如翻译应用的应用窗口,用于显示翻译应用内的内容,又例如备忘录应用的应用窗口,用于显示备忘录应用内的内容。每个应用的界面由一个个activity组成, 而activity又由view组成,view是窗口的存在形式,窗口是view的载体。当启动activity时,通知应用进程,任何activity都隶属于应用进程。也就是说,例如阅读应用对应一个activity,备忘录应用由于与阅读应用是不同的应用,因而对应另一个activity。所有activity默认的窗口类型是基窗口(TYPE_BASE_APPLICATION),即所有其他类型的应用窗口将出现在基窗口上层。
子窗口依附于父窗口,即不能独立存在,需要依赖一个应用,如应用输入法窗口、应用提示框窗口等。当父窗口不可见时,子窗口也不可见。
系统窗口与应用窗口不同,不需要对应Activity。与子窗口不同,不需要有父窗口。系统窗口不属于任何一个应用,由系统来创建,只属于系统本身,往往需要声明权限才能创建,例如关机对话框窗口,状态栏窗口、搜索条窗口、输入法窗口、警告对话框、系统音量条等。
需要说明的是,系统窗口的层级一般高于应用窗口及子窗口。
继续结合图3所示,本申请的实施例中,系统窗口中设置有悬浮球及悬浮窗。由上述分析可知,悬浮球及悬浮窗为系统窗口,无法设置于应用窗口中。
悬浮窗及悬浮球的本质是将一个view交个窗口管理器管理,由于安卓底层的系统限制,应用窗口z轴范围是1~99,子窗口的范围是1001~1999,系统窗口是(2000~2999),因而,悬浮窗及悬浮球只能在系统窗口范围中实现,如果要弹出自定义系统级窗口需要动态申请权限。Z轴是安卓窗口的层级的概念,Z轴越大的窗口越居于顶层。
进一步地,由于应用程序中每个应用的界面由各activity组成且任何activity都隶属于应用进程,因而在系统窗口设置的悬浮球及悬浮窗不具备activity的功能。为了获得悬浮球及悬浮窗可以获得类似于应用窗口内的activity的效果,即显示内容及基于用户在悬浮球及悬浮窗滑动的操作,需要额外在系统窗口内部设置滑动操作、滑动冲突等,以及根据用户的点击等操作,判断响应窗口的焦点等。具体根据以下内容的表述展开而更加清晰。
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。
本申请实施例中,以电子设备为折叠屏手机为例进行示例说明,该示例并不构成对本申请实施例的限定。示例性的,图4为本申请实施例提供的一种折叠屏手机的结构示意图。
如图4所示,折叠屏手机包括内屏以及外屏,当折叠屏手机处于折叠状态(或理解为折叠角度满足0度-70度之间等)时,折叠屏手机可以利用外屏显示包括悬浮窗的界面,或者当折叠屏手机处于展开状态(或理解为折叠角度满足70度-180度之间等)时,折叠屏手机可以利用内屏显示包括悬浮窗的界面。其中,折叠屏手机处于折叠状态或者处于展开状态时的折叠角度仅作为一种示例,并不能够成对本申请实施例的限定。
可以理解的是,本申请实施例中将以折叠屏手机的内屏的显示为例,对窗口交互方法进行示例说明,该示例并不构成对本申请实施例的限定。
可以理解的是,本申请实施例中将以在平行视界中进行悬浮窗显示(或称为场景一,如图5-图9对应的实施例)以及在应用分屏中进行悬浮窗显示(或称为场景二,如图10- 图12对应的实施例)为例,分别对窗口交互方法的具体实现进行示例说明。
场景一:折叠屏手机在平行视界中进行悬浮窗显示。
在场景一中,折叠屏手机可以支持两种平行视界功能中的悬浮窗显示:方法1,折叠屏手机支持在应用的平行视界对应的界面中触发悬浮窗;或者,方法2,折叠屏手机支持触发悬浮窗后开启应用的平行视界。
方法1:折叠屏手机支持在应用的平行视界的界面中触发悬浮窗。
本申请实施例中,折叠屏手机可以利用平行视界功能显示应用,并基于用户的操作使得折叠屏手机可以在平行视界对应的界面中显示悬浮窗。
可以理解的是,在折叠屏手机的设置界面中可以设置有例如“平行视界”的选项开关,在用户根据需求开启某一应用,例如新闻应用所对应的“平行视界”选项的情况下,用户则可以在该新闻应用中同时查看两个页面。
在折叠屏手机的设置界面中可以设置有例如“复制触发翻译”的选项开关,在用户选择开启该复制触发翻译的功能的情况下,当用户复制非系统默认语言的文字时,电子设备可以触发翻译功能,显示翻译功能对应的悬浮球;进一步的,当用户触发该悬浮球时,可以显示翻译结果。
示例性的,图5为本申请实施例提供的一种平行视界下显示悬浮窗的界面示意图。在图5对应的实施例中,以在新闻应用中开启悬浮窗为例进行示例说明。
在开启新闻应用对应的“平行视界”功能的情况下,当折叠屏手机接收到用户打开新闻应用的操作时,折叠屏手机可以显示图5中的(a)所示的界面,该界面可以全屏显示新闻应用的主页面。
在如图5中的(a)所示的界面中,当折叠屏手机接收到用户触发任一新闻的操作时,折叠屏手机可以显示图5中的(b)所示的界面。该图5中的(b)所示的界面中可以左右分屏显示新闻应用的主页面501、以及新闻应用的内容页面502。可以理解的是,该图5中的(b)所示的界面可以称为应用的平行视界对应的界面。
在如图5中的(b)所示的显示平行视界对应的界面的场景下,当折叠屏手机接收到用户在内容页面502选中“patent”单词的操作时,折叠屏手机可以显示如图5中的(c)所示的界面。该图5中的(c)所示的界面中可以包括选项栏503,该选项栏503中可以包括如复制、以及翻译等操作选项。
在如图5中的(c)所示的界面中,当折叠屏手机接收到用户触发该“patent”单词对应的选项栏503中的“复制”选项的操作时,折叠屏手机可以识别用户意图,并显示如图5中的(d)所示的界面。如图5中的(d)所示的界面,该界面中可以包括悬浮球标识504,该悬浮球标识504可以用于指示折叠屏手机正在识别用户的意图,且折叠屏手机识别到的用户的意图可以为翻译。可以理解的是,在折叠屏手机进行识别的过程中,无需用户的操作,例如无需用户点击如图5(d)中页面的任何内容,便可以识别到用户的意图。
折叠屏手机可以在识别到用户的意图为翻译“patent”单词时,显示如图5中的(e)所示的界面,该界面中可以包括:悬浮球505,该悬浮球505用于向用户提供显示翻译结果的入口。
在如图5中的(e)所示的界面中,当折叠屏手机接收到用户触发该悬浮球505的操作 时,折叠屏手机可以显示如图5中的(f)所示的界面。如图5中的(f)所示的界面中,该界面中可以显示悬浮窗506,并在悬浮窗506中展示“patent”的翻译结果。悬浮窗506显示的翻译结果包括用户复制的待查询的英文单词“patent”,以及该单词的中文释义的翻译结果,即“专利”。悬浮窗506中显示的内容还包括:用于语音朗读的控件、用于复制翻译结果的控件、用于切换翻译语种的控件等。
可以理解的是,该悬浮窗506可以居中显示在折叠屏手机的内屏底部,且悬浮窗506距离内屏的左侧以及右侧各留有一定距离。该悬浮窗506为悬浮窗的初始状态,即由用户点击悬浮球505后显示的默认形态为半屏态。示例性的,由于悬浮窗506的显示,则可以取消显示悬浮球505,以达到更好的用户体验。
可能的实现方式中,折叠屏手机除了可以基于上述图5中的(a)-图5中的(f)所示的界面,开启悬浮窗506外,折叠屏手机也可以基于下述操作便捷的开启悬浮窗。
在如图5中的(c)所示的界面中,当折叠屏手机接收到用户触发该“patent”单词对应的选项栏503中的“翻译”选项的操作时,折叠屏手机显示图5中的(f)所示的界面,例如折叠屏手机可以调出悬浮窗506。
可以理解的是,当用户在应用的平行视界界面中开启悬浮窗时,悬浮窗可以居中显示在屏幕底部。
方法2:折叠屏手机支持触发悬浮窗后开启应用的平行视界。
本申请实施例中,用户可以基于图6对应的实施例,在未开启应用的平行视界的情况下,打开至应用的内容页面,并在内容页面中触发悬浮窗,进一步用户可以从设置中开启应用的平行视界,并打开该应用的主页面以及内容页面,使得折叠屏手机可以左右分屏显示主页面以及内容页面,且该内容页面中可以包括之前触发的悬浮窗所对应的悬浮球,折叠屏手机可以基于用户针对悬浮球的触发显示悬浮窗。
示例性的,图6为本申请实施例提供的另一种平行视界下显示悬浮窗的界面示意图。在图6对应的实施例中,以在新闻应用中开启悬浮窗为例进行示例说明。
在未开启新闻应用对应的“平行视界”功能的情况下,当折叠屏手机接收到用户打开新闻应用的操作时,折叠屏手机可以显示图6中的(a)所示的界面,该界面中可以全屏显示新闻应用的主页面。
在如图6中的(a)所示的界面中,当折叠屏手机接收到用户触发任一新闻的操作时,折叠屏手机可以显示图6中的(b)所示的界面,该界面中可以全屏显示新闻应用的内容页面。
进一步的,在如图6中的(b)所示的界面中,当折叠屏手机接收到用户触发该“patent”单词对应的悬浮窗时,该界面中还可以包括悬浮窗601。可以理解的是,该悬浮窗601可以居中显示在折叠屏手机的内屏底部,且悬浮窗601距离内屏的左侧以及右侧各留有一定距离。其中,图6中的(b)所示的界面中触发悬浮窗显示的方法可以参见图5中的(c)-图5中的(f)所示的界面中的描述,在此不再赘述。
在折叠屏手机显示如图6中的(b)所示的悬浮窗601的情况下,当折叠屏手机接收到用户从后台打开设置应用,在设置应用中开启该新闻应用对应的平行视界功能的操作,并且接收到用户重新打开新闻应用的操作时,折叠屏手机可以显示图6中的(c)所示的界 面,该图6中的(c)所示的界面中可以全屏显示新闻应用的主页面。
在如图6中的(c)所示的界面中,当折叠屏手机接收到用户触发任一新闻的操作时,折叠屏手机可以显示图6中的(d)所示的界面。该图6中的(d)所示的界面中可以左右分屏显示新闻应用的主页面602、以及新闻应用的内容页面603,该内容页面603中可以包括悬浮球604。其中,该悬浮球604可以为开启新闻应用的平行视界前,新闻应用的内容页面中显示的悬浮窗的另一种显示形态,如悬浮球604可以为图6中的(b)所示的悬浮窗601的另一种显示形态。
在如图6中的(d)所示的界面中,当折叠屏手机接收到用户触发悬浮球604的操作时,折叠屏手机可以显示图6中的(e)所示的界面,该图6中的(e)所示的界面中包括悬浮窗605。
可以理解的是,该悬浮窗605可以居中显示在折叠屏手机的内屏底部,且悬浮窗605距离内屏的左侧以及右侧各留有一定距离。
可能的实现方式中,在图5或图6对应的实施例的情况下,折叠屏手机可以根据用户对于悬浮窗的操作呈现出三种悬浮窗状态。示例性的,图7为本申请实施例提供的一种竖屏状态下的显示悬浮窗的界面示意图。
如图7中的(a)所示的界面,该界面中可以包括折叠屏手机呈竖屏状态时,在使用平行视界的应用中显示的处于半屏态的悬浮窗701。其中,处于半屏态的悬浮窗占据当前应用的屏幕约一半左右的大小,显示部分翻译结果内容。半屏态的悬浮窗也可以示例性的作为默认的悬浮窗形态,即当用户复制文本后显示的第一个悬浮窗。
示例性的,在如图7中的(a)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗701并向下滑动的操作时,折叠屏手机可以显示如图7中的(b)所示的界面。
如图7中的(b)所示的界面,该界面中可以包括折叠屏手机呈竖屏状态时,在使用平行视界的应用中显示的处于底部态的悬浮窗702。其中,处于底部态的悬浮窗居中显示在当前应用的屏幕底部,不显示任何翻译结果内容,有利于用户继续访问当前应用内的内容,以提高用户体验。
示例性的,在如图7中的(b)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗702向上滑动,且滑动到屏幕上沿的操作时,折叠屏手机可以显示如图7中的(c)所示的界面。
如图7中的(c)所示的界面,该界面中可以包括折叠屏手机呈竖屏状态时,在使用平行视界的应用中显示的处于全屏态的悬浮窗703。其中,处于全屏态的悬浮窗可以示例性的占据整个当前应用的屏幕的中间,其展开基于用户的拖动操作而展开,用于显示比半屏态悬浮窗更多的翻译结果内容,以提高用户体验。
可以理解的是,折叠屏手机也可以基于其他用户操作,在上述图7中的(a)所示的界面、图7中的(b)所示的界面、以及图7中的(c)所示的界面中进行切换,本申请实施例中对此不做具体限定。
可以理解的是,上述图7中的(a)所示的界面、图7中的(b)所示的界面、以及图7中的(c)所示的界面中显示的悬浮窗均可以居中显示在屏幕的底部。
基于图7对应的实施例,使得悬浮窗可以根据用户的不同操作,展示不同的形态。这 样,满足了用户对于使用平行视界的应用中显示的悬浮窗的不同需求,提高了用户使用悬浮窗功能的体验感。
可能的实现方式中,使用平行视界的应用中显示的悬浮窗可以根据用户的翻转需求灵活调整,进而提高用户使用折叠屏手机中的悬浮窗功能的体验感。具体的,折叠屏手机处于竖屏状态下,当用户在折叠屏手机使用平行视界的应用中显示的悬浮窗处于半屏态的情况下翻转屏幕时,折叠屏手机中的该悬浮窗可以处于半屏态(如图8对应的实施例)。
示例性的,图8为本申请实施例提供的一种折叠屏手机屏幕翻转的界面示意图。在如图8中的(a)所示,折叠屏手机使用平行视界的应用中显示的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机可以显示如图8中的(b)所示的界面,该图8中的(b)所示的界面中,折叠屏手机中显示的悬浮窗可以处于半屏态。
可以理解的是,由于处于竖屏状态的折叠屏手机的悬浮窗具有三种状态,即半屏态、底部态以及全屏态,且折叠屏手机的内屏的宽度以及高度差值较小,因此处于横屏状态的折叠屏手机的悬浮窗也可以具有三种状态,即半屏态、底部态以及全屏态,使得折叠屏手机可以根据用户翻转需求对使用平行视界的应用中显示的悬浮窗进行灵活调整。
具体的,在折叠屏手机使用平行视界的应用中显示的悬浮窗处于底部态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机中的该悬浮窗可以处于底部态;或者,在折叠屏手机使用平行视界的应用中显示的悬浮窗处于全屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机中的该悬浮窗可以处于全屏态。
可能的实现方式中,折叠屏手机使用平行视界的应用中显示的悬浮窗可以满足非模态(或称为非模态对话框)。示例性的,图9为本申请实施例提供的一种非模态的界面示意图。该非模态可以理解为在悬浮窗存在的情况下,用户可以触摸或点击悬浮窗以外的区域。
在如图9中的(a)所示的折叠屏手机使用平行视界的应用中显示的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户触发悬浮窗以外的区域(如图9中的(a)所示的虚线框所在的区域)的操作时,折叠屏手机可以显示如图9中的(b)所示的界面,该图9中的(b)所示的界面中的悬浮窗可以处于底部态。
可以理解的是,非模态的悬浮窗使得用户可以实现在折叠屏手机不关闭悬浮窗的情况下,对除悬浮窗以外区域的浏览以及触发,提升用户的使用体验。
当非模态对话框显示时,允许转而执行程序中其他任务,而不用关闭这个对话框。此时,悬浮窗的窗口属性被设置为FLAG_NOT_TOUCH_MODAL,因而在此模式下,系统会将当前窗口区域以外的触摸/点击事件传递给底层的窗口,当前窗口区域以内的单击事件则当前窗口处理。
具体而言,在悬浮窗处于半屏态及全屏态时,将悬浮窗的窗口属性设置为FLAG_NOT_TOUCH_MODAL用以控制焦点事件处理;在悬浮窗处于底部态时,将悬浮 窗的窗口属性设置为FLAG_NOT_FOCUSABLE用以把焦点事件交给当前应用的原文处理,当前应用即本申请实施方式中当前用户正在使用的阅读应用。
FLAG_NOT_FOCUSABLE:表示当前窗口不需要获取焦点,也不需要接收各种输入事件,此标记会同时启用FLAG_NOT_TOUCH_MODAL,最终事件会直接传递给下层的具体焦点的窗口。
FLAG_NOT_TOUCH_MODAL:表示在此模式下,系统会将当前窗口区域以外的触摸/点击事件传递给底层的窗口,当前窗口区域以内的单击事件则当前窗口处理。这个标记很重要,一般来说都需要开启此标记,否则其他窗口将无法收到触摸/点击事件。
可能的实现方式中,当折叠屏手机接收到用户调整平行视界中的窗口大小的操作时,折叠屏手机使用平行视界的应用中显示的悬浮窗可以保持居中。示例性的,图10为本申请实施例提供的一种调整平行视界中的窗口大小的界面示意图。
在如图10中的(a)所示的界面中,该界面中可以包括处于:左右分屏显示的主页面1001(或称窗口1001)以及内容页面1002(或称窗口1002),该主页面1001以及内容页面1002的中间可以设置有用于调整窗口大小的滑动杆1003,该界面中还可以包括居中显示在折叠屏的内屏底部的悬浮窗1004。
在如图10中的(a)所示的界面中,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1003并向左滑动的操作时,折叠屏手机可以显示如图10中的(b)所示的界面。
可以理解的是,该图10中的(b)所示的界面中的主页面1005的面积(或宽度),小于图10中的(a)所示的界面中的主页面1001的面积(或宽度);该图10中的(b)所示的界面中的内容页面1006的面积(或宽度),大于图10中的(a)所示的界面中的内容页面1002的面积(或宽度)。如图10中的(b)所示的界面中的折叠屏1007处于底部态。
可以理解的是,在折叠屏手机使用平行视界的应用中显示的悬浮窗的情况下,用户调整平行视界中的窗口的大小,将不会对悬浮窗的位置带来影响。
可能的实现方式中,在折叠屏手机的内屏使用平行视界并显示悬浮窗的情况下,当折叠屏手机接收到用户折叠屏幕,例如由折叠屏手机的内屏切换到折叠屏手机的外屏的操作时,折叠屏手机可以显示平行视界中的右侧窗口。示例性的,图11为本申请实施例提供的一种折叠屏手机屏幕切换的界面示意图。
在如图11中的(a)所示的折叠屏手机的内屏显示窗口1101、窗口1102以及悬浮窗1103的情况下,当折叠屏手机接收到用户折叠手机屏幕(或理解为折叠屏角度满足0度-70度)的操作时,折叠屏手机可以关闭内屏显示,并在外屏中显示如图11中的(b)所示的界面,该界面中可以显示折叠屏手机内屏的窗口1102中的内容,以及悬浮窗1104。
可以理解的是,图11中的(a)所示的悬浮窗1103处于半屏态,且悬浮窗1103居中显示在内屏的底部,悬浮窗1104的宽度小于内屏的宽度;图11中的(b)所示的悬浮窗也处于半屏态,且悬浮窗1104显示在内屏的底部,悬浮窗1104的宽度等于外屏的宽度。可见,折叠屏手机在折叠过程中悬浮窗的状态,例如悬浮窗的半屏态不发生改变。
场景二:折叠屏手机在应用分屏显示界面中进行悬浮窗显示。
在场景二中,折叠屏手机可以基于图12对应的实施例开启应用分屏,并基于图13对应的实施例分别开启不同应用中的悬浮窗。
示例性的,图12为本申请实施例提供的一种应用分屏显示的界面示意图。
折叠屏手机接收到用户打开新闻应用的操作时,折叠屏手机可以显示图12中的(a)所示的界面,该界面可以全屏显示新闻应用的主页面。
在如图12中的(a)所示的界面中,当折叠屏手机接收到用户沿右侧屏幕边缘向内滑动的操作时,折叠屏手机可以显示如图12中的(b)所示的界面,该图12中的(b)所示的界面中可以包括智慧多窗(或称停靠栏(dock)栏)1201,该智慧多窗1201中可以包括:电子邮件应用对应的控件1202、备忘录应用对应的控件、视频应用对应的控件、图库应用对应的控件、以及用于在智慧多窗中增加或删减应用的控件。
在如图12中的(b)所示的界面中,当折叠屏手机接收到用户轻触该智慧多窗1201中的电子邮件应用对应的控件1202的操作,并继续拖拽该电子邮件应用对应的控件1202至屏幕右侧区域的操作时,折叠屏手机可以短暂显示图12中的(c)所示的界面,进而跳转至如图12中的(d)所示的界面。其中,图12中的(c)所示的界面中可以显示左右分屏显示新闻应用的图标、以及电子邮件的图标;该图12中的(d)所示的界面中可以左右分屏显示新闻应用对应的窗口、以及电子邮件应用对应的窗口。
进一步的,在开启应用分屏显示的情况下,折叠屏手机可以基于图13对应的实施例分别开启不同应用中的悬浮窗。示例性的,图13为本申请实施例提供的一种应用分屏显示打开悬浮窗的界面示意图。
在如图13中的(a)所示的开启应用分屏显示的情况下,当折叠屏手机接收到用户在新闻应用对应的窗口中触发该“patent”单词对应的选项栏中的“翻译”选项的操作时,折叠屏手机可以显示图13中的(b)所示的界面,该图13中的(b)所示的界面中的可以显示悬浮窗1301,该悬浮窗1301可以显示在新闻应用对应的窗口的底端,且该悬浮窗1301的宽度与新闻应用的对应的窗口的宽度一致。
可以理解的是,由于此时用户还没有在电子邮件应用对应的窗口中触发悬浮窗,因此该邮件应用对应的悬浮窗中可以不显示悬浮窗。
类似的,在如图13中的(c)所示的新闻应用对应的窗口中显示悬浮窗1301的情况下,当折叠屏手机接收到用户在电子邮件应用对应的窗口中触发“hello”单词对应的选项栏中的“翻译”选项的操作时,折叠屏手机可以显示图13中的(d)所示的界面,该图13中的(d)所示的界面中的可以显示悬浮窗1301以及悬浮窗1302,该悬浮窗1302可以显示在电子邮件应用对应的窗口的底端,且该悬浮窗1302的宽度与新闻应用的对应的窗口的宽度一致。
可以理解的是,在默认开启悬浮窗时,各窗口中的悬浮窗均满足半屏态。
可以理解的是,当用户在应用分屏显示的各窗口中分别开启悬浮窗时,该悬浮窗可以分别显示在各窗口的底部,且悬浮窗的宽度与应用分屏所在的窗口的宽度一致。
可能的实现方式中,在图14对应的实施例的情况下,折叠屏手机可以根据用户对于任一窗口中的悬浮窗的操作,使得任一窗口中均可以呈现出三种悬浮窗状态。
示例性的,图14为本申请实施例提供的另一种竖屏状态下的显示悬浮窗的界面示意图。在图14对应的实施例中,以在折叠屏手机的左侧窗口1401中显示悬浮窗的三种状态为例进行示例说明,折叠屏手机的右侧窗口1402中也可以显示悬浮窗的三种状态,后文将不再赘述。
如图14中的(a)所示的界面,该界面中可以包括折叠屏手机呈竖屏状态时,在应用分屏显示的界面中可以分别显示的处于半屏态的悬浮窗,例如窗口1401中显示的处于半屏态的悬浮窗1403,窗口1402中显示的处于半屏态的悬浮窗1404。其中,任一处于半屏态的悬浮窗占据当前分屏应用所在窗口的约一半左右的大小,显示部分翻译结果内容。半屏态的悬浮窗也可以示例性的作为默认的悬浮窗形态,即当用户复制文本后显示的第一个悬浮窗。
示例性的,在如图14中的(a)所示的界面中,当折叠屏手机接收到用户在窗口1401中轻触悬浮窗并向下滑动的操作时,折叠屏手机可以显示如图14中的(b)所示的界面。
如图14中的(b)所示的界面,该界面可以包括折叠屏手机呈竖屏状态时,窗口1401中显示的处于底部态的悬浮窗。此时,由于用户未对窗口1402中的悬浮窗进行触发,因此窗口1402中的悬浮窗可以不发生变化。其中,处于底部态的悬浮窗位于当前分屏应用所在窗口的底部,不显示任何翻译结果内容,有利于用户继续访问当前应用内的内容,以提高用户体验。
示例性的,在如图14中的(b)所示的界面中,当折叠屏手机接收到用户在窗口1401中轻触悬浮窗向上滑动,且滑动到竖屏状态的屏幕上沿的操作时,折叠屏手机可以显示如图14中的(c)所示的界面。
如图14中的(c)所示的界面,该界面中可以包括折叠屏手机呈竖屏状态时,窗口1401中显示的处于全屏态的悬浮窗。此时,由于用户未对窗口1402中的悬浮窗进行触发,因此窗口1402中的悬浮窗可以不发生变化。其中,处于全屏态的悬浮窗可以显示在当前分屏应用所在窗口中,其展开基于用户的拖动操作而展开,用于显示比半屏态悬浮窗更多的翻译结果内容,以提高用户体验。
可以理解的是,折叠屏手机也可以基于其他用户操作,在上述图14中的(a)所示的界面、图14中的(b)所示的界面、以及图14中的(c)所示的界面中进行切换,本申请实施例中对此不做具体限定。
可以理解的是,上述图14中的(a)所示的界面、图14中的(b)所示的界面、以及图14中的(c)所示的界面中显示的各悬浮窗均可以显示在分屏应用所在窗口的底部,且悬浮窗的宽度与分屏应用所在窗口的宽度一致。
基于图14对应的实施例,使得悬浮窗可以根据用户的不同操作,展示不同的形态。这样,满足了用户对于应用分屏显示界面中的各悬浮窗的不同需求,提高了用户使用悬浮窗功能的体验感。
可能的实现方式中,应用分屏显示的界面中的各悬浮窗可以根据用户的翻转需求灵活调整,进而提高用户使用折叠屏手机中的悬浮窗功能的体验感。具体的,折叠屏手机处于竖屏状态下,当用户在折叠屏手机中各应用分屏中的悬浮窗均处于半屏态的情况下翻转屏幕时,折叠屏手机中的各悬浮窗均可以处于半屏态(如图15对应的实施例)。
示例性的,图15为本申请实施例提供的另一种折叠屏手机屏幕翻转的界面示意图。在如图15中的(a)所示,折叠屏手机各应用分屏中的悬浮窗均处于半屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机可以显示如图15中的(b)所示的界面,该图15中的(b)所示的界面中,折叠屏手机中显示的各悬浮窗均可以处于半屏态。
可以理解的是,由于处于竖屏状态的折叠屏手机中的悬浮窗具有三种状态,即半屏态、底部态以及全屏态,且折叠屏手机的内屏的宽度以及高度差值较小,因此处于横屏状态的折叠屏手机的悬浮窗也可以具有三种状态,即半屏态、底部态以及全屏态,使得折叠屏手机可以根据用户翻转需求对应用分屏中显示的各悬浮窗进行灵活调整。
具体的,在折叠屏手机各应用分屏中显示的悬浮窗均处于底部态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机中的各悬浮窗均可以处于底部态;或者,在折叠屏手机各应用分屏中显示的悬浮窗均处于全屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机中的各悬浮窗均可以处于全屏态。
可能的实现方式中,折叠屏手机应用分屏中的各悬浮窗均可以满足非模态。示例性的,图16为本申请实施例提供的另一种非模态的界面示意图。
在如图16中的(a)所示的折叠屏手机各应用分屏中显示的悬浮窗(如悬浮窗1601以及悬浮窗1602)均处于半屏态的情况下,当折叠屏手机接收到用户触发新闻应用对应的窗口中的悬浮窗1601以外的区域(如图16中的(a)所示的虚线框1603所在的区域)的操作时,折叠屏手机可以显示如图16中的(b)所示的界面,该图16中的(b)所示的界面中新闻应用对应的窗口中的悬浮窗1601可以处于底部态,电子邮件应用对应的窗口中的悬浮窗1602可以处于半屏态。
或者,在如图16中的(a)所示的折叠屏手机各应用分屏中显示的悬浮窗(如悬浮窗1601以及悬浮窗1602)均处于半屏态的情况下,当折叠屏手机接收到用户触发电子邮件应用对应的窗口中的悬浮窗1602以外的区域(如图16中的(a)所示的虚线框1604所在的区域)的操作时,折叠屏手机可以显示如图16中的(c)所示的界面,该图16中的(c)所示的界面中电子邮件应用对应的窗口中的悬浮窗1602可以处于底部态,新闻应用对应的窗口中的悬浮窗1601可以处于半屏态。
可以理解的是,应用分屏显示界面中的各悬浮窗均满足非模态,且非模态的悬浮窗使得用户可以实现分别在各应用分屏窗口中,对除悬浮窗以外区域的浏览以及触发,提升用户的使用体验。
可能的实现方式中,当折叠屏手机接收到用户调整应用分屏显示界面中的窗口大小的操作时,各窗口中的悬浮窗可以根据用户操作进行适应调整。示例性的,图17为本申请实施例提供的一种调整应用分屏显示界面中的窗口大小的界面示意图。
在如图17中的(a)所示的界面中,该界面中可以包括:位于屏幕左侧的新闻应用对应的窗口1701(或简称窗口1701)、该窗口1701中的悬浮窗1704、位于屏幕右侧的电子 邮件应用对应的窗口1702(或简称窗口1702)、该窗口1702中的悬浮窗1705、以及滑动杆1703。
一种实现中,在如图17中的(a)所示的界面中,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1703并向左滑动(例如滑动到虚线框1706所在的区域)的操作时,折叠屏手机可以显示如图17中的(b)所示的界面。该图17中的(b)所示的界面中的悬浮窗1709的宽度小于图17中的(a)所示的悬浮窗1704的宽度,该图17中的(b)所示的界面中悬浮窗1710的宽度大于图17中的(a)所示的悬浮窗1705的宽度。
可以理解的是,当用户在如图17中的(a)所示的界面中,轻微滑动该滑动杆1703进而改变左右两个分屏窗口的宽度时,由于两个分屏窗口的宽度变化较小,使得该两个分屏窗口中的各悬浮窗可以根据窗口宽度的改变适应调整,折叠屏手机可以显示如图17中的(b)所示的界面。
另一种实现中,在如图17中的(a)所示的界面中,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1703并向左滑动(例如滑动到虚线框1707所在的区域)的操作时,折叠屏手机可以显示如图17中的(c)所示的界面。该图17中的(c)所示的界面中的窗口1701中可以显示悬浮球1711,窗口1702中可以显示悬浮窗1712,该悬浮窗1712可以居中显示在窗口1702的底端。
可以理解的是,当用户在如图17中的(a)所示的界面中,滑动该滑动杆1703至一定区域进而改变左右两个分屏窗口的宽度,且使得任一窗口的宽度(例如图17中的(c)所示的窗口1701的宽度)缩小到一定宽度阈值时,由于两个分屏窗口的宽度变化较大,使得该宽度缩小的窗口中的悬浮窗可以替换为悬浮球显示,而该宽度增大的窗口中的悬浮窗可以居中显示,避免悬浮窗被缩小到一定宽度时影响用户对于悬浮窗中的内容的查看。
再一种实现中,在如图17中的(a)所示的界面中,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1703并向左滑动(例如滑动到虚线框1708所在的区域)的操作时,折叠屏手机可以显示如图17中的(d)所示的界面。该图17中的(d)所示的界面中的窗口1702中可以居中显示悬浮窗1713。
可以理解的是,当用户在如图17中的(a)所示的界面中,滑动该滑动杆1703至屏幕左侧边缘时,则可以理解为用户已经不需要窗口1701中的内容,使得窗口1702可以在如图17中的(d)所示的界面中全屏显示,并且窗口1702中的悬浮窗1713可以居中显示在屏幕底端。
可以理解的是,图17中的(a)所示的界面中的虚线框1706、虚线框1707、以及虚线框1708的位置仅作为一种示例,本申请实施例中对此不做具体限定。
可能的实现方式中,在如图17中的(c)所示的界面的基础上,当折叠屏手机接收到用户触发滑动杆并向右滑动至一定区域的操作时,折叠屏手机的应用分屏界面中均可以显示悬浮球。
示例性的,图18为本申请实施例提供的另一种调整应用分屏显示界面中的窗口大小的界面示意图。
如图18中的(a)所示的界面,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1703并向右滑动(例如滑动到虚线框1801所在的区域)的操作时,折叠 屏手机可以显示如图18中的(b)所示的界面。该图18中的(b)所示的界面中可以包括:窗口1702中显示的悬浮球1802,窗口1701中显示的悬浮球1711。其中,该图18中(a)所示的界面中显示的内容与图17中的(c)所示的界面中显示的内容一致,在此不再赘述。
可以理解的是,当用户在如图18中的(a)所示的界面中,滑动该滑动杆1703至一定区域进而改变左右两个分屏窗口的宽度时,且使得任一窗口的宽度(例如图18中的(b)所示的窗口1702的宽度)缩小到一定宽度阈值时,由于两个分屏窗口的宽度变化较大,使得该宽度缩小的窗口中的悬浮窗可以替换为悬浮球显示,避免悬浮窗被缩小到一定宽度时影响用户对于悬浮窗中的内容的查看。
可能的实现方式中,如图18中的(b)所示的界面中,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1703并继续向右滑动(例如滑动到虚线框1803所在的区域)的操作时,折叠屏手机可以显示如图18中的(d)所示的界面。该图18中的(d)所示的界面中可以全屏显示的窗口1701,该窗口1701中包括悬浮球1711。
可能的实现方式中,如图18中的(a)所示的界面中,当折叠屏手机接收到用户调整窗口大小,例如接收到用户轻触滑动杆1703并继续向左滑动(例如滑动到虚线框1804所在的区域)的操作时,折叠屏手机可以显示如图18中的(c)所示的界面。该图18中的(c)所示的界面中可以全屏显示的窗口1702,该窗口1702中包括悬浮窗1713。
可以理解的是,图18中的(a)所示的界面中的虚线框1801、虚线框1804、以及图18中的(b)虚线框1803的位置仅作为一种示例,本申请实施例中对此不做具体限定。
可能的实现方式中,在折叠屏手机的内屏使用分屏显示功能,且任一分屏窗口中均显示悬浮窗的情况下,当折叠屏手机接收到用户折叠屏幕,例如由折叠屏手机的内屏切换到折叠屏手机的外屏的操作时,折叠屏手机可以在外屏中上下分屏显示内屏中的窗口。示例性的,图19为本申请实施例提供的一另种折叠屏手机屏幕切换的界面示意图。
在如图19中的(a)所示的折叠屏手机的内屏显示窗口1901、窗口1902、窗口1901中显示悬浮窗1903、以及窗口1902中显示悬浮窗1904的情况下,当折叠屏手机接收到用户折叠手机屏幕(或理解为折叠屏角度满足0度-70度)的操作时,折叠屏手机可以关闭内屏显示,并在外屏中显示如图19中的(b)所示的界面,该界面中可以上下分屏显示窗口1905以及窗口1906。
可以理解的是,由于外屏的手机屏幕有限,在支持上下分屏显示窗口的同时,就无法显示悬浮窗。
示例性的,图20为本申请实施例提供的一种窗口交互的流程示意图。在图20对应的实施例中,电子设备的软件架构中可以包括多个层,例如应用程序层、以及应用程序框架层等;该应用程序层中可以包括业务呈现模块,该应用程序框架层中可以包括窗口管理器。
如图20所示,基于平行视界功能的窗口交互方法可以包括如下步骤:
S2001、在开启同一应用中的至少两个窗口的情况下,用户在任一窗口中触发翻译事件。
其中,该翻译事件可以为触发待翻译文本的翻译功能对应的悬浮窗的显示的事件。
示例性的,用户在设置应用中开启应用的平行视界功能,且基于该平行视界功能打开 该应用中的至少两个窗口的情况下,例如打开应用的主页面以及内容页面的情况下,用户可以在任一窗口,如主页面或者内容页面中触发翻译事件。
S2002、响应于用户在任一窗口中触发翻译事件,窗口管理器向业务呈现模块发送用于指示显示悬浮窗的消息。
S2003、业务呈现模块调用显示器将悬浮窗居中显示在屏幕底部,悬浮窗处于半屏态。
其中,该悬浮窗为非模态。
可以理解的是,基于S2001-S2003,当电子设备接收到用户在使用平行视界的应用中开启悬浮窗时,悬浮窗可以居中显示在屏幕底部。
可能的实现方式中,当电子设备接收到用户在使用平行视界的应用中调整窗口大小的操作时,电子设备中的模块可以基于下述S2004-S2006所示的步骤对悬浮窗进行显示。
S2004、用户触发窗口变化事件。
其中,该窗口变化事件可以为用户在使用平行视界的应用中针对两个窗口之间的滑动杆的滑动事件。
S2005、响应于用户触发窗口变化事件,窗口管理器将用于指示显示悬浮窗的消息发送至业务呈现模块。
S2006、窗口管理器更新悬浮窗,得到更新后的悬浮窗。
可以理解的是,该更新后的悬浮窗可以为处于底部态的悬浮窗。
S2007、业务呈现模块调用显示器将悬浮窗居中显示在屏幕底部,更新后的悬浮窗处于底部态。
可以理解的是,在电子设备使用平行视界的应用中显示的悬浮窗的情况下,用户调整平行视界中的窗口的大小,将不会对悬浮窗的位置带来影响。具体的,业务呈现模块的对于悬浮窗的显示可以参见图10对应的实施例中的描述,在此不再赘述。
基于此,使得电子设备可以根据用户针对于显示屏的分屏需求,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
示例性的,图21为本申请实施例提供的另一种窗口交互的流程示意图。在图21对应的实施例中,电子设备的软件架构中可以包括多个层,例如应用程序层、以及应用程序框架层等;该应用程序层中可以包括业务呈现模块,该应用程序框架层中可以包括窗口管理器;该业务呈现模块中可以包括用于管理悬浮窗A的第一业务呈现模块,以及用于管理悬浮窗B的第二业务呈现模块。
如图21所示,基于应用分屏显示功能的窗口交互方法可以包括如下步骤:
S2101、在开启应用分屏显示的情况下,用户在窗口A中触发翻译事件。
其中,该翻译事件可以参见S2001所示的步骤中的描述,在此不再赘述。
S2102、响应于用户在窗口A中触发翻译事件,窗口管理器向第一业务呈现模块发送用于指示在窗口A中显示悬浮窗A的消息。
S2103、第一业务呈现模块调用显示器在窗口A中显示悬浮窗A。
S2104、用户在窗口B中触发翻译事件。
S2105、响应于用户在窗口B中触发翻译事件,窗口管理器向第二业务呈现模块发送用于指示在窗口B中显示悬浮窗B的消息。
S2106、第二业务呈现模块调用显示器在窗口B中显示悬浮窗B。
可能的实现方式中,当电子设备接收到用户在分屏窗口中均显示悬浮窗的界面中调整窗口大小的操作时,电子设备中的模块可以基于下述S2107-S2110所示的步骤对该分屏窗口中的各悬浮窗进行显示。
S2107、用户触发窗口变化事件。
其中,该窗口变化事件可以为用户在应用分屏界面中针对两个窗口之间的滑动杆的滑动事件。
S2108、响应于窗口变化事件,窗口管理器根据窗口变化在窗口A中更新悬浮窗A的显示,以及在窗口B中更新悬浮窗B的显示。
具体的,窗口管理器可以参见图17对应的实施例中的描述,对窗口中显示的悬浮窗进行更新。其中,窗口A可以为图17中的窗口1701,窗口B可以为图17中的窗口1702。
一种实现中,如图17中的(a)所示的,当用户轻触滑动杆1703并向左滑动(例如滑动到虚线框1706所在的区域)的操作时,窗口管理器可以参见图17中的(b)所示的界面更新悬浮窗。
可能的实现方式中,在图17中的(b)(或也可以为图18中的(a))所示的界面的基础上,当电子设备接收到用户触发滑动杆并向右滑动至一定区域(如图18中的(a)虚线框1801)的操作时,电子设备的应用分屏界面中均可以显示悬浮球。具体的,窗口管理器可以参见图18中的(b)所示的界面更新悬浮窗。
进一步的,在图18中的(b)所示的界面的基础上,当电子设备接收到用户触发滑动杆并向右滑动至一定区域(如图18中的(b)虚线框1803)的操作时,电子设备的应用分屏界面中可以取消显示电子设备的右侧窗口中的内容,且电子设备可以全屏显示电子设备的左侧窗口中的内容。具体的,窗口管理器可以参见图18中的(d)所示的界面更新悬浮窗。
可能的实现方式中,在图17中的(b)(或也可以为图18中的(a))所示的界面的基础上,当电子设备接收到用户触发滑动杆并向左滑动至一定区域(如图18中的(a)虚线框1804)的操作时,电子设备的应用分屏界面中可以取消显示电子设备的左侧窗口中的内容,且电子设备可以全屏显示电子设备的右侧窗口中的内容。具体的,窗口管理器可以参见图18中的(c)所示的界面更新悬浮窗。
另一种实现中,如图17中的(a)所示的,当用户轻触滑动杆1703并向左滑动(例如滑动到虚线框1707所在的区域)的操作时,窗口管理器可以参见图17中的(c)所示的界面更新悬浮窗。
再一种实现中,如图17中的(a)所示的,当用户轻触滑动杆1703并向左滑动(例如滑动到虚线框1708所在的区域)的操作时,窗口管理器可以参见图17中的(d)所示的界面更新悬浮窗。
S2109、窗口管理器向第一业务呈现模块发送用于指示在窗口A中显示更新后的悬浮窗A的消息,并且,向第二业务呈现模块发送用于指示在窗口B中显示更新后的悬浮窗B的消息。
S2110、第一业务呈现模块调用显示器在窗口A中显示更新后的悬浮窗A,并且,第二业务呈现模块调用显示器在窗口B中显示更新后的悬浮窗B。
基于此,使得电子设备可以根据用户针对于显示屏的分屏需求,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
可以理解的是,本申请实施例提供的界面仅作为一种示例,并不能够成对本申请实施例的进一步限定。
示例性的,图22为本申请实施例提供的一种窗口交互装置的结构示意图。
如图22所示,窗口交互装置220可以用于通信设备、电路、硬件组件或者芯片中,该窗口交互装置包括:显示单元2201、处理单元2202以及通信单元2203。其中,显示单元2201用于支持退出资源分配方法执行的显示的步骤;处理单元2202用于支持窗口交互装置执行信息处理的步骤;通信单元2203用于支持资源分配方法执行的数据发送以及数据接收的步骤。
在一种可能的实施例中,通信单元2203可以是输入或者输出接口、管脚或者电路等。
在一种可能的实施例中,窗口交互装置还可以包括:存储单元2204。处理单元2202、通信单元2203、以及存储单元2204通过线路相连。
存储单元2204可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。
存储单元2204可以独立存在,通过通信线路与窗口交互装置具有的处理单元2202相连。存储单元2204也可以和处理单元2202集成在一起。
存储单元2204可以存储终端设备中的方法的计算机执行指令,以使处理单元2202执行上述实施例中的方法。
存储单元2204可以是寄存器、缓存或者RAM等,存储单元2204可以和处理单元2202集成在一起。存储单元2204可以是只读存储器(read-only memory,ROM)或者可存储静态信息和指令的其他类型的静态存储设备,存储单元2204可以与处理单元2202相独立。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的 介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (28)

  1. 一种窗口交互方法,其特征在于,应用于电子设备,所述电子设备包括第一显示屏,所述方法包括:
    所述电子设备利用所述第一显示屏显示第一界面;其中,所述第一界面中包括第一窗口、第二窗口、以及用于调整所述第一窗口的大小以及所述第二窗口的大小的第一滑动杆;所述第一窗口中显示的内容以及所述第二窗口中显示的内容均属于第一应用;
    响应于对所述第一窗口或所述第二窗口的第一操作,所述电子设备显示第二界面;其中,所述第二界面中包括第一悬浮窗、所述第一窗口、所述第二窗口、以及所述第一滑动杆;所述第一悬浮窗的宽度小于所述第一显示屏的宽度,所述第一悬浮窗为非模态对话框,且所述第一悬浮窗满足第一状态。
  2. 根据权利要求1所述的方法,其特征在于,所述第二界面中还包括第一区域,所述第一区域为所述第二界面中除所述第一悬浮窗以外的区域,所述方法还包括:
    响应于对所述第一区域的第二操作,所述电子设备显示第三界面;所述第三界面中包括第二悬浮窗,所述第二悬浮窗满足第二状态;所述第二状态与所述第一状态不同或相同。
  3. 根据权利要求2所述的方法,其特征在于,所述第二操作包括:在所述第二界面中将所述第一滑动杆滑动至第一区域的操作。
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一状态包括半屏态、全屏态或底部态中的任意一种;所述第二状态包括所述底部态。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于对所述电子设备的第三操作,所述电子设备显示第四界面;其中,所述第四界面包括第三悬浮窗;所述第三悬浮窗的宽度小于所述第一显示屏的高度,所述第三悬浮窗满足所述第一状态。
  6. 根据权利要求5所述的方法,其特征在于,当所述第二界面为所述电子设备在处于竖屏状态下的界面时,所述第四界面为所述电子设备处于横屏状态下的界面。
  7. 根据权利要求1所述的方法,其特征在于,所述电子设备还包括第二显示屏,所述方法还包括:
    响应于对所述电子设备的第四操作,所述电子设备利用所述第二显示屏显示第五界面;其中,所述第五界面中包括第四悬浮窗以及所述第二窗口;所述第四悬浮窗的宽度与所述第二显示屏的宽度相同。
  8. 根据权利要求7所述的方法,其特征在于,所述响应于对所述电子设备的第四操作,所述电子设备利用所述第二显示屏显示第五界面,包括:
    响应于对所述电子设备的第四操作,所述电子设备获取第一数据;所述第一数据包括折叠角度数据;所述折叠角度数据是基于角链传感器检测得到的;
    在所述电子设备确定所述折叠角度数据满足第一预设条件时,所述电子设备利用所述第二显示屏显示所述第五界面。
  9. 根据权利要求1所述的方法,其特征在于,所述电子设备利用所述第一显示屏显示第一界面之前,所述方法还包括:
    在所述第一应用的预设功能开启的情况,所述电子设备利用所述第一显示屏显示第 六界面;所述第六界面中显示的内容属于所述第一应用;
    所述电子设备利用所述第一显示屏显示第一界面,包括:响应于对所述第六界面的第五操作,所述电子设备利用所述第一显示屏显示所述第一界面。
  10. 根据权利要求1所述的方法,其特征在于,所述响应于对所述第一窗口或所述第二窗口的第一操作,所述电子设备显示第二界面,包括:
    响应于对所述第一窗口或所述第二窗口的第一操作,所述电子设备显示第七界面;所述第七界面中包括第一文本;
    响应于对所述第一文本的操作,所述电子设备显示第一控件;所述第一控件中包括复制选项以及翻译选项;
    响应于对所述复制选项的操作,所述电子设备显示悬浮球控件;
    响应于对所述悬浮球控件的操作,所述电子设备显示所述第二界面。
  11. 根据权利要求1所述的方法,其特征在于,所述电子设备利用所述第一显示屏显示第一界面,包括:
    所述电子设备利用所述第一显示屏显示第八界面;所述第八界面中包括第二文本;
    响应于对所述第二文本的操作,所述电子设备显示第二控件;所述第二控件中包括复制选项以及翻译选项;
    响应于对所述翻译选项的操作,所述电子设备利用所述第一显示屏显示所述第一界面。
  12. 一种窗口交互方法,其特征在于,应用于电子设备,所述电子设备包括第一显示屏,所述方法包括:
    所述电子设备利用所述第一显示屏显示第一界面;其中,所述第一界面中包括第一窗口以及第二窗口,所述第一窗口中显示的内容属于第一应用,所述第二窗口中显示的内容属于第二应用;
    响应于对所述第一窗口的第一操作,电子设备在所述第一窗口中显示第一悬浮窗;所述第一悬浮窗为非模态对话框,且所述第一悬浮窗满足第一状态;
    响应于对所述第二窗口的第二操作,电子设备在所述第二窗口中显示第二悬浮窗;所述第二悬浮窗为非模态对话框,且所述第二悬浮窗满足所述第一状态。
  13. 根据权利要求12所述的方法,其特征在于,所述第一窗口中还包括第一区域,所述第一区域为所述第一窗口中除所述第一悬浮窗以外的区域,所述方法还包括:
    响应于对所述第一区域的第三操作,所述电子设备显示第三界面;所述第三界面中包括:所述第一窗口中的第三悬浮窗,以及所述第二窗口中的所述第二悬浮窗;所述第三悬浮窗满足第二状态;所述第二状态与所述第一状态不同或相同。
  14. 根据权利要求12所述的方法,其特征在于,所述第二窗口中还包括第二区域,所述第二区域为所述第二窗口中除所述第二悬浮窗以外的区域,所述方法还包括:
    响应于对所述第二区域的第四操作,所述电子设备显示第四界面;所述第四界面中包括:所述第一窗口中的所述第一悬浮窗,以及所述第二窗口中的第四悬浮窗;所述第四悬浮窗满足第二状态;所述第二状态与所述第一状态不同或相同。
  15. 根据权利要求13或14所述的方法,其特征在于,所述第一状态包括半屏态、全屏态或底部态中的任意一种;所述第二状态包括所述底部态。
  16. 根据权利要求12所述的方法,其特征在于,所述第一悬浮窗的宽度为所述第一显示屏的宽度的一半;所述第二悬浮窗的宽度为所述第一显示屏的宽度的一半。
  17. 根据权利要求12所述的方法,其特征在于,所述方法还包括:
    响应于对所述电子设备的第五操作,所述电子设备显示第五界面;其中,所述第五界面包括所述第一窗口中的第五悬浮窗、以及第二窗口中的第六悬浮窗,所述第五悬浮窗满足所述第一状态,所述第六悬浮窗满足所述第一状态。
  18. 根据权利要求17所述的方法,其特征在于,所述响应于对所述电子设备的第五操作,所述电子设备显示第五界面,包括:
    响应于对所述电子设备的第五操作,所述电子设备获取第一数据;所述第一数据包括角加速度数据;所述角加速度数据是基于陀螺仪传感器检测得到的;
    在所述电子设备确定所述角加速度数据满足第一预设条件时,所述电子设备显示所述第五界面。
  19. 根据权利要求17所述的方法,其特征在于,所述第五悬浮窗的宽度为所述第一显示屏的高度的一半;所述第六悬浮窗的宽度为所述第一显示屏的高度的一半。
  20. 根据权利要求12所述的方法,其特征在于,所述第一界面中还包括用于调整所述第一窗口的大小以及所述第二窗口的大小的第一滑动杆,所述方法还包括:
    响应于将所述第一滑动杆滑动到第三区域的操作,所述电子设备显示第六界面;其中,所述第六界面中包括第三窗口中的第七悬浮窗,以及第四窗口中的第八悬浮窗,所述第三窗口的宽度小于所述第四窗口的宽度,所述第七悬浮窗的宽度小于所述第八悬浮窗的宽度;
    或者,响应于将所述第一滑动杆滑动到第四区域的操作,所述电子设备显示第七界面;其中,所述第七界面中包括第五窗口中的第一悬浮球控件,以及第六窗口中的第九悬浮窗,所述第五窗口的宽度小于所述第六窗口的宽度,所述第九悬浮窗的宽度小于所述第六窗口的宽度;
    或者,响应于将所述第一滑动杆滑动到第五区域的操作,所述电子设备显示第八界面;其中,所述第八界面中包括第八悬浮窗,所述第八悬浮窗的宽度小于所述第一显示屏的宽度。
  21. 根据权利要求20所述的方法,其特征在于,所述响应于将所述第一滑动杆滑动到第四区域的操作,所述电子设备显示第七界面之后,所述方法还包括:
    响应于将所述第一滑动杆滑动到第六区域的操作,所述电子设备显示第九界面;其中,所述第九界面中包括第七窗口中的所述第一悬浮球控件,以及第八窗口中的第二悬浮球控件;所述第七窗口的宽度大于所述第八窗口的宽度;
    或者,响应于将所述第一滑动杆滑动到第七区域的操作,所述电子设备显示第十界面;其中,所述第十界面中包括第九悬浮窗;所述第九悬浮窗的宽度小于所述第一显示屏的宽度。
  22. 根据权利要求21所述的方法,其特征在于,所述响应于将所述第一滑动杆滑动到第六区域的操作,所述电子设备显示第九界面之后,所述方法还包括:
    响应于将所述第一滑动杆滑动到第八区域的操作,所述电子设备显示第十一界面;其中,所述第十一界面中包括所述第二悬浮球控件。
  23. 根据权利要求12所述的方法,其特征在于,所述电子设备还包括第二显示屏,所述方法还包括:
    响应于对所述电子设备的第六操作,所述电子设备利用所述第二显示屏显示第十二界面;其中,所述第十二界面中包括第九窗口以及第十窗口,所述第九窗口的宽度与所述第十窗口的宽度均与所述第二显示屏的宽度相同。
  24. 根据权利要求23所述的方法,其特征在于,所述响应于对所述电子设备的第六操作,所述电子设备利用所述第二显示屏显示第十二界面,包括:
    响应于对所述电子设备的第六操作,所述电子设备获取第二数据;所述第二数据包括折叠角度数据;所述折叠角度数据是基于角链传感器检测得到的;
    在所述电子设备确定所述折叠角度数据满足第二预设条件时,所述电子设备利用所述第二显示屏显示所述第十二界面。
  25. 一种窗口交互方法,其特征在于,应用于电子设备,所述电子设备包括第一显示屏,所述方法包括:
    在所述第一应用的预设功能未开启的情况下,响应于开启所述第一应用的操作,所述电子设备利用所述第一显示屏显示第一界面;
    响应于对所述第一界面的第一操作,所述电子设备显示第二界面;所述第二界面中包括第一悬浮窗;所述第一悬浮窗的宽度小于所述第一显示屏的宽度;
    响应于开启所述第一应用的预设功能,且打开所述第一应用的操作,所述电子设备显示所述第一界面;
    响应于对所述第一界面的所述第一操作,所述电子设备显示第三界面;所述第三界面中包括第一窗口、第二窗口、用于调整所述第一窗口的大小以及所述第二窗口的大小的第一滑动杆,所述第二窗口中包括所述第一悬浮窗对应的第一悬浮球控件,所述第一窗口中显示的内容以及所述第二窗口中显示的内容均属于所述第一应用;
    响应于对所述第一悬浮球控件的第二操作,所述电子设备显示第四界面;所述第四界面中包括所述第一悬浮窗、所述第一窗口、所述第二窗口、以及所述第一滑动杆;所述第一悬浮窗的宽度小于所述第一显示屏的宽度,所述第一悬浮窗为非模态对话框,且所述第一悬浮窗满足第一状态。
  26. 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述电子设备执行权利要求1-11中任一项所述的方法,或执行权利要求12-24中任一项所述的方法,或执行如权利要求25所述的方法。
  27. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1-11中任一项所述的方法,或执行权利要求12-24中任一项所述的方法,或执行如权利要求25所述的方法。
  28. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行权利要求1-11中任一项所述的方法,或执行权利要求12-24中任一项所述的方法,或执行如权利要求25所述的方法。
PCT/CN2023/071082 2022-01-10 2023-01-06 窗口交互方法和电子设备 WO2023131312A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP23737174.5A EP4351116A1 (en) 2022-01-10 2023-01-06 Window interaction method and electronic device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210023810.3 2022-01-10
CN202210023810 2022-01-10
CN202210114778.XA CN116456020A (zh) 2022-01-10 2022-01-30 窗口交互方法和电子设备
CN202210114778.X 2022-01-30

Publications (2)

Publication Number Publication Date
WO2023131312A1 WO2023131312A1 (zh) 2023-07-13
WO2023131312A9 true WO2023131312A9 (zh) 2023-10-05

Family

ID=87073265

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071082 WO2023131312A1 (zh) 2022-01-10 2023-01-06 窗口交互方法和电子设备

Country Status (2)

Country Link
EP (1) EP4351116A1 (zh)
WO (1) WO2023131312A1 (zh)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820557B (zh) * 2015-05-06 2018-09-11 魅族科技(中国)有限公司 一种分屏方法及移动终端
CN107153541B (zh) * 2017-04-20 2020-07-03 北京小米移动软件有限公司 浏览交互处理方法及装置
CN110324464A (zh) * 2019-05-17 2019-10-11 华为技术有限公司 一种应用显示方法及电子设备
CN112578982A (zh) * 2019-09-29 2021-03-30 华为技术有限公司 一种对电子设备的操作方法及电子设备
CN115904208A (zh) * 2021-08-03 2023-04-04 荣耀终端有限公司 分屏显示方法和装置

Also Published As

Publication number Publication date
EP4351116A1 (en) 2024-04-10
WO2023131312A1 (zh) 2023-07-13

Similar Documents

Publication Publication Date Title
US11803451B2 (en) Application exception recovery
WO2021227770A1 (zh) 应用窗口显示方法和电子设备
WO2021159922A1 (zh) 卡片显示方法、电子设备及计算机可读存储介质
WO2021057868A1 (zh) 一种界面切换方法及电子设备
WO2021244443A1 (zh) 分屏显示方法、电子设备及计算机可读存储介质
WO2021120914A1 (zh) 一种界面元素的显示方法及电子设备
CN111885265B (zh) 屏幕界面调整方法及相关装置
US11853526B2 (en) Window display method, window switching method, electronic device, and system
TW201606631A (zh) 利用關聯指示器及浮動選單列的關聯選單
US9804767B2 (en) Light dismiss manager
EP3126967A1 (en) Adaptive user interface pane manager
US20150058770A1 (en) Method and appratus for providing always-on-top user interface for mobile application
EP4170476A1 (en) Translation method and electronic device
WO2022052677A1 (zh) 界面显示方法及电子设备
CN115562771A (zh) 应用窗口管理方法、电子设备和计算机可读取存储介质
CN116451709A (zh) 翻译控件的控制方法及电子设备
WO2024109190A1 (zh) 应用界面显示方法、电子设备和存储介质
WO2023221946A1 (zh) 一种信息的中转方法及电子设备
WO2023131312A9 (zh) 窗口交互方法和电子设备
WO2023131313A9 (zh) 窗口交互方法和电子设备
WO2023131314A9 (zh) 窗口交互方法和电子设备
CN116456020A (zh) 窗口交互方法和电子设备
CN114461312A (zh) 切换应用及应用中任务的方法、电子设备
CN116456019A (zh) 窗口交互方法和电子设备
EP4332744A1 (en) Control method and electronic device

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: 23737174

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023737174

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023737174

Country of ref document: EP

Effective date: 20240102