Interface display method and electronic equipment
By detecting the touch state during shape changes and intelligently switching interfaces, the problem of quickly starting up the function of devices with changeable shapes is solved, improving user experience and device efficiency.
Patent Information
- Application Number
- CN202511053655.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-29
- Publication Date
- 2025-11-14
AI Technical Summary
In existing technologies, when the form of an electronic device changes, it is difficult for users to quickly activate the corresponding functions, resulting in cumbersome and inefficient operation processes.
By detecting the touch status of the target area when the device changes shape, it can determine whether preset conditions are met and intelligently switch the display interface. For example, if the user performs a specified operation when the device is unfolded, the camera AI application interface is loaded; otherwise, the photo-taking interface is entered.
It improves the smoothness of operation and the speed of response, realizes the user experience of the deformable device that can be used immediately after flipping, reduces unnecessary interface switching and resource consumption, and improves the intelligence level and efficiency of human-computer interaction.
Smart Images

Figure CN120950160A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and includes, but is not limited to, an interface display method and an electronic device. Background Technology
[0002] In practical applications, users often expect to quickly launch certain functions in many scenarios, such as quickly opening the camera or quickly opening the payment code. For devices whose form does not change, one way to achieve this is to set up shortcuts in the interface or to set up physical buttons.
[0003] However, for devices whose form factor can change, such as foldable devices, users need to change the device's form factor to access the corresponding function page. Simply setting up shortcuts or physical buttons cannot enable users to quickly access the corresponding function interface, which causes inconvenience to users. Summary of the Invention
[0004] To address the problems existing in the related technologies, embodiments of this application provide an interface display method and an electronic device.
[0005] Firstly, this application provides a method for displaying an interface, the method comprising:
[0006] In response to detecting a change in the device form of an electronic device, the touch state of the target area is acquired;
[0007] If the device mode of the electronic device changes to the target device mode, and the touch state meets the target touch conditions, the first display screen is controlled to display the first interface in the target device mode;
[0008] If the device mode of the electronic device changes to the target device mode, and the touch state does not meet the target touch conditions, the first display screen is controlled to display the second interface in the target device mode;
[0009] The first interface is different from the second interface.
[0010] In some embodiments, the interface display method further includes: if the target area is a first area, the first interface is a first sub-interface; if the target area is a second area, the first interface is a second sub-interface; wherein the first area and the second area are different areas, and the first sub-interface and the second sub-interface are different.
[0011] In some embodiments, the interface display method further includes: if the target touch condition is a first touch condition, the first interface is a third sub-interface; if the target touch condition is a second touch condition, the first interface is a fourth sub-interface; wherein the first touch condition and the second touch condition are different touch conditions, and the third sub-interface and the fourth sub-interface are different.
[0012] In some embodiments, the interface display method further includes one of the following combinations: the first touch condition is a long press on the target area, and the second touch condition is a slide on the target area; or, the first touch condition is that the duration of the long press on the target area is within a first duration interval, and the second touch condition is that the duration of the long press on the target area is within a second duration interval, wherein the first duration interval is different from the second duration interval; or, the first touch condition is that the length of the slide on the target area is within a first length interval, and the second touch condition is that the length of the slide on the target area is within a second length interval, wherein the first length interval is different from the second length interval.
[0013] In some embodiments, the interface display method further includes: if the target device form is a first device form, the first interface is a fifth sub-interface; if the target device form is a second device form, the first interface is a sixth sub-interface; wherein the first device form and the second device form are different device forms, and the fifth sub-interface and the sixth sub-interface are different.
[0014] In some embodiments, the second interface is the interface displayed by the electronic device before the device form changes.
[0015] In some embodiments, the first interface is an interface included in a first application, and the second interface is an interface included in a second application.
[0016] In some embodiments, the first interface is an interface for displaying target image data, wherein the target image data is image data acquired by an image acquisition device; the method further includes: identifying the target image data; and displaying a third interface based on the identification result.
[0017] Secondly, embodiments of this application provide an electronic device, the form of which can change, the electronic device comprising:
[0018] Memory, used to store executable instructions;
[0019] A processor, coupled to the memory, is configured to execute executable instructions stored in the memory, and to perform the following steps: in response to detecting a change in the device form of the electronic device, acquire the touch state of a target area; if the device form of the electronic device changes to the target device form and the touch state satisfies the target touch conditions, control a first display screen to display a first interface in the target device form; if the device form of the electronic device changes to the target device form and the touch state does not satisfy the target touch conditions, control the first display screen to display a second interface in the target device form; wherein the first interface is different from the second interface.
[0020] In some embodiments, the electronic device is a folding device, a rolling device, or a telescopic device.
[0021] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0022] Figure 1 This is an optional flowchart illustrating the interface display method provided in the embodiments of this application;
[0023] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0024] Figure 3 This is a schematic diagram of the structure of the folding device provided in the embodiments of this application;
[0025] Figure 4 This is a flowchart illustrating the folding device display method provided in the embodiments of this application. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] In the following description, references to "some embodiments" refer to a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same or different subsets of all possible embodiments and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art to which the embodiments of this application pertain. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit the application.
[0028] Currently, when users are using electronic devices, they may need to quickly access a function in certain scenarios. The relevant technologies usually achieve this by setting up a shortcut on the interface or by providing a physical button.
[0029] For example, with the development of artificial intelligence (AI) technology, camera applications have become an interactive window between users and AI, and users are increasingly relying on image acquisition and AI interaction functions. Related technologies have incorporated a camera button into the device, which, when pressed, can quickly activate the camera and AI interaction functions.
[0030] However, in existing foldable devices or other deformable devices, besides function activation, changes in device form factor are also involved. Some functions have their most suitable device form factor. For example, when a foldable phone takes a selfie using its rear camera, unfolding it to 90 degrees is the most suitable form factor. However, related technologies have not considered how to quickly activate functions when the device form factor changes. Since users close their foldable phones when not in use, when they need to use certain functions associated with the device form factor, they must first unfold the phone to the corresponding form factor, open the corresponding application, and then they can use the function. This process is cumbersome and inefficient.
[0031] Based on the problems existing in related technologies, embodiments of this application can provide an interface display method, which, in response to detecting a change in the device form of the electronic device, obtains the touch state of the target area; if the device form of the electronic device changes to the target device form and the touch state meets the target touch conditions, controls the first display screen to display a first interface in the target device form; if the device form of the electronic device changes to the target device form and the touch state does not meet the target touch conditions, controls the first display screen to display a second interface in the target device form.
[0032] In other words, in this embodiment of the application, when a change in device form is detected, the touch state of the target area can be determined in real time, and the display interface can be intelligently switched according to whether the touch state meets preset conditions. For example, during the unfolding process of the device, if the user performs a specified operation in the target area, the camera AI application interface is loaded and displayed; if no specified operation is performed, the camera shooting interface is entered. In this way, the user can complete the unfolding of the device and the launch of the application target interface in one continuous action, improving the smoothness of operation and response speed, and realizing a user experience of the deformable device being ready to use immediately upon unfolding.
[0033] This application embodiment detects the touch state of the target area when the device changes form and determines whether the target touch conditions are met, thereby deciding whether to display a first interface or a second interface. It can intelligently switch interface content according to the user's operation intention, improving the user interaction experience and the flexibility of interface response, while avoiding unnecessary interface switching and reducing the resource consumption of electronic devices. Furthermore, it combines the device form change with the touch input of the target area as the basis for dynamically controlling the interface display. When the device form changes, the corresponding function is pre-activated, so that the corresponding function interface is directly displayed when the device changes to the target form, instead of changing form first and then interacting to display the function page. This meets the user's need for quick activation of specific functions, not only improving the intelligence level of human-computer interaction, but also effectively reducing the time delay caused by additional operations in related technologies, resulting in faster response speed and improved utilization efficiency of deformable devices.
[0034] In the embodiments of this application, the electronic device can be any electronic device capable of shape change, such as a folding device, a rollable device, or a telescopic device. The following embodiments will use a folding device as an example for explanation. Other electronic devices capable of shape change will be described in conjunction with their corresponding embodiments, and will not be elaborated upon one by one.
[0035] The technical solution of this application will now be described in detail with reference to the accompanying drawings.
[0036] Figure 1 This is an optional flowchart illustrating the interface display method provided in this application embodiment. The execution entity of the interface display method provided in this application embodiment is explained using the processor of an electronic device as an example. Figure 1 As shown, the interface display method provided in this application embodiment can be implemented through steps S101 to S103:
[0037] Step S101: In response to detecting a change in the device form of the electronic device, obtain the touch state of the target area.
[0038] In this embodiment, device form can refer to the current physical structural state of the electronic device. For example, the device form of a foldable screen phone can be either a closed state or an unfolded state. When a user switches the electronic device from one form to another during use, this change will be detected.
[0039] The target area can refer to a pre-defined touch area on an electronic device for human-computer interaction. It can be located in a position convenient for user operation when the device's form factor changes, and can be customized by the user through settings, such as any area on the outer screen or side. Taking a foldable screen as an example, the target area can be any selected area on the outer screen or the side shortcut key area. Furthermore, inward folding can be the edge of the outer screen or the hinge area, while outward folding can be any conveniently operated area on the large screen or any position on the side. Taking a rollable screen as an example, the target area can be the side roll-up control area; taking a telescopic screen as an example, the target area can be the edge of the telescopic section or the side touch area.
[0040] Touch status can be used to indicate whether a user has performed a touch operation within a target area, as well as details such as the method, location, and duration of the touch. For example, in a foldable device, a user might lightly touch a specific location within the target area with their index or middle finger to indicate their intention to activate the camera's AI interface.
[0041] This application embodiment can monitor changes in device form in real time using built-in sensors and a screen controller. For example, an angle sensor can detect changes in the flip angle to determine whether the electronic device has changed from a closed state to an unfolded state. Simultaneously, a touch-sensing module corresponding to the target area can detect whether the user has touched the target area. If the user touches the target area during the process of the folding device changing from a closed state to an unfolded state, the target touch condition can be considered met; otherwise, it is considered not to meet the target touch condition.
[0042] Step S102: If the device mode of the electronic device changes to the target device mode and the touch state meets the target touch conditions, control the first display screen to display the first interface in the target device mode.
[0043] In this embodiment, when the electronic device is a foldable device, the target device form can refer to the unfolded state. The transformation of the device form to the target device form can refer to the foldable device changing from a folded state to an unfolded state, i.e., the form in which the inner screen of the foldable device is exposed. Whether the electronic device is relatively open (i.e., during the opening process) or fully open, the inner screen being exposed is considered a target device form, and the display interface can be determined using the display method provided in this embodiment. When the electronic device is closed, the inner screen is not visible to the user and is not considered a target device form; therefore, the process of determining the display interface is not involved.
[0044] The target touch condition can be a pre-set condition used to represent the user's intention. For example, if a user presses on the outer screen of a foldable device for more than one second when the foldable device changes from a folded state to an unfolded state, it can be assumed that the user wants the foldable device to display the first interface on the first display screen when unfolded.
[0045] Here, the first display screen refers to the main display area of an electronic device. In foldable phones, the first display screen typically corresponds to the inner screen or main screen. The first interface can be the interface displayed when the user triggers specific conditions. It is pre-set to correspond to different touch conditions. For example, pressing the outer screen for more than one second corresponds to the camera AI application interface as the first interface. When the user completes the unfolding action and the touch state meets the target touch conditions, the first interface will be loaded and displayed immediately after the device is fully unfolded, so as to quickly access the required functions.
[0046] In this embodiment, when the system detects that the user has completed the unfolding action and the touch state meets the target touch conditions, the background of the electronic device begins to preload relevant resources. This includes pre-allocating memory space, loading the camera application and its corresponding AI model, and initializing the camera lens module. This ensures that the first interface content can be displayed after the device is fully unfolded, thereby reducing the user's waiting time. This not only improves the user experience but also enhances the efficiency of resource scheduling.
[0047] Step S103: If the device mode of the electronic device changes to the target device mode, and the touch state does not meet the target touch conditions, control the first display screen to display the second interface in the target device mode; wherein, the first interface is different from the second interface.
[0048] In this embodiment, the second interface may refer to the default interface displayed when the touch state does not meet the target touch conditions, such as the main interface of the foldable device or the application interface that the outer screen of the foldable device is using when the foldable device is in the folded state.
[0049] In some embodiments, the content and purpose of the second interface differ from those of the first interface, and it is used when the user does not have a clear operational intention. For example, if the user simply turns on the device but the touch state does not meet the target touch conditions, the electronic device will enter the regular main interface after unfolding, instead of directly jumping to the camera AI application interface.
[0050] Here, if the user's touch state during the flip-open process does not meet the target touch conditions, the electronic device will complete the interface switching according to the normal process, displaying the second interface after the device is unfolded. In this case, the electronic device will not perform additional resource preloading operations, thereby saving the electronic device's resources and avoiding unnecessary power consumption increases.
[0051] In some embodiments, electronic devices can also learn from the user's historical behavior and automatically adjust the sensitivity of the touch state to reduce the probability of accidental triggering. Furthermore, electronic devices can combine multiple factors such as device posture (e.g., vertical or horizontal) and the user's grip to more accurately identify the user's operational intent, thereby providing a more natural and fluid interactive experience.
[0052] This application embodiment detects the touch state of the target area when the device changes form and determines whether the target touch conditions are met, thereby deciding whether to display a first interface or a second interface. It can intelligently switch interface content according to the user's operation intention, improving the user interaction experience and the flexibility of interface response, while avoiding unnecessary interface switching and reducing the resource consumption of electronic devices. Furthermore, it combines the device form change with the touch input of the target area as the basis for dynamically controlling the interface display, so that the corresponding functional interface is directly displayed when the device changes to the target form, rather than changing form first and then interacting to display the functional page. This meets the user's need for quick launch of specific functions, not only improving the intelligence level of human-computer interaction, but also effectively reducing the time delay caused by additional operations in related technologies, resulting in faster response speed and improved utilization efficiency of deformable devices.
[0053] In some embodiments, an electronic device may have multiple touch areas, each with a different function activated. Therefore, the interface display method provided in this application embodiment may further include steps S1 and S2:
[0054] Step S1: If the target area is a first area, the first interface is a first sub-interface.
[0055] In the embodiments of this application, the first area may refer to an area that the user has pre-set on the electronic device (it may be on the outer screen, inner screen or side area of the folding device; this application does not limit the specific location), and can be used to identify the user's intention to directly launch the camera AI application after unfolding the device.
[0056] The first area can be the middle, bottom, or any other location on the outer screen, and can be customized according to personal usage habits. For example, a user can choose to set the first area to the bottom left of the screen. This way, when the user presses the first area with their right index finger and opens the flip, the electronic device can detect the user's gesture and recognize the user's intention to launch the camera AI application.
[0057] The first sub-interface can be the interface for the camera's AI functions, containing shortcuts to advanced features such as AI image recognition, real-time translation, and object recognition. Compared to the regular main interface, this interface prioritizes loading the camera module and pre-starts the AI engine, thereby reducing user waiting time and improving response speed. The first sub-interface is suitable for scenarios requiring rapid image capture and intelligent image processing, such as street view recognition and document scanning.
[0058] In this embodiment, the first area can be pre-bound to the first sub-interface, so that when the user flips the cover, he only needs to determine that the touch state of the first area meets the target touch conditions to quickly launch the camera AI application, thereby avoiding other additional operations such as opening the camera application after unfolding, waiting for loading, and then opening the AI interface.
[0059] Here, by binding the first area with the first sub-interface, not only can the user experience be improved, but the unique interactive advantages of foldable screen devices can also be enhanced.
[0060] Step S2: If the target area is a second area, the first interface is a second sub-interface; wherein the first area and the second area are different areas, and the first sub-interface and the second sub-interface are different.
[0061] In this embodiment, the second area can refer to a touch area on the electronic device that is different from the first area, set by the user, to trigger the quick launch of other applications, such as translation apps or other AI-assisted tools. The user can also customize the second area, ensuring it does not overlap with the first area to avoid accidental operation. For example, the user can choose to set the second area to the upper right corner of the screen, so that when the user touches the second area with their index or middle finger and opens the flip, the electronic device can recognize the user's intention to launch a translation app.
[0062] The second sub-interface can be designed for translation or other specific functions, and may include modules such as language selection, instant translation, and voice input. The second sub-interface will preload relevant resources before the device is fully opened, ensuring that users can immediately access the desired functions after turning on the device, thus improving operational efficiency.
[0063] This application embodiment allows for the switching of different application scenarios within the same flip-up action by setting different correspondences between areas and interfaces, thereby achieving personalized and efficient multitasking. For example, in a travel scenario, a user can use the first area to launch a camera AI application to take photos and identify road signs, and use the second area to launch a translation application to translate menus or signs.
[0064] In this embodiment, different sub-interfaces are displayed based on the user's touch of the first and second areas, which can flexibly adapt to the user's needs, thereby improving the convenience and efficiency of operation and enhancing the interactive experience of deformable devices.
[0065] In some embodiments, the touch area is not limited; different touch conditions are met in the same or different touch areas, and different functions are activated. For example, two-finger touch and three-finger touch open different functional interfaces. Therefore, the interface display method provided in this application embodiment may further include steps S3 and S4:
[0066] Step S3: If the target touch condition is the first touch condition, the first interface is the third sub-interface.
[0067] Here, the first touch condition is used to identify the user's intention to launch the camera AI application. The detection logic of the first touch condition can be based on parameters such as touch position, touch area, and touch duration to ensure the naturalness and accuracy of the operation. For example, the first touch condition can refer to the state of the user performing a single-point touch input on a preset touch area on the outer screen (such as the middle position of the lower half of the screen), or it can refer to a press operation in the preset touch area that lasts longer than a first duration, a touch swipe operation in the preset touch area that lasts longer than a preset distance, or a click operation in the preset touch area that lasts a preset number of times.
[0068] In some embodiments, the preset touch area can be one or more areas detected simultaneously. For example, a press operation with a duration greater than a first time or a touch swipe operation with a length greater than a preset distance may occur simultaneously in the first preset area and the second preset area.
[0069] The third sub-interface can refer to the interface displayed after the flip is fully opened. The content of the third sub-interface can be related to camera AI applications. When the touch state meets the first touch condition, the electronic device can prioritize loading the third sub-interface and optimize resource allocation to ensure that the user can immediately see a clear camera image after the flip is completed and call up AI functions, such as image recognition and object detection.
[0070] Step S4: If the target touch condition is the second touch condition, the first interface is the fourth sub-interface; wherein the first touch condition and the second touch condition are different touch conditions, and the third sub-interface is different from the fourth sub-interface.
[0071] In this embodiment of the application, the second touch condition may refer to the user performing an operation different from the first touch condition in a preset touch area (which may be the same as or different from the area in step S3).
[0072] The fourth sub-interface refers to the interface displayed after the flip is fully unfolded, which differs from the third sub-interface. It may be related to translation applications or other auxiliary functions. Electronic devices can pre-load the translation engine and initialize the language recognition module, allowing users to access the corresponding functional interface without additional operation.
[0073] In some embodiments, the first touch condition and the second touch condition are different touch conditions. By setting a differentiation mechanism between the first touch condition and the second touch condition, the probability of false triggering can be effectively reduced, thereby improving the stability and reliability of electronic devices.
[0074] The third and fourth sub-interfaces represent functional interfaces. For example, the third sub-interface might be used for image acquisition and AI recognition, while the fourth sub-interface might be used for text processing and speech recognition. The electronic device can dynamically adjust its background resource allocation strategy based on either the first or second touch condition to ensure that either the third or fourth sub-interface loads quickly and maintains good performance.
[0075] Here, the first and second touch conditions can be achieved by detecting the user's input behavior through a touch sensor. By analyzing parameters such as input type (e.g., single-point / multi-point), input position, and duration, the user's true operational intent is determined, and the corresponding sub-interface is selected for display based on the user's true operational intent.
[0076] This application embodiment distinguishes between the first touch condition and the second touch condition, mapping them to different sub-interfaces respectively. This enables the ability to flexibly switch between different functional interfaces according to the user's operating intentions when the device form changes. This not only shortens the time delay between device unfolding and application availability, but also improves interaction efficiency and enhances the device's versatility, thereby meeting the diverse usage needs of users.
[0077] In some embodiments, the interface display method provided in this application may further include one of steps S5 to S7:
[0078] Step S5: The first touch condition is to long press the target area, and the second touch condition is to slide in the target area.
[0079] In this embodiment of the application, the first touch condition and the second touch condition should be clearly distinguishable so that the electronic device can accurately identify the user's operation intention, such as long-pressing or swiping in the target area.
[0080] Step S6: The first touch condition is that the duration of long press on the target area is within a first duration interval, and the second touch condition is that the duration of long press on the target area is within a second duration interval, wherein the first duration interval and the second duration interval are different.
[0081] In this embodiment of the application, the first touch condition and the second touch condition can also be distinguished by the duration of the user's long press operation on the target area. For example, a long press for 1 second and a long press for 2 seconds are used to launch interfaces with different functions.
[0082] Step S7: The first touch condition is that the length of the slide in the target area is within a first length range, and the second touch condition is that the length of the slide in the target area is within a second length range. The first length range is different from the second length range.
[0083] In this embodiment of the application, the first touch condition and the second touch condition can also be distinguished by the distance of the user's swiping operation in the target area. For example, swiping within 2 cm and swiping more than 2 cm are used to launch interfaces with different functions.
[0084] This application embodiment can achieve accurate recognition of user operation intentions by defining multiple touch conditions and their corresponding trigger behaviors. By defining multiple touch conditions and their corresponding trigger behaviors, the occurrence of erroneous operations can be reduced, thereby improving the stability and accuracy of human-computer interaction, and ultimately enhancing the convenience and satisfaction of users when using deformable devices.
[0085] In some embodiments, the final unfolded form of the electronic device varies, and the displayed interface may also differ. For example, when the folding device is fully unfolded, the camera recognition function is activated; when the folding device is opened to 90 degrees, the camera's video recording mode is activated. Therefore, the interface display method provided in this application embodiment may further include steps S8 and S9:
[0086] Step S8: If the target device is in the first device form, the first interface is the fifth sub-interface.
[0087] In some embodiments, the first device form may refer to the physical structure of the electronic device exhibiting a specific folded or unfolded state, such as a partially unfolded or fully unfolded state of a folding device, or a partially unfolded and fully unfolded state of a roll-up device. When the electronic device changes to the first device form and the touch state meets the target touch conditions, a fifth sub-interface will be displayed on the first display screen. The fifth sub-interface may be the interface of a camera AI application to ensure that the user can immediately access the desired function when the device is turned on.
[0088] Step S9: If the target device form is the second device form, the first interface is the sixth sub-interface; wherein the first device form and the second device form are different device forms, and the fifth sub-interface and the sixth sub-interface are different.
[0089] In some embodiments, the first device form and the second device form refer to two different physical states of the electronic device. The second device form differs significantly from the first device form, with a larger screen unfolding angle or a change in the overall device structure, to distinguish user intent. For example, the first device form might be in a 90-degree unfolded state, while the second device form might be in a fully unfolded state. When the electronic device is in the second device form, a sixth sub-interface is loaded on the first display screen according to the second device form. The layout or functional configuration of the sixth sub-interface differs from the fifth sub-interface to adapt to different usage scenarios and user needs.
[0090] This application's embodiments, by identifying and distinguishing different device forms, can more accurately determine the user's usage intent and provide corresponding interactive feedback, thus enabling more intelligent and efficient user interface management. By displaying different interfaces under different device forms, it can better match the user's current operating habits and usage needs, thereby improving the usability of electronic devices and user satisfaction.
[0091] In this embodiment, by switching the corresponding interface under different device modes, the user can automatically enter the appropriate interface when unfolding the device, thereby reducing unnecessary operations and improving interaction efficiency. By switching the corresponding interface under different device modes and automatically entering the appropriate interface when the user unfolds the device, the continuity and convenience of user experience can be ensured, thereby optimizing the user experience and further improving the device's intelligence level and user stickiness.
[0092] In some embodiments, even when the touch conditions, device form factor, and touch area of the electronic device are the same, the interface displayed by the electronic device in the unlocked and locked states may be different. For example, the camera AI interface may be displayed when the device is unlocked, while the camera photo-taking interface may be displayed when the device is locked.
[0093] In some embodiments, the second interface is the interface displayed by the electronic device before the device changes form.
[0094] When a user unfolds an electronic device (such as a foldable or rollable phone) from its closed state, a change in the device's form factor is detected. If no touch input matching the target touch condition is detected (e.g., touching a designated area on the external display), the last user interface used in the closed state can be displayed after the device is fully unfolded; this is the second interface. The second interface could be the lock screen, the home screen, or the interface of an application running on the external screen when the device is folded.
[0095] The definition of a second interface ensures that users can continue their previous workflow after unfolding the device without having to reselect or switch interfaces. By defining a second interface, continuous user operation is achieved, improving the consistency and continuity of the user experience and avoiding unnecessary interruptions and repetitive operations.
[0096] Here, suppose a user views an image with their device open, then closes the device and puts it in their pocket. When the user opens the device again, if they don't perform any additional touch operations, the first display after opening will show the image they viewed while the device was closed, instead of the default home screen or other interfaces.
[0097] In this embodiment, the original interface logic will remain unchanged when the user does not touch the user-defined target area, so as to maintain the continuity of user operation, not interfere with the normal user experience, improve the overall user efficiency, and enhance the user's satisfaction with the use of electronic devices.
[0098] In some embodiments, the first interface is an interface included in a first application, and the second interface is an interface included in a second application.
[0099] The first and second interfaces can be interfaces of different applications. By binding the first interface to the first application and the second interface to the second application, the system can accurately identify and switch to the corresponding application interface when the device form factor changes. The mapping relationship between the interface and the application ensures that the corresponding interface content can be quickly located and loaded when the device form factor changes. It also avoids interface clutter or delayed loading issues, improves the smoothness of user operation, reduces user waiting time, and thus enhances the overall user experience.
[0100] By assigning the first and second interfaces to different applications, seamless switching can be achieved during user operations, ensuring the most suitable user experience in different modes. For example, when a user turns on the device, the system can determine whether to directly enter the second interface based on the user's input, without requiring any additional user action.
[0101] In this embodiment of the application, when the device form changes, by binding the first interface to the first application and the second interface to the second application, the interface can be intelligently switched under different device forms, thereby optimizing the user operation process and improving the user experience.
[0102] The interface display method provided in this application embodiment may further include step S10:
[0103] Step S10: Launch the target application and jump to the first interface.
[0104] In this embodiment of the application, when the first interface is the interface of the target application, when the device mode of the electronic device changes to the target device mode and the touch state meets the target touch conditions, the target application can be launched and the user can jump to the first interface.
[0105] Correspondingly, displaying the first interface in the target device mode in step S102 can be achieved through step S1021:
[0106] Step S1021: Control the first display screen to render and display the first interface in the target device mode.
[0107] The processor of an electronic device can render the first interface in advance, so that the first display screen can render and display the first interface in the form of the target device.
[0108] In some embodiments, step S10 can also be implemented via step S11:
[0109] Step S11: In response to a change in the device form of the deformable device, the target application is launched and the user is redirected to the first interface.
[0110] In this embodiment of the application, when the device form of the deformable device changes, the target application is launched and jumps to the first interface. At this time, if the touch state meets the target touch conditions, the first interface is displayed; if the touch state does not meet the target touch conditions, the first interface is not displayed, and the second interface is displayed.
[0111] In other words, the embodiments of this application can activate the first interface when the device form changes, so as to prepare in advance so that the first interface can be directly displayed when the target device form is reached, thereby improving the response efficiency of the electronic device.
[0112] In some embodiments, the first interface can be an interface for displaying target image data, which can be image data acquired by an image acquisition device. Here, the target image data can be a still image, a video frame sequence, or other forms of visual input content. The image acquisition device can be located in the camera module of the device, and the image acquisition device can capture images of the external environment in real time when the user operates the device.
[0113] The interface display method provided in this application embodiment may further include steps S21 and S22:
[0114] Step S21: Identify the target image data.
[0115] Recognizing target image data involves analyzing the data, extracting key information, and determining its content. This process may involve algorithms such as object detection, face recognition, and scene classification, depending on the functionality of the interface and user requirements. The results of target image data recognition can be used to trigger further operations or provide feedback.
[0116] In this embodiment, the identification of target image data can be achieved through semantic recognition combined with an artificial intelligence model. For example, the type and location of objects in the target image data, as well as their relationship with other elements in the target image data, can be identified, providing a basis for the subsequent generation of a third interface.
[0117] Here, once the target image data is loaded onto the first interface, the electronic device will immediately activate the image recognition module. The image recognition module will parse the target image data content and prepare the corresponding response logic based on the recognition results of the image recognition module.
[0118] Step S22: Display the third interface based on the recognition results.
[0119] In this embodiment, the third interface refers to a new interface dynamically generated and displayed based on the recognition results after image recognition is completed. This interface may include a visual presentation of the recognition results, relevant suggestions, operation options, etc., to provide users with further information or guide users to perform the next operation on the target image data.
[0120] The design of the third interface can be customized based on different recognition results. For example, if a face is recognized, the third interface may display a success message for face recognition and authentication options related to that face; if text is recognized, the third interface may display translation suggestions or text recognition results.
[0121] In some embodiments, once image recognition is complete, the electronic device can automatically generate a third interface based on the recognized content and display the third interface on the first display screen.
[0122] This application embodiment displays a first interface for displaying image data acquired by an image acquisition device in the target device form, identifies the target image data, and then displays a third interface based on the identification result. This achieves seamless integration of image acquisition, identification, and user feedback, thereby improving the convenience and intelligence of user operation and significantly enhancing the AI interactive experience on flip devices.
[0123] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figure 2 The illustrated electronic device includes at least one processor 210, a memory 250, at least one network interface 220, and a user interface 230. The various components of the electronic device are coupled together via a bus system 240. It is understood that the bus system 240 is used to implement communication between these components. In addition to a data bus, the bus system 240 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 240.
[0124] Processor 210 can be an integrated circuit chip with signal processing capabilities, such as a central processing unit (CPU), a graphics processing unit, a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0125] Here, when the processor 210 executes the computer program, it performs the following steps: in response to detecting a change in the device form of the electronic device, it acquires the touch state of the target area; if the device form of the electronic device changes to the target device form and the touch state meets the target touch conditions, it controls the first display screen to display a first interface in the target device form; if the device form of the electronic device changes to the target device form and the touch state does not meet the target touch conditions, it controls the first display screen to display a second interface in the target device form; wherein, the first interface is different from the second interface.
[0126] User interface 230 includes one or more output devices and one or more input devices that enable the presentation of media content.
[0127] Memory 250 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. Memory 250 may optionally include one or more storage devices physically located remote from processor 210. Memory 250 may include volatile memory or non-volatile memory, or both. Non-volatile memory may be read-only memory (ROM), and volatile memory may be random access memory (RAM). The memory 250 described in this application embodiment is intended to include any suitable type of memory. In some embodiments, memory 250 is capable of storing data to support various operations, examples of which include computer programs, modules, and data structures, or subsets or supersets thereof, as illustrated below.
[0128] Operating system 251 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;
[0129] The network communication module 252 is used to reach other computing devices via one or more (wired or wireless) network interfaces 220, such as Bluetooth, WiFi, and Universal Serial Bus (USB).
[0130] Input processing module 253 is used to detect and translate one or more user inputs or interactions from one or more input devices.
[0131] In some embodiments, the electronic device is a folding device, a roll-up device, or a telescopic device. When the device form of the folding device, roll-up device, or telescopic device changes, such change may include any of the following forms: the folding device changes from a folded state to an unfolded state, the screen of the roll-up device unfolds, or the screen of the telescopic device extends.
[0132] Taking folding devices as an example, Figure 3This is a schematic diagram of the structure of a folding device provided in an embodiment of this application. The folding device includes a first body 301 and a second body 302. The first body 301 and the second body 302 can rotate based on a connected hinge. A first display screen 303 (i.e., the inner screen) covers the first body 301 and the second body 302. A second display screen 304 (i.e., the outer screen) is disposed opposite to the first display screen 303 and covers the first body 301. When the user changes the folding device from a folded state to an unfolded state, the system detects whether the user touches a preset area and whether the touch state meets the target touch conditions during the unfolding process to determine whether to directly launch the first interface.
[0133] A rollable device can be an electronic device that changes the display size by sliding or rolling the screen. The screen of a rollable device can unfold or retract like a roll of paper, thereby achieving display areas of different sizes. In this embodiment, the device detects whether the user has touched a preset area and whether the touch state meets the target touch conditions during the screen unfolding process, in order to determine whether to directly launch the first interface.
[0134] A retractable device can refer to a device whose screen can be pulled outward or retracted through a mechanical structure. When the screen of the retractable device is pulled out, it detects whether the user has touched a preset area and whether the touch state meets the target touch conditions to determine whether to directly launch the first interface.
[0135] The following section provides an application of an interface display method in a real-world scenario.
[0136] This application provides a method for activating camera AI when a user unfolds their mobile phone, reducing additional user operations and enabling the user to quickly unfold the device from a closed state and activate camera AI.
[0137] Figure 4 This is a flowchart illustrating the folding device display method provided in an embodiment of this application, as shown below. Figure 4 As shown, the folding device display method can be implemented through steps S401 to S406:
[0138] Step S401: Receive user input.
[0139] Step S402: The folding device begins to unfold.
[0140] In this embodiment, when the folding device begins to unfold, it is possible to detect whether there is touch input in a specific area of the outer screen. Here, since the unfolding of the folding device from 0 degrees to 180 degrees is a continuous process, considering the comfort of operation, the action of detecting touch in a specific area of the outer screen can be implemented before the unfolding begins and maintained until the flipping is finished.
[0141] Step S403: Determine whether the specified operation exists in the specified area.
[0142] In some embodiments, if no specified operation exists, for example, if the user does not touch the specified area, step S404 is executed; if a specified operation exists, step S405 is executed.
[0143] Step S404: After the folding device is fully unfolded, the device's main interface is displayed.
[0144] Step S405: Activate the camera's AI recognition interface and allocate resources.
[0145] In some embodiments, if a user touches a designated area, the background optimizes resource allocation, improves resource allocation for the camera AI application, and pre-launches the camera AI application. For example, if the camera AI application is not in memory, it is pre-loaded into memory, and the relevant camera lens module is configured to enter a standby state.
[0146] Step S406: After the folding device is fully unfolded, the AI recognition interface is displayed.
[0147] Once the camera is fully opened, the camera / AI app will be displayed.
[0148] In some embodiments, users can configure a specific area on the electronic device to trigger the immediate display of the camera / AI application when the phone is unfolded. Users can select a trigger area that suits their preferences from the top, middle, or bottom of the outer screen of the foldable device. If the user does not touch this area when unfolding the foldable phone, the phone will enter a normal mode, such as displaying the main interface of the electronic device; if the user touches this designated area when unfolding the phone, the camera / AI application will be displayed when the phone is fully unfolded.
[0149] In some embodiments, the method can also be used for quick access to other applications. For example, touching another designated area and opening the cover can launch a translation application, or touching the outer screen with one finger and opening the cover can directly access the camera / AI application, or touching with two fingers (such as the index or middle finger) and opening the cover can launch a voice recognition application.
[0150] In some embodiments, a user can hold the folding device with their left hand, touch the external display with their right index finger, and open the flip with their thumb. As the flip angle increases from 0 to a specific angle (e.g., 50 degrees), the touch of the index finger on the external display remains unchanged to recognize the user's intent.
[0151] In some embodiments, shortcut buttons may also be installed on the side of the lower half of the folding device. When the user holds the phone with one hand and presses the shortcut button, while simultaneously unfolding the upper half with the other hand, the camera AI function is directly invoked after it is fully unfolded.
[0152] In this way, touch input on the outer screen is detected during the phone's opening process to preload the camera AI app and present it directly after the screen is opened. After unfolding the folded phone, the user can directly access the camera AI app.
[0153] Please continue to refer to Figure 2 The processor of the electronic device is further configured to: if the target area is a first area, the first interface is a first sub-interface; if the target area is a second area, the first interface is a second sub-interface; wherein the first area and the second area are different areas, and the first sub-interface and the second sub-interface are different.
[0154] In some embodiments, the processor of the electronic device is further configured to: if the target touch condition is a first touch condition, the first interface is a third sub-interface; if the target touch condition is a second touch condition, the first interface is a fourth sub-interface; wherein the first touch condition and the second touch condition are different touch conditions, and the third sub-interface and the fourth sub-interface are different.
[0155] In some embodiments, the processor of the electronic device is further configured to, if the target device form is a first device form, the first interface is a fifth sub-interface; if the target device form is a second device form, the first interface is a sixth sub-interface; wherein the first device form and the second device form are different device forms, and the fifth sub-interface and the sixth sub-interface are different.
[0156] In some embodiments, the second interface is the interface displayed by the electronic device before the device form changes.
[0157] In some embodiments, the first interface is an interface included in a first application, and the second interface is an interface included in a second application.
[0158] In some embodiments, the first interface is an interface for displaying target image data, which is image data acquired by an image acquisition device; the processor of the electronic device is also used to identify the target image data; and a third interface is displayed based on the identification result.
[0159] The description of the electronic device in this embodiment is similar to the description of the interface display method described above, and has similar beneficial effects, so it will not be repeated here. For technical details not disclosed in the embodiments, please refer to the description of the interface display method in this application for understanding.
[0160] This application provides a computer program product or computer program that includes executable instructions, which are computer instructions; the executable instructions are stored in a computer-readable storage medium. When the processor of an electronic device reads the executable instructions from the computer-readable storage medium and executes the executable instructions, the electronic device performs the method described in this application.
[0161] This application provides a storage medium storing executable instructions, wherein the executable instructions are stored and when executed by a processor, they will cause the processor to execute the method provided in this application.
[0162] In some embodiments, the storage medium may be a computer-readable storage medium, such as a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEROM), flash memory, magnetic surface memory, optical disk, or a compact disk-read-only memory (CD-ROM); or it may be a device that includes one or any combination of the above-mentioned memories.
[0163] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0164] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file containing other programs or data, for example, in one or more scripts within a Hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files storing one or more modules, subroutines, or code sections). As an example, executable instructions may be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0165] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
[0166] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0167] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another system, or some features may be ignored or not performed.
[0168] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for displaying an interface, the method comprising: In response to detecting a change in the device form of an electronic device, the touch state of the target area is acquired; If the device mode of the electronic device changes to the target device mode, and the touch state meets the target touch conditions, the first display screen is controlled to display the first interface in the target device mode; If the device mode of the electronic device changes to the target device mode, and the touch state does not meet the target touch conditions, the first display screen is controlled to display the second interface in the target device mode; The first interface is different from the second interface.
2. The interface display method according to claim 1, further comprising: If the target area is a first area, the first interface is a first sub-interface; If the target area is a second area, the first interface is a second sub-interface; The first region and the second region are different regions, and the first sub-interface and the second sub-interface are different.
3. The interface display method according to claim 1, further comprising: If the target touch condition is the first touch condition, the first interface is the third sub-interface; If the target touch condition is the second touch condition, the first interface is the fourth sub-interface; The first touch condition is different from the second touch condition, and the third sub-interface is different from the fourth sub-interface.
4. The interface display method according to claim 3, wherein the interface display method further comprises one of the following combinations: The first touch condition is a long press on the target area, and the second touch condition is a swipe on the target area; or... The first touch condition is that the duration of a long press on the target area falls within a first duration interval; the second touch condition is that the duration of a long press on the target area falls within a second duration interval, wherein the first duration interval and the second duration interval are different; or... The first touch condition is that the length of the slide in the target area is within a first length range, and the second touch condition is that the length of the slide in the target area is within a second length range, wherein the first length range is different from the second length range.
5. The interface display method according to claim 1, further comprising: If the target device is in the first device form, the first interface is the fifth sub-interface; If the target device is in the second device form, the first interface is the sixth sub-interface; The first device form and the second device form are different device forms, and the fifth sub-interface and the sixth sub-interface are different.
6. The interface display method according to any one of claims 1 to 5, wherein, The second interface is the interface displayed by the electronic device before the device's form changes.
7. The interface display method according to claim 6, wherein, The first interface is the interface included in the first application, and the second interface is the interface included in the second application.
8. The interface display method according to any one of claims 1 to 5, wherein the first interface is an interface for displaying target image data, and the target image data is image data acquired by an image acquisition device; the method further includes: The target image data is identified; The third interface is displayed based on the recognition results.
9. An electronic device, the device form of which can change, the electronic device comprising: Memory, used to store executable instructions; A processor, coupled to the memory, is configured to execute executable instructions stored in the memory, and to perform the following steps: in response to detecting a change in the device form of the electronic device, acquire the touch state of a target area; if the device form of the electronic device changes to the target device form and the touch state satisfies the target touch conditions, control a first display screen to display a first interface in the target device form; if the device form of the electronic device changes to the target device form and the touch state does not satisfy the target touch conditions, control the first display screen to display a second interface in the target device form; wherein the first interface is different from the second interface.
10. The electronic device according to claim 9, wherein the electronic device is a folding device, a rolling device, or a telescopic device.