WO2024078207A1 - 界面显示方法、装置、终端设备及存储介质 - Google Patents

界面显示方法、装置、终端设备及存储介质 Download PDF

Info

Publication number
WO2024078207A1
WO2024078207A1 PCT/CN2023/117221 CN2023117221W WO2024078207A1 WO 2024078207 A1 WO2024078207 A1 WO 2024078207A1 CN 2023117221 W CN2023117221 W CN 2023117221W WO 2024078207 A1 WO2024078207 A1 WO 2024078207A1
Authority
WO
WIPO (PCT)
Prior art keywords
display screen
application
application container
adjusted
interface
Prior art date
Application number
PCT/CN2023/117221
Other languages
English (en)
French (fr)
Inventor
韦家柏
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024078207A1 publication Critical patent/WO2024078207A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of display technology, and in particular to an interface display method, device, terminal equipment and storage medium.
  • the embodiments of the present application provide an interface display method, apparatus, terminal device and storage medium, which can avoid abnormal display of application interface.
  • a first aspect of an embodiment of the present application provides an interface display method, including:
  • mapping relationship After detecting a first touch operation on an application interface displayed on a first display screen, creating a virtual display screen, and establishing a mapping relationship between the virtual display screen and a second display screen, wherein the mapping relationship is used to map content of the virtual display screen to the second display screen;
  • the application container is adjusted so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • a second aspect of an embodiment of the present application provides an interface display device, including:
  • a creating unit configured to create a virtual display screen after detecting a first touch operation on the application interface displayed on the first display screen
  • a mapping unit used to establish a mapping relationship between the virtual display screen and a second display screen, wherein the mapping relationship is used to map the content of the virtual display screen to the second display screen;
  • a moving unit configured to move the application container where the application interface is located from the first display screen to the virtual display screen
  • the adjusting unit is used to adjust the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • a third aspect of an embodiment of the present application provides a terminal device, including a first display screen, a second display screen, a processor and a memory, wherein the first display screen, the second display screen and the memory are coupled to the processor, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, the computer program comprising program instructions, the program instructions When executed by a processor, the command causes the processor to execute the step instructions in the first aspect of the embodiment of the present application.
  • the fifth aspect of the embodiments of the present application provides a computer program product, wherein the above-mentioned computer program product includes a computer program, and the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the step instructions in the first aspect of the embodiments of the present application.
  • the interface display method of the embodiment of the present application after detecting the first touch operation on the application interface displayed on the first display screen, creates a virtual display screen, establishes a mapping relationship between the virtual display screen and the second display screen, and the mapping relationship is used to map the content of the virtual display screen to the second display screen; moves the application container where the application interface is located from the first display screen to the virtual display screen; adjusts the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • the application interface is originally displayed on the first display screen.
  • the content of the application interface in the application container in the virtual display screen can be mapped to the second display screen, thereby realizing the application interface displayed on the first display screen being pushed to the second display screen for display. Since the length of the application container is less than or equal to the length of the second display screen, and the width of the application container is equal to or less than the width of the second display screen, when the content of the application interface in the application container is mapped to the second display screen, the interface elements will not be incompletely displayed or overlapped, and display abnormalities can be avoided when the application interface is moved from the first display screen to the second display screen for display.
  • FIG1 is a schematic diagram of a flow chart of an interface display method provided in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an interaction of pushing an application interface displayed on a first display screen to a second display screen for display, provided by an embodiment of the present application;
  • FIG. 3 is a schematic diagram of a specific process of pushing an application interface displayed on a first display screen to a second display screen for display, provided in an embodiment of the present application;
  • FIG4 is a schematic diagram of a flow chart of another interface display method provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interaction for pulling an application interface from a second display screen back to a first display screen for display, provided by an embodiment of the present application;
  • FIG. 6 is a schematic diagram of a specific process of pulling an application interface from a second display screen back to a first display screen for display, provided in an embodiment of the present application;
  • FIG7 is a schematic diagram of the structure of an interface display device provided in an embodiment of the present application.
  • FIG8 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
  • the terminal device involved in the embodiments of the present application is a device with display capability. It can be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an on-board unit (OBU), a wearable device (for example, a watch, a bracelet, a smart helmet, etc.), a smart home device (rice cooker, audio, home butler device, etc.), an augmented reality (AR)/virtual reality (VR) device, etc.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • OBU on-board unit
  • a wearable device for example, a watch, a bracelet, a smart helmet, etc.
  • smart home device rice cooker, audio, home butler device, etc.
  • AR augmented reality
  • VR virtual reality
  • the interface display method of the embodiment of the present application after detecting the first touch operation on the application interface displayed on the first display screen, creates a virtual display screen, establishes a mapping relationship between the virtual display screen and the second display screen, and the mapping relationship is used to map the content of the virtual display screen to the second display screen; moves the application container where the application interface is located from the first display screen to the virtual display screen; adjusts the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • the application interface is originally displayed on the first display screen.
  • the content of the application interface in the application container in the virtual display screen can be mapped to the second display screen, thereby realizing the application interface displayed on the first display screen being pushed to the second display screen for display. Since the length of the application container is less than or equal to the length of the second display screen, and the width of the application container is equal to or less than the width of the second display screen, when the content of the application interface in the application container is mapped to the second display screen, the interface elements will not be incompletely displayed or overlapped, and display abnormalities can be avoided when the application interface is moved from the first display screen to the second display screen for display. The following is a specific description.
  • Figure 1 is a schematic flow chart of an interface display method provided by an embodiment of the present application. As shown in Figure 1, the method may include the following steps.
  • a terminal device After detecting a first touch operation on an application interface displayed on a first display screen, a terminal device creates a virtual display screen.
  • the first display screen may be a touch display screen.
  • the first touch operation may be at least one of a sliding operation and a clicking operation.
  • the sliding operation may include: any one of sliding up, sliding down, sliding to the left, and sliding to the right.
  • the clicking operation may include: any one of a single-click operation, a double-click operation, a triple-click operation, and a quadruple-click operation.
  • a touch display is a display with touch input capability.
  • the application interface displayed on the first display screen may be the application interface currently displayed on the first display screen or the application interface of the recent task card of the first display screen.
  • the recent task card may be a card where the recently opened application is located on the first display screen. For example, in a mobile phone, you can view the recently opened applications, and each application can be displayed in the form of a card.
  • the application interface may include the application interface of one application, or may include the application interfaces of at least two applications.
  • the application interface may include an application interface of at least one application.
  • the application interface of at least one application when the application interface includes the application interface of at least one application, the application interface of at least one application (for example, the application interfaces of at least two applications displayed in split screen) can be projected onto another screen (second display screen) for display. This can be applicable to displaying a certain application interface on multiple physical screens with different resolutions.
  • the embodiment of the present application can also combine multiple application interfaces of one display screen (first display screen) and project them together onto another display screen (second display screen), or can project one application interface onto multiple display screens of different sizes (second display screens).
  • a virtual display is also called a virtual screen or a virtual display.
  • a virtual display is invisible to the user.
  • a virtual display can be created using native components of the Android system.
  • the terminal device establishes a mapping relationship between the virtual display screen and the second display screen, where the mapping relationship is used to map the content of the virtual display screen to the second display screen.
  • the second display screen may be a touch display screen or a display screen without touch input capability.
  • the first display screen may be one display screen
  • the second display screen may be one display screen or at least two display screens.
  • the area of the first display screen is different from the area of the second display screen, or the aspect ratio of the first display screen is different from the aspect ratio of the second display screen.
  • the area of the first display screen is different from the area of the second display screen.
  • the area of the first display screen may be larger than the area of the second display screen.
  • the first display screen may be the inner screen of a folding screen
  • the second display screen may be the outer screen of the folding screen.
  • the area of the first display screen may also be smaller than the area of the second display screen.
  • the first display screen may be the display screen of a mobile phone
  • the second display screen may be the display screen of a tablet computer or a TV.
  • the first display screen and the second display screen are both physical display screens, for example, they can be any one of a liquid crystal display screen, a light emitting diode (LED) display screen, and an organic light emitting diode (OLED) display screen.
  • a liquid crystal display screen for example, they can be any one of a liquid crystal display screen, a light emitting diode (LED) display screen, and an organic light emitting diode (OLED) display screen.
  • LED light emitting diode
  • OLED organic light emitting diode
  • the terminal device may include a first display screen and a second display screen.
  • the terminal device may include multiple display screens, and the first display screen and the second display screen are any two of the multiple display screens included in the terminal device.
  • the first display screen and the second display screen may be the inner screen (the inner screen may be the main screen) and the outer screen (the outer screen may be the secondary screen) in the folding screen of the terminal device, respectively.
  • the size of the inner screen is larger than the size of the outer screen
  • the resolution of the inner screen is larger than the resolution of the outer screen.
  • the resolution of the inner screen may be 1960*1080
  • the resolution of the outer screen may be 640*480.
  • the resolution here refers to the screen resolution, which may also be the display resolution.
  • the terminal device may include a first display screen, and the second display screen may be located in another electronic device.
  • the first display screen may be a display screen in a tablet computer
  • the second display screen may be a display screen in a mobile phone.
  • the first display screen of the terminal device and the second display screen of the electronic device may perform screen communication.
  • the application interface in the first display screen may be projected and displayed on the second display screen.
  • the content of the virtual display screen can be mapped to the second display screen.
  • the content displayed on the second display screen is the content in the virtual display screen.
  • the first touch operation on the application interface displayed on the first display screen may be detected by the desktop application.
  • the first touch operation may be a swipe up gesture on the current application interface, or may be a swipe up gesture on the application interface of a recent task card.
  • the virtual display screen When the virtual display screen is created, there is no content in the virtual display screen.
  • the mapping relationship between the virtual display screen and the second display screen is established, since there is no content in the virtual display screen, the second display screen also does not display any content.
  • the terminal device moves the application container where the application interface is located from the first display screen to the virtual display screen.
  • the application interface may be an application interface of one or at least two applications.
  • An application container may be a container for carrying at least one application interface.
  • an application interface may be represented by an activity window (Activity).
  • Each application may correspond to an application container (Task), and an application container may carry at least one activity window of the corresponding application.
  • An application may correspond to multiple activity windows, and the application interface currently displayed on the first display screen is the highest level (e.g., at the bottom) activity window in the application container.
  • a Task is a container, and an Activity is an active window that fills this container.
  • the first Activity added to a Task will be at the bottom of the Task (lowest level), and the last Activity added to a Task will be at the top (highest level).
  • the last Activity added is the first to be removed.
  • the application container where the application interface is located is moved from the first display screen to the virtual display screen.
  • the terminal device adjusts the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • the size of the application container can be adjusted through the OplusPuttmanagerService.
  • the content of the virtual display screen (i.e., the content of the application interface in the application container) can be mapped to the second display screen.
  • the same application interface in the scenario of physical multi-screen devices, can be seamlessly switched between different screen sizes and/or different resolutions, and the display compatibility problem of the application interface on different physical screen devices can be solved at the system level.
  • step 102 may be performed after step 101 , or may be performed after step 104 .
  • the application container where the application interface is located because the application container was previously on the first display screen, the size of the application container is adapted to the size of the first display screen, but not to the size of the second display screen. If the area of the first display screen is different from that of the second display screen or the aspect ratio of the first display screen is different from that of the second display screen, after the application container is moved to the virtual display screen, in order to adapt the size of the application container to the size of the second display screen, the application container needs to be adjusted so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the length of the second display screen. The width of the second display screen is less than or equal to the width of the second display screen.
  • the size of the application interface will also be adjusted accordingly.
  • the size of the application interface is the same as the size of the application container.
  • the second display screen can be lit up after executing step 104, and after the size of the application container is adjusted, the second display screen is lit up again, so that the content displayed on the second display screen after lighting up is the content of the application interface in the adjusted application container, thereby avoiding the user from seeing the application interface adjustment process on the second display screen, thereby improving the user experience.
  • the second display screen may be illuminated before executing step 104 .
  • the application interface is originally displayed on the first display screen.
  • the content of the application interface in the application container in the virtual display screen can be mapped to the second display screen, thereby realizing that the application interface displayed on the first display screen is pushed to the second display screen for display. Since the length of the application container is less than or equal to the length of the second display screen, and the width of the application container is equal to or less than the width of the second display screen, when the content of the application interface in the application container is mapped to the second display screen, the interface elements will not be incompletely displayed or overlapped, and display abnormalities can be avoided when the application interface is moved from the first display screen to the second display screen for display.
  • the aspect ratio of the first display screen is different from that of the second display screen
  • the aspect ratio of the virtual display screen is equal to that of the second display screen
  • the area of the virtual display screen is greater than or equal to the area of the second display screen.
  • Step 104 may specifically include the following steps:
  • the terminal device adjusts the aspect ratio of the application container to be the same as the aspect ratio of the virtual display screen
  • the terminal device adjusts the scaling factor of the application container so that the adjusted length of the application container is equal to the length of the second display screen, and the adjusted width of the application container is equal to the width of the second display screen.
  • the aspect ratio of the virtual display screen when creating a virtual display screen, can be made equal to the aspect ratio of the second display screen.
  • the aspect ratio of the application container can be directly adjusted according to the aspect ratio of the virtual display screen.
  • the area of the virtual display screen is larger than the area of the second display screen, which can ensure that the virtual display screen can carry a larger container.
  • the scaling factor of the application container is adjusted so that the length of the adjusted application container is equal to the length of the second display screen, and the width of the adjusted application container is equal to the width of the second display screen, so that the size of the adjusted application container matches the second display screen, so that the content of the application interface in the application container can fill the second display screen without display anomalies, thereby improving the display effect of the application interface pushed from the first interface to the second display screen.
  • the area of the virtual display screen is larger than the area of the first display screen.
  • the terminal device creates a virtual display screen, including:
  • the terminal device creates a surface view and notifies the device management service to create a virtual display screen through the surface view.
  • a surface view can be created in the Android system.
  • the desktop application After the desktop application (Launcher) detects the first touch operation, it can trigger the push management service (OplusPuttmanagerService) to start the push service, trigger a bunch of services (puttService) to start the push, and push The service creates a surface view and notifies the device management service (DisplayManagerService) to create a virtual display screen through the surface view.
  • the push management service OEMService
  • puttService bunch of services
  • Launcher can be a desktop launcher in the Android system, which is one of the main program components in the Android system.
  • Device management service is one of the main program components in the Android system.
  • the terminal device establishes a mapping relationship between the virtual display screen and the second display screen, including:
  • the terminal device binds the surface view to the shell container of the second display screen, and directs the content carried by the surface view to the virtual display screen.
  • the surface view is bound to the shell container of the second display screen, that is, a mapping relationship between the surface view and the second display screen is established.
  • the content displayed on the second display screen is the content of the shell container of the second display screen.
  • the content carried by the surface view points to the virtual display screen, and the content of the virtual display screen can be mapped to the surface view.
  • the surface view may be bound to the shell container of the second display screen, and the content carried by the surface view may be directed to the virtual display screen, thereby establishing a mapping relationship between the virtual display screen and the second display screen.
  • the mechanism of mapping the content of the virtual display screen to the surface view is used to adjust the size of the application container where the application interface is located, so that the application interface is perfectly displayed on the physical screen (second display screen) with a smaller resolution, which perfectly solves the application display compatibility problem caused by the smaller physical screen size.
  • the one-push management service, the one-push service, and the shell container of the second display screen can be newly created program components in the Android system for realizing the functions of starting one-push/pulling one-push back/exiting one-push.
  • Start push Users can push the current interface to the first hot zone (for example, the upper left corner hot zone) by swiping up on the current interface. After raising their hand, the current interface is switched from the inner screen to the outer screen, and the inner screen displays as the desktop.
  • the first hot zone for example, the upper left corner hot zone
  • Push and pull back The user can pull the QR code interface from the outer screen back to the inner screen by clicking the touch window at the top of the inner screen (for example, the handle) or dragging the touch window downwards.
  • the first touch operation includes: sliding the application interface displayed on the first display screen to a first hot zone; wherein the first hot zone is used to prompt that the application interface is pushed to the second display screen for display.
  • the first hot zone can be used to prompt the user: after pushing the application interface to the first hot zone, the application interface can be pushed to the second display screen for display.
  • the user can slide the application interface upward or downward with a finger, and after sliding the application interface upward or downward to the first hot zone, release the finger to complete the first touch operation.
  • the application interface slides to the first hot zone, which means that a part of the application interface falls into the area of the first hot zone.
  • the first hot zone can be pre-displayed in the first display screen (for example, the first hot zone can be displayed before the first touch operation is detected), and the first hot zone can also be displayed during the first touch operation (for example, the first hot zone can be displayed when the sliding distance of the first touch operation is greater than or equal to the first threshold).
  • the first hot zone displayed on the first display screen can be used to prompt the user to complete the first touch operation, thereby assisting the user to quickly push the application interface to the second display screen for display, so as to facilitate the completion of the push.
  • sliding the application interface displayed on the first display screen to the first hot zone includes:
  • the terminal device displays the first hot zone on the first display screen, and slides the application interface displayed on the first display screen to the first hot zone.
  • the first hot zone can be displayed during the first touch operation to promptly remind the user to push the application interface to the second display screen for display.
  • the first threshold may be set in advance and may be stored in a memory (eg, a non-volatile memory) of the terminal device.
  • a memory eg, a non-volatile memory
  • the method shown in FIG1 may further include the following steps:
  • the terminal device displays the second hot zone on the first display screen, wherein the second hot zone is used to prompt the application interface to be displayed in a floating window.
  • the second hot zone is located at a different position from the first hot zone.
  • the second hot zone can be displayed during the first touch operation to promptly remind the user to display the application interface in a floating window. If the user slides the application interface to the second hot zone, the application interface can be displayed in a floating window.
  • the second threshold value may be preset and stored in a memory (eg, a non-volatile memory) of the terminal device.
  • the second threshold value may be equal to or different from the first threshold value.
  • step 104 After executing step 104, the following steps may also be performed:
  • the terminal device displays a touch window on the first display screen, and the touch window is used to prompt the content displayed on the second display screen to be moved to the first display screen for display.
  • the touch window may be displayed at any position of the first display screen.
  • the touch window may be displayed at the screen edge of the first display screen (e.g., any one of the upper screen edge, the lower screen edge, the left screen edge, and the right screen edge).
  • the touch window may be displayed at the upper screen edge of the first display screen.
  • the touch window may be displayed in the form of a "handle" (see FIG. 2 ).
  • the user can slide or click the touch window to pull the application interface displayed on the second display screen back to the first display screen for display.
  • a touch window can be provided for the user to pull the application interface displayed on the second display screen back to the first display screen for display, thereby facilitating the user to quickly switch the application interface between the first display screen and the second display screen, thereby improving the user operation experience.
  • step 104 After executing step 104, the following steps may also be performed:
  • the terminal device displays the desktop on the first display screen.
  • the application interface displayed on the first display screen is pushed to the second display screen for display, the application interface is no longer displayed on the first display screen, and the desktop can be displayed on the first display screen.
  • the terminal device may further perform the following steps:
  • a touch operation on a second application is detected on the first display interface, and the second application is opened.
  • the application interface displayed on the first display screen may be an application interface of a first application.
  • the first application and the second application are different applications.
  • the user can operate on the first display screen to open the application interface of another application (second application). It is possible to display one application interface on the first display screen and another application interface on the second display screen. Different applications can be displayed on two different display screens, and it can be applied to scenarios where two application interfaces need to be displayed at the same time.
  • the user opens the application interface of the first application displayed on the first display screen (for example, a QR code
  • the second application for example, an entertainment application
  • the QR code interface can be displayed to others for viewing or scanning and payment, etc. It can meet the user's needs for displaying QR codes and entertainment.
  • the folding screen of the terminal device can simultaneously meet the user's needs for displaying QR codes and entertainment, and can also ensure the user's privacy needs for opening the second application on the first display screen (inner screen).
  • Figure 2 is an interactive schematic diagram of pushing an application interface displayed on a first display screen to a second display screen for display provided by an embodiment of the present application.
  • the terminal device is taken as an example of a folding screen mobile phone, and the application interface is described by taking a QR code interface as an example.
  • the QR code interface (application interface) is first displayed on the inner screen (first display screen).
  • the user slides the QR code interface on the inner screen (i.e., exits the application).
  • two hot zones are displayed on the inner screen: "external screen display” (first hot zone) and "floating window” (second hot zone).
  • the user continues to slide the QR code interface on the inner screen.
  • the QR code interface disappears from the inner screen, and the QR code interface is pushed to the external screen display.
  • the inner screen displays the desktop, and there is a handle (touch window) displayed in the upper left corner of the inner screen.
  • the QR code interface can be pulled back to the inner screen by pulling down the handle (not shown in Figure 2).
  • the QR code interface displayed on the inner screen can be pushed to the outer screen for display, which improves the efficiency of switching the application interface between the two display screens.
  • FIG. 3 is a schematic diagram of a specific process of pushing an application interface displayed on a first display screen to a second display screen for display, provided in an embodiment of the present application.
  • the push management service (OplusPuttmanagerService) can be triggered to start the push service, triggering a bunch of services (PuttService) to start the push, and the push service creates a surface view, binds the surface view to the outer screen shell container, and can notify the device management service (DisplayManagerService) to create a virtual display screen through the surface view.
  • the push management service moves the application (the application container where the application interface is located) to the virtual display screen, changes the size of the application container, and notifies the entry into the push state.
  • the push service displays a handle at the top of the inner screen.
  • the Android system can create an OplusPuttmanagerService, which is responsible for receiving the message from the Launcher to start the push, pulling up the push service (PuttSerivce), and interacting with other modules.
  • OplusPuttmanagerService responsible for receiving the message from the Launcher to start the push, pulling up the push service (PuttSerivce), and interacting with other modules.
  • the application container (Task) where the current application interface (Activity) is located is moved to the virtual display screen; when a push is pulled back, the application container (Task) is moved from the virtual display screen back to the inner screen;
  • the current Activity can be understood as the application interface currently displayed in the foreground by the naked eye;
  • PowerManagerService is the native power management service of Android, which can be responsible for turning the screen on and off of the terminal device;
  • DisplayFoldControler is an Android native module used to control the screen switching of foldable screen devices
  • the business party can be the APP that draws the top handle, or any self-developed application (such as SystemUI); the push status can include two changes: entering the push and exiting the push.
  • one-push exit can also be called one-push exit
  • the logic here is to exit the application pushed out and displayed on the external screen from the external screen.
  • application desktop launch refers to clicking the application icon on the desktop to launch the application.
  • the external screen shell container is a business module used to display the external screen display window, and can be used as a container to carry SurfaceView objects; SurfaceView needs to be placed in a certain view container of the external screen, so it needs to be mounted.
  • the external screen can have many view containers, and the push service needs to find the view container created in the external screen shell container to mount the SurfaceView and put the SurfaceView in it.
  • the external screen can have many cards, and the external screen shell container can move many cards, so find the view container created by the external screen shell container.
  • the content carried by SurfaceView is the content in the virtual display screen, and the content in the virtual display screen is the Task where the Activity is located. Because SurfaceView is displayed in the outer screen shell container, the interface finally seen on the outer screen is the Task where the Activity is located pushed from the inner screen.
  • OplusPuttManagerService is an abstract service concept in software, which can be considered as a module for managing specified services
  • PuttService is a service component that inherits the native Android.
  • OplusPuttManagerService can be used to manage the life cycle of PuttService.
  • Figure 4 is a flow chart of another interface display method provided by an embodiment of the present application. As shown in Figure 4, the method may include the following steps.
  • the terminal device After detecting a first touch operation on an application interface displayed on a first display screen, the terminal device creates a virtual display screen.
  • the terminal device establishes a mapping relationship between the virtual display screen and the second display screen, where the mapping relationship is used to map the content of the virtual display screen to the second display screen.
  • the terminal device moves the application container where the application interface is located from the first display screen to the virtual display screen.
  • the terminal device adjusts the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • steps 401 to 404 can refer to the description of steps 101 to 104 above, which will not be repeated here.
  • the terminal device displays a touch window on the first display screen, where the touch window is used to prompt that the content displayed on the second display screen is moved to the first display screen for display.
  • step 405 can refer to the above-mentioned related description, which will not be repeated here.
  • the terminal device moves the adjusted application container from the virtual display screen to the bottom layer of the first display screen.
  • the second touch operation may be at least one of a sliding operation and a clicking operation.
  • the sliding operation may include: any one of sliding up, sliding down, sliding to the left, and sliding to the right.
  • the clicking operation may include: any one of a single-click operation, a double-click operation, a triple-click operation, and a quadruple-click operation.
  • the second touch operation may be a sliding operation.
  • the first display screen can open many applications, each application corresponds to an application container, and the application container corresponding to the foreground application is located at the top layer of the first display screen.
  • the application interface of the foreground application can be seen by the user.
  • the application containers corresponding to other background applications cannot be seen by the user.
  • the adjusted application container When the adjusted application container is moved from the virtual display screen to the bottom layer of the first display screen, the user cannot see the application interface in the adjusted application container on the first display screen, thereby improving the display effect of the application interface.
  • the adjusted application container does not match the size of the first display screen, if the adjusted application container is moved from the virtual display screen to the top layer of the first display screen, when the size of the adjusted application container is adjusted in step 407, the process of the size change of the application container can be seen on the first display screen, which will affect the display effect of the application interface.
  • the terminal device adjusts the adjusted application container so that the length of the second adjusted application container is less than or equal to the length of the first display screen, and the width of the second adjusted application container is less than or equal to the width of the first display screen.
  • the size of the adjusted application container may be adjusted through the OplusPuttmanagerService.
  • the same application interface in the scenario of a physical multi-screen device, can be seamlessly switched between different screen sizes and/or different resolutions, and the display compatibility problem of the application interface on different physical screen devices can be solved at the system level.
  • the aspect ratio of the first display screen is different from that of the second display screen, the aspect ratio of the virtual display screen is equal to that of the second display screen, and the area of the virtual display screen is greater than or equal to that of the second display screen.
  • step 407 may include the following steps:
  • the terminal device adjusts the aspect ratio of the adjusted application container to be the same as the aspect ratio of the first display screen
  • the terminal device adjusts the scaling factor of the adjusted application container so that the length of the second-adjusted application container is equal to the length of the first display screen, and the width of the second-adjusted application container is equal to the width of the first display screen.
  • the aspect ratio of the virtual display screen when creating a virtual display screen, can be made equal to the aspect ratio of the second display screen.
  • the application container when the size of the application container is subsequently adjusted, the application container can be directly adjusted according to the aspect ratio of the virtual display screen.
  • the area of the virtual display screen is larger than the area of the second display screen, which can ensure that the virtual display screen can carry a larger container.
  • the scaling factor of the adjusted application container is adjusted again, so that the length of the second-adjusted application container is equal to the length of the first display screen, and the width of the second-adjusted application container is equal to the width of the first display screen, so that the size of the second-adjusted application container matches the first display screen, so that the content of the application interface in the application container can fill the first display screen without display abnormalities, thereby improving the display effect of pulling the application interface from the second display screen back to the first display screen for display.
  • the terminal device moves the second adjusted application container from the bottom layer to the top layer of the first display screen.
  • the second adjusted application container is moved from the bottom layer to the top layer of the first display screen, so that the user sees the application interface in the second adjusted application container on the first display screen, thereby improving the display effect of the application interface on the first display screen.
  • the second adjusted application container may be located at the top layer of the first display screen.
  • the second adjusted application container may be directly displayed in the first display screen.
  • the second adjusted application container may also be located in a touch window, and may be displayed in the touch window when the user pulls down the touch window.
  • step 408 the following steps may also be executed:
  • the terminal device displays a first animation on the first display screen, where the first animation is used to prompt the application interface to be pulled back from the touch window to the first display screen.
  • the process of pulling the application interface from the touch window back to the first display screen may display a first animation
  • the first animation may display an animation effect of pulling the application interface from the touch window back to the first display screen.
  • the first animation may prompt the user that the application interface is being pulled from the touch window back to the first display screen.
  • the first animation may be a process in which the application interface slides down from the top touch window.
  • the size change process of the application interface in the application container will be displayed on the first display screen, affecting the display effect. Displaying the application interface during the display of the first animation can improve the display effect of the application interface being pulled back from the touch window to the first display screen.
  • step 406 the following steps may also be executed:
  • the terminal device releases the mapping relationship between the virtual display screen and the second display screen
  • the terminal device destroys the virtual display screen.
  • the adjusted application container is moved from the virtual display screen to the bottom layer of the first display screen, there is no application container in the virtual display screen and the virtual display screen is not needed.
  • the mapping relationship between the virtual display screen and the second display screen can be released and the virtual display screen can be destroyed.
  • step (31) and step (32) can be performed after "the terminal device displays the first animation on the first display screen".
  • step (32) After executing step (32), the following steps may also be performed:
  • the terminal device removes the touch window.
  • the touch window loses the "push and pull back" function. By removing the touch window, there is no need to display a handle on the first display screen, which can improve the display effect of the first display screen.
  • the second display screen (external screen) can be triggered to return to the external screen.
  • the main interface of the outer shell container may not display content.
  • Figure 5 is an interactive schematic diagram of pulling the application interface from the second display screen back to the first display screen for display provided by an embodiment of the present application.
  • the terminal device is taken as a folding screen mobile phone as an example, and the application interface is described by taking a QR code interface as an example.
  • the user can pull down the touch window (handle) at the top of the inner screen to pull the application interface (QR code interface) of the outer screen back to the inner screen display, the outer screen goes black, and the inner screen animation enters.
  • Figure 6 is a schematic diagram of a specific process of pulling the application interface from the second display screen back to the first display screen for display provided by an embodiment of the present application.
  • the process may include the following steps.
  • the external screen triggers the return to the main interface of the external screen shell container
  • the push service pulls down the top handle of the inner screen (touch window), moves the push application container (the application container where the application interface is located) to the inner screen, and unbinds the surface view (SurfaceView) from the outer screen shell container.
  • the outer screen shell container destroys the view container, and the push service can destroy the virtual display screen through the device management service (DisplayMangerService).
  • the OplusPuttmanagerService moves the application to the inner screen, changes the size of the application container, and moves the application back to the inner screen. After the animation of the application entering the inner screen ends, the application is notified that it has been pulled back to the inner screen.
  • the same application interface can be seamlessly switched between the two screens of different sizes, and the display compatibility problem of the application interface on different physical screen devices can be solved at the system level.
  • the terminal device includes a hardware structure and/or software module corresponding to the execution of each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
  • the embodiment of the present application can divide the terminal device into functional units according to the above method example.
  • each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. The actual implementation is not limited to the actual unit. Now there are other ways of division.
  • FIG. 7 is a schematic diagram of the structure of an interface display device provided in an embodiment of the present application.
  • the interface display device 700 is applied to a terminal device.
  • the interface display device 700 may include a creation unit 701, a mapping unit 702, a movement unit 703, and an adjustment unit 704, wherein:
  • a creating unit 701 configured to create a virtual display screen after detecting a first touch operation on an application interface displayed on a first display screen;
  • a mapping unit 702 configured to establish a mapping relationship between the virtual display screen and a second display screen, wherein the mapping relationship is used to map the content of the virtual display screen to the second display screen;
  • a moving unit 703, configured to move the application container where the application interface is located from the first display screen to the virtual display screen;
  • the adjusting unit 704 is configured to adjust the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • the interface display device 700 may further include a display unit 705 .
  • the display unit 705 is configured to display a touch window on the first display screen after the adjustment unit 704 adjusts the application container, wherein the touch window is configured to prompt that the content displayed on the second display screen is moved to the first display screen for display.
  • the moving unit 703 is further configured to move the adjusted application container from the virtual display screen to the bottom layer of the first display screen after detecting a second touch operation on the touch window;
  • the adjusting unit 704 is further configured to adjust the adjusted application container so that the length of the second-adjusted application container is less than or equal to the length of the first display screen, and the width of the second-adjusted application container is less than or equal to the width of the first display screen;
  • the moving unit 703 is further configured to move the second adjusted application container from the bottom layer to the top layer of the first display screen.
  • the interface display device 700 may further include a releasing unit 706 and a destroying unit 707 .
  • the releasing unit 706 is configured to release the mapping relationship between the virtual display screen and the second display screen after the adjusting unit 704 moves the adjusted application container from the virtual display screen to the bottom layer of the first display screen;
  • the destroying unit 707 is used to destroy the virtual display screen.
  • the interface display device 700 may further include a removing unit 708 .
  • the removing unit 708 is configured to remove the touch window after the destroying unit 707 destroys the virtual display screen.
  • the display unit 705 is also used to display a first animation on the first display screen after the moving unit 703 moves the second-adjusted application container from the bottom layer to the top layer of the first display screen, wherein the first animation is used to prompt the application interface to be pulled back from the touch window to the first display screen.
  • the aspect ratio of the first display screen is different from the aspect ratio of the second display screen, the aspect ratio of the virtual display screen is equal to the aspect ratio of the second display screen, and the area of the virtual display screen is greater than or equal to the area of the second display screen; the adjustment unit 704 adjusts the application container so that the length of the adjusted application container is less than or equal to the length of the second display screen, and the width of the adjusted application container is less than or equal to the width of the second display screen.
  • the method includes: adjusting the aspect ratio of the application container to be the same as the aspect ratio of the virtual display screen; and adjusting the scaling factor of the application container to make the length of the adjusted application container equal to the length of the second display screen and the width of the adjusted application container equal to the width of the second display screen.
  • the adjustment unit 704 adjusts the adjusted application container so that the length of the second-adjusted application container is less than or equal to the length of the first display screen, and the width of the second-adjusted application container is less than or equal to the width of the first display screen, including: adjusting the aspect ratio of the adjusted application container to be the same as the aspect ratio of the first display screen; adjusting the scaling factor of the adjusted application container so that the length of the second-adjusted application container is equal to the length of the first display screen, and the width of the second-adjusted application container is equal to the width of the first display screen.
  • the creating unit 701 creates a virtual display screen, including: creating a surface view, and notifying a device management service to create a virtual display screen through the surface view.
  • the mapping unit 702 establishes a mapping relationship between the virtual display screen and the second display screen, including: binding the surface view to a shell container of the second display screen, and directing the content carried by the surface view to the virtual display screen.
  • the first touch operation includes: sliding the application interface displayed on the first display screen to a first hot zone; wherein the first hot zone is used to prompt that the application interface is pushed to the second display screen for display.
  • sliding the application interface displayed on the first display screen to the first hot zone includes: when a sliding distance of the first touch operation is greater than or equal to a first threshold, displaying the first hot zone on the first display screen, and sliding the application interface displayed on the first display screen to the first hot zone.
  • the application interface may include an application interface of at least one application.
  • the creation unit 701, mapping unit 702, moving unit 703, adjustment unit 704, release unit 706, destruction unit 707, and removal unit 708 in the embodiment of the present application can be processors in the terminal device, and the display unit 705 in the embodiment of the present application can be a display module in the terminal device.
  • the specific implementation of the interface display device 700 shown in FIG. 7 may refer to the method embodiments shown in FIG. 1 to FIG. 6 , and will not be described in detail here.
  • the application interface is originally displayed on the first display screen.
  • the content of the application interface in the application container in the virtual display screen can be mapped to the second display screen, thereby realizing that the application interface displayed on the first display screen is pushed to the second display screen for display. Since the length of the application container is less than or equal to the length of the second display screen, and the width of the application container is equal to or less than the width of the second display screen, when the content of the application interface in the application container is mapped to the second display screen, the interface elements will not be incompletely displayed or overlapped, and display abnormalities can be avoided when the application interface is moved from the first display screen to the second display screen for display.
  • the terminal device 800 includes a processor 801 and a memory 802.
  • the processor 801 and the memory 802 can be interconnected via a communication bus 803.
  • the communication bus 803 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • the communication bus 803 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in Figure 8, but it does not mean that there is only one bus or one type of bus.
  • the memory 802 is used to store computer programs, and the computer program includes program instructions.
  • the processor 801 is configured to call program instructions, and the above program includes instructions for executing Part or all of the steps in the method shown in Figures 1 to 6.
  • the memory 802 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
  • the memory may be independent and connected to the processor through a bus.
  • the memory may also be integrated with the processor.
  • the terminal device 800 may further include a display module 804 , which may include a display panel, a backlight module (backlight source and backlight driving circuit), and the like.
  • a display module 804 may include a display panel, a backlight module (backlight source and backlight driving circuit), and the like.
  • the application interface is originally displayed on the first display screen.
  • the content of the application interface in the application container in the virtual display screen can be mapped to the second display screen, thereby realizing that the application interface displayed on the first display screen is pushed to the second display screen for display. Since the length of the application container is less than or equal to the length of the second display screen, and the width of the application container is equal to or less than the width of the second display screen, when the content of the application interface in the application container is mapped to the second display screen, the interface elements will not be incompletely displayed or overlapped, and display abnormalities can be avoided when the application interface is moved from the first display screen to the second display screen for display.
  • An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the interface display methods recorded in the above method embodiments.
  • the disclosed device can be implemented in other ways.
  • the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit or may be separate units.
  • the units may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software program modules.
  • the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a memory, including several instructions to enable a computer device (which can be a personal computer, terminal device or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • a person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable memory, which may include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种界面显示方法、装置、终端设备及存储介质,该界面显示方法包括:检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏,建立虚拟显示屏与第二显示屏的映射关系,映射关系用于将虚拟显示屏的内容映射到第二显示屏;将应用界面所在的应用容器从第一显示屏移动至虚拟显示屏;调整应用容器,使得调整后的应用容器的长度小于或等于第二显示屏的长度,调整后的应用容器的宽度小于或等于第二显示屏的宽度。本申请实施例可以避免应用界面从第一显示屏移动到第二显示屏中显示时出现显示异常。

Description

界面显示方法、装置、终端设备及存储介质
本申请要求于2022年10月14日提交中国专利局、申请号为202211260674.6、申请名称为“界面显示方法、装置、终端设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及显示技术领域,具体涉及一种界面显示方法、装置、终端设备及存储介质。
背景技术
目前,将一个显示屏显示的应用界面推送到另外显示屏显示时,由于很多应用界面的大小已经固定了长度和宽度,当该应用界面在另一个显示屏上显示时,可能会出现界面元素显示不全或者重叠,导致出现应用界面显示异常。
发明内容
本申请实施例提供一种界面显示方法、装置、终端设备及存储介质,可以避免应用界面显示异常。
本申请实施例的第一方面提供了一种界面显示方法,包括:
检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏,建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;
将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;
调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。
本申请实施例的第二方面提供了一种界面显示装置,包括:
创建单元,用于检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏;
映射单元,用于建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;
移动单元,用于将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;
调整单元,用于调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。
本申请实施例的第三方面提供了一种终端设备,包括第一显示屏、第二显示屏、处理器和存储器,所述第一显示屏、所述第二显示屏、所述存储器与所述处理器耦合,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如本申请实施例第一方面中的步骤指令。
本申请实施例的第四方面提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,所述计算机程序包括程序指令,所述程序指 令当被处理器执行时使所述处理器执行如本申请实施例第一方面中的步骤指令。
本申请实施例的第五方面提供了一种计算机程序产品,其中,上述计算机程序产品包括计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如本申请实施例第一方面中的步骤指令。
本申请实施例的界面显示方法,检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏,建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。本申请实施例中,应用界面原本在第一显示屏显示,将应用界面所在的应用容器移动到虚拟显示屏后,可以将虚拟显示屏中的应用容器中的应用界面的内容映射到第二显示屏,从而实现将第一显示屏中显示的应用界面推送到第二显示屏中显示。由于应用容器的长度小于或等于第二显示屏的长度,应用容器的宽度或等于小于第二显示屏的宽度,应用容器中的应用界面的内容映射到第二显示屏时不会出现界面元素显示不全或者重叠的情况,可以避免应用界面从第一显示屏移动到第二显示屏中显示时出现显示异常。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种界面显示方法的流程示意图;
图2是本申请实施例提供的一种将第一显示屏显示的应用界面推送到第二显示屏进行显示的交互示意图;
图3是本申请实施例提供的一种将第一显示屏显示的应用界面推送到第二显示屏进行显示的具体流程示意图;
图4是本申请实施例提供的另一种界面显示方法的流程示意图;
图5是本申请实施例提供的一种将应用界面从第二显示屏拉回第一显示屏显示的交互示意图;
图6是本申请实施例提供的一种将应用界面从第二显示屏拉回第一显示屏显示的具体流程示意图;
图7是本申请实施例提供的一种界面显示装置的结构示意图;
图8是本申请实施例提供的一种终端设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的终端设备是具备显示能力的设备。可以是手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、车载单元(On board Unit,OBU)、可穿戴设备(例如,手表、手环、智能头盔等)、智能家居设备(电饭煲、音响、家庭管家设备等)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备等。
将一个显示屏显示的应用界面推送到另外显示屏显示时,由于很多应用界面的大小已经固定了长度和宽度,当该应用界面在另一个显示屏上显示时,如果第一显示屏的面积与第二显示屏的面积不同,或者第一显示屏的长宽比与第二显示屏的长宽比不同,可能会出现界面元素显示不全或者重叠,导致出现应用界面显示异常。
本申请实施例的界面显示方法,检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏,建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。本申请实施例中,应用界面原本在第一显示屏显示,将应用界面所在的应用容器移动到虚拟显示屏后,可以将虚拟显示屏中的应用容器中的应用界面的内容映射到第二显示屏,从而实现将第一显示屏中显示的应用界面推送到第二显示屏中显示。由于应用容器的长度小于或等于第二显示屏的长度,应用容器的宽度或等于小于第二显示屏的宽度,应用容器中的应用界面的内容映射到第二显示屏时不会出现界面元素显示不全或者重叠的情况,可以避免应用界面从第一显示屏移动到第二显示屏中显示时出现显示异常。以下具体进行说明。
请参阅图1,图1是本申请实施例提供的一种界面显示方法的流程示意图。如图1所示,该方法可以包括如下步骤。
101,终端设备检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏。
本申请实施例中,第一显示屏可以是触摸显示屏。第一触摸操作可以是滑动操作、点击操作中的至少一种。滑动操作可以包括:向上滑动、向下滑动、向左滑动、向右滑动中的任一种。点击操作可以包括:单击操作、双击操作、三击操作、四击操作中的任一种。
触摸显示屏,是指具有触摸输入能力的显示屏。
第一显示屏显示的应用界面,可以是第一显示屏当前显示的应用界面或者第一显示屏的近期任务卡片的应用界面。近期任务卡片,可以是在第一显示屏中近期打开的应用所在的卡片。例如,在手机中,可以查看近期打开的各个应用,每个应用都可以通过卡片的形式显示出来。
应用界面,可以包括一个应用的应用界面。也可以包括至少两个应用的应用界面。
可选的,所述应用界面可以包括至少一个应用的应用界面。
本申请实施例中,应用界面包括至少一个应用的应用界面时,可以将至少一个应用的应用界面(比如,分屏显示的至少两个应用的应用界面)投射到另外一个屏幕(第二显示屏)显示。可以适用于将某个应用界面显示在多个不同分辨率的物理屏幕下。
本申请实施例还可以将一个显示屏(第一显示屏)的多个应用界面组合再一起投射到另一个显示屏(第二显示屏),或者可以将一个应用界面投射到多个不同尺寸的显示屏(第二显示屏)上。
虚拟显示屏(virtual display),也可以称为虚拟屏或虚拟显示器。虚拟显示屏对用户来说不可见。虚拟显示屏可以通过安卓(Android)系统的原生组件进行创建。
102,终端设备建立虚拟显示屏与第二显示屏的映射关系,映射关系用于将虚拟显示屏的内容映射到第二显示屏。
第二显示屏可以是触摸显示屏,也可以是不具有触摸输入能力的显示屏。
其中,第一显示屏可以是一个显示屏。第二显示屏可以是一个显示屏,也可以是至少两个显示屏。
第一显示屏的面积与第二显示屏的面积不同,或者第一显示屏的长宽比与第二显示屏的长宽比不同。
其中,第一显示屏的面积与第二显示屏的面积不同,可以是第一显示屏的面积大于第二显示屏的面积,比如,第一显示屏可以是折叠屏的内屏,第二显示屏可以是折叠屏的外屏。还可以是第一显示屏的面积小于第二显示屏的面积,比如,第一显示屏可以是手机的显示屏,第二显示屏可以是平板电脑或电视机的显示屏。
第一显示屏和第二显示屏均为物理显示屏。比如,可以为液晶显示屏、发光二极管(light emitting diode,LED)显示屏、有机发光二极管(organic light emitting diode,OLED)显示屏中的任一种。
在一个可能的实施例中,终端设备可以包括第一显示屏和第二显示屏,终端设备可以包含多个显示屏,第一显示屏和第二显示屏是终端设备包含的多个显示屏中的任意两个。例如,第一显示屏和第二显示屏可以分别为终端设备的折叠屏中的内屏(内屏可以为主屏)和外屏(外屏可以为副屏)。一般而言,内屏的尺寸要大于外屏的尺寸,内屏的分辨率要大于外屏的分辨率。例如,内屏的分辨率可以是1960*1080,外屏的分辨率可以是640*480。这里的分辨率指的是屏幕分辨率,也可以是显示分辨率。
在一个可能的实施例中,终端设备可以包括第一显示屏,第二显示屏可以位于其他的电子设备中。比如,第一显示屏可以是平板电脑中的显示屏,第二显示屏可以是手机中的显示屏。终端设备的第一显示屏和电子设备的第二显示屏可以进行屏幕通信。可以将第一显示屏中的应用界面投屏显示到第二显示屏中。
其中,建立虚拟显示屏与第二显示屏的映射关系后,可以将虚拟显示屏的内容映射到第二显示屏。建立映射关系之后,第二显示屏显示的内容为虚拟显示屏中的内容。
可以通过桌面应用检测到针对第一显示屏显示的应用界面的第一触摸操作。
第一触摸操作,可以是针对当前的应用界面的上滑手势。也可以是针对近期任务卡片的应用界面的上滑手势。
在创建虚拟显示屏时,虚拟显示屏中没有任何的内容。在执行步骤102时,虽然建立了虚拟显示屏与第二显示屏的映射关系,由于虚拟显示屏中没有任何的内容,第二显示屏也不显示任何内容。
103,终端设备将应用界面所在的应用容器从第一显示屏移动至虚拟显示屏。
本申请实施例中,应用界面可以是某一个或至少两个应用的应用界面。应用容器可以是用来承载至少一个应用界面的容器。在安卓系统中,应用界面可以通过活动窗口(Activity)来表示。每个应用可以对应一个应用容器(Task),一个应用容器可以承载对应的应用的至少一个活动窗口。一个应用可以对应多个活动窗口,第一显示屏当前显示的应用界面是该应用容器中层级最高(比如,位于底层)的活动窗口。
Task是一个容器,而Activity是填充这个容器的活动窗口。一般而言,第一个加入该Task的Activity则会处于该Task的最下面(层级最低),最后加入该Task的Activity则会在最上面(层级最高)。从Task中取出Activity是从最顶端取出,也就是说最先取出的是最后添加的Activity。
在创建虚拟显示屏后,将应用界面所在的应用容器从第一显示屏移动至虚拟显示屏后,此时虚拟显示屏中只有一个应用容器,即应用界面所在的应用容器,虚拟显示屏中显示的内容为应用容器中的内容。
104,终端设备调整应用容器,使得调整后的应用容器的长度小于或等于第二显示屏的长度,调整后的应用容器的宽度小于或等于第二显示屏的宽度。
可以通过一推管理服务(OplusPuttmanagerService)来调整该应用容器的大小。
本申请实施例中,将应用界面所在的应用容器从第一显示屏移动至虚拟显示屏后,由于已经建立虚拟显示屏与第二显示屏的映射关系后,可以将虚拟显示屏的内容(即,在应用容器中的应用界面的内容)映射到第二显示屏。
本申请实施例中,在物理多屏设备的场景下,可以实现同一应用界面在不同屏幕尺寸和/或不同分辨率下做无缝切换,可以系统级的解决应用界面在不同物理屏幕设备的显示兼容性问题。无需应用对不同尺寸的显示屏(比如,异形屏)做针对性的适配工作,对异形屏的应用表现力和三方生态有显著提升,大大减少应用针对不同屏幕的适配工作量,非常利于三方应用生态的扩展和推广。
其中,步骤102可以在步骤101之后执行,或者可以在步骤104之后执行。
应用界面所在的应用容器,由于该应用容器之前是在第一显示屏,该应用容器的尺寸与第一显示屏的尺寸适配,而与第二显示屏的尺寸不适配。如果第一显示屏的面积与第二显示屏的面积不同或者第一显示屏的长宽比与第二显示屏的长宽比不同,将该应用容器移动到虚拟显示屏之后,为了让应用容器的尺寸与第二显示屏的尺寸适配,需要调整应用容器,使得调整后的应用容器的长度小于或等于第二显示屏的长度,调整后的应用容器的宽 度小于或等于第二显示屏的宽度。
需要说明的是,由于应用界面在应用容器中,调整了应用容器的尺寸后,该应用界面的尺寸也会相应的调整。一般而言,应用界面的尺寸与应用容器的尺寸相同。
在一个实施例中,第二显示屏可以在执行步骤104之后被点亮,在应用容器的尺寸被调整后,再点亮第二显示屏,使得第二显示屏在点亮后第二显示屏显示的内容是调整后的应用容器中的应用界面的内容,避免用户在第二显示屏中看到应用界面调整的过程,提高用户体验。
在另一个实施例中,第二显示屏可以在执行步骤104之前被点亮。
本申请实施例中,应用界面原本在第一显示屏显示,将应用界面所在的应用容器移动到虚拟显示屏后,可以将虚拟显示屏中的应用容器中的应用界面的内容映射到第二显示屏,从而实现将第一显示屏中显示的应用界面推送到第二显示屏中显示。由于应用容器的长度小于或等于第二显示屏的长度,应用容器的宽度或等于小于第二显示屏的宽度,应用容器中的应用界面的内容映射到第二显示屏时不会出现界面元素显示不全或者重叠的情况,可以避免应用界面从第一显示屏移动到第二显示屏中显示时出现显示异常。
可选的,所述第一显示屏的长宽比与所述第二显示屏的长宽比不同,所述虚拟显示屏的长宽比等于所述第二显示屏的长宽比,所述虚拟显示屏的面积大于或等于所述第二显示屏的面积。
步骤104可以具体可以包括如下步骤:
(11)终端设备调整所述应用容器的长宽比,将所述应用容器的长宽比调整为与所述虚拟显示屏的长宽比相同;
(12)终端设备调整所述应用容器的缩放系数,使得调整后的应用容器的长度等于所述第二显示屏的长度,调整后的应用容器的宽度等于所述第二显示屏的宽度。
本申请实施例中,创建虚拟显示屏时,可以使得虚拟显示屏的长宽比等于第二显示屏的长宽比,在后续调整应用容器的尺寸时,可以直接按照虚拟显示屏的长宽比调整应用容器的长宽比。虚拟显示屏的面积大于第二显示屏的面积,可以保证虚拟显示屏能够承载尺寸较大的容器。
在调整应用容器的长宽比与虚拟显示屏的长宽比相同之后,再调整该应用容器的缩放系数,使得调整后的应用容器的长度等于第二显示屏的长度,调整后的应用容器的宽度等于第二显示屏的宽度,使得调整后的应用容器的尺寸与第二显示屏匹配,使得应用容器中的应用界面的内容能既够填满第二显示屏,又不会出现显示异常,提高应用界面从第一界面推送在第二显示屏进行显示的显示效果。
可选的,虚拟显示屏的面积大于第一显示屏的面积。可以将应用界面所在的应用容器从第一显示屏移动至虚拟显示屏后,虚拟显示屏能够承载该应用容器。
可选的,步骤101中,终端设备创建虚拟显示屏,包括:
终端设备创建表面视图,通过所述表面视图通知设备管理服务创建虚拟显示屏。
本申请实施例中,可以在安卓系统中创建表面视图(surface view)。
在桌面应用(Launcher)检测到第一触摸操作后,可以触发一推管理服务(OplusPuttmanagerService)启动一推服务,触发一堆服务(puttService)启动一推,一推 服务创建表面视图,通过所述表面视图通知设备管理服务(DisplayManagerService)创建虚拟显示屏。
其中,Launcher可以是安卓系统中的桌面启动器,是安卓系统中的主要程序组件之一。设备管理服务是安卓系统中的主要程序组件之一。
可选的,步骤102中,终端设备建立虚拟显示屏与第二显示屏的映射关系,包括:
终端设备将所述表面视图与所述第二显示屏的壳容器绑定,将所述表面视图承载的内容指向所述虚拟显示屏。
本申请实施例中,将表面视图与第二显示屏的壳容器绑定,即建立表面视图与第二显示屏的映射关系。第二显示屏显示的内容为第二显示屏的壳容器的内容。表面视图承载的内容指向虚拟显示屏,可以将虚拟显示屏的内容映射到表面视图。
可以将表面视图与第二显示屏的壳容器绑定,将表面视图承载的内容指向虚拟显示屏,从而实现建立虚拟显示屏与第二显示屏的映射关系。
本申请实施例中,利用虚拟显示屏的内容映射到表面视图上的机制,通过调整应界面所在的应用容器的大小,从而使应用界面完美显示在分辨率较小的物理屏幕(第二显示屏)上,完美解决因物理屏幕尺寸较小带来的应用显示兼容性问题。无需应用对不同尺寸的显示屏(比如,异形屏)做针对性的适配工作,对异形屏的应用表现力和三方生态有显著提升,大大减少应用针对不同屏幕的适配工作量,非常利于三方应用生态的扩展和推广。
其中,一推管理服务、一推服务、第二显示屏的壳容器可以是安卓系统中新建的用于实现启动一推/一推拉回/退出一推的功能的程序组件。
启动一推:用户可以在当前界面通过上滑手势将当前界面上推到第一热区(比如,左上角热区),抬手之后当前界面从内屏切到外屏显示,此时内屏显示为桌面。
一推拉回:用户通过点击内屏顶部的触摸窗口(比如,把手)或者往下拖动触摸窗口,就可以把二维码界面从外屏拉回内屏显示。
退出一推:应用界面被推到外屏显示时,外屏应用界面顶部有一个触摸窗口,向下拖动外屏的触摸窗口可将该应用界面对应的应用从外屏退出,退到后台。
可选的,第一触摸操作包括:将所述第一显示屏显示的应用界面滑动至第一热区;其中,所述第一热区用于提示将所述应用界面推送到所述第二显示屏显示。
本申请实施例中,第一热区可以用于提示用户:将应用界面推送到该第一热区后,可以实现将应用界面推送到第二显示屏显示。
用户可以通过手指向上滑动应用界面或者向下滑动应用界面,将应用界面向上滑动或者向下滑动至第一热区后,释放手指,即可完成第一触摸操作。
应用界面滑动至第一热区,指的是应用界面的一部分落入第一热区的区域内。
第一热区可以在第一显示屏中预先显示(比如,第一热区可以在检测到第一触摸操作之前就显示),第一热区也可以在第一触摸操作的过程中显示(比如,第一热区可以在第一触摸操作的滑动距离大于或等于第一阈值的情况下显示)。
可以通过第一显示屏显示的第一热区,来提示用户完成第一触摸操作,从而辅助用户快速将应用界面推送到第二显示屏显示,以促成启动一推的完成。
可选的,所述将所述第一显示屏显示的应用界面滑动至第一热区包括:
在所述第一触摸操作的滑动距离大于或等于第一阈值的情况下,终端设备在所述第一显示屏显示所述第一热区,将所述第一显示屏显示的应用界面滑动至第一热区。
本申请实施例中,第一热区可以在第一触摸操作的过程中显示,及时提醒用户将应用界面推送到第二显示屏显示。
第一阈值可以预先进行设定,可以存储在终端设备的存储器(比如,非易失性存储器)中。
可选的,图1所示的方法还可以包括如下步骤:
在所述第一触摸操作的滑动距离大于或等于第二阈值的情况下,终端设备在所述第一显示屏显示所述第二热区,其中,所述第二热区用于提示将所述应用界面进行浮窗显示。第二热区与第一热区的位置不同。
本申请实施例中,第二热区可以在第一触摸操作的过程中显示,及时提醒用户将该应用界面进行浮窗显示。如果用户将应用界面滑动至第二热区,即可将该应用界面进行浮窗显示。
第二阈值可以预先进行设定,可以存储在终端设备的存储器(比如,非易失性存储器)中。第二阈值与第一阈值可以相等,也可以不相等。
可选的,在执行步骤104之后,还可以执行如下步骤:
终端设备在所述第一显示屏显示触摸窗口,所述触摸窗口用于提示将所述第二显示屏显示的内容移动到所述第一显示屏显示。
其中,触摸窗口可以显示在第一显示屏的任意位置。比如,触摸窗口可以显示在第一显示屏的屏幕边缘(例如,上屏幕边缘、下屏幕边缘、左屏幕边缘、右屏幕边缘中的任一种)。具体的,触摸窗口可以显示在第一显示屏的上屏幕边缘。触摸窗口可以以“把手”的形式显示(可以参见图2)。
用户可以滑动或者点击该触摸窗口,将在第二显示屏显示的应用界面拉回第一显示屏进行显示。在将第一显示屏显示的应用界面推到第二显示屏进行显示之后,可以为用户提供了一个将第二显示屏显示的应用界面拉回第一显示屏进行显示的触摸窗口,从而方便用户将应用界面在第一显示屏和第二显示屏之间进行快速切换,提高用户操作体验。
可选的,在执行步骤104之后,还可以执行如下步骤:
终端设备在所述第一显示屏显示桌面。
本申请实施例中,将第一显示屏显示的应用界面推到第二显示屏进行显示之后,该应用界面不在第一显示屏进行显示,可以在第一显示屏显示桌面。
可选的,终端设备在所述第一显示屏显示桌面之后,还可以执行如下步骤:
在所述第一显示界面检测针对第二应用的触控操作,打开第二应用。
步骤101中,第一显示屏显示的应用界面,可以是第一应用的应用界面。第一应用和第二应用是不同的应用。
在第一显示屏显示桌面之后,用户可以在第一显示屏上进行操作,打开其他应用(第二应用)的应用界面。可以实现在第一显示屏显示一个应用界面,在第二显示屏显示另一个应用界面。可以在两个不同的显示屏分别显示不同的应用,可以应用在需要同时显示两个应用界面的场景。比如,用户将第一显示屏显示的第一应用的应用界面(比如,二维码 界面)推到第二显示屏进行显示后,可以在第一显示屏打开第二应用(比如,娱乐类的应用)。二维码界面可以展示给其他人查看或者进行扫码支付等。既可以满足用户的展示二维码的需求,又可以满足用户的娱乐需求。可以通过终端设备的折叠屏同时满足用户的展示二维码的需求和娱乐需求,又可以保证用户在第一显示屏(内屏)打开第二应用的隐私需求。
请参阅图2,图2是本申请实施例提供的一种将第一显示屏显示的应用界面推送到第二显示屏进行显示的交互示意图。图2中,终端设备为折叠屏手机为例,应用界面以二维码界面为例进行说明。
如图2所示,首先在内屏(第一显示屏)显示二维码界面(应用界面),用户在内屏上滑该二维码界面(即,退出应用),此时在内屏的上面显示两个热区:“外屏显示”(第一热区)、“浮窗”(第二热区)。用户继续在内屏上滑该二维码界面,将该二维码界面移动到该“外屏显示”后,用户松开手指,该二维码界面被推往内屏的左上角,然后该二维码界面在内屏消失,二维码界面会被推到外屏显示,内屏显示桌面,且内屏顶部左上角还有一个把手(触摸窗口)显示,通过下拉把手可以把二维码界面重新拉回到内屏(图2中未显示)。
可以通过在内屏进行上滑操作,即可将内屏显示的二维码界面推送到外屏进行显示,提高了应用界面在两个显示屏中进行切换的效率。
请参阅图3,图3是本申请实施例提供的一种将第一显示屏显示的应用界面推送到第二显示屏进行显示的具体流程示意图。
在桌面(Launcher)检测到第一触摸操作(当前界面上滑手势或者针对近期任务卡片的触摸操作,比如,点击近期任务应用卡片上的按钮)后,可以触发一推管理服务(OplusPuttmanagerService)启动一推服务,触发一堆服务(PuttService)启动一推,一推服务创建表面视图,将该表面视图绑定到外屏壳容器,可以通过所述表面视图通知设备管理服务(DisplayManagerService)创建虚拟显示屏。创建虚拟显示之后,一推管理服务将应用(应用界面所在的应用容器)移动到虚拟显示屏,改变应用容器大小,通知进入一推状态,一推服务在内屏顶部显示把手。
其中,安卓系统可以创建一个一推管理服务(OplusPuttmanagerService),它负责接收Launcher启动一推的消息,拉起一推服务(PuttSerivce),以及和其他模块进行交互。
一推管理服务(OplusPuttmanagerService)的能力:
a.接收launcher调用,启动一推/一推拉回/退出一推;
b.绑定一推服务(PuttSerivce)/解绑一推服务(PuttSerivce);
c.启动一推时,把当前应用界面(Activity)所在的应用容器(Task)移到虚拟显示屏;拉回一推时,把应用容器(Task)从虚拟显示屏移回内屏;其中,当前Activity可以理解为当前肉眼看到在前台显示的应用界面;
d.把Activity所在的Task的边界(bounds)大小从内屏的长宽比(比如,内屏的长宽比为21:9)比例调整为外屏尺寸比例(比如,外屏的长宽比为16:9),除了调整Task的长宽比之外,还可以对Task做等比例缩放(设定缩放系数),缩放为外屏的等同大小(拉回一推或退出一推时,将Task的长宽比从外屏的长宽比调整为内屏的长宽比,取消缩放系数);
e.获取应用的自定义屏幕亮度,在进入一推/退出一推过程中通知电源管理服务 (PowerManagerService),动态改变内屏和/或外屏的亮度;其中,PowerManagerService是安卓原生的电源管理服务,可以负责终端设备的亮灭屏;
f.推出主动亮屏逻辑:依赖大小屏切换模块(DisplayFoldControler)的能力点亮内屏;DisplayFoldControler是安卓原生用于控制折叠屏设备屏幕切换的一个模块;
g.提供业务方注册监听一推状态变化的能力;业务方可以是服务绘制顶部把手的APP,也可以是任何自研应用(比如SystemUI);一推状态可以包括两种变化:进入一推和退出一推。
h.统一管理应用桌面启动、最近任务启动、进入浮窗、进入分屏等场景导致一推退出(一推退出也可以称为退出一推)的逻辑。这里的逻辑是把推出去在外屏显示的应用,从外屏退出的逻辑。
其中,应用桌面启动,指的是点击桌面该应用图标启动该应用。
当一个应用被推到外屏显示时,如果此时再从内屏桌面启动或者通过最近任务启动卡片以全屏或者分屏或者浮窗启动该应用时,此时该应用会退出一推状态(从外屏退出),应用在内屏以全屏或者分屏或者浮窗显示。
一堆服务(PuttService)的能力:
a.接收一推管理服务(OplusPuttmanagerService)的绑定和调度;
b.直接跟外屏壳容器(ShellContainer)通信,把自己的表面视图(SurfaceView)挂载/解挂到壳容器中;外屏壳容器是用来显示外屏显示窗口的一个业务模块,可以用来承载SurfaceView对象的一个容器;其中,SurfaceView需要放在外屏的某一个视图(view)容器里面内,所以需要挂载。外屏可以有好多个view容器的,一推服务需要找到在外屏壳容器创建的那个view容器里面去挂载该SurfaceView,把SurfaceView放进去,外屏可以有好多个卡片,外屏壳容器可以移动很多卡片,找到外屏壳容器创建的那个view容器。
c.创建自己的表面视图(SurfaceView),用此SurfaceView通知设备管理服务(DisplayMangerService)创建虚拟显示屏;
d.调用OplusPuttManagerService,把Activity所在的Task,从内屏移到虚拟显示屏;
e.此时SurfaceView承载内容就是虚拟显示屏里边的内容,而虚拟显示屏里边的内容就是Activity所在的Task,又因SurfaceView在外屏壳容器中显示,所以最终在外屏看到的界面就是从内屏推送的Activity所在的Task。
其中,一推管理服务(OplusPuttmanagerService)是软件上抽象的服务概念,可以认为是一个管理指定业务的模块,一堆服务(PuttService)是继承安卓原生的服务组件。OplusPuttManagerService可以用来管理PuttService的生命周期。
请参阅图4,图4是本申请实施例提供的另一种界面显示方法的流程示意图。如图4所示,该方法可以包括如下步骤。
401,终端设备检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏。
402,终端设备建立虚拟显示屏与第二显示屏的映射关系,映射关系用于将虚拟显示屏的内容映射到第二显示屏。
403,终端设备将应用界面所在的应用容器从第一显示屏移动至虚拟显示屏。
404,终端设备调整应用容器,使得调整后的应用容器的长度小于或等于第二显示屏的长度,调整后的应用容器的宽度小于或等于第二显示屏的宽度。
其中,步骤401至步骤404的具体实施可以参见上述步骤101至步骤104的描述,此处不再赘述。
405,终端设备在第一显示屏显示触摸窗口,触摸窗口用于提示将第二显示屏显示的内容移动到第一显示屏显示。
其中,步骤405的具体实施可以参见上述相关的描述,此处不再赘述。
406,终端设备检测到针对触摸窗口的第二触摸操作后,将调整后的应用容器从虚拟显示屏移动至第一显示屏的底层。
本申请实施例中,第二触摸操作可以是滑动操作、点击操作中的至少一种。滑动操作可以包括:向上滑动、向下滑动、向左滑动、向右滑动中的任一种。点击操作可以包括:单击操作、双击操作、三击操作、四击操作中的任一种。例如,第二触摸操作可以是下滑操作。
第一显示屏可以打开很多个应用,每个应用对应一个应用容器,前台应用对应的应用容器位于第一显示屏的顶层。前台应用的应用界面可以被用户肉眼看到。其他后台应用对应的应用容器则不能被用户肉眼看到。
当调整后的应用容器从虚拟显示屏移动至第一显示屏的底层,用户无法在第一显示屏中看到调整后的应用容器中的应用界面,从而提高应用界面的显示效果。
由于调整后的应用容器与第一显示屏的尺寸不匹配,如果将调整后的应用容器从虚拟显示屏移动至第一显示屏的顶层后,在步骤407调整该调整后的应用容器的大小时,会在第一显示屏中看到应用容器的尺寸变化的过程,会影响应用界面的显示效果。
407,终端设备调整该调整后的应用容器,使得二次调整后的应用容器的长度小于或等于第一显示屏的长度,二次调整后的应用容器的宽度小于或等于第一显示屏的宽度。
可以通过一推管理服务(OplusPuttmanagerService)来调整该调整后的应用容器的大小。
本申请实施例中,在物理多屏设备的场景下,可以实现同一应用界面在不同屏幕尺寸和/或不同分辨率下做无缝切换,可以系统级的解决应用界面在不同物理屏幕设备的显示兼容性问题。
其中,所述第一显示屏的长宽比与所述第二显示屏的长宽比不同,所述虚拟显示屏的长宽比等于所述第二显示屏的长宽比,所述虚拟显示屏的面积大于或等于所述第二显示屏的面积。
可选的,步骤407可以包括如下步骤:
(21)终端设备调整所述调整后的应用容器的长宽比,将所述调整后的应用容器的长宽比调整为与所述第一显示屏的长宽比相同;
(22)终端设备调整所述调整后的应用容器的缩放系数,使得二次调整后的应用容器的长度等于所述第一显示屏的长度,二次调整后的应用容器的宽度等于所述第一显示屏的宽度。
本申请实施例中,创建虚拟显示屏时,可以使得虚拟显示屏的长宽比等于第二显示屏的长宽比,在后续调整应用容器的尺寸时,可以直接按照虚拟显示屏的长宽比调整应用容 器的长宽比。虚拟显示屏的面积大于第二显示屏的面积,可以保证虚拟显示屏能够承载尺寸较大的容器。
在调整所述调整后的应用容器的长宽比与虚拟显示屏的长宽比相同之后,再调整所述调整后的应用容器的缩放系数,使得二次调整后的应用容器的长度等于第一显示屏的长度,二次调整后的应用容器的宽度等于第一显示屏的宽度,使得二次调整后的应用容器的尺寸与第一显示屏匹配,使得应用容器中的应用界面的内容既能够填满第一显示屏,又不会出现显示异常,提高应用界面从第二显示屏拉回第一显示屏进行显示的显示效果。
408,终端设备将二次调整后的应用容器从第一显示屏的底层移动到顶层。
本申请实施例中,在调整该调整后的应用容器的尺寸与第一显示屏适配后,再将二次调整后的应用容器从第一显示屏的底层移动到顶层,使得用户在第一显示屏中看到的是二次调整后的应用容器中的应用界面,从而提高应用界面在第一显示屏的显示效果。
在执行步骤408后,二次调整后的应用容器可以位于第一显示屏的顶层。该二次调整后的应用容器可以直接在第一显示屏中显示。该二次调整后的应用容器也可以位于触摸窗口中,用户在下拉该触摸窗口的时候,可以在触摸窗口中显示。
可选的,在执行步骤408之后,还可以执行如下步骤:
终端设备在所述第一显示屏显示第一动画,所述第一动画用于提示将所述应用界面从所述触摸窗口拉回所述第一显示屏。
本申请实施例中,将应用界面从触摸窗口拉回第一显示屏的过程,可以显示第一动画,该第一动画可以显示将应用界面从触摸窗口拉回第一显示屏的动画效果。第一动画可以提示用户正在将应用界面从所述触摸窗口拉回第一显示屏。比如,该第一动画,可以应用界面是从顶部的触摸窗口往下滑的一个过程。
由于在检测到针对触摸窗口的第二触摸操作后,应用容器的尺寸还没有调整好,如果不显示动画,则会在第一显示屏中显示应用容器中的应用界面的尺寸变化的过程,影响显示效果。在显示第一动画的过程中显示应用界面,可以提高应用界面从触摸窗口拉回第一显示屏的显示效果。
可选的,在执行步骤406之后,还可以执行如下步骤:
(31)终端设备解除所述虚拟显示屏与所述第二显示屏的映射关系;
(32)终端设备销毁所述虚拟显示屏。
本申请实施例中,在将调整后的应用容器从虚拟显示屏移动至第一显示屏的底层后,虚拟显示屏中没有任何应用容器,不需要用到该虚拟显示屏,为了降低后台资源开销,可以解除所述虚拟显示屏与所述第二显示屏的映射关系,销毁所述虚拟显示屏。
其中,步骤(31)和步骤(32)可以在“终端设备在所述第一显示屏显示第一动画”之后执行。
可选的,在执行步骤(32)之后,还可以执行如下步骤:
终端设备移除所述触摸窗口。
本申请实施例中,在销毁所述虚拟显示屏之后,该触摸窗口失去了“一推拉回”的作用,移除该触摸窗口,第一显示屏上无需显示一个把手,可以提高第一显示屏的显示效果。
其中,在“终端设备移除所述触摸窗口”之后,第二显示屏(外屏)可以触发回到外 屏壳容器的主界面。外屏壳容器的主界面可以不显示内容。
请参阅图5,图5是本申请实施例提供的一种将应用界面从第二显示屏拉回第一显示屏显示的交互示意图。图5中,终端设备为折叠屏手机为例,应用界面以二维码界面为例进行说明。
如图5所示,用户可以往下拉内屏顶部的触摸窗口(把手),将外屏的应用界面(二维码界面)拉回内屏显示,外屏黑屏,内屏动画进入。
请参阅图6,图6是本申请实施例提供的一种将应用界面从第二显示屏拉回第一显示屏显示的具体流程示意图。该流程可以包括如下步骤。
(1).将外屏显示的应用界面(Activity)对应的应用容器(Task),从虚拟显示屏中移除,移动到内屏中的底部位置;
(2).还原应用容器(Task)的大小和缩放系数;
(3).把应用容器(Task)重新拉回前台;
(4).做应用容器(Task)的进场动画;
(5).销毁虚拟显示屏;
(6).外屏触发回到外屏壳容器的主界面;
其中,当检测到针对触摸窗口的第二触摸操作时,一推服务(PuttSerivce)下拉内屏顶部把手(触摸窗口),将一推应用容器(应用界面所在的应用容器)移到内屏,将表面视图(SurfaceView)与外屏壳容器解绑,外屏壳容器销毁视图容器,一推服务可以通过设备管理服务(DisplayMangerService)销毁虚拟显示屏。
一推服务(PuttSerivce)将一推应用容器(应用界面所在的应用容器)移到内屏后,一推管理服务(OplusPuttmanagerService)将应用移动到内屏,改变应用容器大小,移动应用拉回内屏动画,在应用进入内屏动画结束后,通知应用已拉回内屏。
本申请实施例中,在第一显示屏和第二显示屏的尺寸不同的情况下,可以实现同一应用界面在两个不同尺寸的屏幕下做无缝切换,可以系统级的解决应用界面在不同物理屏幕设备的显示兼容性问题。无需应用对不同尺寸的显示屏(比如,异形屏)做针对性的适配工作,对异形屏的应用表现力和三方生态有显著提升,大大减少应用针对不同屏幕的适配工作量,非常利于三方应用生态的扩展和推广。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,终端设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对终端设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实 现时可以有另外的划分方式。
请参阅图7,图7是本申请实施例提供的一种界面显示装置的结构示意图,该界面显示装置700应用于终端设备,该界面显示装置700可以包括创建单元701、映射单元702、移动单元703和调整单元704,其中:
创建单元701,用于检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏;
映射单元702,用于建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;
移动单元703,用于将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;
调整单元704,用于调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。
可选的,该界面显示装置700还可以包括显示单元705。
显示单元705,用于在所述调整单元704调整所述应用容器之后,在所述第一显示屏显示触摸窗口,所述触摸窗口用于提示将所述第二显示屏显示的内容移动到所述第一显示屏显示。
可选的,所述移动单元703,还用于在检测到针对所述触摸窗口的第二触摸操作后,将所述调整后的应用容器从所述虚拟显示屏移动至所述第一显示屏的底层;
所述调整单元704,还用于调整所述调整后的应用容器,使得二次调整后的应用容器的长度小于或等于所述第一显示屏的长度,二次调整后的应用容器的宽度小于或等于所述第一显示屏的宽度;
所述移动单元703,还用于将二次调整后的应用容器从所述第一显示屏的底层移动到顶层。
可选的,界面显示装置700还可以包括解除单元706和销毁单元707。
所述解除单元706,用于在所述调整单元704将所述调整后的应用容器从所述虚拟显示屏移动至所述第一显示屏的底层之后,解除所述虚拟显示屏与所述第二显示屏的映射关系;
所述销毁单元707,用于销毁所述虚拟显示屏。
可选的,界面显示装置700还可以包括移除单元708。
移除单元708,用于在所述销毁单元707销毁所述虚拟显示屏之后,移除所述触摸窗口。
可选的,所述显示单元705,还用于在所述移动单元703将二次调整后的应用容器从所述第一显示屏的底层移动到顶层之后,在所述第一显示屏显示第一动画,所述第一动画用于提示将所述应用界面从所述触摸窗口拉回所述第一显示屏。
可选的,所述第一显示屏的长宽比与所述第二显示屏的长宽比不同,所述虚拟显示屏的长宽比等于所述第二显示屏的长宽比,所述虚拟显示屏的面积大于或等于所述第二显示屏的面积;所述调整单元704调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度, 包括:调整所述应用容器的长宽比,将所述应用容器的长宽比调整为与所述虚拟显示屏的长宽比相同;调整所述应用容器的缩放系数,使得调整后的应用容器的长度等于所述第二显示屏的长度,调整后的应用容器的宽度等于所述第二显示屏的宽度。
可选的,所述调整单元704调整所述调整后的应用容器,使得二次调整后的应用容器的长度小于或等于所述第一显示屏的长度,二次调整后的应用容器的宽度小于或等于所述第一显示屏的宽度,包括:调整所述调整后的应用容器的长宽比,将所述调整后的应用容器的长宽比调整为与所述第一显示屏的长宽比相同;调整所述调整后的应用容器的缩放系数,使得二次调整后的应用容器的长度等于所述第一显示屏的长度,二次调整后的应用容器的宽度等于所述第一显示屏的宽度。
可选的,所述创建单元701,创建虚拟显示屏,包括:创建表面视图,通过所述表面视图通知设备管理服务创建虚拟显示屏。
可选的,所述映射单元702建立所述虚拟显示屏与第二显示屏的映射关系,包括:将所述表面视图与所述第二显示屏的壳容器绑定,将所述表面视图承载的内容指向所述虚拟显示屏。
可选的,第一触摸操作包括:将所述第一显示屏显示的应用界面滑动至第一热区;其中,所述第一热区用于提示将所述应用界面推送到所述第二显示屏显示。
可选的,所述将所述第一显示屏显示的应用界面滑动至第一热区包括:在所述第一触摸操作的滑动距离大于或等于第一阈值的情况下,在所述第一显示屏显示所述第一热区,将所述第一显示屏显示的应用界面滑动至第一热区。
可选的,所述应用界面可以包括至少一个应用的应用界面。
其中,本申请实施例中的创建单元701、映射单元702、移动单元703、调整单元704、解除单元706、销毁单元707、移除单元708可以是终端设备中的处理器,本申请实施例的显示单元705可以是终端设备中的显示模块。
图7所示的界面显示装置700的具体实施可以参见图1至图6所示的方法实施例,此处不再赘述。
本申请实施例中,应用界面原本在第一显示屏显示,将应用界面所在的应用容器移动到虚拟显示屏后,可以将虚拟显示屏中的应用容器中的应用界面的内容映射到第二显示屏,从而实现将第一显示屏中显示的应用界面推送到第二显示屏中显示。由于应用容器的长度小于或等于第二显示屏的长度,应用容器的宽度或等于小于第二显示屏的宽度,应用容器中的应用界面的内容映射到第二显示屏时不会出现界面元素显示不全或者重叠的情况,可以避免应用界面从第一显示屏移动到第二显示屏中显示时出现显示异常。
请参阅图8,图8是本申请实施例提供的一种终端设备的结构示意图,如图8所示,该终端设备800包括处理器801和存储器802,处理器801、存储器802可以通过通信总线803相互连接。通信总线803可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。通信总线803可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。存储器802用于存储计算机程序,计算机程序包括程序指令,处理器801被配置用于调用程序指令,上述程序包括用于执行 图1至图6所示的方法中的部分或全部步骤。
存储器802可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
该终端设备800还可以包括显示模块804,显示模块804可以显示面板、背光模组(背光源和背光驱动电路)等。
本申请实施例中,应用界面原本在第一显示屏显示,将应用界面所在的应用容器移动到虚拟显示屏后,可以将虚拟显示屏中的应用容器中的应用界面的内容映射到第二显示屏,从而实现将第一显示屏中显示的应用界面推送到第二显示屏中显示。由于应用容器的长度小于或等于第二显示屏的长度,应用容器的宽度或等于小于第二显示屏的宽度,应用容器中的应用界面的内容映射到第二显示屏时不会出现界面元素显示不全或者重叠的情况,可以避免应用界面从第一显示屏移动到第二显示屏中显示时出现显示异常。
本申请实施例还提供一种计算机可读存储介质,其中,该计算机可读存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种界面显示方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在申请明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、终端设备或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器、随机存取器、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种界面显示方法,其特征在于,包括:
    检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟显示屏,建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;
    将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;
    调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。
  2. 根据权利要求1所述的方法,其特征在于,所述调整所述应用容器之后,所述方法还包括:
    在所述第一显示屏显示触摸窗口,所述触摸窗口用于提示将所述第二显示屏显示的内容移动到所述第一显示屏显示。
  3. 根据权利要求2所述的方法,其特征在于,所述在所述第一显示屏显示触摸窗口之后,所述方法还包括:
    检测到针对所述触摸窗口的第二触摸操作后,将所述调整后的应用容器从所述虚拟显示屏移动至所述第一显示屏的底层;
    调整所述调整后的应用容器,使得二次调整后的应用容器的长度小于或等于所述第一显示屏的长度,二次调整后的应用容器的宽度小于或等于所述第一显示屏的宽度;
    将二次调整后的应用容器从所述第一显示屏的底层移动到顶层。
  4. 根据权利要求3所述的方法,其特征在于,所述将所述调整后的应用容器从所述虚拟显示屏移动至所述第一显示屏的底层之后,所述方法还包括:
    解除所述虚拟显示屏与所述第二显示屏的映射关系;
    销毁所述虚拟显示屏。
  5. 根据权利要求4所述的方法,其特征在于,所述销毁所述虚拟显示屏之后,所述方法还包括:
    移除所述触摸窗口。
  6. 根据权利要求3所述的方法,其特征在于,所述将二次调整后的应用容器从所述第一显示屏的底层移动到顶层之后,所述方法还包括:
    在所述第一显示屏显示第一动画,所述第一动画用于提示将所述应用界面从所述触摸窗口拉回所述第一显示屏。
  7. 根据权利要求1所述的方法,其特征在于,所述第一显示屏的长宽比与所述第二显示屏的长宽比不同,所述虚拟显示屏的长宽比等于所述第二显示屏的长宽比,所述虚拟显 示屏的面积大于或等于所述第二显示屏的面积;
    所述调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度,包括:
    调整所述应用容器的长宽比,将所述应用容器的长宽比调整为与所述虚拟显示屏的长宽比相同;
    调整所述应用容器的缩放系数,使得调整后的应用容器的长度等于所述第二显示屏的长度,调整后的应用容器的宽度等于所述第二显示屏的宽度。
  8. 根据权利要求3所述的方法,其特征在于,所述调整所述调整后的应用容器,使得二次调整后的应用容器的长度小于或等于所述第一显示屏的长度,二次调整后的应用容器的宽度小于或等于所述第一显示屏的宽度,包括:
    调整所述调整后的应用容器的长宽比,将所述调整后的应用容器的长宽比调整为与所述第一显示屏的长宽比相同;
    调整所述调整后的应用容器的缩放系数,使得二次调整后的应用容器的长度等于所述第一显示屏的长度,二次调整后的应用容器的宽度等于所述第一显示屏的宽度。
  9. 根据权利要求1所述的方法,其特征在于,所述创建虚拟显示屏,包括:
    创建表面视图,通过所述表面视图通知设备管理服务创建虚拟显示屏。
  10. 根据权利要求9所述的方法,其特征在于,所述建立所述虚拟显示屏与第二显示屏的映射关系,包括:
    将所述表面视图与所述第二显示屏的壳容器绑定,将所述表面视图承载的内容指向所述虚拟显示屏。
  11. 根据权利要求1所述的方法,其特征在于,第一触摸操作包括:将所述第一显示屏显示的应用界面滑动至第一热区;其中,所述第一热区用于提示将所述应用界面推送到所述第二显示屏显示。
  12. 根据权利要求11所述的方法,其特征在于,所述将所述第一显示屏显示的应用界面滑动至第一热区包括:
    在所述第一触摸操作的滑动距离大于或等于第一阈值的情况下,在所述第一显示屏显示所述第一热区,将所述第一显示屏显示的应用界面滑动至所述第一热区。
  13. 根据权利要求1~12任一项所述的方法,其特征在于,所述应用界面可以包括至少一个应用的应用界面。
  14. 一种界面显示装置,其特征在于,包括:
    创建单元,用于检测到针对第一显示屏显示的应用界面的第一触摸操作后,创建虚拟 显示屏;
    映射单元,用于建立所述虚拟显示屏与第二显示屏的映射关系,所述映射关系用于将所述虚拟显示屏的内容映射到所述第二显示屏;
    移动单元,用于将所述应用界面所在的应用容器从所述第一显示屏移动至所述虚拟显示屏;
    调整单元,用于调整所述应用容器,使得调整后的应用容器的长度小于或等于所述第二显示屏的长度,调整后的应用容器的宽度小于或等于所述第二显示屏的宽度。
  15. 根据权利要求14所述的装置,其特征在于,所述界面显示装置还包括显示单元;
    所述显示单元,用于在所述第一显示屏显示触摸窗口,所述触摸窗口用于提示将所述第二显示屏显示的内容移动到所述第一显示屏显示。
  16. 根据权利要求15所述的装置,其特征在于,
    所述移动单元,还用于检测到针对所述触摸窗口的第二触摸操作后,将所述调整后的应用容器从所述虚拟显示屏移动至所述第一显示屏的底层;
    所述调整单元,还用于调整所述调整后的应用容器,使得二次调整后的应用容器的长度小于或等于所述第一显示屏的长度,二次调整后的应用容器的宽度小于或等于所述第一显示屏的宽度;
    所述移动单元,还用于将二次调整后的应用容器从所述第一显示屏的底层移动到顶层。
  17. 根据权利要求16所述的装置,其特征在于,所述界面显示装置还包括解除单元和销毁单元;
    所述解除单元,用于解除所述虚拟显示屏与所述第二显示屏的映射关系;
    所述销毁单元,用于销毁所述虚拟显示屏。
  18. 根据权利要求16所述的装置,其特征在于,
    所述显示单元,还用于在所述第一显示屏显示第一动画,所述第一动画用于提示将所述应用界面从所述触摸窗口拉回所述第一显示屏。
  19. 一种终端设备,其特征在于,包括第一显示屏、第二显示屏、处理器和存储器,所述第一显示屏、所述第二显示屏、所述存储器与所述处理器耦合,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1~13任一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1~13任一项所述的方法。
PCT/CN2023/117221 2022-10-14 2023-09-06 界面显示方法、装置、终端设备及存储介质 WO2024078207A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211260674.6 2022-10-14
CN202211260674.6A CN117931328A (zh) 2022-10-14 2022-10-14 界面显示方法、装置、终端设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024078207A1 true WO2024078207A1 (zh) 2024-04-18

Family

ID=90668742

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117221 WO2024078207A1 (zh) 2022-10-14 2023-09-06 界面显示方法、装置、终端设备及存储介质

Country Status (2)

Country Link
CN (1) CN117931328A (zh)
WO (1) WO2024078207A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191230A (zh) * 2019-05-29 2019-08-30 努比亚技术有限公司 应用界面显示方法、移动终端及可读存储介质
CN110347305A (zh) * 2019-05-30 2019-10-18 华为技术有限公司 一种vr多屏显示方法及电子设备
CN111432070A (zh) * 2020-03-17 2020-07-17 北京百度网讯科技有限公司 应用投屏控制方法、装置、设备和介质
WO2022095744A1 (zh) * 2020-11-09 2022-05-12 华为技术有限公司 Vr显示控制方法、电子设备及计算机可读存储介质
CN114840127A (zh) * 2019-08-07 2022-08-02 华为技术有限公司 一种显示方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191230A (zh) * 2019-05-29 2019-08-30 努比亚技术有限公司 应用界面显示方法、移动终端及可读存储介质
CN110347305A (zh) * 2019-05-30 2019-10-18 华为技术有限公司 一种vr多屏显示方法及电子设备
CN114840127A (zh) * 2019-08-07 2022-08-02 华为技术有限公司 一种显示方法及电子设备
CN111432070A (zh) * 2020-03-17 2020-07-17 北京百度网讯科技有限公司 应用投屏控制方法、装置、设备和介质
WO2022095744A1 (zh) * 2020-11-09 2022-05-12 华为技术有限公司 Vr显示控制方法、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN117931328A (zh) 2024-04-26

Similar Documents

Publication Publication Date Title
CN107111496B (zh) 可定制刀片应用
US11650716B2 (en) Operation methods of a smart interactive tablet, storage medium and related equipment
US7464341B2 (en) Canceling window close commands
JP2001202192A (ja) 情報処理装置及びその方法並びにプログラム格納媒体
TWI616803B (zh) 螢幕畫面的縮放及操作方法、裝置與電腦程式產品
US11323556B2 (en) Electronic device and method of operating electronic device in virtual reality
US10521248B2 (en) Electronic device and method thereof for managing applications
WO2023125425A1 (zh) 一种显示方法、装置和电子设备
US10459737B2 (en) Waking and sleeping a display among a plurality of displays using gestures
WO2022199454A1 (zh) 显示方法和电子设备
WO2024046204A1 (zh) 消息处理方法、装置、电子设备及存储介质
WO2023005828A1 (zh) 消息显示方法、装置和电子设备
WO2023143430A1 (zh) 信息显示方法及装置
WO2023030115A1 (zh) 界面显示方法和装置
WO2022242515A1 (zh) 界面显示方法及装置
WO2016173307A1 (zh) 一种消息复制方法和装置、以及智能终端
JPH0728791A (ja) 情報処理装置及び表示制御方法
WO2024078207A1 (zh) 界面显示方法、装置、终端设备及存储介质
WO2024046203A1 (zh) 内容显示方法及装置
WO2023174328A1 (zh) 屏幕控制方法、装置、电子设备及存储介质
WO2023155874A1 (zh) 应用图标管理方法、装置和电子设备
JP2004005211A (ja) 情報処理装置
CN113805755A (zh) 桌面布局方法、装置和电子设备
CN113238694A (zh) 界面比对方法、装置及移动终端
CN105677171A (zh) 图像显示控制装置

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

Country of ref document: EP

Kind code of ref document: A1