Equipment control method and device and electronic equipment

By acquiring touch parameters in response to touch operations in an electronic device and moving the screen content as a whole, the problem of inflexible display of folding screen electronic devices during morphology changes is solved, and better content display adaptation and user experience are achieved.

CN120179138APending Publication Date: 2025-06-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311750550.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

Electronic devices with folding screens are not flexible enough in content display, especially when screen shape changes, and need to adapt the application to maintain the effect of the interface display.

Method used

By responsive to the target touch operation of the screen, touch parameters are acquired and the content displayed on the screen is moved as a whole based on these parameters, thereby adapting to the relative position states of the first display area and the second display area.

Benefits of technology

It improves the flexibility of electronic devices in content display, so that they can better adapt to display needs in different forms and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120179138A_ABST
    Figure CN120179138A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an equipment control method and device and electronic equipment. The electronic equipment comprises a screen, the screen comprises a first display area and a second display area, the first display area and the second display area can be folded relatively, and the method comprises the steps that a target touch operation acting on the screen is responded, touch parameters of the target touch operation are obtained, and the first display area and the second display area are displayed based on the touch parameters. And integrally moving the content displayed on the screen. Therefore, under the condition that the first display area and the second display area which are included in the screen can be relatively folded, the content displayed on the screen can be integrally moved by acting on the target touch operation, and then the electronic equipment displays the content. The current relative position state of the first display area and the second display area can be better adapted, and the flexibility of content display of the electronic equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and more particularly, to a device control method, apparatus, 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 larger. However, as the screen size increases, problems such as inconvenient portability arise. Therefore, electronic devices with foldable screens have gradually emerged and become popular. A foldable screen can be unfolded or folded by flipping the screen, thus being able to balance the need for an increased display area and portability. However, related electronic devices with foldable screens are not flexible enough in content display. Summary of the Invention

[0003] In view of the above problems, this application proposes a device control method, apparatus, and electronic device to improve the above problems.

[0004] In a first aspect, this application provides a device control method applied to an electronic device. The electronic device includes a screen, and the screen includes a first display area and a second display area, where the first display area and the second display area can be folded relative to each other. The method includes: responding to a target touch operation on the screen, obtaining touch parameters of the target touch operation; and based on the touch parameters, performing an overall movement of the content displayed on the screen.

[0005] In a second aspect, this application provides a device control apparatus running on an electronic device. The electronic device includes a screen, and the screen includes a first display area and a second display area, where the first display area and the second display area can be folded relative to each other. The apparatus includes: a parameter acquisition unit for responding to a target touch operation on the screen and obtaining touch parameters of the target touch operation; and a device control unit for performing an overall movement of the content displayed on the screen based on the touch parameters.

[0006] In a third aspect, this application provides an electronic device, which includes a first part and a second part that can be folded relative to each other; the electronic device further includes 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, this application provides a computer-readable storage medium in which program code is stored, and when the program code is run by a processor, the above method is executed.

[0008] A device control method, device, and electronic device provided by the present application can respond to a target touch operation acting on the screen, obtain touch parameters of the target touch operation, and based on the touch parameters, perform an overall movement of the content displayed on the screen. Thus, when the first display area and the second display area included in the screen can be relatively folded, the content displayed on the screen can be overall moved by acting on the target touch operation, and further, the display of the content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device for content display. Description of the Drawings

[0009] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0010] Figure 1 Shows a schematic diagram of the electronic device in a hovering state in an embodiment of the present application;

[0011] Figure 2 Shows a schematic diagram of the electronic device in a hovering state in an embodiment of the present application;

[0012] Figure 3 Shows a schematic diagram of the first display area and the second display area of the electronic device in an embodiment of the present application;

[0013] Figure 4 Shows a schematic diagram of the electronic device in a fully unfolded state in an embodiment of the present application;

[0014] Figure 5 Shows a schematic diagram of the electronic device in a folded state in an embodiment of the present application;

[0015] Figure 6 Shows a schematic diagram of the first part and the second part of the electronic device in an embodiment of the present application;

[0016] Figure 7 Shows a schematic diagram of the folding direction of the first part of the electronic device relative to the second part in an embodiment of the present application;

[0017] Figure 8 Shows a schematic diagram of the target position state being in an unfolded state in an embodiment of the present application;

[0018] Figure 9 Shows a schematic diagram of the target position state being in a folded state in an embodiment of the present application;

[0019] Figure 10 A schematic diagram showing the target position status in the embodiment of the present application being in a hovering state;

[0020] Figure 11 A schematic diagram showing the target position status in the embodiment of the present application being in a hovering state;

[0021] Figure 12 A flowchart showing a device control method proposed in the embodiment of the present application;

[0022] Figure 13 A schematic diagram showing the content displayed on the screen in the embodiment of the present application;

[0023] Figure 14 A schematic diagram showing the overall movement of the content displayed on the screen in the embodiment of the present application;

[0024] Figure 15 A schematic diagram showing the overall movement of the content displayed on the screen in the embodiment of the present application;

[0025] Figure 16 A schematic diagram showing the overall movement of the content on the screen in the embodiment of the present application based on pixel dimensions;

[0026] Figure 17 A schematic diagram showing the overall movement of the content on the screen in the embodiment of the present application based on pixel dimensions;

[0027] Figure 18 A flowchart showing a device control method proposed in another embodiment of the present application;

[0028] Figure 19 A schematic diagram showing the content display jointly by the first display area and the second display area in the embodiment of the present application;

[0029] Figure 20 A schematic diagram showing the first side and the second side in the embodiment of the present application;

[0030] Figure 21 A flowchart showing a device control method proposed in yet another embodiment of the present application;

[0031] Figure 22 A flowchart showing the determination of the moving direction according to the pressing position in the embodiment of the present application;

[0032] Figure 23 A flowchart showing a device control method proposed in another embodiment of the present application;

[0033] Figure 24 A schematic diagram showing the vacant area in the embodiment of the present application;

[0034] Figure 25 Shows a schematic diagram of filling the free area in the embodiments of the present application;

[0035] Figure 26 Shows a structural block diagram of a device for a configuration detection method proposed in the embodiments of the present application;

[0036] Figure 27 Shows a structural block diagram of an electronic device for executing the device control method according to the embodiments of the present application;

[0037] Figure 28 Is a storage unit for storing or carrying program codes for implementing the device control method according to the embodiments of the present application. Detailed implementation manners

[0038] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0039] Screen display technology is a technology that uses pixels to present images and texts. A screen usually consists of millions of pixels, and each pixel can be independently controlled to display different colors and brightness. This technology is widely used in devices such as televisions, computers, mobile phones, and tablets to achieve the display of various forms such as images, texts, and videos.

[0040] As users of electronic devices have higher and higher requirements for visual experience, more electronic devices will be configured with larger screens. However, for larger screens, there will be a corresponding problem of inconvenient carrying. Therefore, electronic devices with foldable screens have gradually emerged and become popular. A foldable screen can be unfolded or folded by flipping the screen, so as to balance the requirements of increasing the display area of the screen and portable use.

[0041] However, the inventor found in the research that the related electronic devices with foldable screens are not flexible enough in content display. For example, in some cases, the form of an electronic device with a foldable screen can be transformed, for example, switched from a fully unfolded state to a hover state. In the case of form transformation, it will affect the content displayed on the screen, and then the application program needs to be adaptively changed to adapt to the form transformation of the electronic device. However, for some application programs, no adaptive changes have been made, so the form transformation of the electronic device will affect the interface display of these unchanged application programs.

[0042] Therefore, to address the above issues, the inventors propose a device control method, apparatus, and electronic device. In this device control method, a target touch operation acting on the screen can be responded to, and touch parameters of the target touch operation can be obtained, so as to perform an overall movement of the content displayed on the screen based on the touch parameters. Thus, when the first display area and the second display area included in the screen can be relatively folded, the content displayed on the screen can be moved as a whole by acting on the target touch operation, and further, the display of content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of content display by the electronic device.

[0043] First, the scenario to which the device control method provided in the embodiments of the present application is applied will be described below with reference to the accompanying drawings.

[0044] Among them, as Figure 1 and Figure 2 shown, an electronic device involved in the embodiments of the present application includes a foldable device body 101, a first screen 102, and a second screen 103. The first screen 102 and the second screen 103 are disposed back to back on both sides of the device body 101. Among them, the first screen 102 can be folded along with the device body 101. As Figure 3 shown, the first display area 1021 and the second display area 1022 involved in the embodiments of the present application can be two display areas included in the first screen 102.

[0045] It should be noted that in the embodiments of the present application, when the device body of the electronic device is foldable, the first display area and the second display area can also be relatively folded. Among them, the relative position state between the first display area and the second display area can include: a fully unfolded state, a folded state, and a hovering state. Among them, the hovering state can also be understood as a semi-unfolded state. For example, as Figure 1 and Figure 2 shown, the hovering state can be understood as a state between the fully unfolded state and the folded state. Among them, the fully unfolded state can be as Figure 4 shown, and the folded state can be as Figure 5 shown.

[0046] As a way, as Figure 6 shown, the device body can be divided into a first part 10 and a second part 20 through the folding position of the device body ( Figure 6 the dotted line in Figure 7The angle α shown therein. Among them, the first display area is located in the first part 10, and the second display area is located in the second part 20. In this case, the relative position state between the first part 10 and the second part 20 is equivalent to the relative position state between the first display area and the second display area.

[0047] Among them, if the angle α is switched to Figure 8 the state shown therein, it indicates that the device body is in a fully unfolded state. Correspondingly, the relative position state between the first display area and the second display area is the fully unfolded state. If the angle α is switched to Figure 9 the state shown therein, it indicates that the device body is in a folded state. Correspondingly, the relative position state between the first display area and the second display area is the folded state. If the angle α is switched to Figure 10 or Figure 11 the state shown therein, it indicates that the device body is in a hovering state. Correspondingly, the relative position state between the first display area and the second display area is the hovering state.

[0048] It should be noted that the foregoing introduction to the structure of the electronic device is exemplary. For example, the electronic device may not include the foregoing screen 103.

[0049] The following will specifically describe the embodiments of the present application with reference to the accompanying drawings.

[0050] Please refer to Figure 12 , a device control method provided by an embodiment of the present application, the electronic device includes a screen, the screen includes a first display area and a second display area, the first display area and the second display area can be relatively folded, and the method includes:

[0051] S110: Respond to a target touch operation on the screen and obtain touch parameters of the target touch operation.

[0052] In the embodiment of the present application, the target touch operation can be understood as a touch operation that can trigger the overall movement of the screen content. Among them, there can be various categories of the target touch operation. For example, it can be a multi-finger sliding operation, a pressing operation, etc. The multi-finger sliding operation can be a three-finger sliding operation, a four-finger sliding operation, or a five-finger sliding operation. The pressing operation can be a large-area pressing operation or a long-press operation, etc. Among them, the large-area pressing operation can be understood as a pressing operation with a pressing area larger than a specified area threshold, and the long-press operation can be understood as a pressing operation with a pressing duration longer than a specified duration threshold.

[0053] As a way, the target touch operation can be pre-configured by developers. As another way, the target touch operation can be freely configured by the user of the electronic device according to their own operation habits. Optionally, a configuration interface can be configured in the electronic device, and through this configuration interface, the user can configure their habitual touch operation as the target touch operation.

[0054] In the embodiments of the present application, the touch parameters can be understood as parameters used to describe the state of the target touch operation. Among them, for different types of touch operations, the corresponding touch parameters can be different. For example, in the case where the target touch operation is a multi-finger swipe operation, the touch parameters can include the swipe distance or the swipe direction, etc. For another example, in the case where the target touch operation is a press operation, the touch parameter can be the press position, etc.

[0055] S120: Based on the touch parameters, the content displayed on the screen is moved as a whole.

[0056] In the embodiments of the present application, the touch parameters of the target touch operation can represent the user's control intention. Furthermore, based on the touch parameters, moving the content displayed on the screen as a whole can make the effect of moving the content displayed on the screen by the electronic device conform to the user's intention.

[0057] Among them, moving the screen content as a whole can be understood as synchronously moving all the content currently displayed within the screen. Among them, synchronous movement can be understood as the content having the same movement amplitude. Exemplarily, as Figure 13 shown, in Figure 13 the shaded content represents all the content displayed within the screen. If based on the direction indicated by the arrow in Figure 13 , the content displayed on the screen is moved as a whole, the movement effect can be as shown in Figure 14 . As shown in Figure 14 , because it is a whole-screen movement of the content displayed on the screen, some of the content originally displayed within the screen will be in an invisible state (for example, the content within the area marked by the dashed line in Figure 14 ). Please refer to Figure 15 again. Figure 15 The left image shows the state before the movement. If based on the examples shown in Figure 13 and Figure 14 , the content within the screen shown in the left image of Figure 15 is moved as a whole, the resulting movement effect can be as shown in the right image of Figure 15 . Comparing the left and right images in Figure 15 , it can be seen that after the movement, all the content within the screen has moved in the direction indicated by the arrow in Figure 13 .

[0058] In an embodiment of the present application, every time a target touch operation is detected, the content within the screen may be moved as a whole once. For example, every time a multi-finger swipe operation is detected, the content within the screen is moved once based on the touch parameters of the multi-finger swipe operation. It may also be that while the target touch operation remains in effect, the content displayed on the screen is moved as a whole based on the touch parameters. Among them, the target touch operation remaining in effect can be understood as the target touch operation continuously acting on the screen. In this case, if the target touch operation ends, the electronic device stops moving the displayed content. For example, taking the target touch operation as a multi-finger swipe operation, if the multi-finger swipe operation remains in effect, it can be understood that the user has been performing a multi-finger swipe operation on the screen. If the user stops swiping (even if the user's finger still remains in contact with the screen), the overall movement of the content on the screen is also stopped synchronously.

[0059] It should be noted that the content displayed on the screen can be understood as being composed of pixels. In this case, moving the content displayed within the screen as a whole can also be understood as moving the constituent pixels of the content displayed on the screen as a whole. Among them, when moving the pixels, the amplitude of each movement can be in units of pixels.

[0060] For example, as Figure 16 shown in the left image, the constituent pixels of the content in the screen may include pixel P11, pixel P12, pixel P13... pixel P44. If the content in the screen is moved as a whole in the direction indicated by the dashed arrow in Figure 16 , the positions where each pixel is located after moving can be as shown in Figure 16 the right image. As shown in Figure 16 the right image, each of the pixels therein has moved in the direction indicated by the dashed arrow. Among them, pixel P41 has moved to the position where pixel P31 was originally located, pixel P31 has moved to the position where pixel P21 was originally located, pixel P21 has moved to the position where pixel P11 was originally located, and so on. Each pixel has made a corresponding movement. Among them, after pixels P11, P12, P13, and P14 have moved, since they have exceeded the boundary of the screen, they will no longer be displayed.

[0061] For another example, as Figure 17 shown in the left image, if the content in the screen is moved as a whole in the direction indicated by the dashed arrow in Figure 17 , the positions where each pixel is located after moving can be as shown in Figure 17 the right image. As shown in Figure 17As shown in the right image, each pixel therein has been moved in the direction indicated by the dashed arrow. Pixel P11 has moved to the position where pixel P12 was originally located, pixel P12 has moved to the position where pixel P13 was originally located, pixel P13 has moved to the position where pixel P14 was originally located, and so on. Each pixel has been moved accordingly. Among them, after the movement of pixels P14, P24, P34, and P44, since they have exceeded the boundary of the screen, they will no longer be displayed.

[0062] In the embodiment of the present application, after the content on the screen is moved as a whole, the screen will display the content based on the result of the overall movement. Among them, in the embodiment of the present application, moving the content on the screen can also be understood as: moving the area on the screen used for content display as a whole, and this area can be understood as a container for content display. For example, when a video screen (video content) is displayed on the screen, the video screen is displayed in a video playback interface, and this video playback interface can be understood as a container. Then, moving the video screen can be understood as moving the video playback interface. In this case, when the content on the screen is moved as a whole, the video playback interface will also move accordingly, and then the subsequent video screen (the video screen to be played after the content on the screen is moved as a whole) will continue to be played in the video playback interface after the position is moved.

[0063] A device control method provided in this embodiment can respond to a target touch operation on the screen, obtain the touch parameters of the target touch operation, and based on the touch parameters, move the content displayed on the screen as a whole. Thus, when the first display area and the second display area included in the screen can be relatively folded, by applying the target touch operation, the content displayed on the screen can be moved as a whole, and then the display of the content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device for content display.

[0064] Please refer to Figure 18 , a device control method provided in the embodiment of the present application, the electronic device includes a screen, the screen includes a first display area and a second display area, and the first display area and the second display area can be relatively folded. The method includes:

[0065] S210: Respond to a multi-finger swipe operation on the screen, and obtain the touch parameters of the multi-finger swipe operation, where the touch parameters include the swipe direction and / or the swipe distance.

[0066] S220: Based on the swipe direction and / or the swipe distance of the multi-finger swipe operation, move the content displayed on the screen as a whole.

[0067] Among them, in the case of overall moving the content on the screen through a multi-finger sliding operation, both the sliding direction and the sliding distance characterize the user's moving intention. Among them, the sliding direction can characterize the direction in which the user expects to move the content on the screen, and the sliding distance can characterize the degree of moving the content on the screen (for example, the distance of moving).

[0068] Optionally, based on the sliding direction of the multi-finger sliding operation, overall moving the content displayed on the screen can be understood as that the direction of overall moving the content displayed on the screen is consistent with the sliding direction of the multi-finger sliding operation. For example, if the sliding direction of the multi-finger sliding operation is towards the top of the screen, then the direction of overall moving the content displayed on the screen will also be towards the top of the screen.

[0069] Among them, during the process of overall moving the content displayed on the screen based on the sliding direction, the moving distance of the content displayed on the screen can be a default distance. In this case, each time the user performs a multi-finger sliding operation on the screen, the electronic device can perform an overall movement on the content in the screen along the sliding direction, and the overall moving distance is the default distance.

[0070] In the embodiments of the present application, there are various ways to determine the default distance. Among them, the configured default distance can use pixels as the moving unit.

[0071] As a configuration method, it can be pre-configured by developers. In this way, developers can store the pre-configured default distance in the electronic device. The electronic device can directly read the pre-stored default distance from the electronic device when running this method.

[0072] As another configuration method, it can be configured by the user of the electronic device according to their own preferences. Optionally, a default distance configuration interface can be configured in the electronic device, and then the user can configure the required default distance through this default distance configuration interface. It should be noted that for different users, the requirements for moving the screen content each time may be different. For example, some users may expect that each time the electronic device responds to a target touch operation, the overall moving distance of the screen content is shorter, so that they can control the moving accuracy more accurately, while some users may expect that each time the electronic device responds to a target touch operation, the overall moving distance of the screen content is longer, so as to move the display content more quickly. Then, in the case of possible diverse user requirements, the user can configure the default distance by themselves, which is beneficial to improving the user experience.

[0073] As yet another configuration method, the electronic device can be configured according to the size of the screen. It should be noted that when the screen of the electronic device is relatively small, it is more difficult for the user to perform fine control over the movement of the screen content. When the screen of the electronic device is relatively large, the user may need to trigger the multi-finger sliding operation multiple times, or move a long distance through the multi-finger sliding operation to achieve the desired movement effect. Optionally, the electronic device can read the size of the screen and then configure the corresponding default distance according to the size of the screen. Among them, if the size of the screen is smaller, the corresponding default distance is smaller; if the size of the screen is larger, the corresponding default distance is larger.

[0074] Optionally, based on the sliding distance of the multi-finger sliding operation, the content displayed on the screen can be moved as a whole. It can be understood that the moving distance of the content displayed on the screen is associated with the sliding distance.

[0075] This association can be understood as the moving distance of the content displayed on the screen being the same as the sliding distance. For example, if the sliding distance of the multi-finger sliding operation is N pixels, then the content displayed on the screen can also be moved as a whole by N pixels. Among them, the sliding distance of N pixels can be understood as passing through N pixels during the sliding process.

[0076] Optionally, during the process of moving the content displayed on the screen as a whole based on the sliding distance, the moving direction of the content displayed on the screen can be the default direction. This default direction can be towards the top or bottom of the screen, or towards the left or right side of the screen.

[0077] Optionally, during the process of moving the content displayed on the screen as a whole based on the sliding distance, the moving direction of the content displayed on the screen can be determined according to the key content displayed on the screen. It should be noted that the screen of the electronic device in the embodiments of the present application includes a first display area and a second display area that can be relatively folded. When the electronic device is in a fully unfolded state, the first display area and the second display area are in the same plane, and thus the first display area and the second display area can better jointly display content. Exemplarily, as Figure 19 shown, when the electronic device is in a fully unfolded state, the video playback interface 30 being played can be placed in the middle of the screen, so as to bring a better visual experience to the user by using the current larger planar area of the screen.

[0078] However, when the electronic device is switched from the fully unfolded state to the hover state, the original video playback interface 30 may be visually divided into two areas. For example, as Figure 19As shown, the video playback interface 30 can be divided into two regions by a dashed line. Among them, the dashed line represents the position where the first display region 1021 and the second display region 1022 are relatively folded. In this case, by moving the content displayed on the screen as a whole through the method provided by the embodiments of the present application, the video playback interface 30 can be made to be displayed in one display region (the first display region or the second display region) as much as possible. In this case, the video playback interface can be regarded as a key piece of content, and based on the moving direction determined by this key piece of content, it can be the direction that can make the key piece of content be displayed in the same display region to the greatest extent as quickly as possible.

[0079] Optionally, if when the electronic device is in a fully unfolded state, the areas of the key content in the first display region and the second display region are the same, then when moving the content on the screen as a whole, the electronic device can take the direction towards the first side as the default direction, where the first side is the side in the first display region that is opposite to the relative folding position of the first display region and the second display region. Or, the electronic device can also take the direction towards the second side as the default direction, where the second side is the side in the second display region that is opposite to the relative folding position of the first display region and the second display region. Exemplarily, as Figure 20 shown, where the dashed line represents the relative folding position of the first display region 1021 and the second display region 1022, and the positions of the first side 40 and the second side 41 can be as Figure 20 shown.

[0080] Optionally, if when the electronic device is in a fully unfolded state, the area of the key content in the first display region is larger than the area in the second display region, then when moving the content on the screen as a whole, the electronic device can take the direction towards the first side as the default direction. If when the electronic device is in a fully unfolded state, the area of the key content in the first display region is smaller than the area in the second display region, then when moving the content on the screen as a whole, the electronic device can take the direction towards the second side as the default direction.

[0081] Optionally, when the electronic device is in a hovering state, the postures of the first display region and the second display region may be different. For example, as Figure 7 、 Figure 10 or Figure 11 shown, when the electronic device is in a hovering state, the second display region in the second part is in a horizontal state, and the first display region in the first part is in a vertical state ( Figure 7 ) or an inclined state ( Figure 10 or Figure 11) In this case, when a multi-finger sliding operation is detected, if the first display area is in a vertical state or an inclined state, and the second display area is in a horizontal state, the direction towards the first side can be used as the default direction. Correspondingly, when a multi-finger sliding operation is detected, if the second display area is in a vertical state or an inclined state, and the first display area is in a horizontal state, the direction towards the second side can be used as the default direction.

[0082] In the embodiments of the present application, the key content can be determined in real time by the user or pre-configured. For example, the user can take the video playback interface as the key content, or can also take the displayed preview interface as the key content, where the preview interface is an interface for displaying the image captured in real time by the camera of the electronic device. Or, the key content can also be determined by the electronic device according to the actual situation. For example, the interface of the application program currently displayed in the foreground can be taken as the key content.

[0083] Optionally, when the content displayed on the screen is moved as a whole based on the sliding direction and the sliding distance, the direction and distance of the overall movement of the content displayed on the screen are both related to the sliding direction and the sliding distance of the multi-finger sliding operation. For example, if the sliding direction of the multi-finger sliding operation is towards the top of the screen, and the sliding distance is 1 pixel, the electronic device will control the content displayed within the screen to move 1 pixel in the direction towards the top of the screen. For another example, if the sliding direction of the multi-finger sliding operation is towards the bottom of the screen, and the sliding distance is 2 pixels, then the electronic device will control the content displayed within the screen to move 2 pixels in the direction towards the bottom of the screen.

[0084] In the embodiments of the present application, the distance of the overall movement of the screen content and the sliding distance of the multi-finger sliding operation can be in the same proportion or different proportions.

[0085] Among them, in the case of the same proportion, the distance of the overall movement of the screen content is the same as the sliding distance of the multi-finger sliding operation. For example, if the sliding distance of the multi-finger sliding operation is 1 pixel, then the distance of the overall movement of the screen content is also 1 pixel. For another example, if the sliding distance of the multi-finger sliding operation is 2 pixels, then the distance of the overall movement of the screen content is also 2 pixels.

[0086] Among them, when the ratios are different, the distance by which the screen content moves as a whole is different from the sliding distance of the multi-finger sliding operation. Optionally, when a multi-finger sliding operation is applied each time, the ratio of the distance by which the screen content moves as a whole to the sliding distance of the multi-finger sliding operation can be greater than 1 or less than 1. Among them, when the ratio of the distance by which the screen content moves as a whole to the sliding distance of the multi-finger sliding operation can be greater than 1, it means that even if the sliding distance of the multi-finger sliding operation is small, the amplitude of the overall movement of the screen content can be large.

[0087] In the embodiments of the present application, there are various ways to determine the ratio between the distance by which the screen content moves as a whole and the sliding distance of the multi-finger sliding operation.

[0088] Optionally, the ratio between the distance by which the screen content moves as a whole and the sliding distance of the multi-finger sliding operation can be configured by the user according to their own needs. For example, a ratio configuration interface can be provided in the electronic device, and the user can configure the ratio of the sliding distances of the multi-finger sliding operation through this ratio configuration interface.

[0089] A device control method provided in this embodiment can respond to a multi-finger sliding operation applied to the screen, obtain the sliding direction and / or sliding distance of the multi-finger sliding operation, and based on the sliding direction and / or sliding distance, move the content displayed on the screen as a whole. Thus, when the first display area and the second display area included in the screen can be relatively folded, by applying this multi-finger sliding operation, the content displayed on the screen can be moved as a whole, and further, the display of content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device for content display.

[0090] Please refer to Figure 21 , a device control method provided in the embodiments of the present application, the electronic device includes a screen, the screen includes a first display area and a second display area, the first display area and the second display area can be relatively folded, the method includes:

[0091] S310: Respond to a target pressing operation applied to the screen, and obtain the pressing position of the target pressing operation.

[0092] In the embodiments of the present application, the target pressing operation can be understood as a pressing operation that can trigger the overall movement of the content on the screen. The target pressing operation can be the long pressing operation or the large-area pressing operation shown in the foregoing content.

[0093] S320: Based on the pressing position of the target pressing operation, move the content displayed on the screen as a whole.

[0094] In this embodiment, the pressing position of the target pressing operation represents the direction in which the user expects to move the content on the screen as a whole. As a way, the moving direction can be determined based on the pressing position of the target pressing operation and the reference center. For example, the direction from the reference center towards the pressing position of the target pressing operation can be used as the direction for moving the content displayed on the screen as a whole.

[0095] Among them, the reference center can be different when the electronic device is in different states. Optionally, when the electronic device is in the fully unfolded state, the reference center can be the center of the entire screen. Exemplarily, as Figure 22 shown, Figure 22 the electronic device in Figure 22 is in the fully unfolded state, and the intersection of the two dashed lines in Figure 22 represents the center of the entire screen. If the pressing position of the target pressing operation is the position where the circle is located in Figure 22 , then the direction for moving the content on the screen as a whole can be the direction indicated by the arrow in Figure 22 , that is, the direction from the center of the entire screen towards the pressing position. Optionally, when the electronic device is in the hovering state, the reference center can be the center of the currently touched display area (the first display area or the second display area).

[0096] A device control method provided in this embodiment can respond to a pressing operation on the screen, obtain the pressing position of the pressing operation, and move the content displayed on the screen as a whole based on the pressing position. Thus, when the first display area and the second display area included in the screen can be relatively folded, the content displayed on the screen can be moved as a whole by acting on this pressing operation, and further, the display of the content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device for content display.

[0097] Please refer to Figure 23 , a device control method provided in an embodiment of the present application. The electronic device includes a screen, the screen includes a first display area and a second display area, and the first display area and the second display area can be relatively folded. The method includes:

[0098] S410: Respond to a target touch operation on the screen and obtain the touch parameters of the target touch operation.

[0099] S420: Based on the touch parameters, move the content displayed on the screen as a whole.

[0100] S430: After moving the content displayed on the screen as a whole based on the target content, fill the empty area generated on the screen.

[0101] It should be noted that in the embodiments of the present application, since the content on the screen is moved as a whole, the area on the screen where there was originally content to be displayed will have no content to be displayed after the overall movement of the content. And the area without content to be displayed can be understood as a blank area. Exemplarily, as Figure 24 shown, after the content on the screen is moved as a whole in the direction of the arrow shown in Figure 24 , pixel P11 moves to the position where pixel P12 is located, pixel P21 moves to the position where pixel P22 is located, pixel P31 moves to the position where pixel P32 is located, and pixel P41 moves to the position where pixel P42 is located. In this case, the areas where pixel P11, pixel P21, pixel P31, and pixel P41 were originally located will have no content to be displayed, and thus will become blank areas.

[0102] When a blank area is generated, it may affect the user's visual experience. Therefore, the blank area can be filled with target content to avoid affecting the user's visual experience. Among them, filling the blank area based on the target content can be understood as filling the target content in the blank area, so that there is no blank area on the screen. Exemplarily, as Figure 25 shown, if the target content includes pixel P15, pixel P25, pixel P35, and pixel P45, then the effect after filling based on this target content can be as Figure 25 shown.

[0103] As a way, when a blank area is generated in the electronic device, it can start filling the blank area, so that the user will not or is not easily aware of the generation of the blank area visually.

[0104] In the embodiments of the present application, there can be multiple ways to determine the target content.

[0105] As a way, the target content can be determined based on the content currently displayed on the screen.

[0106] It should be noted that after filling the blank area, the target content for filling and the content originally displayed on the screen will be displayed on the screen together. In this case, determining the target content based on the content currently displayed on the screen can make the target content filled in the blank area more coordinated with the currently displayed content, thereby enhancing the user's visual experience.

[0107] Optionally, the target content is determined based on the content in contact with the blank area in the content currently displayed on the screen. Among them, the difference degree between the content in contact with the blank area in the content currently displayed on the screen and the target content filled in the blank area affects the user's visual experience.

[0108] In this case, determining the target content based on the content in the currently displayed content on the screen that contacts the free area can make the determined target content more visually meet the user's needs.

[0109] As a content determination method, the color of the target content can be made the same as the color of the content in the currently displayed content on the screen that contacts the free area. For example, when moving the currently displayed content on the screen, if the colors of the content in the currently displayed content on the screen that contacts the free area are all black, then the color of the determined target content is also all black. For another example, when moving the currently displayed content on the screen, if the colors of the content in the currently displayed content on the screen that contacts the free area are all green, then the color of the determined target content is also all green.

[0110] Exemplarily, please refer to Figure 25 , such as Figure 25 As shown in the left image, when there is a free area generated, the content in the currently displayed content on the screen that contacts the free area is pixel P11, pixel P21, pixel P31, and pixel P41. If the colors of pixel P11, pixel P21, pixel P31, and pixel P41 are all black, then Figure 25 the colors of pixel P15, pixel P25, pixel P35, and pixel P45 included in the target content shown in the right image in the middle can all be black.

[0111] As another content determination method, the color of the target content can be made similar to the color of the content in the currently displayed content on the screen that contacts the free area. Among them, approximate colors refer to colors that are close on the color wheel. The contrast relationships at about 60 degrees on the color wheel, such as yellow with orange, red with purple, purple with blue, and blue with green, are all approximate color combinations. For example, orange and yellow, green and yellow, blue and green, etc. are all approximate colors. This color matching scheme can give people a feeling of fullness, softness, harmony, unity, and elegance.

[0112] Exemplarily, please refer to Figure 25 , such as Figure 25 As shown in the left image, when there is a free area generated, the content in the currently displayed content on the screen that contacts the free area is pixel P11, pixel P21, pixel P31, and pixel P41. If the colors of pixel P11, pixel P21, pixel P31, and pixel P41 are all green, then Figure 25 the colors of pixel P15, pixel P25, pixel P35, and pixel P45 included in the target content shown in the right image in the middle can all be similar colors to green.

[0113] As yet another content determination method, the color of the target content can be made opposite to the color of the content in the currently displayed content that contacts the vacant area. In this method, the colors of the determined target content can all be the same color, and the color of the target content can be the complementary color of the color of the content in the currently displayed content on the screen that contacts the vacant area. Among them, complementary colors refer to two colors that can be clearly distinguished, and each color can have multiple complementary colors. Optionally, two colors that are 120 degrees to 180 degrees apart on the 24-color phase ring are called complementary colors. Among them, the 24-color phase ring is composed of 8 main color phases of the basic color system: yellow, orange, red, purple, blue, blue-green, green, and yellow-green. Each main color phase is further divided into 3 parts, forming a 24-segment color phase ring, numbered from 1 to 24.

[0114] Exemplarily, please refer again to Figure 25 , such as Figure 25 shown in the left image. When there is a vacant area, the content in the currently displayed content on the screen that contacts the vacant area is pixel P11, pixel P21, pixel P31, and pixel P41. If the colors of pixel P11, pixel P21, pixel P31, and pixel P41 are all green, then Figure 25 the colors of pixel P15, pixel P25, pixel P35, and pixel P45 included in the target content shown in the right image in

[0115] It should be noted that when there are multiple ways to determine the target content, there can also be multiple ways to determine which of the above multiple ways to specifically use to determine the color of the target content.

[0116] As an option, the user can configure the specific determination method. In this method, the user can select a method for determining the color of the target content from multiple methods according to needs.

[0117] As another option, the electronic device can determine the specific determination method according to the statistically obtained color preferences of the user. Among them, the color preferences of the user can include whether the user prefers analogous colors, complementary colors, or pure colors. Among them, preferring analogous colors can be understood as the user preferring to use analogous colors to fill an area, preferring complementary colors can be understood as the user preferring to use complementary colors to fill an area, and preferring pure colors can be understood as the user preferring to use the same color to fill an area.

[0118] Optionally, the electronic device may obtain the colors of multiple pixels included in the content currently displayed on the screen, obtain the color with the largest quantity as the target color, and generate target content based on the target color. Exemplarily, the colors of the content currently displayed on the screen include color C1, color C2, color C3, and color C4. Among them, there are N1 pixels of color C1, N2 pixels of color C2, N3 pixels of color C3, and N4 pixels of color C4. Among them, the quantity of N2 is the largest, then the electronic device will use color C2 as the target color. Among them, as a generation method, generating target content based on the target color can be understood as that the color of each pixel in the generated target content is the target color, or it can be understood that the color of most pixels in the generated target content is the target color. This most pixels can be understood as pixels with a proportion greater than 50%.

[0119] Optionally, the electronic device may obtain the colors of multiple pixels included in the content currently displayed on the screen, obtain the color with the largest quantity as the target color, and obtain the color with the second largest quantity as the secondary color, so as to generate target content based on the target color and the secondary color. It should be noted that in some cases, the content displayed on the screen is mainly the content of the same application interface. For example, when playing a video, if the user plays the video in full screen mode, then the content displayed on the screen is mainly the content in the video interface. In this case, the obtained target color and secondary color can be understood as the most and the second most colors in the video interface. Then, generating target content based on the target color and the second most color can make the generated target content more coordinated with the content in the video interface.

[0120] It should be noted that in the embodiments of the present application, the method for determining the target content is not limited to the methods introduced above, and any other method that can determine the target content can be used in the embodiments of the present application.

[0121] For example, when the electronic device is in a video playback scenario, the electronic device may also determine the target content according to the relevant information of the played video. Optionally, the relevant information may be the introduction information of the played video. In this case, the introduction information of the played video can be used as the target content to fill the vacant area. Optionally, the relevant information may include the introduction information of the target object in the played video. The target object may be the main character in the played video, or the target object may be the character that appears in the played video when the content is moving as a whole. The target object may also be an object that appears in the played video (such as a plant or an animal).

[0122] For another example, when the electronic device is in an audio playback scenario, the electronic device can also determine the target content based on the relevant information of the played audio. Optionally, the relevant information can be the introduction information of the played audio. In this case, the introduction information of the played audio can be used as the target content to fill the empty area. Optionally, the relevant information can be the image scene depicted by the played audio. For example, if the played audio depicts a snowy scene, the determined target content can be an image of snowing. For another example, if the played audio depicts a desert scene, the determined target content can be an image of the desert.

[0123] Among them, the electronic device can determine the scene through the program running in the foreground. For example, if the application program running in the foreground is a video playback program, it can be determined that the current is a video playback scene. For another example, if the application program running in the foreground is an audio playback program, it can be determined that the current is an audio playback scene.

[0124] A device control method provided in this embodiment enables the content displayed on the screen to be moved as a whole by acting on the target touch operation when the first display area and the second display area included in the screen can be relatively folded. Furthermore, the content display of the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device for content display. Moreover, in this embodiment, when an empty area is generated by moving the content displayed on the screen as a whole, the empty area can be filled with the target content, so that the visual experience will not be significantly reduced due to the overall movement of the displayed content.

[0125] It should be noted that the content displayed on the screen of the electronic device may be content about the application. For example, what may be displayed is the video playback interface of the video playback program, the audio playback interface of the audio playback program, the image display interface of the photo album, etc. Among them, for some applications that can adapt to the posture change of the electronic device, the electronic device can adaptively change the interface of the application (the application that can adapt to the posture change) according to the current posture of the electronic device. For example, the video playback program A1 can adapt to the posture change of the electronic device, and when the electronic device is in a fully expanded state, the video playback interface of the video playback program A1 is displayed in a full-screen state, wherein when displayed in a full-screen state, the video playback interface covers the first display area and the second display area. If the electronic device switches from a fully expanded state to a hovering state, the electronic device will automatically switch the video playback interface of the video playback program A1 to the first display area or the second display area, so that the video playback interface will only cover one display area, thereby avoiding interference with the display of the video playback interface at the folding point of the first display area and the second display area.

[0126] In this case, in order to make the electronic device better compatible with various categories of applications (applications that can adapt to the posture changes of the electronic device and applications that cannot adapt to the posture changes of the electronic device), the electronic device can detect the application currently running in the foreground when there is a posture change, and then take adaptive measures based on the detection results.

[0127] Optionally, when the electronic device switches from the fully expanded state to the hovering state, it can detect whether the application currently running in the foreground supports automatic adaptation to the hovering state. If it is detected that the application currently running in the foreground supports automatic adaptation to the hovering state, the interface corresponding to the application currently running in the foreground can be adaptively transformed according to the pre-configured adaptation rules. If it is detected that the application currently running in the foreground does not support automatic adaptation to the hovering state, a prompt message can be displayed to prompt the user to trigger the overall movement of the screen content by triggering the target touch operation. Optionally, the content of the prompt message can be "the screen content can be moved as a whole through a four-finger sliding operation."

[0128] See also Figure 26 The embodiment of the present application provides a device control device 500, which runs on an electronic device. The electronic device includes a screen, the screen includes a first display area and a second display area, and the first display area and the second display area can be folded relative to each other. The device 500 includes:

[0129] A parameter acquisition unit 510, configured to respond to a target touch operation acting on the screen and acquire touch parameters of the target touch operation;

[0130] A device control unit 520, configured to perform an overall movement on the content displayed on the screen based on the touch parameters.

[0131] As a way, the target touch operation includes a multi-finger sliding operation. In this way, the device control unit 520 is specifically configured to perform an overall movement on the content displayed on the screen based on the sliding direction and / or sliding distance of the multi-finger sliding operation.

[0132] As a way, the target touch operation includes a target pressing operation. In this way, the device control unit 520 is specifically configured to perform an overall movement on the content displayed on the screen based on the pressing position of the target pressing operation.

[0133] As a way, the device control unit 520 is further configured to fill the empty area generated on the screen after performing an overall movement on the content displayed on the screen based on the target content.

[0134] Optionally, the device control unit 520 is further specifically configured to determine the target content based on the content currently displayed on the screen.

[0135] Optionally, the device control unit 520 is further specifically configured to determine the target content based on the content in contact with the empty area among the content currently displayed on the screen.

[0136] Optionally, the device control unit 520 is further specifically configured to acquire the colors of multiple pixels included in the content currently displayed on the screen; acquire the color with the largest quantity as the target color; and generate the target content based on the target color.

[0137] Optionally, the device control unit 520 is specifically configured to perform an overall movement on the content displayed on the screen based on the touch parameters when the target touch operation remains in effect.

[0138] A device control device provided in this embodiment enables, when the first display area and the second display area included in the screen can be relatively folded, an overall movement of the content displayed on the screen by acting on the target touch operation, so that the display of the content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device in content display.

[0139] It should be noted that the device embodiment in this application corresponds to the foregoing method embodiment. The specific principle in the device embodiment can refer to the content in the foregoing method embodiment, and will not be elaborated here.

[0140] The following will be described in conjunction with Figure 27 an electronic device provided by the present application.

[0141] Please refer to Figure 27 , based on the above device control method and apparatus, another electronic device 200 that can execute the foregoing device control method is further provided in an embodiment of the present application. The electronic device 200 includes a foldable device body, one or more (only one is shown in the figure) processors 202, a memory 204, a network module 206, a first screen 208, a second screen 210, and an image acquisition component that are coupled to each other. Among them, a program that can execute the content in the foregoing embodiment is stored in the memory 204, and the processor 202 can execute the program stored in the memory 204.

[0142] Among them, the processor 202 may include one or more cores for processing data. The processor 202 connects various parts within the entire electronic device 200 through various interfaces and lines, and executes various functions of the electronic device 200 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 204, and by calling data stored in the memory 204. Optionally, the processor 202 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 202 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communication. It can be understood that the foregoing modem may not be integrated into the processor 202 and may be implemented separately by a communication chip.

[0143] The memory 204 may include a Random Access Memory (RAM), or may also include a Read-Only Memory. The memory 204 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 204 may include a program storage area and a data storage area. Among them, 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 created during the use of the electronic device 200 (such as a phone book, audio and video data, chat record data, etc.).

[0144] The network module 206 is used to receive and send electromagnetic waves, implement 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 206 may include various existing circuit elements for performing these functions. For example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a Subscriber Identity Module (SIM) card, a memory, and so on. The network module 206 can communicate with various networks such as the Internet, an enterprise intranet, a wireless network, or communicate with other devices through a wireless network. The above-mentioned wireless network may include a cellular phone network, a wireless local area network, or a metropolitan area network. For example, the network module 206 can interact with a base station for information.

[0145] The first display area 208 and the second display area 210 can be used for content display. The first screen 208 and the second screen 210 are disposed on opposite sides of the device body. The first display area 208 can follow the folding of the device body. When the device body is in a folded state, the first screen 208 is located inside the device body.

[0146] The sensor module 208 may include at least one sensor. Specifically, the sensor module 208 may include, but is not limited to: a magnetic induction sensor, a light sensor, a motion sensor, a pressure sensor, an infrared thermal sensor, a distance sensor, an acceleration sensor, and other sensors.

[0147] Among them, the magnetic induction sensor can be used to detect the magnetic field strength of the environment where the electronic device is located.

[0148] Among them, the pressure sensor is a sensor that can detect the pressure generated by pressing on the electronic device 200. That is, the pressure sensor detects the pressure generated by the contact or pressing between the user and the electronic device, such as the pressure generated by the contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether there is contact or pressing between the user and the electronic device 200, as well as the magnitude of the pressure.

[0149] Among them, the acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used in applications for identifying the posture of the electronic device 200 (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, tapping), etc. In addition, the electronic device 200 can also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, etc., which will not be elaborated here.

[0150] The audio acquisition device 210 is used for audio signal acquisition. Optionally, the audio acquisition device 210 includes a plurality of audio acquisition components. The audio acquisition component can be a microphone. For example, in one way, the audio acquisition device 210 can include two microphones. In this way, one of the microphones can correspond to one analog-to-digital converter, and the other microphone can correspond to two analog-to-digital converters with different analog gains. In another way, the audio acquisition device 210 can include three microphones. In this way, two of the microphones (for example, the main microphone and the secondary microphone) can each correspond to one analog-to-digital converter, and the other microphone (for example, the camera microphone) can correspond to two analog-to-digital converters with different analog gains.

[0151] As one way, the network module of the electronic device 200 is a radio frequency module. The radio frequency module is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The radio frequency module can include various existing circuit elements for performing these functions. For example, antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, subscriber identity module (SIM) cards, memories, etc. For example, the radio frequency module can interact with external devices through the transmitted or received electromagnetic waves, and then receive the audio signals sent by the external devices.

[0152] Furthermore, the electronic device 200 can also include an image acquisition component for image acquisition. For example, videos, static pictures, or dynamic pictures can be taken through the image acquisition component.

[0153] Please refer to Figure 28, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 1100, and the program code can be called by a processor to execute the method described in the above method embodiment.

[0154] The computer-readable storage medium 1100 can be an electronic memory such as a flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has a storage space for the program code 1110 that executes any method step in the above method. These program codes can be read from or written into one or more computer program products. The program code 1110 can be compressed in an appropriate form, for example.

[0155] In summary, a device control method, device, and electronic device provided by the present application can respond to a target touch operation acting on the screen, obtain touch parameters of the target touch operation, and based on the touch parameters, perform an overall movement of the content displayed on the screen. Thus, when the first display area and the second display area included in the screen can be relatively folded, the content displayed on the screen can be overall moved by acting on the target touch operation, and further, the display of the content by the electronic device can better adapt to the current relative position state of the first display area and the second display area, improving the flexibility of the electronic device for content display.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and 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. A device control method, characterized in that, Applied to an electronic device, the electronic device includes a screen, the screen includes a first display area and a second display area, and the first display area and the second display area can be folded relative to each other. The method includes: Respond to a target touch operation on the screen, and obtain touch parameters of the target touch operation; Based on the touch parameters, perform an overall movement on the content displayed on the screen.

2. The method according to claim 1, characterized in that, The target touch operation includes a multi-finger sliding operation. The performing an overall movement on the content displayed on the screen based on the touch parameters includes: Based on the sliding direction and / or sliding distance of the multi-finger sliding operation, perform an overall movement on the content displayed on the screen.

3. The method according to claim 1, characterized in that, The target touch operation includes a target pressing operation. The performing an overall movement on the content displayed on the screen based on the touch parameters includes: Based on the pressing position of the target pressing operation, perform an overall movement on the content displayed on the screen.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: After performing an overall movement on the content displayed on the screen based on the target content, fill the empty area generated in the screen.

5. The method according to claim 4, characterized in that, The method further includes: Based on the content currently displayed in the screen, determine the target content.

6. The method according to claim 5, characterized in that, The determining the target content based on the content currently displayed in the screen includes: Based on the content in the content currently displayed in the screen that contacts the empty area, determine the target content.

7. The method according to claim 5, characterized in that, The determining the target content based on the content currently displayed in the screen includes: Obtain the colors of multiple pixels included in the content currently displayed in the screen; Obtain the color with the largest quantity as the target color; Generate the target content based on the target color.

8. The method according to claim 1, characterized in that, The performing an overall movement on the content displayed on the screen based on the touch parameters includes: While the target touch operation remains in effect, perform an overall movement on the content displayed on the screen based on the touch parameters.

9. A device control device, characterized in that, Running on an electronic device, the electronic device includes a screen, the screen includes a first display area and a second display area, and the first display area and the second display area can be folded relative to each other. The device includes: A parameter acquisition unit, configured to respond to a target touch operation on the screen and obtain touch parameters of the target touch operation; A device control unit, configured to perform an overall movement on the content displayed on the screen based on the touch parameters.

10. An electronic device, characterized in that, The electronic device includes a first part and a second part that can be folded relative to each other; the electronic device further 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 the method according to any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, Program code is stored in the computer-readable storage medium, and when the program code is run by the processor, the method according to any one of claims 1-8 is executed.