Interface switching method and device, equipment, medium and product
Patent Information
- Application Number
- CN202610478375.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-10
- Publication Date
- 2026-10-13
AI Technical Summary
[0004]然而,上述操作方式较为隐晦,用户需要通过阅读智能车辆的使用说明书来习得,人机交互效率较低
在实现界面切换时,通过针对提供的主屏幕控件的滑动操作实现界面切换,或者,通过由主屏幕控件触发的扩展区域内实现的界面切换操作实现界面切换,即,用户可以直接在电子设备提供的主屏幕控件的基础上实现界面切换。一方面,由于主屏幕控件在电子设备提供的界面中具有一定的可见性,因此,在主屏幕控件基础上实现的界面切换功能具有了功能可见性,从而使得用户能够快速习得切屏功能的触发方式,提升切屏功能实现的人机交互效率;另一方面,直接延用主屏幕控件以实现界面切换功能,无需在电子设备的显示内容中额外增加其他独立控件,提升了界面的整体整洁度,减少了界面渲染时需要渲染的控件数量,以及渲染界面所带来的资源消耗。
Smart Images

Figure CN122902914A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle terminal technology, and in particular to an interface switching method, device, equipment, medium and product. Background Technology
[0002] With the development of new energy vehicles, in-vehicle terminals in smart cars can meet users' more diverse and personalized needs, such as providing a variety of screen desktops, including map desktops, wallpaper desktops, widget desktops, application split-screen desktops, etc.
[0003] Users can freely choose the screen desktop they want the in-vehicle terminal to display, depending on the type of desktop. In related technologies, switching between different desktops is typically achieved by swiping left or right with three fingers.
[0004] However, the above operation method is rather obscure, and users need to learn it by reading the user manual of the smart vehicle, resulting in low human-computer interaction efficiency. Summary of the Invention
[0005] This application provides an interface switching method, apparatus, device, medium, and product. The technical solutions provided by this application include the following aspects.
[0006] According to one aspect of the embodiments of this application, an interface switching method is provided, the method being executed by an electronic device, the method comprising: Display the first interface and main screen controls; In response to a swipe operation triggered by the main screen control or an interface switching operation triggered on the extended area, the first interface is switched to the second interface; The extended area is the control area displayed after the main screen control is triggered.
[0007] According to one aspect of the embodiments of this application, an interface switching device is provided, the device comprising: The display module is used to display the first interface and main screen controls; The switching module is used to switch the first interface to the second interface in response to a sliding operation triggered by the main screen control or an interface switching operation triggered on the extended area. The extended area is the control area displayed after the main screen control is triggered.
[0008] According to one aspect of the embodiments of this application, an electronic device is provided, the electronic device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described interface switching method.
[0009] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the above-described interface switching method.
[0010] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program stored in a computer-readable storage medium, and a processor reading from the computer-readable storage medium and executing the computer program to implement the above-described interface switching method.
[0011] The technical solution provided in this application can bring the following beneficial effects: When implementing interface switching, the interface can be switched by swiping the provided main screen control, or by switching within an extended area triggered by the main screen control. In other words, users can directly switch interfaces based on the main screen control provided by the electronic device. On one hand, since the main screen control is visible within the electronic device's interface, the interface switching function implemented based on it is functionally visible, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen control to implement the interface switching function eliminates the need to add other independent controls to the electronic device's display content, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface. Attached Figure Description
[0012] Figure 1 This is a schematic diagram of the screen-switching function in a related technology provided in one embodiment of this application; Figure 2 This is a schematic diagram of an electronic device provided in one embodiment of this application; Figure 3 This is a flowchart of an interface switching method provided in one embodiment of this application; Figure 4 This is a flowchart of an interface switching method provided in one embodiment of this application; Figure 5 This is a schematic diagram of an interface switching process provided in one embodiment of this application; Figure 6 This is a schematic diagram of an interface switching process provided in one embodiment of this application; Figure 7 This is a flowchart of an interface switching method provided in one embodiment of this application; Figure 8 This is a schematic diagram of an interface switching process provided in one embodiment of this application; Figure 9 This is a schematic diagram of an interface switching process provided in one embodiment of this application; Figure 10 This is a schematic diagram of an interface switching process provided in one embodiment of this application; Figure 11 This is a block diagram of an interface switching device provided in one embodiment of this application; Figure 12 This is a structural block diagram of a computer device provided in one embodiment of this application. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. Exemplary embodiments will be described in detail here, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0014] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0015] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another.
[0016] First, a brief introduction to the relevant terms used in the embodiments of this application: The vehicle's central control unit (CCU) is the core control area inside the vehicle, typically located in the center of the instrument panel. It integrates functions such as the multimedia system, navigation, air conditioning control, and vehicle settings. It enables human-machine interaction through a touchscreen or physical buttons, serving as a communication bridge between the driver and the vehicle. With the development of new energy vehicles, vehicle CCUs are becoming increasingly intelligent, supporting functions such as voice control and smartphone connectivity.
[0017] Home button: This is a virtual or physical control provided by the vehicle's central control system, used to provide a one-click return to the main interface. The Home button is usually fixed at the bottom of the screen or in a designated location such as the bottom navigation bar, serving as a visual anchor and facilitating blind operation.
[0018] A floating window is a pop-up layer that "floats" on the interface. It is a small, high-level user interface (UI) element. Types of floating windows include bar, card, icon, and panel types.
[0019] To meet the diverse and personalized needs of users, the vehicle's central control system offers a variety of screen desktops, including map desktops, wallpaper desktops, widget desktops, and application split-screen desktops. Users can freely choose the desktop they want the in-vehicle terminal to display. In related technologies, switching between different desktops is typically implemented by swiping left or right with three fingers, such as... Figure 1 As shown, users can use three fingers to touch the central control screen 100 and then swipe left or right to select different screen desktops for display.
[0020] However, the three-finger swipe switching method can only switch to the adjacent screen desktop in each swipe operation, resulting in low switching efficiency. Furthermore, the operation method is rather obscure, requiring users to learn it by reading the user manual of the smart vehicle, which presents a high learning threshold. Therefore, the above solution as a whole suffers from low human-computer interaction efficiency.
[0021] The interface switching method provided in this application implements interface switching by sliding a control on the provided main screen or by switching within an extended area triggered by the main screen control. In other words, users can directly switch interfaces based on the main screen control provided by the electronic device. On one hand, since the main screen control has a certain visibility within the interface provided by the electronic device, the interface switching function implemented based on the main screen control has functional visibility, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen control to implement the interface switching function eliminates the need to add other independent controls to the display content of the electronic device, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface.
[0022] Please refer to Figure 2 The diagram shows a schematic of an electronic device 200 provided in one embodiment of this application.
[0023] The electronic device 200 is used to implement the interface switching method provided in the embodiments of this application. The electronic device 200 includes a processor and a memory. The memory stores at least one computer program 210, which is loaded and executed by the processor to implement the above-described interface switching method.
[0024] Optionally, the device type of the aforementioned electronic device 200 includes at least one of the following: in-vehicle terminal, virtual reality (VR) device, desktop computer, smartphone, tablet computer, e-book reader, Moving Picture Experts Group Audio Layer III (MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, and laptop computer.
[0025] In this embodiment, the electronic device 200 is implemented as a vehicle-mounted terminal, which is a device installed in a vehicle to enable connection and data exchange between the vehicle and external systems (such as vehicle networks, the Internet, mobile communication networks, etc.). Vehicle-mounted terminals typically include various sensors, communication modules, and computing units. Optionally, vehicle-mounted terminals may include a central control terminal, a passenger-side control terminal, a rear-seat control terminal, an instrument display terminal, etc., which are not limited here. Exemplarily, at least one vehicle-mounted application is also installed in the vehicle-mounted terminal.
[0026] Please refer to Figure 3 The diagram illustrates a flowchart of an interface switching method provided in one embodiment of this application. The method is performed by an electronic device and may include at least one of the following steps (310-320).
[0027] Step 310: Display the first interface and main screen controls.
[0028] Optionally, the electronic device includes at least one of the following: in-vehicle terminal, VR device, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop computer. In this embodiment, an in-vehicle terminal is used as an example for illustrative explanation.
[0029] The home screen control refers to the Home button provided by an electronic device. Optionally, the home screen control includes at least one of the following: a virtual control displayed on the screen of the electronic device and a physical control set on the electronic device. No limitation is made here.
[0030] In some embodiments, taking the implementation of the main screen control as a virtual control as an example, the main screen control may optionally be displayed within the first interface area where the first interface is located; or, the main screen control may be displayed outside the first interface area where the first interface is located.
[0031] In one example, the screen area of an electronic device includes an interface display area and a shortcut bar area (Dock area). For instance, the first interface is displayed in the interface display area, and the main screen controls are displayed in the shortcut bar area. Here, the shortcut bar refers to a narrow bar fixed to the edge of the screen (e.g., the bottom or side). The shortcut bar can also be called a dock, navigation bar, etc., without limitation here.
[0032] Alternatively, the display of the home screen control can be implemented as at least one of the following: • The main screen control is persistently displayed in the first position of the screen area. That is, the main screen control is a control that is persistently displayed in the first position and will not change due to the operation of the interface. The main screen controls are stored in the storage controls displayed in the screen area. In response to receiving a trigger operation that triggers the storage controls, the main screen controls are displayed. For example, the shortcut bar includes multiple shortcut controls, including the main screen controls. The shortcut bar has corresponding storage controls. When a click operation is received on a storage control, the shortcut bar and the shortcut controls in the shortcut bar are expanded and displayed. When a click operation is received on a storage control again, the expanded shortcut bar is de-displayed.
[0033] Optionally, the first interface may include the application interface, the device's desktop interface, the operating system's settings interface, the external device's screen mirroring interface, the negative one screen (Smart Assistant), etc., which are not limited here.
[0034] Taking the first interface as an example of displaying application content, the first interface can be used to display the content of a single application or to display the content of multiple applications at the same time; there is no limitation here.
[0035] Step 320: In response to a swipe operation triggered by the main screen control or an interface switching operation triggered on the extended area, switch the first interface to the second interface.
[0036] In this embodiment of the application, the first interface is switched to the second interface in response to a swipe operation triggered by the main screen control; or, the first interface is switched to the second interface in response to an interface switching operation triggered on the extended area.
[0037] The second interface described above is distinct from the first interface. Optionally, the second interface may include the application's interface, the device's desktop interface, the operating system's settings interface, the external device's screen mirroring interface, the negative one screen (Smart Assistant), etc., and is not limited here.
[0038] Optionally, the swipe operation triggered by the main screen control can be implemented as a touch swipe operation or as an air swipe gesture, and there is no limitation here.
[0039] The extended area is the control area displayed after the main screen control is triggered.
[0040] In some embodiments, in response to receiving a trigger operation triggered on the main screen control, an extended area is displayed; in response to receiving an interface switching operation triggered on the extended area, the first interface is switched to the second interface.
[0041] Optionally, the triggering operations for the main screen control mentioned above include click operations, long press operations, first swipe operations, heavy tap operations, double tap operations, zoom operations, etc., for the main screen control, and are not limited here.
[0042] Optionally, the extended area can be displayed as a floating window, pop-up window, bubble, or other similar format.
[0043] Optionally, the display location of the extended area includes at least one of the following: • Displayed overlaid on the first screen, main screen controls, or shortcut bar; • Convert the shortcut bar area into an expanded area for display; • Project the display onto at least one of the following: steering wheel screen, instrument panel screen, or head-up display.
[0044] In some embodiments, the display of the extended area corresponds to a target duration threshold. Illustratively, if the display duration of the extended area reaches the target duration threshold and no swiping or interface switching operation is received, the extended area is de-displayed.
[0045] In some embodiments, when a swipe operation on the main screen control or an interface switching operation on the extended area is received, and the display duration of the extended area has not reached the target duration threshold, the display duration of the extended area is reset. That is, when a screen switching operation occurs, the display duration of the extended area is refreshed.
[0046] In summary, when implementing interface switching, it can be achieved through swiping on the provided main screen controls, or through interface switching operations within an extended area triggered by the main screen controls. In other words, users can directly switch interfaces based on the main screen controls provided by the electronic device. On one hand, since the main screen controls have a certain degree of visibility within the interface provided by the electronic device, the interface switching function implemented based on the main screen controls has functional visibility, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen controls to implement the interface switching function eliminates the need to add other independent controls to the displayed content of the electronic device, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface.
[0047] In some optional embodiments, the extended area is invoked via a home screen control to achieve interface switching. For example, please refer to... Figure 4 The diagram illustrates a flowchart of an exemplary interface switching method of this application, which may include at least one of the following steps (410-430).
[0048] Step 410: Display the first interface and main screen controls.
[0049] Optionally, the electronic device includes at least one of the following: in-vehicle terminal, VR device, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop computer. In this embodiment, an in-vehicle terminal is used as an example for illustrative explanation.
[0050] Alternatively, the display of the home screen control can be implemented as at least one of the following: • The main screen control is persistently displayed in the first position of the screen area. That is, the main screen control is a control that is persistently displayed in the first position and will not change due to the operation of the interface. The main screen controls are stored in the storage controls displayed in the screen area. In response to receiving a trigger operation that triggers the storage controls, the main screen controls are displayed. For example, the shortcut bar includes multiple shortcut controls, including the main screen controls. The shortcut bar has corresponding storage controls. When a click operation is received on a storage control, the shortcut bar and the shortcut controls in the shortcut bar are expanded and displayed. When a click operation is received on a storage control again, the expanded shortcut bar is de-displayed.
[0051] Optionally, the first interface may include the application interface, the device's desktop interface, the operating system's settings interface, the external device's screen mirroring interface, the negative one screen (Smart Assistant), etc., which are not limited here.
[0052] Taking the first interface as an example of displaying application content, the first interface can be used to display the content of a single application or to display the content of multiple applications at the same time; there is no limitation here.
[0053] Step 420: In response to receiving a trigger operation triggered for the main screen control, an extended area is displayed, the extended area including the target interface element corresponding to the second interface.
[0054] In this embodiment of the application, the extended area is a control area displayed by triggering an operation on the main screen control. The extended area includes at least one candidate interface element, and the at least one candidate interface element includes a target interface element corresponding to the second interface.
[0055] In some embodiments, the electronic device corresponds to at least two interfaces, including a first interface and a second interface. Optionally, the candidate interface elements displayed in the extended area correspond one-to-one with the at least two interfaces; or, the candidate interface elements displayed in the extended area correspond one-to-one with the other interfaces in the at least two interfaces besides the first interface.
[0056] Optionally, the aforementioned candidate interface elements can be implemented as pattern elements, character elements, text elements, voice elements, animation elements, interface thumbnail elements, control elements, etc., without limitation.
[0057] Optionally, the triggering operations for the main screen control mentioned above include click operations, long press operations, first swipe operations, heavy tap operations, double tap operations, zoom operations, etc., for the main screen control, and are not limited here.
[0058] In one example, an extended area is displayed in response to a click action triggered by a home screen control. For example, such as... Figure 5 As shown, it illustrates a schematic diagram of the interface switching process provided by an exemplary embodiment of this application. Taking the user's desktop state as having four screens whose content can be switched between each other as an example, including screen 1, screen 2, screen 3, and screen 4, where each screen corresponds to a switchable interface. The screen area 500 provided by the electronic device displays the interface 510 corresponding to screen 1 and the main screen control 520. In response to receiving a click operation on the main screen control 520, an extended area 530 is displayed. The extended area 530 includes four candidate interface elements 531, and there is a one-to-one correspondence between the four candidate interface elements 531 and the interfaces corresponding to the four screens.
[0059] Taking the triggering of an extended area display based on a click on a home screen control as an example, when a user presses a home screen control, the electronic device first determines whether the finger has been lifted using a finger lift parameter (e.g., a finger lift parameter of 1 indicates the finger is lifted, and a finger lift parameter of 0 indicates the finger is not lifted). If the finger lift parameter is 1 and the finger is lifted, the device will continue to read the sliding distance X of the user's finger during the pressing and lifting process. If the sliding distance X is less than or equal to a first judgment threshold Y, it is determined that the user has made a click operation on the home screen control. At this time, the electronic device will read the number of interfaces that can be switched on the current desktop, and press... Figure 5 The example shown reads the number 4, which is used to draw the thumbnails of each interface and the extended area, and renders them above the main screen controls. The number of operable controls (candidate interface elements) in this extended area is equal to the number of interfaces, that is, the number of operable controls in the extended area is 4. In the initial state, the control selector in the extended area selects the control corresponding to the currently displayed interface.
[0060] In another example, in response to receiving a first swipe action triggered by the home screen control, an extended area is displayed. For example, such as... Figure 6 As shown, it illustrates a schematic diagram of the interface switching process provided by an exemplary embodiment of this application. Taking the user's desktop state as having four screens whose content can be switched between each other as an example, including screen 1, screen 2, screen 3, and screen 4, where each screen corresponds to a switchable interface. The screen area 600 provided by the electronic device displays the interface 610 corresponding to screen 1 and the main screen control 620. In response to receiving a first swipe operation on the main screen control 620, an extended area 630 is displayed. The extended area 630 includes four candidate interface elements 631, and there is a one-to-one correspondence between the four candidate interface elements 631 and the interfaces corresponding to the four screens.
[0061] Taking the first swipe operation of the home screen control triggering the display of the extended area as an example, when the user presses the home screen control, the electronic device first determines whether the finger is lifted using a finger lift parameter (for example, a finger lift parameter of 1 represents a lift, and a finger lift parameter of 0 represents no lift). If the finger lift parameter is 0 and the finger is not lifted, the device will continue to read the user's finger swipe distance X. If the swipe distance X is greater than or equal to the second judgment threshold Z, the electronic device will then read the number of interfaces that can be switched on the current desktop. Figure 6 The example shown reads the number 4, which is used to draw the thumbnails of each interface and the extended area, and renders them above the main screen controls. The number of operable controls (candidate interface elements) in this extended area is equal to the number of interfaces, that is, the number of operable controls in the extended area is 4. In the initial state, the control selector in the extended area selects the control corresponding to the currently displayed interface.
[0062] Optionally, the extended area can be displayed as a floating window, pop-up window, bubble, or other similar format.
[0063] Optionally, the display location of the extended area includes at least one of the following: • Displayed overlaid on the first screen, main screen controls, or shortcut bar; • Convert the shortcut bar area into an expanded area for display; • Project the display onto at least one of the following: steering wheel screen, instrument panel screen, or head-up display.
[0064] Step 430: In response to receiving a selection operation on a target interface element triggered on the extended area, the first interface is switched to the second interface.
[0065] In this embodiment of the application, after the extended area is displayed by the main screen control, the interface to be switched can be selected by selecting the candidate interface elements provided in the extended area. The candidate interface elements include the target interface element corresponding to the second interface. When it is necessary to switch to the second interface, the selection operation for the target interface element is triggered in the extended area.
[0066] Alternatively, the above selection operation can be implemented as at least one of the following: • Receive element-triggered operations for the target interface element as selection operations, such as click operations, long press operations, double-click operations, heavy-click operations, etc.; • Receive voice input of keywords associated with target interface elements as selection operations. For example, candidate interface elements displayed in the extended area correspond to numerical keywords. Users can select and switch to the corresponding interface by voice input of the corresponding numerical keywords. • Receive shortcut key input operations associated with the target interface element as selection operations. For example, there is a mapping relationship between the candidate interface elements displayed in the extended area and the shortcut keys provided by the external input device. By triggering the corresponding shortcut key, you can switch to the corresponding interface. Taking the in-vehicle scenario as an example, there are multiple shortcut keys set on the steering wheel. There is a mapping relationship between different candidate interface elements in the extended area and different shortcut keys on the steering wheel. By triggering the shortcut key on the steering wheel, you can switch interfaces.
[0067] In one example, we will illustrate how a selection operation on a target UI element is implemented as a click operation on that element. Figure 5 As shown, for the four candidate interface elements 531 provided in the extended area 530, the user can freely select and click the corresponding candidate interface element to switch to the interface of the corresponding screen. For example, after the user clicks the candidate interface element corresponding to the second screen, the interface 540 corresponding to the second screen will be switched to be displayed.
[0068] like Figure 6 As shown, for the four candidate interface elements 631 provided in the extended area 630, the user can freely select and click the corresponding candidate interface element to switch to the interface of the corresponding screen. For example, after the user clicks the candidate interface element corresponding to the second screen, the interface 640 corresponding to the second screen will be switched to be displayed.
[0069] Specifically, when a user clicks on the interface control corresponding to the interface to be switched in the extended area, the system will obtain the serial number of the interface control operated by the user. For example, if the serial number clicked is 2, the system will control the desktop to switch to the second screen.
[0070] In some embodiments, the display of the extended area corresponds to a target duration threshold. Illustratively, if the display duration of the extended area reaches the target duration threshold and no swiping or interface switching operation is received, the extended area is de-displayed.
[0071] In some embodiments, when a swipe operation on the main screen control or an interface switching operation on the extended area is received, and the display duration of the extended area has not reached the target duration threshold, the display duration of the extended area is reset. That is, when a screen switching operation occurs, the display duration of the extended area is refreshed.
[0072] In summary, when implementing interface switching, it can be achieved through swiping on the provided main screen controls, or through interface switching operations within an extended area triggered by the main screen controls. In other words, users can directly switch interfaces based on the main screen controls provided by the electronic device. On one hand, since the main screen controls have a certain degree of visibility within the interface provided by the electronic device, the interface switching function implemented based on the main screen controls has functional visibility, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen controls to implement the interface switching function eliminates the need to add other independent controls to the displayed content of the electronic device, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface.
[0073] In this embodiment, users can bring up an extended area that enables efficient screen switching by clicking on the main screen interface. The candidate interface elements provided by the extended area prompt users to switch to other interfaces that can be switched to, thereby improving the visibility of the screen switching function and improving the efficiency of screen switching under the guidance of the candidate interface elements provided by the extended area. For example, after the user determines the thumbnail information of other interfaces that can be switched to through the extended area, they can quickly select the interface they want to switch to.
[0074] In some optional embodiments, the expanded area display and interface switching are achieved through swiping operations on the main screen control. For example, please refer to... Figure 7 The diagram illustrates a flowchart of an exemplary interface switching method of this application, which may include at least one of the following steps (710-730).
[0075] Step 710: Display the first interface and main screen controls.
[0076] Optionally, the electronic device includes at least one of the following: in-vehicle terminal, VR device, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop computer. In this embodiment, an in-vehicle terminal is used as an example for illustrative explanation.
[0077] Alternatively, the display of the home screen control can be implemented as at least one of the following: • The main screen control is persistently displayed in the first position of the screen area. That is, the main screen control is a control that is persistently displayed in the first position and will not change due to the operation of the interface. The main screen controls are stored in the storage controls displayed in the screen area. In response to receiving a trigger operation that triggers the storage controls, the main screen controls are displayed. For example, the shortcut bar includes multiple shortcut controls, including the main screen controls. The shortcut bar has corresponding storage controls. When a click operation is received on a storage control, the shortcut bar and the shortcut controls in the shortcut bar are expanded and displayed. When a click operation is received on a storage control again, the expanded shortcut bar is de-displayed.
[0078] Optionally, the first interface may include the application interface, the device's desktop interface, the operating system's settings interface, the external device's screen mirroring interface, the negative one screen (Smart Assistant), etc., which are not limited here.
[0079] Taking the first interface as an example of displaying application content, the first interface can be used to display the content of a single application or to display the content of multiple applications at the same time; there is no limitation here.
[0080] Step 720: In response to receiving a first swipe operation triggered for the home screen control, the extended area is displayed.
[0081] In this embodiment of the application, when the main screen control receives the first swipe operation, the display of the extended area is triggered. The extended area includes at least one candidate interface element, and the at least one candidate interface element includes a target interface element corresponding to the second interface.
[0082] In some embodiments, the electronic device corresponds to at least two interfaces, including a first interface and a second interface. Optionally, the candidate interface elements displayed in the extended area correspond one-to-one with the at least two interfaces; or, the candidate interface elements displayed in the extended area correspond one-to-one with the other interfaces in the at least two interfaces besides the first interface.
[0083] Optionally, the aforementioned candidate interface elements can be implemented as pattern elements, character elements, text elements, voice elements, animation elements, interface thumbnail elements, control elements, etc., without limitation.
[0084] For example, such as Figure 8 As shown, it illustrates a schematic diagram of the interface switching process provided by an exemplary embodiment of this application. Taking the user's desktop state as having four screens whose content can be switched between each other as an example, including screen 1, screen 2, screen 3, and screen 4, where each screen corresponds to a switchable interface. The screen area 800 provided by the electronic device displays the interface 810 corresponding to screen 1 and the main screen control 820. In response to receiving a first swipe operation on the main screen control 820, an extended area 830 is displayed. The extended area 830 includes four candidate interface elements 831, and there is a one-to-one correspondence between the four candidate interface elements 831 and the interfaces corresponding to the four screens.
[0085] Taking the first swipe operation of the home screen control triggering the display of the extended area as an example, when the user presses the home screen control, the electronic device first determines whether the finger is lifted using a finger lift parameter (for example, a finger lift parameter of 1 represents a lift, and a finger lift parameter of 0 represents no lift). If the finger lift parameter is 0 and the finger is not lifted, the device will continue to read the user's finger swipe distance X. If the swipe distance X is greater than or equal to the second judgment threshold Z, the electronic device will then read the number of interfaces that can be switched on the current desktop. Figure 6 The example shown reads the number 4, which is used to draw the thumbnails of each interface and the extended area, and renders them above the main screen controls. The number of operable controls (candidate interface elements) in this extended area is equal to the number of interfaces, that is, the number of operable controls in the extended area is 4. In the initial state, the control selector in the extended area selects the control corresponding to the currently displayed interface.
[0086] Optionally, the extended area can be displayed as a floating window, pop-up window, bubble, or other similar format.
[0087] Optionally, the display location of the extended area includes at least one of the following: • Displayed overlaid on the first screen, main screen controls, or shortcut bar; • Convert the shortcut bar area into an expanded area for display; • Project the display onto at least one of the following: steering wheel screen, instrument panel screen, or head-up display.
[0088] Step 730: In response to receiving a second swipe operation following the first swipe operation, switch the first interface to the second interface.
[0089] The first and second swipe operations are continuous and uninterrupted. That is, the user does not lift their finger between the first and second swipe operations. The first and second swipe operations can be regarded as swipe operations divided at different distance thresholds within the same swipe operation.
[0090] Optionally, the first and second swipe operations can be implemented as continuous swipe operations, that is, the first and second swipe operations are multiple swipe actions completed by keeping the finger in contact on the screen, with the finger not lifted in the middle and no swipe interruption, and the swipe directions of the first and second swipe operations are the same.
[0091] Optionally, the first and second swipe operations can be implemented as multi-segment swipe operations. That is, the first and second swipe operations are multiple swipe actions completed by keeping the finger in contact with the screen, with the finger not lifted in the middle but swiping stopping. The swiping directions of the first and second swipe operations can be the same or different.
[0092] In some embodiments, the extended area includes a target interface element corresponding to the second interface. In response to receiving a second sliding operation following the first sliding operation, the target interface element is displayed in the extended area in a selected display style.
[0093] like Figure 8 As shown, after the first swipe operation, a second swipe operation is received for the main screen control 820. The interface control 832 corresponding to the second screen is selected in the extended area 830, and the interface 840 corresponding to the second screen is displayed simultaneously.
[0094] That is, after the extended area is displayed through the first swipe operation, if the user's finger is still raised and the parameter is still 0, the swipe distance X of the user's finger will continue to be read. If the swipe distance X is greater than or equal to the third judgment threshold Z1, the control selector in the extended area will move one interface control to the right, select the interface control corresponding to the second screen, and obtain the state of the interface control corresponding to the second screen being selected to control the interface to switch to the interface corresponding to the second screen.
[0095] In some embodiments, a second interface is determined based on a sliding distance corresponding to the second sliding operation. Illustratively, in response to receiving a second sliding operation following a first sliding operation, a first sliding distance corresponding to the second sliding operation and the interface arrangement order among at least two interfaces are obtained; based on the first sliding distance and the interface arrangement order, a second interface is determined from at least two interfaces, wherein the magnitude of the first sliding distance and the order of the second interface in the interface arrangement order are positively correlated, that is, the larger the magnitude of the first sliding distance, the farther the second interface is from the first interface in the interface arrangement order.
[0096] In some embodiments, after receiving a second swipe operation following the first swipe operation, it is determined whether the current swipe operation has ended based on whether a swipe end signal is detected. If it has not ended, the screen switching will continue to be triggered, and the currently switched second interface will be displayed in the first display mode. If it has ended, the currently switched second interface will be displayed in the second display mode, wherein the resource consumption of the first display mode is lower than that of the second display mode.
[0097] Indicatively, if no slide end signal corresponding to the second slide operation is detected, the second interface is displayed in the first display mode; if a slide end signal corresponding to the second slide operation is detected, the second interface is displayed in the second display mode.
[0098] The aforementioned end-of-swipe signal can be determined by detecting whether the touch point corresponding to the second swipe operation has disappeared; that is, by detecting the off-screen signal corresponding to the second swipe operation to determine whether the second swipe operation has ended.
[0099] In some embodiments, the first display mode is implemented as a UI display mode where no application is running. Optionally, the first display mode includes a screenshot display mode, a mask display mode, a UI snapshot display mode, etc.
[0100] In some embodiments, the second display mode is implemented as an interface display mode for running an application, that is, the second display mode is implemented by running at least one application corresponding to the second interface, rendering the application content of the running at least one application onto the screen to obtain the second interface.
[0101] like Figure 8 As shown, when the second swipe operation is received and the user's finger is not lifted, the interface 840 corresponding to the second screen is displayed in the first display mode; if the third swipe operation for the main screen control 820 is continuously received, the interface control 833 corresponding to the third screen is displayed in the extended area 830 and the interface 850 corresponding to the third screen is displayed simultaneously. If the user lifts his finger at this time, the interface 850 corresponding to the third screen is displayed in the second display mode.
[0102] That is, after the extended area is displayed through the first swipe operation, if the user's finger is still raised (parameter 0), the system will continue to read the swipe distance X. If the swipe distance X is greater than or equal to the third judgment threshold Z1, the control selector in the extended area will move one interface control to the right, selecting the interface control corresponding to the second screen, and the system will obtain the selected state of the interface control corresponding to the second screen and switch the displayed interface to the interface corresponding to the second screen. If the swipe distance X is greater than or equal to the fourth judgment threshold Z2, the control selector in the extended area will continue to move one interface control to the right, selecting the interface control corresponding to the third screen, and the system will obtain the selected state of the interface control corresponding to the third screen and switch the interface to the interface corresponding to the third screen. When the user's finger is raised (parameter 1), the electronic device will control the application corresponding to the third screen to start, and the application content of the started application will be rendered to obtain the interface corresponding to the third screen, thus completing the interface switching.
[0103] In summary, when implementing interface switching, it can be achieved through swiping on the provided main screen controls, or through interface switching operations within an extended area triggered by the main screen controls. In other words, users can directly switch interfaces based on the main screen controls provided by the electronic device. On one hand, since the main screen controls have a certain degree of visibility within the interface provided by the electronic device, the interface switching function implemented based on the main screen controls has functional visibility, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen controls to implement the interface switching function eliminates the need to add other independent controls to the displayed content of the electronic device, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface.
[0104] In this embodiment, after a user triggers a swipe operation on the main screen control, they can achieve one-click screen switching by continuing to trigger the swipe operation without interrupting the swipe. That is, after the user triggers the display of the extended area by swiping the main screen control, they can continue to trigger the swipe operation by following the prompts of the candidate interface elements provided by the extended area, thereby achieving screen switching. On the one hand, this can improve the efficiency of screen switching, and on the other hand, the accuracy of screen switching can also be improved with the assistance of the extended area.
[0105] In some optional embodiments, interface switching is achieved through a swipe operation on the home screen control. For example, please refer to... Figure 9 The diagram illustrates a flowchart of an exemplary interface switching method of this application, which may include at least one of the following steps (910-930).
[0106] Step 910: Display the first interface and main screen controls.
[0107] Optionally, the electronic device includes at least one of the following: in-vehicle terminal, VR device, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop computer. In this embodiment, an in-vehicle terminal is used as an example for illustrative explanation.
[0108] Alternatively, the display of the home screen control can be implemented as at least one of the following: • The main screen control is persistently displayed in the first position of the screen area. That is, the main screen control is a control that is persistently displayed in the first position and will not change due to the operation of the interface. The main screen controls are stored in the storage controls displayed in the screen area. In response to receiving a trigger operation that triggers the storage controls, the main screen controls are displayed. For example, the shortcut bar includes multiple shortcut controls, including the main screen controls. The shortcut bar has corresponding storage controls. When a click operation is received on a storage control, the shortcut bar and the shortcut controls in the shortcut bar are expanded and displayed. When a click operation is received on a storage control again, the expanded shortcut bar is de-displayed.
[0109] Optionally, the first interface may include the application interface, the device's desktop interface, the operating system's settings interface, the external device's screen mirroring interface, the negative one screen (Smart Assistant), etc., which are not limited here.
[0110] Taking the first interface as an example of displaying application content, the first interface can be used to display the content of a single application or to display the content of multiple applications at the same time; there is no limitation here.
[0111] Step 920: If the first interface meets the interface display requirements, receive the swipe operation triggered by the main screen control.
[0112] The interface display requirements specify the requirement that the swipe operation can be directly triggered via the main screen controls to achieve the screen switching function. Optionally, the interface display requirements include at least one of the following: • The interface type of the first interface belongs to the target interface type; In some embodiments, the first interface displayed by the electronic device corresponds to an interface type. Optionally, the interface type can be determined based on the type of application displayed on the first interface. Taking the electronic device as an in-vehicle terminal as an example, the interface type includes driving type, entertainment type, settings type, etc., where driving type refers to applications displayed on the interface that provide auxiliary functions for vehicle driving, such as navigation, reversing camera, etc.
[0113] Optionally, the target interface type can be a fixed interface type preset by the system; or, the target interface type can be a custom interface type set by the user; or, the target interface type can be a personalized interface type determined based on the user's historical behavior data, without any limitation.
[0114] In one example, taking an electronic device as an in-vehicle terminal as an example, when the target interface type is a personalized interface type determined based on the user's historical behavior data, the historical behavior data of the first account currently logged in to the in-vehicle terminal is obtained. The historical behavior data includes the display duration of each interface type displayed by the in-vehicle terminal during vehicle operation, and the interface type with the longest display duration is taken as the target interface type.
[0115] The first interface is used to display the application content of multiple applications on multiple screens, and the number of applications reaches the target number threshold.
[0116] Optionally, the target quantity threshold can be a fixed threshold preset by the system; or, the target quantity threshold can be a user-defined threshold, which is not limited here.
[0117] Optionally, the swipe operation triggered by the main screen control can be implemented as a touch swipe operation or as an air swipe gesture, and there is no limitation here.
[0118] Step 930: In response to the swipe operation, switch the first interface to the second interface.
[0119] In some embodiments, at least two interfaces correspond to an interface arrangement order, and in response to receiving a swipe operation on the main screen control, the second interface adjacent to the first interface in the interface arrangement order is switched to be displayed.
[0120] In some embodiments, a swipe operation on the home screen control may include multiple swipe actions. Illustratively, the number of swipe actions corresponding to the swipe operation is obtained, and the first screen is switched to the second screen based on the number of actions and the screen arrangement order. The number of actions and the positional distance between the first and second screens in the screen arrangement order are positively correlated. For example, when the user inputs two swipe actions on the home screen control, the second screen is displayed after two screen switches.
[0121] In some embodiments, a swipe operation corresponds to a number of touch points, which indicates the number of touch points detected by the screen when the swipe operation is triggered. For example, when a user performs a swipe operation using three fingers, the number of touch points is 3. Illustratively, the first interface is switched to the second interface based on the number of touch points and the interface arrangement order, wherein the number of touch points and the positional distance between the first and second interfaces in the interface arrangement order are positively correlated. For example, when a user triggers a swipe operation on the home screen control using three fingers, the second interface is displayed after three screen switches.
[0122] In some embodiments, when the first interface meets the interface display requirements, a multi-screen indicator element is displayed to indicate to the user that they can switch screens by swiping on the main screen control. Illustratively, when the first interface meets the interface display requirements, a multi-screen indicator element is displayed. This multi-screen indicator element includes a first element displayed in a first element style and a second element displayed in a second element style. The first element corresponds to the first interface, and the second element corresponds to the second interface. In response to a swipe operation, the second element is displayed in the first element style, and the first element is displayed in the second element style.
[0123] In some embodiments, when screen switching is achieved through a swipe operation triggered by a home screen control, the screen is switched in the opposite direction to the swipe direction. Illustratively, in response to a swipe operation, a first swipe direction corresponding to the swipe operation is obtained; the first interface is switched to the second interface by swiping in a second swipe direction opposite to the first swipe direction.
[0124] In one example, such as Figure 10 The diagram illustrates an exemplary embodiment of the interface switching process provided in this application. Taking a user's desktop state with three screens whose content can be switched between each other as an example, including a first screen, a second screen, and a third screen, each screen corresponds to a switchable interface. The screen area 1000 provided by the electronic device displays the interface 1010 corresponding to the first screen and a main screen control 1020. When the interface 1010 corresponding to the first screen meets the interface display requirements (e.g., the current interface 1010 corresponding to the first screen is a driving-related interface), a multi-screen indicator element 1030 is displayed below the main screen control 1020. When the main screen control 1020 receives a rightward swipe operation, it displays the interface 1040 corresponding to the second screen when swiping left.
[0125] That is, when a user presses a control on the main screen, the electronic device reads the screen touch parameters. First, it reads the finger lift-off parameter to determine whether the finger is lifted (for example, a finger lift-off parameter of 1 means the finger is lifted, and a finger lift-off parameter of 0 means the finger is not lifted). When the finger lift-off parameter is 1 and the finger is lifted, it continues to read the sliding distance X of the user's finger during the process from pressing to lifting. If the sliding distance X is greater than the first judgment threshold Y, it is determined that the user has made a sliding operation on the main screen control. The sliding direction of the user on the main screen control is then passed to the interface switching program. After obtaining the sliding direction of the user, the interface switching program will switch the screen once in the opposite direction, and the reverse is the same.
[0126] In summary, when implementing interface switching, it can be achieved through swiping on the provided main screen controls, or through interface switching operations within an extended area triggered by the main screen controls. In other words, users can directly switch interfaces based on the main screen controls provided by the electronic device. On one hand, since the main screen controls have a certain degree of visibility within the interface provided by the electronic device, the interface switching function implemented based on the main screen controls has functional visibility, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen controls to implement the interface switching function eliminates the need to add other independent controls to the displayed content of the electronic device, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface.
[0127] In some special interface display scenarios, users can switch screens with a single click by swiping the main screen controls. For example, when a user is driving and the vehicle terminal displays the driving interface, in order to reduce the user's attention being occupied during screen switching, the user can quickly switch screens by swiping the main screen, which improves the ease of use and efficiency of the screen switching function, thereby improving the safety of the driving process.
[0128] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0129] Please refer to Figure 11 This diagram illustrates a block diagram of an interface switching device according to an embodiment of this application. The device includes the following modules: Display module 1110 is used to display the first interface and main screen controls; The switching module 1120 is used to switch the first interface to the second interface in response to a sliding operation triggered by the main screen control or an interface switching operation triggered on the extended area. The extended area is the control area displayed after the main screen control is triggered.
[0130] In some optional embodiments, the display module 1110 is further configured to display the extended area in response to receiving a trigger operation triggered on the main screen control; The switching module 1120 is further configured to switch the first interface to the second interface in response to receiving the interface switching operation triggered on the extended area.
[0131] In some optional embodiments, the extended area includes target interface elements corresponding to the second interface; The switching module 1120 is further configured to switch the first interface to the second interface in response to receiving a selection operation on the target interface element triggered on the extended area.
[0132] In some optional embodiments, the display module 1110 is further configured to display the extended area in response to receiving a click operation triggered on the main screen control; The display module 1110 is further configured to display the extended area in response to receiving a first swipe operation triggered by the main screen control.
[0133] In some optional embodiments, the display module 1110 is further configured to cancel the display of the extended area when the display duration in the extended area reaches a target duration threshold and no sliding operation or interface switching operation is received.
[0134] In some optional embodiments, the display module 1110 is further configured to display the extended area in response to receiving a first swipe operation triggered for the main screen control; The switching module 1120 is further configured to switch the first interface to the second interface in response to receiving a second sliding operation following the first sliding operation, wherein the sliding between the first sliding operation and the second sliding operation is a continuous and uninterrupted sliding operation.
[0135] In some optional embodiments, the extended area includes target interface elements corresponding to the second interface; The display module 1110 is also used to display the target interface element in the selected display style in the extended area.
[0136] In some optional embodiments, the display module 1110 is further configured to display the second interface in a first display mode when no sliding end signal corresponding to the second sliding operation is detected; The display module 1110 is further configured to display the second interface in a second display mode when a sliding end signal corresponding to the second sliding operation is detected; The resource consumption of the first display method is lower than that of the second display method.
[0137] In some alternative embodiments, the apparatus further includes: A receiving module (not shown in the figure) is used to receive a sliding operation triggered by the main screen control when the first interface meets the interface display requirements. The switching module 1120 is also used to switch the first interface to the second interface in response to the sliding operation.
[0138] In some alternative embodiments, the interface display requirements include at least one of the following: The interface type of the first interface belongs to the target interface type; The first interface is used to display the application content of multiple applications on multiple screens, and the number of applications reaches the target number threshold.
[0139] In some optional embodiments, the display module 1110 is further configured to display multi-screen indicator elements when the first interface meets the interface display requirements. The multi-screen indicator elements include a first element displayed in a first element style and a second element displayed in a second element style. The first element corresponds to the first interface, and the second element corresponds to the second interface. The display module 1110 is further configured to, in response to the sliding operation, display the second element in the style of the first element, and display the first element in the style of the second element.
[0140] In some alternative embodiments, the apparatus further includes: An acquisition module (not shown in the figure) is used to acquire the first sliding direction corresponding to the sliding operation in response to the sliding operation; The switching module 1120 is further configured to switch the first interface to the second interface by sliding in a second sliding direction opposite to the first sliding direction.
[0141] In summary, when implementing interface switching, it can be achieved through swiping on the provided main screen controls, or through interface switching operations within an extended area triggered by the main screen controls. In other words, users can directly switch interfaces based on the main screen controls provided by the electronic device. On one hand, since the main screen controls have a certain degree of visibility within the interface provided by the electronic device, the interface switching function implemented based on the main screen controls has functional visibility, allowing users to quickly learn how to trigger the screen switching function and improving the human-computer interaction efficiency of the screen switching function. On the other hand, directly using the main screen controls to implement the interface switching function eliminates the need to add other independent controls to the displayed content of the electronic device, improving the overall cleanliness of the interface, reducing the number of controls that need to be rendered during interface rendering, and reducing the resource consumption associated with rendering the interface.
[0142] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0143] Please refer to Figure 12 This diagram illustrates a structural block diagram of a computer device 1200 provided in one embodiment of this application. The computer device 1200 can be at least one of an in-vehicle terminal, VR device, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop computer, used to implement the interface switching method provided in the above embodiments. Specifically: Typically, computer device 1200 includes a processor 1201 and a memory 1202.
[0144] Processor 1201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1201 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1201 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1201 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0145] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1202 are used to store a computer program configured to be executed by one or more processors to implement the interface switching method described above.
[0146] In some embodiments, the computer device 1200 may also optionally include other components 1203: a peripheral device interface and at least one peripheral device. The processor 1201, memory 1202, and peripheral device interface can be connected via a bus or signal lines. Each peripheral device can be connected to the peripheral device interface via a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of: radio frequency circuitry, a display screen, audio circuitry, and a power supply.
[0147] Those skilled in the art will understand that Figure 12 The structure shown does not constitute a limitation on the computer device 1200 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0148] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored in the storage medium, and the computer program, when executed by a processor, implements the above-described interface switching method. Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0149] In an exemplary embodiment, a computer program product is also provided, the computer program product including a computer program stored in a computer-readable storage medium. A processor of a terminal device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the terminal device to perform the aforementioned interface switching method.
[0150] It should be noted that the collection and processing of relevant data (such as historical behavioral data) in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0151] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0152] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for switching interfaces, characterized in that, The method is performed by an electronic device, and the method includes: Display the first interface and main screen controls; In response to a swipe operation triggered by the main screen control or an interface switching operation triggered on the extended area, the first interface is switched to the second interface; The extended area is the control area displayed after the main screen control is triggered.
2. The method according to claim 1, characterized in that, The step of switching the first interface to the second interface in response to a swipe operation triggered by the main screen control or an interface switching operation triggered on the extended area includes: In response to receiving a trigger operation for the main screen control, the extended area is displayed; In response to receiving the interface switching operation triggered on the extended area, the first interface is switched to the second interface.
3. The method according to claim 2, characterized in that, The extended area includes target interface elements corresponding to the second interface; The step of switching the first interface to the second interface in response to receiving the interface switching operation triggered on the extended area includes: In response to receiving a selection operation on the target interface element triggered on the extended area, the first interface is switched to the second interface.
4. The method according to claim 2 or 3, characterized in that, The step of displaying the extended area in response to receiving a trigger operation triggered on the main screen control includes: In response to receiving a click operation triggered by the main screen control, the extended area is displayed; or, In response to receiving a first swipe operation triggered by the home screen control, the extended area is displayed.
5. The method according to claim 2 or 3, characterized in that, After displaying the extended area, the method further includes: If the display duration of the extended area reaches the target duration threshold and no sliding operation or interface switching operation is received, the extended area will be canceled from display.
6. The method according to any one of claims 1 to 3, characterized in that, The step of switching the first interface to the second interface in response to a swipe operation triggered by the main screen control or an interface switching operation triggered on the extended area includes: In response to receiving a first swipe operation triggered for the main screen control, the extended area is displayed; In response to receiving a second swipe operation following the first swipe operation, the first interface is switched to the second interface, and the swipe between the first swipe operation and the second swipe operation is continuous and uninterrupted.
7. The method according to claim 6, characterized in that, The extended area includes target interface elements corresponding to the second interface; Before switching the first interface to the second interface, the method further includes: The target interface element is displayed in the selected display style in the extended area.
8. The method according to claim 6, characterized in that, Switching the first interface to the second interface includes: If no sliding end signal corresponding to the second sliding operation is detected, the second interface is displayed in the first display mode; Upon detecting the end-of-swipe signal corresponding to the second swipe operation, the second interface is displayed in a second display mode; The resource consumption of the first display method is lower than that of the second display method.
9. The method according to any one of claims 1 to 3, characterized in that, The step of switching the first interface to the second interface in response to a swipe operation triggered by the main screen control or an interface switching operation triggered on the extended area includes: If the first interface meets the interface display requirements, a sliding operation triggered by the main screen control is received; In response to the swipe operation, the first interface is switched to the second interface.
10. The method according to claim 9, characterized in that, The interface display requirements include at least one of the following: The interface type of the first interface belongs to the target interface type; The first interface is used to display the application content of multiple applications on multiple screens, and the number of applications reaches the target number threshold.
11. The method according to claim 9, characterized in that, The method further includes: When the first interface meets the interface display requirements, a multi-screen indicator element is displayed. The multi-screen indicator element includes a first element displayed in a first element style and a second element displayed in a second element style. The first element corresponds to the first interface, and the second element corresponds to the second interface. In response to the sliding operation, the second element is displayed in the style of the first element, and the first element is displayed in the style of the second element.
12. The method according to claim 9, characterized in that, The step of switching the first interface to the second interface in response to the swipe operation includes: In response to the sliding operation, the first sliding direction corresponding to the sliding operation is obtained; The first interface is slid to switch to the second interface using a second sliding direction opposite to the first sliding direction.
13. An interface switching device, characterized in that, The device includes: The display module is used to display the first interface and main screen controls; The switching module is used to switch the first interface to the second interface in response to a sliding operation triggered by the main screen control or an interface switching operation triggered on the extended area. The extended area is the control area displayed after the main screen control is triggered.
14. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing a computer program, which is loaded and executed by the processor to implement the interface switching method as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the interface switching method as described in any one of claims 1 to 12.
16. A computer program product, characterized in that, The computer program product includes a computer program stored in a computer-readable storage medium, and a processor reads from and executes the computer program to implement the interface switching method as described in any one of claims 1 to 12.