Interface control method, device and electronic equipment
By setting two display areas that can be rotated relatively in the display device of the electronic device, and adjusting the interface display method according to the current position status, the problem of inflexible interface display of the folding screen device is solved, and the flexibility and user experience of interface display are improved.
Patent Information
- Application Number
- CN202110195839.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-19
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-02-19
AI Technical Summary
Electronic devices with folding screens are not flexible enough in the interface display of applications, resulting in the user experience that needs to be improved.
By providing at least two relatively rotatable display areas in the display device of the electronic device, the interface display mode is adjusted according to the current position state. If the current position is in the first position state, control the two display areas to display the application interface together; if it is in the second position state, select one from the two display areas as the main display area, and the other as the display area corresponding to the target display status. .
It realizes adjusting the display position of the application interface according to the relative rotation position of the display area, adapting to different screen states, and determining the display status of the display area that is not involved in the display based on the application status, improving the flexibility and user experience of interface display.
Smart Images

Figure CN114968430B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an interface control method, device and electronic device. Background Art
[0002] With the development of electronic technology, in order to obtain a better experience, the screens of electronic devices are getting bigger and bigger. However, as the screen becomes bigger, it also brings problems such as inconvenience in carrying. Therefore, electronic devices with foldable screens are gradually emerging and popularizing. The foldable screen can be unfolded or folded by folding the screen, so as to take into account the needs of increasing the display area of the screen and portability. However, the related electronic devices with foldable screens are not flexible enough in the interface display of the application, which leads to the problem that the user experience needs to be improved. Summary of the invention
[0003] In view of the above problems, the present application proposes an interface control method, device and electronic device to improve the above problems.
[0004] In a first aspect, the present application provides an interface control method, which is applied to an electronic device, wherein the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relative to each other, the method comprising: if the current position is a first position state, controlling the at least two display areas to jointly display the interface of the current application, the current position being the current relative rotation position of the at least two display areas; if the current position is a second position state, selecting a first display area from the at least two display areas, and using the display area other than the first display area as the second display area; controlling the first display area to display the interface of the current application, and controlling the second display area to be in a target display state, the target display state corresponding to the state of the current application.
[0005] In a second aspect, the present application provides an interface control device that runs on an electronic device, wherein the electronic device includes a display device, wherein the display device includes at least two display areas, and the at least two display areas can rotate relative to each other, and the device includes: an interface control unit, which is used to control the at least two display areas to jointly display the interface of the current application if the current position is a first position state, and the current position is the current relative rotation position of the at least two display areas; a display area control unit, which is used to select a first display area from the at least two display areas if the current position is a second position state, and use the display area other than the first display area as the second display area; the interface control unit is also used to control the first display area to display the interface of the current application, and control the second display area to be in a target display state, and the target display state corresponds to the state of the current application.
[0006] In a third aspect, the present application provides an electronic device, comprising a display device, the display device comprising at least two display areas, the at least two display areas being rotatable relative to each other, and comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above method.
[0007] In a fourth aspect, the present application provides a computer-readable storage medium, in which program code is stored, wherein the above method is executed when the program code is executed by a processor.
[0008] The present application provides an interface control method, device and electronic device. When the electronic device includes a display device, and the display device includes at least two display areas that can rotate relative to each other, the relative rotation position of the at least two display areas can be first obtained as the current position. If the current position is in the first position state, the at least two display areas are controlled to jointly display the interface of the current application; if the current position is in the second position state, the first display area is selected from the at least two display areas, and the display area other than the first display area is used as the second display area; the first display area is controlled to display the interface of the current application, and the second display area is controlled to be in a target display state, and the target display state corresponds to the state of the current application. Thus, the electronic device can adjust the interface display position of the current application according to the relative rotation position of the at least two display areas, so that the interface of the current application can adapt to the relative rotation position of the at least two display areas, and can also determine the display state of the display area that does not participate in the display of the interface of the current application according to the state of the current application, thereby improving the flexibility of interface display. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A schematic diagram showing a state in which the current position of a display area is in a first position in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram showing a state in which the current position of a display area is in a second position in an embodiment of the present application;
[0012] Figure 3 A schematic diagram showing a display area in a fully folded state in an embodiment of the present application is shown;
[0013] Figure 4 A schematic diagram showing a state in which the current position of a display area is in a second position in an embodiment of the present application;
[0014] Figure 5 A schematic diagram showing a display area in a fully folded state according to an embodiment of the present application is shown;
[0015] Figure 6 A schematic diagram showing another embodiment of the present application in which the current position of the display area is in the first position state;
[0016] Figure 7 A schematic diagram showing another embodiment of the present application in which the current position of the display area is in the second position state;
[0017] Figure 8 A flow chart of an interface control method proposed in an embodiment of the present application is shown;
[0018] Fig. 9 A schematic diagram showing a first display area and a second display area displaying the same interface together in an embodiment of the present application is shown;
[0019] Fig.10 A schematic diagram showing an interface of controlling the first display area to display the current application in an embodiment of the present application is shown;
[0020] Fig.11 A flow chart of another interface control method proposed in an embodiment of the present application is shown;
[0021] Fig.12 A schematic diagram showing an interface for displaying a target message in a second display area in an embodiment of the present application is shown;
[0022] Fig.13 A schematic diagram showing a floating keyboard displayed in the second display area in an embodiment of the present application is shown;
[0023] Fig.14 A flow chart of another interface control method proposed in an embodiment of the present application is shown;
[0024] Fig.15 A schematic diagram of a first interface in an embodiment of the present application is shown;
[0025] Fig.16 A schematic diagram showing an input control in a second display area according to an embodiment of the present application is shown;
[0026] Fig.17 A structural block diagram of an interface control device proposed in an embodiment of the present application is shown;
[0027] Fig.18 A structural block diagram of an interface control device proposed in yet another embodiment of the present application is shown;
[0028] Fig.19 A structural block diagram of an electronic device for executing an interface control method according to an embodiment of the present application is shown;
[0029] Fig. 20 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the interface control method according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] As users of electronic devices have higher and higher demands for visual experience, more electronic devices will be equipped with larger screens. However, larger screens are inconvenient to carry, so electronic devices with foldable screens are gradually emerging and becoming popular. Foldable screens can be unfolded or folded by folding the screen, thereby taking into account the needs of increasing the display area of the screen and portability.
[0032] However, the inventors discovered during their research on related electronic devices with foldable screens that the related electronic devices with foldable screens are not flexible enough in terms of the interface display of applications, which results in the user experience needing to be improved.
[0033] Therefore, in order to improve the above problems, the inventors propose an interface control method, device and electronic device. In the case where the electronic device includes a display device, and the display device includes at least two display areas that can rotate relative to each other, the relative rotation position of the at least two display areas can be first obtained as the current position, and if the current position is in the first position state, the at least two display areas are controlled to jointly display the interface of the current application; if the current position is in the second position state, the first display area is selected from the at least two display areas, and the display area other than the first display area is used as the second display area; the first display area is controlled to display the interface of the current application, and the second display area is controlled to be in a target display state, and the target display state corresponds to the state of the current application.
[0034] Therefore, through the above method, the electronic device can adjust the interface display position of the current application according to the relative rotation position of at least two display areas, so that the interface of the current application can adapt to the relative rotation position of at least two display areas, and can also determine the display status of the display area that does not participate in the current application interface display according to the status of the current application, thereby improving the flexibility of interface display.
[0035] The following first describes the application scenarios of the interface control method provided in the embodiments of the present application through the accompanying drawings.
[0036] The electronic device involved in the embodiment of the present application includes at least two display areas, and the at least two display areas can rotate relative to each other. Figure 1 As shown, Figure 1 The electronic device shown includes a display area 10 and a display area 20. The display area 10 can rotate relative to the display area 20. Moreover, the rotation direction of the display area 10 relative to the display area 20 is not limited in the embodiment of the present application.
[0037] For example, Figure 2 In the illustrated scenario, the display area 10 can be rotated toward the display area 20. Figure 2 In the manner shown, if the display area 10 continues to rotate toward the display area 20 along the direction indicated by the arrow, the electronic device can be placed in a Figure 3 The fully folded state shown in Figure 3 In the state shown, the display area 10 and the display area 20 can fit together.
[0038] In another way, Figure 4 As shown, the display area 10 can be rotated away from the display area 20. Figure 4In the manner shown, if the display area 10 continues to rotate in the direction indicated by the arrow, the electronic device can be placed in Figure 5 When the fully folded state is rotated to the fully folded state, Figure 5 As shown, display area 10 and display area 20 are exposed outside the electronic device.
[0039] Furthermore, the electronic device involved in the embodiments of the present application may also include more display areas. Figure 6 As shown, the electronic device may include three display areas: display area 30, display area 40 and display area 50. Any two of the display areas may rotate relative to each other. Figure 7 As shown, the display area 30 can be rotated relative to the display area 40 .
[0040] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0041] See also Figure 8 An interface control method provided by an embodiment of the present application is applied to an electronic device, wherein the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relative to each other. The method includes:
[0042] S110: If the current position is in the first position state, control the at least two display areas to jointly display the interface of the current application, and the current position is the current relative rotation position of the at least two display areas.
[0043] The electronic device may obtain the relative rotational position between the display areas in real time, and use the obtained relative rotational position as the current position.
[0044] In one embodiment, the electronic device can determine the relative position between the display areas based on the angle between the display areas. In this embodiment, if the angle between the at least two display areas is detected to be a first angle, the current position is in a first position state; if the angle between the at least two display areas is detected to be a second angle, the current position is in a second position state; wherein the second angle is smaller than the first angle.
[0045] Among them, as a way, the first position state can be defined as any two display areas are in the same parallel state, or defined as the angle between any two display areas is the first angle. The first angle can be 180 degrees. The second position state can be defined as the angle between at least two adjacent display areas is the second angle. The second angle can be any angle between 90 degrees and 179 degrees. It should be noted that the specific values of the aforementioned first angle and the second angle can be changed according to user needs, and are not limited to the specific values indicated in the aforementioned examples. For example, the second angle can also be any angle between 30 degrees and 150 degrees.
[0046] After the electronic device obtains the current location, it can adjust the interface display mode of the current application according to the current location.
[0047] As a way, the current application can be understood as the application currently running in the foreground. Optionally, a correspondence between the position state and the interface display mode can be established in the electronic device, and then the electronic device can determine how to adjust the interface display mode of the current application according to the position state corresponding to the current position.
[0048] Optionally, the first position state represents a position state suitable for at least two display areas included in the display device to jointly display the interface. The joint display can be understood as at least two display areas each displaying a part of the interface, thereby presenting the interface as a whole. For example, Fig. 9 As shown, when the at least two display areas jointly display, part of the content in the interface 70 of the application is displayed by the display area 10 , while the other part of the content is displayed by the display area 20 .
[0049] S120: If the current position is in the second position state, select a first display area from the at least two display areas, and use a display area other than the first display area as a second display area.
[0050] The second position state corresponds to the interface representing the current application being displayed in a smaller display area, which can have a better display effect. It should be noted that, taking the display device including two display areas as an example, if the two display areas are rotated relative to each other, Figure 2 In the state shown, the interface of the current application is still displayed by two display areas together, which will cause an angle between the two parts of the displayed interface, which will make it visually uneven and cause a poor user experience. In order to improve this problem, when the current position is the second position state, the first display area can be selected from the at least two display areas to display the interface of the current application alone.
[0051] It should be noted that, when the number of display areas included in the display device is different, the corresponding methods of determining the first display area and the second display area may be different.
[0052] Optionally, the display device includes two display areas. In this case, the electronic device may determine one of the display areas as the first display area and the other display area as the second display area. For example, as a method, the electronic device may detect the orientation of each of the two display areas, and then after obtaining that the current position is in the second position state, the display area facing the user is determined as the first display area, and the other display area is correspondingly determined as the second display area. Among them, as a method, each display area may be correspondingly configured with an image acquisition device, and then the specific display area facing the user is determined by the image acquired by the image acquisition device corresponding to each display area.
[0053] Exemplarily, the display device includes Figure 1 Taking the display area 10 and the display area 20 shown as examples, if the display area corresponds to the image acquisition device 11, the display area 20 corresponds to the image acquisition device 21. In the process of determining the display area facing the user, the electronic device can obtain the first image to be detected acquired by the image acquisition device 11 and the second image to be detected acquired by the image acquisition device 21. If the target face is detected in the first image to be detected, the display area 10 is determined to be the display area facing the user, and then the display area 10 is determined as the first display area. If the target face is detected in the second image to be detected, the display area 20 is determined to be the display area facing the user, and then the display area 20 is determined as the first display area. Furthermore, if it is detected that there is no target face in both the first image to be detected and the second image to be detected, any one of the display areas can be determined as the first display area. Among them, the target face is the face of the user of the pre-configured electronic device.
[0054] Furthermore, optionally, the display device includes three display areas. In this case, please refer to Figure 6 In this case, there are two groups of adjacent display areas, namely, display area 30 and display area 40 are one group of adjacent display areas, and display area 40 and display area 50 are one group of adjacent display areas. In the process of determining the first display area, the electronic device can first detect whether the relative rotation position between adjacent display areas is in the first position state. If it is detected that the relative rotation position between adjacent display areas is in the first position state, the adjacent display areas can be used as the first display area, and the remaining display areas can be used as the second display area. For example, please refer to Figure 7 ,exist Figure 7In the case shown, display area 40 and display area 50 can be understood as a group of adjacent display areas whose relative rotation positions are in the first position state, and then display area 40 and display area 50 can be determined as the first display area, and display area 30 can be determined as the second display area.
[0055] Correspondingly, if it is detected that the relative rotation position between no adjacent display areas is in the first position state, then one display area can be determined from the three display areas as the first display area, and then a display area adjacent to the first display area can be selected from the remaining display areas as the second display area. The method of determining one display area from the three display areas as the first display area can be the same as the aforementioned method of performing target face recognition by configuring an image acquisition device.
[0056] It should be noted that, as a way to achieve relative rotation, a rotating member may be configured between each group of adjacent display areas, and the angle between the adjacent display areas may be characterized by the rotation angle of the rotating member, so that the position state is determined based on the angle between the adjacent display areas. In the embodiment of the present application, in order to facilitate obtaining the relative rotation position between adjacent display areas, a corresponding relationship between the rotating member and a group of display areas may be established, so that the rotation angle of the rotating member may be used as the angle between the corresponding group of display areas.
[0057] For example, please refer to Figure 7 , there is a first rotating member between the display area 30 and the display area 40, and there is a second rotating member between the display area 40 and the display area 50. Then the electronic device can establish a group of adjacent display areas, in which the first rotating member corresponds to the display area 30 and the display area 40, and establish a group of adjacent display areas, in which the second rotating member corresponds to the display area 40 and the display area 50. In the process of obtaining the current position, the rotation angle corresponding to the first rotating member can be used as the angle between the display area 30 and the display area 40, and the rotation angle corresponding to the second rotating member can be used as the angle between the display area 40 and the display area 50.
[0058] S130: Control the first display area to display the interface of the current application, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application.
[0059] Among them, controlling the first display area to display the interface of the current application can be understood as the first display area alone displaying the interface of the current application, so as to improve the problem of reduced user visual experience caused by the relative rotation between the display areas. Fig.10 As shown, if the relative position between the display area 10 and the display area 20 is Fig.10 When the position shown in the left image is rotated to the position shown in the right image, the interface 80 originally displayed by the display area 10 and the display area 20 can be switched to be displayed alone by the display area 10.
[0060] It should be noted that when the display device includes three or more display areas, the determined first display area may still include multiple display areas. Further, when the first display area still includes multiple display areas, the multiple display areas included in the first display area may jointly display the interface of the current application.
[0061] After the first display area is controlled to display the interface of the current application program alone, the target display state of the second display area may be determined according to some states of the current application program.
[0062] As a way, the state of the current application may include a content input state and a non-content input state. It should be noted that during the operation of the application, another application may be required to input some content. Then, when it is detected that an input control for inputting content to the current application is running, it is determined that the current application is in a content input state, otherwise it is determined that the current application is in a non-content input state. For example, if the user needs to input text content in the current application, the electronic device needs to call and display the input keyboard so that the user can operate the input keyboard to input content in the current application. If the electronic device detects that the input keyboard is running, it can be determined that the current application is in a content input state. Optionally, the control of the second display area being in the target display state includes: if the current application is in a content input state, controlling the display of the input control in the second display area. Correspondingly, if the current application is in a non-content input state, the second display area can be controlled to display a black picture, or the second display area can be controlled to be off screen.
[0063] Optionally, the input control may be an input keyboard or a voice collection control. The voice collection control may collect the user's voice input as content input to the current application.
[0064] It should be noted that when the current position is in the second position state, the content displayed in the first display area and the second display area is different. The different displayed content can be understood as different displayed objects. For example, when the current position is in the first position state, multiple display areas can be used together to display the object of the video image. Then, after the current position is switched to the second position state, after determining the first display area and the second display area from the multiple display areas, the first display area can be used to display the original video image object alone, and the second display area can be used to display another object. The other object can be an input control, or a screen-off image, etc.
[0065] Optionally, when the current position is in the second position state, different objects displayed in the first display area and the second display area may belong to the same application or to different applications. Exemplarily, if the first display area continues to display the original video image and the second display area displays the screen-off image, then the video image and the screen-off image belong to different applications. For another example, if the first display area continues to display the original video image and the second display area displays the control interface corresponding to the video image, then the video image and the control interface may belong to the same application. Among them, the control interface includes controls for controlling the video image. The control includes playback progress control, video clarity control, and playback volume control, etc.
[0066] The present embodiment provides an interface control method. In the case where the electronic device includes a display device, and the display device includes at least two display areas that can rotate relative to each other, the relative rotation position of the at least two display areas can be first obtained as the current position. If the current position is in the first position state, the at least two display areas are controlled to jointly display the interface of the current application; if the current position is in the second position state, the first display area is selected from the at least two display areas, and the display area other than the first display area is used as the second display area; the first display area is controlled to display the interface of the current application, and the second display area is controlled to be in a target display state, and the target display state corresponds to the state of the current application. Thus, the electronic device can adjust the interface display position of the current application according to the relative rotation position of the at least two display areas, so that the interface of the current application can adapt to the relative rotation position of the at least two display areas, and can also determine the display state of the display area that does not participate in the display of the interface of the current application according to the state of the current application, thereby improving the flexibility of interface display.
[0067] See also Fig.11An interface control method provided by an embodiment of the present application is applied to an electronic device, wherein the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relative to each other. The method includes:
[0068] S210: If the current position is in the first position state, control the at least two display areas to jointly display the interface of the current application, and the current position is the current relative rotation position of the at least two display areas.
[0069] S220: If the current position is in the second position state, select a first display area from the at least two display areas, and use a display area other than the first display area as a second display area.
[0070] S230: Control the first display area to display the interface of the current application, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application.
[0071] S240: If a message is received, a prompt message is displayed in the first display area.
[0072] It should be noted that applications with communication functions can communicate with other applications that also have communication functions. For example, applications with communication functions can send messages to each other, and messages can still be received when the application is running in the background or the main process is not running. Then in an electronic device, if a message is received and the application to which the message belongs is running in the background, or the application to which the message belongs is not running, a prompt message can be displayed in the first display area. The prompt message is used to prompt the user that a certain application has a corresponding message that needs to be processed by the user.
[0073] For example, Fig.12 As shown, after receiving a message, if it is detected that the application to which the message belongs is running in the background or the main process is not running, a prompt message 82 can be displayed floating on the interface 81 of the current application so that the user can know that a certain application has unprocessed messages.
[0074] As a way, an electronic device can identify the application to which the received message belongs through a virtual port. It should be noted that an application with a communication function can occupy a virtual port during the communication process, and send messages to other electronic devices based on the occupied virtual port. Then the message sent by other electronic devices will also indicate which local virtual port the message will be sent to, and then the electronic device can compare the virtual port to be transmitted with the port occupied by the application running in the foreground. If the comparison is inconsistent, it can be determined that the application to which the received message belongs is running in the background or the main process has been closed. If the comparison is consistent, it can be determined that the application to which the received message belongs is the application running in the foreground. Among them, the application running in the foreground can be the current application.
[0075] S250: When the prompt information is triggered, a target message interface is displayed in the second display area, and the message is displayed on the target message interface.
[0076] Among them, the target message interface can be understood as an interface for displaying received messages. It should be noted that the user of the electronic device may communicate with multiple communication objects through the same application, and for different communication objects, the application may display different message interfaces to display sent or received messages, so that different communication objects can each correspond to a message interface. Then in the embodiment of the present application, the target message interface can be understood as the message interface corresponding to the communication object related to the received message.
[0077] Optionally, if a gesture operation acting on the prompt message is detected, it is determined that the prompt message is triggered, and the received message can be displayed in the second display area. Fig.12 If the prompt information 82 is triggered, the target message interface 83 can be displayed in the second display area, and the message can be displayed in the target message interface.
[0078] As a way, the method provided in this embodiment also includes: displaying a floating keyboard in the second display area, and the current input target of the floating keyboard is the application to which the target message interface belongs. Among them, the floating keyboard can be understood as a keyboard whose display position is not connected to the display position of the input target. It should be noted that after the target message interface is displayed in the second display area, the user may need to reply to the message. In order to facilitate the user to reply to the message in time, when the prompt message is triggered, a floating keyboard whose input target is the application to which the target message interface belongs can be displayed on the second display interface. Among them, the input target represents which application the floating keyboard is used to input content. If the input target is the application to which the target message interface belongs, then the floating keyboard is currently used to input content to the application to which the target message interface belongs. Exemplary, such as Fig.13 As shown, a floating keyboard 84 may be displayed in the second display area.
[0079] When the interface of the current application is displayed in the first display area and the target message interface is displayed in the second display area, the current application may also have a need for content input. In order to flexibly implement content input for different applications, as a method, a floating keyboard is displayed in the second display area, and the current input target of the floating keyboard is the application to which the target message interface belongs, and it also includes: in response to a first operation, switching the input target of the floating keyboard to the current application displayed in the first display area, and the first operation is used to switch the input target of the floating keyboard.
[0080] Optionally, if a selection control is configured in the floating keyboard, the touch operation on the selection control can be determined as the first operation. In this way, the electronic device can obtain the currently running application, and then after each first operation is obtained, the input target is switched in sequence among the currently running applications. Exemplarily, if the electronic device obtains that the currently running applications include application A, application B, and application C, and the current input target is application B, then after detecting a first operation, the input target can be switched to application B. If the first operation is detected again afterwards, the input target can be switched to application C, and so on. In this way, the input target of the floating keyboard can be switched by directly operating the floating keyboard without having to operate different applications back and forth.
[0081] Among them, for some applications, corresponding designated display modes may have been configured for changes in the relative rotational positions between display areas. Therefore, in an embodiment of the present application, in order to be able to adapt to both applications with corresponding designated display modes and applications without corresponding designated display modes, before controlling the first display area to display the interface of the current application and controlling the second display area to be in the target display state, it is possible to first detect whether the current application has a designated display mode, and the designated display mode is the display mode corresponding to the second position state; if the current application does not have a designated display mode, the control of the first display area to display the interface of the current application and the control of the second display area to be in the target display state is executed.
[0082] Optionally, the electronic device can identify whether the application corresponds to the specified display mode by establishing a list. Among them, the application in the list represents that the application already corresponds to the specified display mode. In this way, the installation package of the application can carry identification information of whether the specified display mode is supported. Then, during the installation of the application, the electronic device can determine whether the currently installed application corresponds to the specified display mode through the identification information in the installation package. If it already corresponds to the specified display mode, the application can be added to the established list.
[0083] This embodiment provides an interface control method, so that the electronic device can adjust the interface display position of the current application according to the relative rotation position of at least two display areas through the above method, so that the interface of the current application can adapt to the relative rotation position of at least two display areas, and can also determine the display state of the display area that does not participate in the display of the current application interface according to the state of the current application, thereby improving the flexibility of interface display. In addition, in the embodiment, after being in the second position state, if a message is received, it can also trigger the second display area to switch to display the message interface of the target application, and display the message on the message interface, thereby improving the flexibility of message display.
[0084] See also Fig.14 An interface control method provided by an embodiment of the present application is applied to an electronic device, wherein the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relative to each other. The method includes:
[0085] S310: If the current position is in the first position state, control the at least two display areas to jointly display the interface of the current application, and the current position is the current relative rotation position of the at least two display areas.
[0086] S320: If the current position is in the second position state, select a first display area from the at least two display areas, and use a display area other than the first display area as a second display area.
[0087] S330: Control the first display area to display the interface of the current application, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application.
[0088] S340: If a second operation acting on the second display area is detected, a first interface is displayed in the second display area, and the first interface displays an application program to be selected.
[0089] Optionally, the second operation may be a long press operation or a double click operation. In the first interface, the application to be selected may be represented by text or thumbnail.
[0090] S350: Acquire a target application determined from the first interface.
[0091] S360: Displaying an interface corresponding to the target application in the second display area.
[0092] like Fig.15 As shown, the first interface 85 can be shown in the figure, and a thumbnail 86 and a thumbnail 87 can be displayed in the first interface 85, and the thumbnail 86 and the thumbnail 87 respectively represent an application to be selected. If it is detected that the thumbnail 86 is selected, the application to be selected represented by the thumbnail 86 can be used as the target application, and then the interface corresponding to the target application is displayed in the second display area.
[0093] Furthermore, in an embodiment of the present application, when the aforementioned current application is displayed in the first display area, and when the target application is displayed in the second display area, both applications may have a need for content input. Then as a way, when it is detected that the current application displayed in the first display area has a need for content input, the interface originally displayed in the second content display area can be replaced with an input control whose input target is the current application. As a way, when it is detected that the target application displayed in the second display area has a need for content input, the interface in the first display area and the interface in the second display area can be moved in the same direction at the same time, and then the input control whose input target is the target application is displayed in the blank area generated by the movement. As a result, when content is input in the second display area, the area of the interface originally in the second display area will not be reduced due to the display of the input control.
[0094] like Fig.16 As shown in the figure, if the interface of the current application (the interface in the first display area) includes area A, area B and area C, and the interface of the target application (the interface in the second display area) includes area D, area E and area F. Then when it is detected that the target application displayed in the second display area has a content input requirement, the interface in the first display area and the interface in the second display area can be moved simultaneously in the direction indicated by the arrow. The effect after the movement is as follows Fig.16 As shown in the right image, a blank area 88 is generated after the movement, and an input control whose input target is the target application can be displayed in the blank area 88.
[0095] This embodiment provides an interface control method, so that the electronic device can adjust the interface display position of the current application according to the relative rotation position of at least two display areas through the above method, so that the interface of the current application can adapt to the relative rotation position of at least two display areas, and can also determine the display state of the display area that does not participate in the display of the current application interface according to the state of the current application, thereby improving the flexibility of interface display. Moreover, in this embodiment, the first interface including the application to be selected can also be displayed in the second display area in response to the second operation, and then the target application selected from the first interface can be displayed in the second display area, so that the electronic device can display different applications in different display areas, thereby improving the user experience.
[0096] See also Fig.17 An interface control device 400 provided in an embodiment of the present application is operated on an electronic device, wherein the electronic device includes a display device, wherein the display device includes at least two display areas, and the at least two display areas can rotate relative to each other. The device 400 includes:
[0097] The interface control unit 410 is used to control the at least two display areas to jointly display the interface of the current application if the current position is a first position state, and the current position is the current relative rotation position of the at least two display areas.
[0098] If the angle between the at least two display areas is detected to be a first angle, the current position is a first position state; if the angle between the at least two display areas is detected to be a second angle, the current position is a second position state; wherein the second angle is smaller than the first angle.
[0099] The display area control unit 420 is configured to select a first display area from the at least two display areas if the current position is in the second position state, and use a display area other than the first display area as a second display area.
[0100] The interface control unit 410 is further used to control the first display area to display the interface of the current application, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application.
[0101] As a method, the interface control unit 410 is also specifically used to control the display of input controls in the second display area if the current application is in a content input state.
[0102] like Fig.18 As shown, the device 400 also includes: a program control unit 430, which is used to display a prompt message in the first display area if a message is received; when the prompt message is triggered, a target message interface is displayed in the second display area, and the message is displayed in the target message interface. Optionally, the program control unit 430 is also used to display a floating keyboard in the second display area, and the current input target of the floating keyboard is the application to which the target message interface belongs.
[0103] As a method, the program control unit 430 is also used to switch the input target of the floating keyboard to the current application displayed in the first display area in response to a first operation, and the first operation is used to switch the input target of the floating keyboard.
[0104] As a method, the target display state is a black screen state; the program control unit 430 is also used to display a first interface in the second display area if a second operation acting on the second display area is detected, and the first interface displays an application to be selected; obtain the target application determined from the first interface; and display the interface corresponding to the target application in the second display area.
[0105] As a method, the program control unit 430 is also used to detect whether the current application has a specified display mode before controlling the first display area to display the interface of the current application and controlling the second display area to be in a target display state, and the specified display mode is a display mode corresponding to the second position state; if the current application does not have a specified display mode, execute control of the first display area to display the interface of the current application and control the second display area to be in a target display state.
[0106] The interface control device provided in this embodiment can first obtain the relative rotation position of the at least two display areas as the current position when the electronic device includes a display device, and the display device includes at least two display areas that can rotate relative to each other. If the current position is in the first position state, the at least two display areas are controlled to jointly display the interface of the current application; if the current position is in the second position state, the first display area is selected from the at least two display areas, and the display area other than the first display area is used as the second display area; the first display area is controlled to display the interface of the current application, and the second display area is controlled to be in a target display state, and the target display state corresponds to the state of the current application. In this way, the electronic device can adjust the interface display position of the current application according to the relative rotation position of the at least two display areas, so that the interface of the current application can adapt to the relative rotation position of the at least two display areas, and can also determine the display state of the display area that does not participate in the display of the interface of the current application according to the state of the current application, thereby improving the flexibility of interface display.
[0107] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.
[0108] The following will be combined Fig.19 An electronic device provided by the present application is described.
[0109] See also Fig.19 Based on the above interface control method and device, the embodiment of the present application also provides another electronic device 200 that can execute the above interface control method. The electronic device 200 includes one or more (only one is shown in the figure) processors 102, a memory 104, a network module 106 and a display device 108 that are coupled to each other. Among them, the memory 104 stores a program that can execute the content of the above embodiment, and the processor 102 can execute the program stored in the memory 104.
[0110] Among them, the processor 102 may include one or more cores for processing data. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes various functions and processes data of the electronic device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 102 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 102 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented separately through a communication chip.
[0111] The memory 104 may include a random access memory (RAM) or a read-only memory (ROM). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 100 during use.
[0112] The network module 106 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with an audio playback device. The network module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 106 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 106 may exchange information with a base station.
[0113] The display device 108 can be used for interface display. Optionally, the display device includes at least two display areas, and the at least two display areas can rotate relative to each other.
[0114] Please refer to Fig. 20 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1100 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0115] The computer readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1110 can be compressed, for example, in an appropriate form.
[0116] In summary, the present application provides an interface control method, device, and electronic device. When the electronic device includes a display device, and the display device includes at least two display areas that can rotate relative to each other, the relative rotation position of the at least two display areas can be first obtained as the current position. If the current position is in the first position state, the at least two display areas are controlled to jointly display the interface of the current application; if the current position is in the second position state, the first display area is selected from the at least two display areas, and the display area other than the first display area is used as the second display area; the first display area is controlled to display the interface of the current application, and the second display area is controlled to be in a target display state, and the target display state corresponds to the state of the current application. Thus, through the above method, the electronic device can adjust the interface display position of the current application according to the relative rotation position of the at least two display areas, so that the interface of the current application can adapt to the relative rotation position of the at least two display areas, and can also determine the display state of the display area that does not participate in the display of the current application interface according to the state of the current application, thereby improving the flexibility of interface display.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An interface control method, characterized in that: Applied to an electronic device, the electronic device comprises a display device, the display device comprises at least two display areas, the at least two display areas are relatively rotatable, the method comprises: If the current position is in the first position state, control the at least two display areas to jointly display the interface of the current application, and the current position is the current relative rotation position of the at least two display areas; If the current position is in a second position state, a first display area is selected from the at least two display areas, and a display area other than the first display area is used as a second display area, and the second position state includes a folded state; Controlling the first display area to display the interface of the current application, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application; If a message is received, a prompt message is displayed in the first display area; When the prompt message is triggered, a target message interface and a floating keyboard are displayed in the second display area, and the message is displayed on the target message interface, and the current input target of the floating keyboard is the application to which the target message interface belongs, wherein if a gesture operation acting on the prompt message is detected, it is determined that the prompt message is triggered; The method also includes: in response to a first operation, switching the input target of the floating keyboard to the current application displayed in the first display area, the first operation including an operation acting on a selection control in the floating keyboard, wherein the first operation is used to switch the input target of the floating keyboard.
2. The method according to claim 1, characterized in that The controlling the second display area to be in a target display state includes: If the current application is in a content input state, the input control is controlled to be displayed in the second display area.
3. The method according to claim 1, characterized in that The target display state is a black screen state; the controlling the first display area to display the interface of the current application, controlling the second display area to be in the target display state, and the target display state corresponds to the state of the current application, further comprising: If a second operation acting on the second display area is detected, displaying a first interface in the second display area, wherein the first interface displays an application to be selected; Acquire a target application determined from the first interface; An interface corresponding to the target application is displayed in the second display area.
4. The method according to claim 1, characterized in that Before controlling the first display area to display the interface of the current application and controlling the second display area to be in a target display state, the method further includes: detecting whether the current application has a specified display mode, the specified display mode being a display mode corresponding to the second position state; If the current application does not specify a display mode, the first display area is controlled to display the interface of the current application, and the second display area is controlled to be in a target display state.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If it is detected that the angle between the at least two display areas is a first angle, the current position is a first position state; If it is detected that the angle between the at least two display areas is a second angle, the current position is in a second position state; Wherein, the second angle is smaller than the first angle.
6. An interface control device, characterized in that: The device is operated on an electronic device, wherein the electronic device comprises a display device, wherein the display device comprises at least two display areas, wherein the at least two display areas are relatively rotatable, and wherein the device comprises: An interface control unit, configured to control the at least two display areas to jointly display an interface of a current application program if the current position is a first position state, wherein the current position is a relative rotation position of the at least two display areas; A display area control unit, configured to select a first display area from the at least two display areas and use a display area other than the first display area as a second display area if the current position is in a second position state, wherein the second position state includes a folded state; The interface control unit is further used to control the first display area to display the interface of the current application, and control the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application; A program control unit, configured to display a prompt message in the first display area if a message is received; when the prompt message is triggered, display a target message interface and a floating keyboard in the second display area, and display the message in the target message interface, wherein the current input target of the floating keyboard is the application to which the target message interface belongs, wherein if a gesture operation acting on the prompt message is detected, it is determined that the prompt message is triggered; the program control unit, further configured to switch the input target of the floating keyboard to the current application displayed in the first display area in response to a first operation, wherein the first operation includes an operation acting on a selection control in the floating keyboard, wherein the first operation is used to switch the input target of the floating keyboard.
7. An electronic device, characterized in that: The electronic device includes a display device, which includes at least two display areas, and the at least two display areas can rotate relative to each other, and includes a processor and a memory; one or more programs are stored in the memory and are configured to be executed by the processor to implement any method described in claims 1-5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 5 is executed.
Citation Information
Patent Citations
Split-screen display method and device, electronic equipment and computer readable storage medium
CN109947315A
Display method applied to electronic equipment with folding screen and electronic equipment
CN111124561A