WO2024012043A1 - 设备控制方法、装置、电子设备以及可读存储介质 - Google Patents

设备控制方法、装置、电子设备以及可读存储介质 Download PDF

Info

Publication number
WO2024012043A1
WO2024012043A1 PCT/CN2023/094578 CN2023094578W WO2024012043A1 WO 2024012043 A1 WO2024012043 A1 WO 2024012043A1 CN 2023094578 W CN2023094578 W CN 2023094578W WO 2024012043 A1 WO2024012043 A1 WO 2024012043A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
interface
touch operation
touch
electronic device
Prior art date
Application number
PCT/CN2023/094578
Other languages
English (en)
French (fr)
Inventor
莫博宇
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024012043A1 publication Critical patent/WO2024012043A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present application relates to the field of terminal technology, and more specifically, to a device control method, device, electronic device and readable storage medium.
  • this application proposes an equipment control method, device, electronic device and readable storage medium to improve the above problems.
  • this application provides a device control method, which is applied to an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the method includes: the first screen displays a first interface; and in response to an action on For a touch operation on the second screen, the interface corresponding to the touch operation is obtained as the target interface, where the interfaces corresponding to different touch operations are different, and the interface corresponding to at least one touch operation is the first Interface; display the target interface in the second screen.
  • this application provides an equipment control device that runs on an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the device includes a display unit for controlling the first screen to display a first interface.
  • An interface selection unit configured to respond to a touch operation on the second screen and obtain an interface corresponding to the touch operation as the target interface, wherein the interfaces corresponding to different touch operations are different, and at least one touch operation
  • the interface corresponding to the control operation is the first interface; the display unit is also used to display the target interface in the second screen.
  • the present application provides an electronic device, which includes a first screen and a second screen; the electronic device further includes a processor and a memory; one or more programs are stored in the memory and The processor is configured to perform the above method.
  • the present application provides a computer-readable storage medium having program code stored in the computer-readable storage medium, wherein the above method is executed when the program code is run by a processor.
  • Figure 1 shows a schematic diagram of the electronic device in a semi-expanded state in an embodiment of the present application
  • Figure 2 shows a schematic diagram of the electronic device in a semi-expanded state according to the embodiment of the present application
  • Figure 3 shows a schematic diagram of the electronic device in an unfolded state according to the embodiment of the present application
  • Figure 4 shows a schematic diagram of the electronic device in a folded state according to the embodiment of the present application
  • Figure 5 shows a flow chart of a device control method proposed by the embodiment of the present application.
  • Figure 6 shows a schematic diagram configuring a corresponding interface for touch operations in an embodiment of the present application
  • Figure 7 shows another schematic diagram configuring a corresponding interface for touch operations in an embodiment of the present application
  • Figure 8 shows a flow chart of a device control method proposed by another embodiment of the present application.
  • Figure 9 shows a schematic diagram of a first screen displaying a first interface in an embodiment of the present application.
  • Figure 10 shows a schematic diagram of the difference between the first sliding operation and the second sliding operation in the embodiment of the present application
  • Figure 11 shows another schematic diagram of the difference between the first sliding operation and the second sliding operation in the embodiment of the present application
  • Figure 12 shows a schematic diagram of first prompt information and second prompt information in the embodiment of the present application
  • Figure 13 shows a schematic diagram of another first prompt information and second prompt information in the embodiment of the present application.
  • Figure 14 shows a flow chart of a device control method proposed by yet another embodiment of the present application.
  • Figure 15 shows a schematic diagram of displaying multiple controls on the second screen in this embodiment of the present application.
  • Figure 16 shows a flow chart of a device control method proposed by yet another embodiment of the present application.
  • Figure 17 shows a schematic diagram of displaying the first interface on the second screen in the embodiment of the present application.
  • Figure 18 shows a structural block diagram of an equipment control device proposed in an embodiment of the present application.
  • Figure 19 shows a structural block diagram of an equipment control device proposed by another embodiment of the present application.
  • Figure 20 shows a structural block diagram of an electronic device of the present application for executing a device control method according to an embodiment of the present application
  • Figure 21 is a storage unit used to save or carry the program code for implementing the device control method according to the embodiment of the present application.
  • the inventor proposes an equipment control method, device, electronic equipment and readable storage medium.
  • the electronic device includes a first screen and a second screen, and when the first screen displays the first interface, in response to a touch operation on the second screen, an interface corresponding to the touch operation is obtained as the target interface, wherein, different touch operations correspond to different interfaces, and the interface corresponding to at least one touch operation is the first interface, and then the target interface is displayed on the second screen. Therefore, through the above method, when the first screen is currently used to display the first interface, if the user wishes to use the second screen, the user can select the second screen by performing different touch operations on the second screen. Whether the first interface previously displayed on the first screen is displayed on the screen, or other interfaces are selected to be displayed, thereby improving the flexibility of transferring between multiple screens.
  • an electronic device related to an embodiment of the present application includes a foldable device body 101 , an image capture component, a screen 102 and a screen 103 .
  • the screen 102 and the screen 103 are arranged on opposite sides of the device body 101 , and the screen 102 can be folded following the device body 101 .
  • the image acquisition component includes a first front camera 104, a second front camera 105 and a rear camera 106.
  • the first front camera 104 is disposed on the side of the first screen 101
  • the second front camera 105 is disposed on the second screen 103 .
  • the rear camera 106 is disposed on the side of the second screen 103, and the rear camera 106 and the second screen 103 are relatively disposed on both sides of the folded position of the device body 101 (the position marked by the dotted line in Figures 1 and 2).
  • the device body 101 of the electronic device in the embodiment of the present application can have three folding postures.
  • the device body may include an unfolded state, a folded state, and a semi-expanded state.
  • the unfolded state may be as shown in Figure 3, the folded state may be as shown in Figure 4, and the semi-expanded state may be as shown in Figures 1 and 2.
  • the expansion angle of the device body in the semi-expanded state is smaller than the expansion angle in the expanded state.
  • the electronic device involved in the embodiments of the present application may be an electronic device with a folding screen that is folded inward as shown in FIGS. 1 to 4 . Electronic devices that fold outward.
  • the first screen may be screen 102 and the second screen may be screen 103. Furthermore, the first screen may also be screen 103, and the second screen may also be screen 102.
  • the first screen and the second screen in the embodiment of the present application are not limited to the styles shown in Figures 1-3. For example, the first screen and the second screen may also be located on the same side of the electronic device.
  • the display characteristics and sizes of the first screen and the second screen may be the same or different.
  • display characteristics include screen refresh frequency and resolution.
  • the electronic devices applied to the device control method provided by the embodiments of the present application are not limited to foldable devices, and can also be applied to other devices with multiple screens, such as electronic devices with a main screen on the front and a secondary screen on the back.
  • a device control method provided by an embodiment of the present application is applied to an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the method includes:
  • the first interface displayed on the first screen may be an interface triggered by the user's operation on the first screen.
  • the desktop is displayed on the first screen and there are icons of multiple applications on the desktop
  • the icon corresponding to the touch operation can be The application serves as the target application, thereby triggering the startup of the target application, and the interface displayed after the target application is started is used as the first interface.
  • the user triggers the application to switch interfaces by performing an interface switching operation on the current interface, and then the interface displayed after the switching can be used as the first interface. .
  • the first interface displayed on the first screen may be an interface displayed by the electronic device in response to a preset event.
  • the preset event may be a startup event.
  • the interface displayed on the first screen after the electronic device is started may be used as the first interface.
  • the preset time may be a time event. In this case, the interface displayed by the electronic device when the preset time event is met may be used as the first interface.
  • the interface corresponding to the touch operation can be understood as the interface to be triggered and displayed when the touch operation is performed. Then the touch operation acting on the second screen is a touch operation used to trigger the second screen to display the interface.
  • the interface corresponding to each touch operation may be different.
  • the interface corresponding to the touch operation can be understood as the interface displayed on the second screen that is triggered when the touch operation acts on the second screen.
  • the touch operation that can act on the second screen to trigger the second screen to display the interface can be a specified sliding operation or a specified pressing operation, or it can also be an operation of clicking on a specified target object.
  • the specified target can be a specified control.
  • the interface corresponding to each touch operation can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own usage habits. In this way, corresponding interfaces can be configured for different touch operations in response to the user's configuration operations.
  • the electronic device can be provided with a touch operation setting interface. In the touch operation setting interface, the user can first determine the touch operation to be configured, and then select the corresponding interface as the touch operation to be configured. Operate the corresponding interface.
  • the touch operation to be selected can be displayed in the touch operation setting interface, and then the user can select the touch operation from the touch operations to be selected as the determined touch operation to be configured.
  • the interface shown in Figure 6 includes an interface area 10 and an interface area 11, wherein the interface area 10 displays touch operations to be selected (for example, touch operation A, touch operation Operation B, touch operation C and touch operation D), a selectable interface is displayed in the interface area 10 .
  • touch operation A is currently determined as the touch operation to be configured
  • select the corresponding interface as the "first interface” in the interface area 11 where the first interface is the interface displayed on the first screen.
  • OK the control named OK in the interface area 11
  • a corresponding relationship can be established between the first interface and the touch operation A, so that the first interface is configured as an interface corresponding to the touch operation A.
  • the user can determine the touch operation to be configured through a demonstration on the touch operation setting interface, and then configure the corresponding interface for the determined touch operation.
  • determining the touch operation to be configured through demonstration can be understood as directly triggering the touch operation to be configured once in the touch operation setting interface. Therefore, in this way, it can be determined that the types of touch operations on the corresponding interface can be more abundant and more in line with the user's own operating habits.
  • a touch operation trigger area 121 is displayed in the interface area 12.
  • the user can trigger the required determination corresponding to Touch operation.
  • the corresponding interface can be selected in the interface area 13 .
  • the touch operations configured in the electronic device that can trigger the second screen to display the interface may include touch operation A, touch operation B, touch operation C, and touch operation D, where the touch operation A corresponds to The interface is the first interface, the interface corresponding to touch operation B is the second interface, the interface corresponding to touch operation C is the third interface, and the interface corresponding to touch operation D is the fourth interface.
  • the second interface corresponding to touch operation B can be used as the target interface.
  • the second screen when acquiring the touch operation acting on the second screen, the second screen may be in a screen-off state or a screen-on state.
  • the second screen When there is a touch operation on the second screen and the second screen is in the screen-off state, the second screen can be lit in response to the touch operation on the second screen, and the second screen can be displayed on the second screen. Display the target interface.
  • the interface displayed on the second screen can be switched to the target interface in response to the touch operation on the second screen.
  • This embodiment provides a device control method, wherein the electronic device includes a first screen and a second screen.
  • the first screen displays the first interface
  • the acquisition and touch operation are performed.
  • the interface corresponding to the touch operation is used as the target interface, wherein the interfaces corresponding to different touch operations are different, and the interface corresponding to at least one touch operation is the first interface, and then the target interface is displayed on the second screen. Therefore, through the above method, when the first screen is currently used to display the first interface, if the user wishes to use the second screen, the user can select the second screen by performing different touch operations on the second screen. Whether the first interface previously displayed on the first screen is displayed on the screen, or other interfaces are selected to be displayed, thereby improving the flexibility of transferring between multiple screens.
  • a device control method provided by an embodiment of the present application is applied to an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the method includes:
  • S220 In response to the touch operation on the second screen, obtain the gesture type of the touch operation.
  • the touch operation used to trigger the second screen to display the interface is a gesture operation.
  • S240 If the touch operation is a second touch gesture, obtain the second interface corresponding to the second touch gesture as the target interface, where the first touch gesture is different from the first touch gesture.
  • first touch gesture and the second touch gesture may be multiple specific implementations of the first touch gesture and the second touch gesture.
  • the first touch gesture includes a first sliding operation
  • the second touch gesture includes a second sliding operation, wherein the sliding distances of the first sliding operation and the second sliding operation are different, or the first sliding operation and The sliding direction of the second sliding operation is different.
  • the user can trigger the first sliding operation or the second sliding operation by sliding on the second screen, thereby controlling the display of the second screen to be different according to the different sliding operations (different directions or different distances).
  • interface displayed on the screen 102 (first screen) in Figure 9 is the first interface.
  • the first sliding operation and the second sliding operation have different sliding directions.
  • the electronic device supports triggering sliding operations from the first direction and the second direction of the screen 103 (second screen).
  • the sliding operation that triggers the first direction may be determined as the first sliding operation, and when the interface corresponding to the first sliding operation is the first interface, the first interface shown in Figure 9 will be used as the target interface. to display on the second screen.
  • the sliding operation that triggers the second direction may be determined as the second sliding operation. If the interface corresponding to the second sliding operation is the second interface, the second interface will be displayed on the second screen as the target interface.
  • the electronic device can also support the first touch gesture and the second touch gesture in multiple ways. Two touch gestures.
  • the electronic device currently only supports one implementation selected from multiple real-time methods to trigger the display of different interfaces on the second screen. In order to facilitate the user to promptly understand one implementation currently supported by the electronic device .
  • the electronic device may also display the first prompt information and/or the second prompt information on the second screen before acquiring the gesture type of the touch operation in response to the touch operation on the second screen, wherein the One prompt information is used to prompt the function of triggering the first touch gesture, and the second prompt information is used to prompt the function of triggering the second touch gesture.
  • the content of the first prompt information and the second prompt information may correspond to the difference between the first touch gesture and the second touch gesture.
  • the first prompt information may be sliding the distance t1 to trigger the display of the first interface (ie, the first interface displayed on the first screen), and the content of the second prompt information may be sliding the distance t2 to trigger the display of the second interface.
  • t2 is greater than t1.
  • the first prompt information can also be displayed at the sliding end point of the first sliding operation, and the second prompt information can be displayed at the sliding end point of the first sliding operation. 2. The sliding end point of the sliding operation.
  • the content of the first prompt information may be to slide to here to display the first interface.
  • the content of the second prompt information may be to slide to here to display the second interface.
  • first prompt information and second prompt information are displayed on screen 103 (second screen), so that the user can determine the position to slide to according to the prompt information.
  • the first prompt may be sliding in the first direction to trigger display of the first interface
  • the content of the second prompt information may be sliding in the second direction to trigger display of the second interface, where the second direction is different from the first direction.
  • the first touch gesture is a first press operation
  • the second touch gesture is a second press operation
  • the difference between the first press operation and the second press operation is the pressing duration.
  • the content of the first prompt information can be pressed and held for t1 seconds to trigger the display of the first interface
  • the content of the second prompt information can be pressed and held for t2 seconds to trigger the display of the second interface.
  • t1 can be smaller than t2.
  • the difference between the first pressing operation and the second pressing operation may also be the pressing position.
  • the content of the first prompt information may be to press here to trigger display of the first interface
  • the content of the second prompt information may be to press here (which is a different position from the here in the first prompt information) to trigger the display of the first interface.
  • Trigger to display the first interface As shown in FIG. 13 , the display area of the screen 103 (second screen) may be divided into a display area 1031 and a display area 1032 .
  • the first prompt information may be displayed in the display area 1031
  • the second prompt information may be displayed in the second display area 1032.
  • the electronic device may trigger display of the first prompt information and the second prompt information on the second screen in response to the operation of enabling the second screen before acquiring the gesture type of the touch operation in response to the touch operation on the second screen.
  • Prompt information when the first screen displays the first interface, it may indicate that the user is currently using the first screen. If the user currently desires to switch to using the second screen, the user may first trigger the operation of enabling the second screen, and then trigger the display of the first prompt information and the second prompt information on the second screen.
  • activating the second screen can be understood as lighting up the second screen that is originally in a screen-off state. In this case, the operation of activating the second screen may include the operation of lighting the second screen.
  • enabling the second screen can also be understood as using the second screen originally used to display other interfaces to display the interface that the user currently desires to display. In this case, the operation of initiating the second screen may include facing the second screen toward the user.
  • the first touch gesture and the second touch gesture there are multiple implementation methods for the first touch gesture and the second touch gesture.
  • the user can manually choose which implementation mode to adopt, and the first prompt information and the second prompt information can be combined to prompt the user of the currently selected first touch gesture and the third touch gesture.
  • Implementation of touch gestures As another way, the electronic device can flexibly select the implementation of the first touch gesture and the second touch gesture according to the current actual situation.
  • the electronic device may select the implementation of the first touch gesture and the second touch gesture according to the current posture of the electronic device.
  • the touch gestures that are easy for the user to use will be different.
  • the vertical posture can be understood as the bottom of the electronic device being below the top of the electronic device in the direction of gravity.
  • both sliding operations and pressing operations are easier to use.
  • the horizontal posture of the electronic device can be understood to mean that the top of the electronic device and the bottom of the electronic device are on the same horizontal plane.
  • the electronic device can obtain its own posture. If the posture of the electronic device is determined to be a vertical posture, the first touch gesture can be determined as the first sliding operation, and the second touch gesture can be determined as the second The sliding operation is performed, and the difference between the first sliding operation and the second sliding operation is determined to be the sliding distance and sliding direction, and the first prompt information and the second prompt information are displayed according to the determined difference. If it is determined that the posture of the electronic device is a horizontal posture, the first touch gesture can be determined as the first pressing operation, the second touch gesture can be determined as the second pressing operation, and the relationship between the first pressing operation and the second pressing operation can be determined. The difference may be the pressing duration and the pressing position, and the first prompt information and the second prompt information are displayed according to the determined difference.
  • the touch gesture used to trigger the second screen display interface may include, in addition to the first touch gesture and the second touch gesture, a third touch gesture or more. Multiple touch gestures. Correspondingly, when there can be more touch gestures, there can also be more corresponding prompt information, and each touch gesture can have its own prompt information.
  • This embodiment provides a device control method, so that in the above manner, when the first screen is currently being used to display the first interface, if the user desires to use the second screen, the user can make changes to the second screen. Different touch operations are used to select whether to display the first interface previously displayed on the first screen on the second screen, or to choose to display other interfaces, thus improving the flexibility of switching between multiple screens. Moreover, in this embodiment, the corresponding target interface can be determined according to the gesture operation performed on the second screen, thereby improving the convenience of determining the target interface.
  • a device control method provided by an embodiment of the present application is applied to an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the method includes:
  • S310 The first screen displays the first interface.
  • the identification of the corresponding interface may be displayed in each control, so that the user can identify the interface corresponding to each control.
  • control 21 the control 21 , the control 22 , the control 23 , the control 24 and the control 25 are displayed on the screen 103 (the second screen).
  • the content identified in control 21 is "continue to display the first interface”
  • the content identified in control 22 is application interface A
  • the content identified in control 23 is application interface B
  • the content identified in control 24 is application interface C
  • the content identified in control 25 is application interface D.
  • the electronic device displays multiple controls on the second screen in response to the operation of enabling the second screen. It should be noted that in some cases, the user may accidentally trigger the operation of enabling the second screen. In this case, if multiple controls are displayed on the second screen after enabling the second screen, it may This further causes the second screen to be accidentally triggered to display the interface related to the control.
  • the method further includes: if there is a touch operation on the second screen within a specified time range after the multiple controls are displayed, respond to the touch operation on the second screen. Control operation, obtain the control acted on by the touch operation.
  • the screen is paused on the second screen, so that in this way.
  • the electronic device does not detect further touch operations on the second screen within a specified time range after the second screen displays multiple controls, the second screen is screen-disabled.
  • control 21 the electronic device will use the first interface corresponding to control 21 as the target interface. If the control selected by the user is control 22, the electronic device will use the application interface A corresponding to control 22 as the target interface. If the control selected by the user is control 25, the electronic device will use the application interface D corresponding to control 25 as the target interface.
  • the interfaces corresponding to other controls can be set in multiple ways.
  • the interface corresponding to the additional control can be pre-configured by the developer.
  • the user of the electronic device can manually configure it according to his own operating habits.
  • the electronic device may determine based on the usage frequency of the application program in the electronic device. In this way, the electronic device can sort the usage frequency of the applications, and then use the interface of the application with the highest usage frequency as the interface corresponding to the multiple controls.
  • the interface corresponding to the application program can be understood as the interface displayed by default after the application program is started.
  • This embodiment provides a device control method, so that in the above manner, when the first screen is currently being used to display the first interface, if the user desires to use the second screen, the user can make changes to the second screen. Different touch operations are used to select whether to display the first interface previously displayed on the first screen on the second screen, or to choose to display other interfaces, thus improving the flexibility of switching between multiple screens. Moreover, in this embodiment, multiple controls can be displayed on the second screen in response to the operation of enabling the second screen, and when the multiple controls each correspond to a different interface, different controls can be touched. Select the target interface to be displayed.
  • the electronic device after responding to the operation of enabling the second screen, can display the first prompt information and the second prompt information so that the user can trigger the third prompt information through different operating gestures.
  • the two screens display different interfaces. Multiple controls can also be displayed so that the user can touch different controls to trigger the second screen to display different interfaces.
  • the electronic device can determine whether to display prompt information or display multiple controls based on various situations.
  • the electronic device can determine whether to display prompt information or display multiple controls according to the user's configuration.
  • the electronic device can be provided with a setting interface.
  • the setting interface the user can configure whether to display prompt information or display multiple controls after triggering the second screen according to his or her own operating habits.
  • the electronic device can first read the pre-stored mode selected by the user. If the read mode is to display prompt information, the electronic device can according to the currently determined mode. Touch gesture implementation to display the first prompt information and the second prompt information. If the read method is to display multiple controls, multiple controls with corresponding interfaces will be displayed on the second screen.
  • the electronic device may determine whether to display prompt information or multiple controls based on the probability that the user continues to use the second screen to display the first interface after triggering the second screen. It should be noted that this method of triggering the second screen display interface through touch gestures will bring more convenience to the user. In this case, if the electronic device detects that the user continues to use the second screen to display the third If the probability of an interface is greater than the probability threshold, it can be determined that after triggering the second screen, the first prompt information and the second prompt information will be displayed according to the currently determined touch gesture implementation. If the electronic device detects that the user continues to use the second If the probability that the first interface is displayed on the screen is not greater than the probability threshold, multiple controls corresponding to the interface will be displayed on the second screen.
  • the electronic device may have multiple ways to determine the probability that the user continues to use the second screen to display the first interface.
  • the electronic device may determine the probability that the user continues to use the second screen to display the first interface according to the type of the first interface. For example, if the first interface belongs to the video or text interface, it can be determined that the probability that the user continues to use the second screen to display the first interface is greater than the probability threshold. If the first interface does not belong to the video or text interface, then it can be determined The probability that the user continues to use the second screen to display the first interface is not greater than the probability threshold.
  • a device control method provided by an embodiment of the present application is applied to an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the method includes:
  • S410 The first screen displays the first interface.
  • the first screen is controlled to be turned off.
  • the second screen after detecting an operation to enable the second screen, in response to a touch operation acting on the second screen, obtain an interface corresponding to the touch operation as the target interface, including: after detecting an operation to enable the second screen , if there is a touch operation on the screen within the specified length of time, in response to the touch operation on the second screen, obtain the interface corresponding to the touch operation as the target interface.
  • the electronic device further includes a foldable device body, and the first screen and the second screen are arranged on opposite sides of the device body, wherein the first screen can be folded following the device body.
  • the first screen is located inside the main body of the device.
  • the operation of enabling the second screen includes switching the main body of the device to a folded state.
  • the first screen displays the first interface, including: when the device body is in an unfolded state, the first screen displays the first interface; after detecting an operation to enable the second screen, responding to the second screen
  • For touch operations on the screen obtain the interface corresponding to the touch operation as the target interface, including: after switching the main body of the device to the folded state, in response to the touch operation acting on the second screen, obtain the interface corresponding to the touch operation as the target interface.
  • the case where the device body is in the unfolded state may be the case shown in FIG. 9
  • the first interface displayed on the screen 102 (first screen) is the content shown on the screen 102 in FIG. 9 .
  • the obtained target interface can be displayed on the screen 103 as shown in Figure 17 (second screen).
  • the electronic device further includes a foldable device body.
  • the first screen and the second screen are arranged on opposite sides of the device body.
  • the first screen can be folded following the device body.
  • the first screen is located on the outside of the main body of the device.
  • the first screen displays the first interface, including: when the device body is in a folded state, the first screen displays the first interface; after detecting an operation to enable the second screen, responding to the second For touch operations on the screen, obtain the interface corresponding to the touch operation as the target interface, including: after switching the device body to the unfolded state, in response to the touch operation acting on the second screen, obtain the interface corresponding to the touch operation as the target interface interface.
  • screen 103 shown in Figure 4 may be the first screen.
  • the target interface is the first interface displayed on the first screen in the state shown in Figure 4
  • the first interface may be displayed in the expanded state screen 102 (second screen) shown in FIG. 3 .
  • the device body when the device body is in a folded state, it may also be determined that there is a trigger to enable the second screen in response to the device body switching from the folded state to the half-expanded state shown in Figures 1 and 2 operation.
  • This embodiment provides a device control method, so that in the above manner, when the first screen is currently being used to display the first interface, if the user desires to use the second screen, the user can make changes to the second screen.
  • Different touch operations are used to select whether to display the first interface previously displayed on the first screen on the second screen, or to choose to display other interfaces, thus improving the flexibility of switching between multiple screens.
  • the touch operation on the second screen may be responded to only after an operation for enabling the second screen is detected, thereby avoiding misoperation on the second screen.
  • An embodiment of the present application provides a device control device 500 that runs on an electronic device.
  • the electronic device includes a first screen and a second screen.
  • the device 500 includes:
  • the display unit 510 is used to control the first screen to display the first interface.
  • the interface selection unit 520 is configured to respond to a touch operation on the second screen and obtain an interface corresponding to the touch operation as the target interface, where the interfaces corresponding to different touch operations are different, and at least one touch operation The corresponding interface is the first interface.
  • the display unit 510 is also used to display the target interface on the second screen.
  • the interface selection unit 520 is specifically configured to obtain the gesture type of the touch operation in response to the touch operation on the second screen; if the touch operation is the first touch gesture, obtain the first touch gesture.
  • the corresponding first interface is the target interface; if the touch operation is a second touch gesture, the second interface corresponding to the second touch gesture is obtained as the target interface, where the first touch gesture and the first touch gesture different.
  • the first touch gesture includes a first sliding operation
  • the second touch gesture includes a second sliding operation; wherein the sliding distances of the first sliding operation and the second sliding operation are different, or the first sliding operation and the second sliding operation have different sliding distances.
  • the sliding directions of the two sliding operations are different.
  • the interface selection unit 520 is also specifically configured to display the first prompt information and the second prompt information on the second screen in response to the operation of enabling the second screen, where the first prompt information is used to prompt the triggering of the first
  • the second prompt information is used to prompt the function of triggering the second touch gesture.
  • the interface selection unit 520 is also configured to display multiple controls on the second screen in response to the operation of enabling the second screen, and different controls correspond to different interfaces. In this manner, the interface selection unit 520 is specifically configured to respond to the touch operation on the second screen, obtain the control on which the touch operation operates, and use the interface corresponding to the control on which the touch operation operates as the target interface.
  • the interface selection unit 520 is specifically configured to acquire the touch operation in response to the touch operation on the second screen if there is a touch operation on the second screen within a specified time range after the multiple controls are displayed. The control being acted on; if there is no touch operation acting on the second screen within the specified time range after multiple controls are displayed, the second screen will be screen-disabled.
  • the interface selection unit 520 is specifically configured to, after detecting an operation to enable the second screen, respond to the touch operation on the second screen and acquire the interface corresponding to the touch operation as the target interface.
  • the interface selection unit 520 is specifically configured to, after detecting an operation to enable the second screen, if there is a touch operation on the screen within a specified length of time, in response to the touch operation on the second screen, obtain The interface corresponding to the touch operation is used as the target interface.
  • the electronic device further includes a foldable device body.
  • the first screen and the second screen are arranged on opposite sides of the device body.
  • the first screen can be folded following the device body.
  • the display unit 510 is specifically configured to display the first interface on the first screen when the device body is in the unfolded state.
  • the interface selection unit 520 is specifically configured to obtain the interface corresponding to the touch operation as the target interface in response to the touch operation on the second screen after switching the device body to the folded state.
  • the electronic device further includes a foldable device body.
  • the first screen and the second screen are arranged on opposite sides of the device body.
  • the first screen can be folded following the device body.
  • the display unit 510 is specifically configured to display the first interface on the first screen when the device body is in a folded state.
  • the interface selection unit 520 is specifically configured to obtain the interface corresponding to the touch operation as the target interface in response to the touch operation on the second screen after switching the device body to the unfolded state.
  • the display unit 510 is also configured to control the first screen to turn off after detecting an operation to enable the second screen.
  • the device 500 also includes:
  • the configuration unit 530 is configured to configure corresponding interfaces for different touch operations in response to the user's configuration operations.
  • This embodiment provides a device control device, so that when the first screen is currently being used to display the first interface, if the user wishes to use the second screen, the user can make a change to the second screen through the above device.
  • Different touch operations are used to select whether to display the first interface previously displayed on the first screen on the second screen, or to choose to display other interfaces, thus improving the flexibility of switching between multiple screens.
  • the electronic device 200 includes a foldable device body, one or more (only one is shown in the figure) processors 202 coupled to each other, a memory 204, a network module 206, a first screen 208, a second screen 210 and an image capture component.
  • the memory 204 stores programs that can execute the content in the foregoing embodiments, and the processor 202 can execute the programs stored in the memory 204 .
  • the processor 202 may include one or more cores for processing data.
  • the processor 202 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 204, and calling data stored in the memory 204.
  • the processor 202 can use at least one 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). implemented in hardware form.
  • the processor 202 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem etc.
  • the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 202 and may be implemented solely through a communication chip.
  • the memory 204 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 204 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the device control device may be stored in the memory 204 .
  • the equipment control device may be the aforementioned device 500.
  • the memory 204 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
  • the storage data area can also store data created during use of the electronic device 200 (such as phone book, audio and video data, chat record data), etc.
  • the network module 206 is used to receive and send electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby 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, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memories, etc. .
  • SIM Subscriber Identity Module
  • the network module 206 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.
  • the above-mentioned wireless network may include a cellular telephone network, a wireless local area network or a metropolitan area network.
  • the network module 206 can exchange information with the base station.
  • the first screen 208 and the second screen 210 may be used for interface display.
  • the first screen 208 and the second screen 210 are arranged on opposite sides of the device body.
  • the first screen 208 shown can be folded along with the device body. When the device body is in a folded state, the first screen 208 is located inside the device body.
  • the image collection component may include a first front camera 212 , a second front camera 214 and a rear camera 216 .
  • the first front camera 212 is disposed on the side of the first screen 208
  • the rear camera 216 is disposed on the side of the second screen 210
  • the rear camera 216 and the second screen 210 are disposed opposite to each other on the device. Both sides of the body's folded position.
  • the second front camera 214 is disposed on the second screen 210 .
  • Figure 21 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 the processor to execute the method described in the above method embodiment.
  • Computer-readable storage medium 1100 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1100 includes non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1100 has storage space for the program code 1110 that performs any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • Program code 1110 may, for example, be compressed in a suitable form.
  • this application provides a device control method, device, electronic device and readable storage medium, wherein the electronic device includes a first screen and a second screen, and when the first screen displays the first interface, In response to a touch operation acting on the second screen, an interface corresponding to the touch operation is obtained as the target interface, wherein the interfaces corresponding to different touch operations are different, and the interface corresponding to at least one touch operation is the the first interface, and then display the target interface in the second screen. Therefore, through the above method, when the first screen is currently used to display the first interface, if the user wishes to use the second screen, the user can select the second screen by performing different touch operations on the second screen. Whether the first interface previously displayed on the first screen is displayed on the screen, or other interfaces are selected to be displayed, thereby improving the flexibility of transferring between multiple screens.

Landscapes

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

Abstract

本申请实施例公开了一种设备控制方法、装置、电子设备以及可读存储介质。电子设备包括第一屏幕以及第二屏幕,方法包括:第一屏幕显示第一界面;响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为第一界面;在第二屏幕中显示目标界面。从而通过上述方式使得在第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出对应的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。

Description

设备控制方法、装置、电子设备以及可读存储介质
相关申请的交叉引用
本申请要求于2022年7月11日提交的申请号为202210814575.1的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及终端技术领域,更具体地,涉及一种设备控制方法、装置、电子设备以及可读存储介质。
背景技术
随着终端技术的发展,为获得更好的体验,电子设备所配置的屏幕越来越多。在电子设备配置有多个屏幕的情况下,有时会在多个屏幕之间进行流转,但是,相关的流转方式还较为缺乏灵活性。
发明内容
鉴于上述问题,本申请提出了一种设备控制方法、装置、电子设备以及可读存储介质,以改善上述问题。
第一方面,本申请提供了一种设备控制方法,应用于电子设备,所述电子设备包括第一屏幕以及第二屏幕,所述方法包括:所述第一屏幕显示第一界面;响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为所述第一界面;在所述第二屏幕中显示所述目标界面。
第二方面,本申请提供了一种设备控制装置,运行于电子设备,所述电子设备包括第一屏幕以及第二屏幕,所述装置包括:显示单元,用于控制第一屏幕显示第一界面;界面选择单元,用于响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为所述第一界面;所述显示单元,还用于在所述第二屏幕中显示所述目标界面。
第三方面,本申请提供了一种电子设备,所述电子设备包括第一屏幕以及第二屏幕;所述电子设备还包括处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述处理器执行上述方法。
第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行上述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例中的电子设备处于一种半展开状态的示意图;
图2示出了本申请实施例中的电子设备处于一种半展开状态的示意图;
图3示出了本申请实施例中的电子设备处于展开状态的示意图;
图4示出了本申请实施例中的电子设备处于折叠状态的示意图;
图5示出了本申请实施例提出的一种设备控制方法的流程图;
图6示出了本申请实施例中一种为触控操作配置对应界面的示意图;
图7示出了本申请实施例中另一种为触控操作配置对应界面的示意图;
图8示出了本申请另一实施例提出的一种设备控制方法的流程图;
图9示出了本申请实施例中一种第一屏幕显示第一界面的示意图;
图10示出了本申请实施例中第一滑动操作和第二滑动操作的一种区别的示意图;
图11示出了本申请实施例中第一滑动操作和第二滑动操作的另一种区别的示意图;
图12示出了本申请实施例中一种第一提示信息和第二提示信息的示意图;
图13示出了本申请实施例中另一种第一提示信息和第二提示信息的示意图;
图14示出了本申请再一实施例提出的一种设备控制方法的流程图;
图15示出了本申请实施例中在第二屏幕显示多个控件的示意图;
图16示出了本申请又一实施例提出的一种设备控制方法的流程图;
图17示出了本申请实施例中在第二屏幕显示第一界面的示意图;
图18示出了本申请实施例提出的一种设备控制装置的结构框图;
图19示出了本申请另一实施例提出的一种设备控制装置的结构框图;
图20示出了本申请的用于执行根据本申请实施例的设备控制方法的电子设备的结构框图;
图21是本申请实施例的用于保存或者携带实现根据本申请实施例的设备控制方法的程序代码的存储单元。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
随着电子设备的用户对视觉体验需求越来越高,更多的电子设备会配置尺寸较大的屏幕。但是对于尺寸较大的屏幕则会对应存在携带不便的问题,因此,有的电子设备会设置多个屏幕来实现增大显示区域。在电子设备配置有多个屏幕的情况下,有时会在多个屏幕之间进行流转。其中,在屏幕之间进行流转可以理解为将所使用的屏幕由一个屏幕转换到另一个屏幕。
但是,发明人对相关的具有多个屏幕的电子设备进行研究中发现,相关的流转方式还较为缺乏灵活性。
因此,为了改善上述问题,发明人提出了一种设备控制方法、装置、电子设备以及可读存储介质。其中,电子设备包括第一屏幕和第二屏幕,在第一屏幕显示第一界面的情况下,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为所述第一界面,然后在所述第二屏幕中显示所述目标界面。从而通过上述方式使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。
下面先通过附图对本申请实施例提供的设备控制方法所应用的一种场景进行说明。
其中,如图1和图2所示,本申请实施例涉及的一种电子设备包括可折叠的设备主体101、图像采集组件、屏幕102以及屏幕103。屏幕102和屏幕103相背设置于设备主体101的两侧,其中,屏幕102可跟随所述设备主体101进行折叠。
图像采集组件包括第一前置摄像头104、第二前置摄像头105和后置摄像头106。第一前置摄像头104设置于所述第一屏幕101所在侧,第二前置摄像头105设置于所述第二屏幕103处。后置摄像头106设置于第二屏幕103所在侧,且后置摄像头106和第二屏幕103相对设置在设备主体101的折叠位置(图1和图2中虚线所标识的位置)的两边。再者,本申请实施例中的电子设备的设备主体101的折叠姿态可以有三种情况。例如,设备主体可以包括有展开状态、折叠状态以及半展开状态。其中,展开状态可以如图3所示,折叠状态可以如图4所示,半展开状态可以如图1和图2所示。其中,设备主体处于半展开状态下的展开角度小于展开状态下的展开角度。再者,本申请实施例所涉及的电子设备,除了可以为图1到图4所示的所包括的折叠屏幕的折叠方式为内折叠的电子设备外,还可以为所包括的折叠屏幕的折叠方式为外折叠的电子设备。
需要说明的是,在本申请实施例中,第一屏幕可以为屏幕102,第二屏幕可以为屏幕103。再者,第一屏幕也可以为屏幕103,第二屏幕也可以为屏幕102。另外,本申请实施例中的第一屏幕和第二屏幕不限于图1-3中所示的样式,例如,第一屏幕和第二屏幕也可以为位于电子设备的同一面。
其中,在本申请实施例中,第一屏幕和第二屏幕的显示特性以及尺寸可以相同,也可以不同。其中,显示特性包括屏幕刷新频率以及分辨率等。
当然,本申请实施例提供的设备控制方法所应用的电子设备不局限于可折叠设备,也可以应用于其他有多块屏幕的设备,如正面设置主屏,背面设置副屏的电子设备等。
下面将结合附图具体描述本申请的各实施例。
请参阅图5,本申请实施例提供的一种设备控制方法,应用于电子设备,所述电子设备包括第一屏幕以及第二屏幕,所述方法包括:
S110:第一屏幕显示第一界面。
其中,第一屏幕中所显示的第一界面可以为用户在第一屏幕中进行操作而触发显示的界面。例如,在第一屏幕中显示桌面,且桌面中有多个应用程序的图标的情况下,若检测到有作用于第一屏幕的触控操作,则可以将触控操作所作用的图标对应的应用程序作为目标应用程序,进而触发目标应用程序启动,并将目标应用程序启动后所展示的界面作为第一界面。再例如,在第一屏幕显示应用程序的当前界面的情况下,用户通过作用于当前界面中的界面切换操作,而触发应用程序进行界面切换,进而可以将切换后所显示的界面作为第一界面。另外,第一屏幕中所显示的第一界面可以为电子设备响应于预设事件而所显示的界面。例如,该预设事件可以为启动事件,在这种情况下,可以将电子设备启动后,在第一屏幕中所显示的界面作为第一界面。再例如,该预设时间可以为时间事件,在这种情况下,可以将电子设备满足预设的时间事件而显示的界面作为第一界面。
S120:响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为第一界面。
其中,触控操作对应的界面可以理解为在该执行该触控操作的情况下所要触发显示的界面。那么作用于第二屏幕的触控操作为用于触发第二屏幕进行界面显示的触控操作。
并且,在本申请实施例中,用于触发第二屏幕进行界面显示的触控操作的种类可以有多种,且每种触控操作所对应的界面会有不同。其中,触控操作所对应的界面可以理解为在触控操作作用于第二屏幕的情况下,触发第二屏幕所显示的界面。
在本申请实施例中,可以作用于第二屏幕以触发第二屏幕进行界面显示的触控操作可以为指定的滑动操作或者指定的按压操作,还可以为对指定目标物进行点击的操作,该指定目标物可以为指定的控件。
其中,在触控操作的种类有多种的情况下,每种触控操作所对应的界面可以由开发人员预先配置,也可以由电子设备的用户根据自己的使用习惯进行配置。在这种方式下,可以响应于用户的配置操作,为不同的触控操作配置对应的界面。可选的,在电子设备中可以设置有触控操作设置界面,在该触控操作设置界面中,用户可以先确定所要配置的触控操作,然后再选取对应的界面作为该所要配置的触控操作对应的界面。
其中,作为一种方式,在该触控操作设置界面中可以显示待选择的触控操作,然后用户可以通过从待选择的触控操作中选中触控操作作为确定的要配置的触控操作。示例性的,如图6所示,在图6所示的界面中包括界面区域10和界面区域11,其中,界面区域10中显示有待选择的触控操作(例如,触控操作A、触控操作B、触控操作C以及触控操作D),在界面区域10中显示有可选择的界面。例如,其中触控操作A当前被确定为要配置的触控操作,在通过界面区域11中选择对应的界面为“第一界面”,其中,第一界面为第一屏幕所显示的界面。在用户点击界面区域11中名称为确定的控件后,则可以将第一界面与触控操作A建立对应关系,以将第一界面配置为触控操作A对应的界面。
作为另外一种方式,用户可以在触控操作设置界面通过演示的方式确定所要配置的触控操作,然后再为确定的触控操作配置对应的界面。其中,通过演示的方式确定所要配置的触控操作可以理解为直接在触控操作设置界面中触发一次所要配置的触控操作。从而通过这种方式使得可以确定对应界面的触控操作的种类可以更为丰富,也可以更加符合用户自己的操作习惯。示例性的,如图7所示,在图7所示的内容中,在界面区域12中显示有触控操作触发区域121,在该触控操作触发区域121中用户可以触发所需确定对应的触控操作。并且,在该触控操作触发区域121中触发所需确定对应的触控操作后,则可以在界面区域13中选择对应的界面。
其中,电子设备中所配置的可以触发第二屏幕进行界面显示的触控操作可以包括触控操作A、触控操作B、触控操作C以及触控操作D,其中,触控操作A对应的界面为第一界面,触控操作B对应的界面为第二界面,触控操作C对应的界面为第三界面,触控操作D对应的界面为第四界面。在这种情况下,若确定作用于第二屏幕的触控操作为触控操作B,则可以将触控操作B对应的第二界面作为目标界面。
S130:在第二屏幕中显示目标界面。
其中,作为一种方式,在获取作用于第二屏幕触控操作时,第二屏幕可以处于息屏状态,也可以处于亮屏状态。在有作用第二屏幕触控操作,且第二屏幕处于息屏状态的情况下,则可以在响应于作用于第二屏幕的触控操作后,点亮第二屏幕,并在第二屏幕中显示目标界面。在有作用第二屏幕触控操作,且第二屏幕处于亮屏状态的情况下,则可以在响应于作用于第二屏幕的触控操作后,将第二屏幕所显示的界面切换为目标界面。
本实施例提供的一种设备控制方法,其中,电子设备包括第一屏幕和第二屏幕,在第一屏幕显示第一界面的情况下,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为第一界面,然后在第二屏幕中显示目标界面。从而通过上述方式使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。
请参阅图8,本申请实施例提供的一种设备控制方法,应用于电子设备,电子设备包括第一屏幕以及第二屏幕,方法包括:
S210:第一屏幕显示第一界面。
S220:响应作用于第二屏幕的触控操作,获取触控操作的手势类型。
在本实施例中,用于触发第二屏幕进行界面显示的触控操作属于手势操作。
S230:若触控操作为第一触控手势,则获取第一触控手势作对应的第一界面为目标界面。
S240:若触控操作为第二触控手势,则获取第二触控手势对应的第二界面为目标界面,其中,第一触控手势与第一触控手势不同。
S250:在第二屏幕中显示目标界面。
其中,第一触控手势和第二触控手势的具体实施方式可以有多种。
作为一种方式,第一触控手势包括第一滑动操作,第二触控手势包括第二滑动操作,其中,第一滑动操作和第二滑动操作的滑动距离不同,或者,第一滑动操作和第二滑动操作的滑动方向不同。在这种方式下,用户可以通过在第二屏幕中进行滑动来触发第一滑动操作或者第二滑动操作,进而使得可以根据滑动操作的不同(方向不同或者距离不同)来控制第二屏幕显示不同的界面。以第一滑动操作和第二滑动操作为滑动距离不同为例,如图9和图10所示,图9中屏幕102(第一屏幕)所显示的界面为第一界面,在图10中,若用户从图中手指所示的位置滑动到屏幕103(第二屏幕)的滑动位置1,则确定触发第一滑动操作,在第一滑动操作对应的界面为第一界面的情况下,则会将图9所示的第一界面作为目标界面以在第二屏幕中进行显示。若用户从图中手指所示的位置滑动到滑动位置2,则确定触发第二滑动操作,在第二滑动操作对应的界面为第二界面的情况下,则会将第二界面作为目标界面在第二屏幕中进行显示。
再以第一滑动操作和第二滑动操作为滑动方向不同为例。如图11所示,如图10所示,电子设备支持从屏幕103(第二屏幕)的第一方向和第二方向触发滑动操作。其中,触发第一方向的滑动操作可以会被确定为第一滑动操作,并在第一滑动操作对应的界面为第一界面的情况下,则会将图9所示的第一界面作为目标界面以在第二屏幕中进行显示。触发第二方向的滑动操作可以会被确定为第二滑动操作,在第二滑动操作对应的界面为第二界面的情况下,则会将第二界面作为目标界面在第二屏幕中进行显示。
需要说明的是,如前述介绍内容可知,第一触控手势和第二触控手势可以有多种实施方式的情况下,电子设备也可以对应支持多种实施方式的第一触控手势和第二触控手势。在一些情况下,电子设备当前仅支持从多种实时方式中选中的一种实施方式来触发第二屏幕显示不同的界面的情况下,为了便于用户及时了解电子设备当前所支持的一种实施方式。作为一种方式,电子设备在响应作用于第二屏幕的触控操作,获取触控操作的手势类型之前还可以在第二屏幕中显示第一提示信息和/或第二提示信息,其中,第一提示信息用于提示触发第一触控手势的作用,第二提示信息用于提示触发第二触控手势的作用。其中,第一提示信息和第二提示信息的内容可以与第一触控手势和第二触控手势的区别点对应。
可选的,在第一触控手势为第一滑动操作,第二触控手势为第二滑动操作,且第一滑动操作和第二滑动操作的区别点在于滑动距离的情况下,第一提示信息的内容则可以为滑动t1距离以触发显示第一界面(即第一屏幕中显示的第一界面),第二提示信息的内容则可以为滑动t2距离以触发显示第二界面。其中,t2大于t1。可选的,在第一滑动操作和第二滑动操作的区别点在于滑动距离的情况下,还可以将第一提示信息显示在第一滑动操作的滑动终点,以及将第二提示信息显示在第二滑动操作的滑动终点,在这种情况下,第一提示信息的内容可以为滑动到此处显示第一界面,对应的,第二提示信息的内容可以为滑动到此处显示第二界面。示例性的,如图12所示,在屏幕103(第二屏幕)中显示有第一提示信息和第二提示信息,从而使得用户可以根据提示信息来确定要滑动到的位置。
可选的,在第一触控手势为第一滑动操作,第二触控手势为第二滑动操作,且第一滑动操作和第二滑动操作的区别点在于滑动方向的情况下,第一提示信息的内容可以为朝向第一方向滑动以触发显示第一界面,第二提示信息的内容可以为朝向第二方向滑动以触发显示第二界面,其中,第二方向与第一方向不同。
可选的,在第一触控手势为第一按压操作,第二触控手势为第二按压操作,且第一按压操作和第二按压操作的区别点在于按压时长的情况下。第一提示信息的内容可以为按压保持t1秒以触发显示第一界面,第二提示信息的内容可以按压保持t2秒以触发显示第二界面。其中,t1可以小于t2。再者,对于第一按压操作和第二按压操作的区别点还可以为按压的位置。在这种情况下,第一提示信息的内容可以为按压此处以触发显示第一界面,第二提示信息的内容可以为按压此处(与第一提示信息中的此处为不同的位置)以触发显示第一界面。示例性的,如图13所示,屏幕103(第二屏幕)的显示区域可以划分为显示区域1031以及显示区域1032。其中,显示区域1031中可以显示有第一提示信息,在第二显示区域1032中可以显示有第二提示信息。
再者,电子设备可以在响应作用于第二屏幕的触控操作,获取触控操作的手势类型之前响应于启用第二屏幕的操作,而触发在第二屏幕中显示第一提示信息和第二提示信息。需要说明的是,在第一屏幕显示第一界面的情况下,可以表明用户当前正在使用第一屏幕。若用户当前期望转为使用第二屏幕,则可以先触发启用第二屏幕的操作,然后再触发在第二屏幕中显示第一提示信息和第二提示信息。其中,启用第二屏幕可以理解为将原本处于息屏状态的第二屏幕点亮,在这种情况下,启动第二屏幕的操作可以包括点亮第二屏幕的操作。再者,启用第二屏幕也可以理解为将原本用于显示其他界面的第二屏幕用于显示用户当前所期望显示的界面。在这种情况下,启动第二屏幕的操作可以包括将第二屏幕朝向用户。
如前述内容所示,在本实施例中对于第一触控手势和第二触控手势而言,各自均有多种实施方式。在这种情况下,作为一种方式,可以由用户自己手动选择具体采用哪种实施方式,并可以结合第一提示信息和第二提示信息来提示用户当前所选择的第一触控手势和第二触控手势的实施方式。作为另外一种方式,可以由电子设备根据当前的实际情况来灵活的选择第一触控手势和第二触控手势的实施方式。
可选的,电子设备可以根据电子设备当前的姿态来选择第一触控手势和第二触控手势的实施方式。需要说明的是,在电子设备处于不同的姿态的情况下,用户所便于使用的触控手势会有所不同。例如,当电子设备处于竖直姿态的情况下,若对屏幕施加按压操作,则可能会使得电子设备失去平衡而倒下。其中,竖直姿态可以理解为电子设备的底部在重力方向上在电子设备顶部的下方。再例如,在电子设备处于水平姿态的情况下,滑动操作和按压操作都比较便于使用。其中,电子设备处于水平姿态可以理解为电子设备的顶部和电子设备的底部处于同一水平面。
在这种方式下,电子设备可以获取自身的姿态,若确定电子设备的姿态为竖直姿态,则可以将第一触控手势确定为第一滑动操作,将第二触控手势确定为第二滑动操作,且确定第一滑动操作和第二滑动操作的区别可以为滑动距离以及滑动方向,并根据所确定的区别来显示第一提示信息和第二提示信息。若确定电子设备的姿态为水平姿态,则可以将第一触控手势确定为第一按压操作,将第二触控手势确定为第二按压操作,且确定第一按压操作和第二按压操作的区别可以为按压时长以及按压位置,并根据所确定的区别来显示第一提示信息和第二提示信息。
需要说明的是,在本申请实施例中,用于触发第二屏幕显示界面的触控手势除了可以包括第一触控手势和第二触控手势外,还可以包括第三触控手势或者更多的触控手势。对应的,在触控手势可以有更多的情况下,对应的提示信息也可以有更多,且每种触控手势可以对应有各自的提示信息。
本实施例提供的一种设备控制方法,从而通过上述方式使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。并且,在本实施例中,可以根据作用于第二屏幕的手势操作来确定对应的目标界面,从而提升了确定目标界面的便利性。
请参阅图14,本申请实施例提供的一种设备控制方法,应用于电子设备,电子设备包括第一屏幕以及第二屏幕,方法包括:
S310:第一屏幕显示第一界面。
S320:响应于启用第二屏幕的操作,在第二屏幕显示多个控件,且不同的控件所对应的界面不同。
在第二屏幕中显示有多个控件的情况下,在每个控件中可以显示有所对应界面的标识,从而使得用户可以识别每个控件所对应的界面。
S330:响应作用于第二屏幕的触控操作,获取触控操作所作用的控件。
示例性的,如图15所示,在屏幕103(第二屏幕)中显示有控件21、控件22、控件23、控件24以及控件25。其中,控件21中标识的内容为“继续显示第一界面”,控件22中标识的内容为应用界面A,控件23中标识的内容为应用界面B,控件24中标识的内容为应用界面C以及控件25中标识的内容为应用界面D。
在本实施例中,电子设备是会响应于启用第二屏幕的操作而在第二屏幕中显示多个控件。需要说明的是,在一些情况下,用户可能是误触发的启用第二屏幕的操作,在这种情况下,若在启用第二屏幕后一直在第二屏幕中显示多个控件,则可能会进一步的造成误触发第二屏幕进行与控件有关的界面显示。作为一种改善方式,在第二屏幕显示多个控件之后,还包括:若在显示多个控件后的指定时间范围内有作用于第二屏幕的触控操作,响应作用于第二屏幕的触控操作,获取触控操作所作用的控件,若在显示多个控件后的指定时间范围内未有作用于第二屏幕的触控操作,对第二屏幕进行息屏处理,从而通过这种方式使得,电子设备在第二屏幕显示多个控件后的指定时间范围内,没有进一步的检测到作用于第二屏幕的触控操作的情况下,则对第二屏幕进行息屏处理。
S340:将触控操作所作用的控件对应的界面作为目标界面。
请再参阅图15,若用户所选择的控件为控件21,那么电子设备则会将控件21所对应的第一界面作为目标界面。若用户所选择的控件为控件22,那么电子设备则会将控件22所对应的应用界面A作为目标界面。若用户所选择的控件为控件25,那么电子设备则会将控件25所对应的应用界面D作为目标界面。
S350:在第二屏幕中显示目标界面。
需要说明的是,对于第二屏幕中所显示的多个控件中,除了有一个控件所对应的界面为第一界面的情况下,另外的控件所对应的界面可以有多种设置方式。作为一种方式,该另外的控件对应的界面可以由开发人员预先配置。作为另外一种方式,可以由电子设备的用户根据自己的操作习惯进行手动配置。作为再一种方式,可以由电子设备根据电子设备中的应用程序的使用频率来确定。在这种方式中,电子设备可以对应用程序的使用频率进行排序,然后将使用频率排序靠前的应用程序的界面作为该多个控件所对应的界面。其中,应用程序对应的界面可以理解为应用程序在启动之后所默认显示的界面。
本实施例提供的一种设备控制方法,从而通过上述方式使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。并且,在本实施例中,可以响应于启用第二屏幕的操作,在第二屏幕显示多个控件,并且,在多个控件各自对应不同的界面的情况下,可以通过触控不同的控件来选择所需显示的目标界面。
需要说明的是,通过前述内容可知,在本申请中电子设备在响应于启用第二屏幕的操作后,可以显示第一提示信息和第二提示信息来使得用户可以通过不同的操作手势来触发第二屏幕显示不同的界面。也可以通过显示多个控件来使得用户可以触控不同的控件来触发第二屏幕显示不同的界面。在这种情况下,电子设备可以根据多种情况来确定是显示提示信息还是显示多个控件。
作为一种方式,电子设备可以根据用户的配置来确定是显示提示信息还是显示多个控件。在这种方式中,电子设备中可以设置有设置界面,在该设置界面中,用户可以根据自己的操作习惯来配置在触发启用第二屏幕后,是显示提示信息还是显示多个控件。对应的,电子设备在检测到启用第二屏幕的操作后,可以先读取预先存储的由用户所选中的方式,若所读取到的方式为显示提示信息,则电子设备可以根据当前所确定的触控手势实施方式来显示第一提示信息和第二提示信息。若所读取到的方式为显示多个控件,则会在第二屏幕中显示均对应有界面的多个控件。
作为另外一种方式,电子设备可以根据用户在触发启用第二屏幕后,继续使用第二屏幕显示第一界面的概率来确定是显示提示信息还是显示多个控件。需要说明的是,通过触控手势来触发第二屏幕显示界面的这种方式会给用户带来更多的便利性,在这种情况下,若电子设备检测到用户继续使用第二屏幕显示第一界面的概率大于概率阈值,则可以确定在触发启用第二屏幕后根据当前所确定的触控手势实施方式来显示第一提示信息和第二提示信息,若电子设备检测到用户继续使用第二屏幕显示第一界面的概率不大于概率阈值,则会在第二屏幕中显示均对应有界面的多个控件。
在这种方式中,电子设备可以有多种方式来确定用户继续使用第二屏幕显示第一界面的概率。可选的,电子设备可以根据第一界面所属的类型来确定用户继续使用第二屏幕来显示第一界面的概率。例如,若第一界面属于视频类或者文本类的界面,则可以确定用户继续使用第二屏幕显示第一界面的概率大于概率阈值,若第一界面不属于视频类以及文本类的界面,则确定用户继续使用第二屏幕显示第一界面的概率不大于概率阈值。
请参阅图16,本申请实施例提供的一种设备控制方法,应用于电子设备,电子设备包括第一屏幕以及第二屏幕,方法包括:
S410:第一屏幕显示第一界面。
S420:在检测到启用第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为第一界面。
S430:在第二屏幕中显示目标界面。
作为一种方式,在检测到启用第二屏幕的操作后,控制第一屏幕息屏。
可选的,在检测到启用第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,包括:在检测到启用第二屏幕的操作后,若在指定时间长度内有作用于屏幕的触控操作,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。
其中,作为一种方式,电子设备还包括可折叠的设备主体,第一屏幕和第二屏幕相背设置于设备主体的两侧,其中,所示第一屏幕可跟随设备主体进行折叠,当设备主体处于折叠状态时,第一屏幕位于设备主体的内侧。其中,启用第二屏幕的操作包括将设备主体切换处于折叠状态。在这种方式下,第一屏幕显示第一界面,包括:在设备主体处于展开状态的情况下,第一屏幕显示第一界面;在检测到启用第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,包括:将设备主体切换处于折叠状态后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。示例性的,设备主体处于展开状态的情况下可为图9所示的情况下,且在屏幕102(第一屏幕)中所显示的第一界面为图9中屏幕102所示的内容。在将设备主体切换处于如图4所示折叠状态后,若获取的目标界面为图9中所示的界面,则可以将所获取的目标界面如图17所示的显示在屏幕103(第二屏幕)中。
作为另外一种方式,电子设备还包括可折叠的设备主体,第一屏幕和第二屏幕相背设置于设备主体的两侧,其中,所示第一屏幕可跟随设备主体进行折叠,当设备主体处于折叠状态时,第一屏幕位于设备主体的外侧。在这种方式下,第一屏幕显示第一界面,包括:在设备主体处于折叠状态的情况下,第一屏幕显示第一界面;在检测到启用第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,包括:将设备主体切换处于展开状态后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。在这种方式中,图4中所示的屏幕103可以为第一屏幕。在这种情况下,在设备主体由图4中所示的状态切换为图3中所示的展开状态后,在确定目标界面为图4所示状态中第一屏幕所显示第一界面的情况下,可以在图3中所示的展开状态的屏幕102(第二屏幕)中显示该第一界面。
另外,在本申请实施例中,在设备主体处于折叠状态的情况下,也可以响应于设备主体由折叠状态切换为图1和图2中所示的半展开状态而确定有触发启用第二屏幕的操作。
本实施例提供的一种设备控制方法,从而通过上述方式使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。并且,在本实施例中,可以是在检测到启用第二屏幕的操作后,才会对作用于第二屏幕的触控操作进行响应,进而避免饿了对第二屏幕的误操作。
请参阅图18,本申请实施例提供的一种设备控制装置500,运行于电子设备,电子设备包括第一屏幕以及第二屏幕,装置500包括:
显示单元510,用于控制第一屏幕显示第一界面。
界面选择单元520,用于响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为第一界面。
显示单元510,还用于在第二屏幕中显示目标界面。
作为一种方式,界面选择单元520,具体用于响应作用于第二屏幕的触控操作,获取触控操作的手势类型;若触控操作为第一触控手势,则获取第一触控手势作对应的第一界面为目标界面;若触控操作为第二触控手势,则获取第二触控手势对应的第二界面为目标界面,其中,第一触控手势与第一触控手势不同。
可选的,第一触控手势包括第一滑动操作,第二触控手势包括第二滑动操作;其中,第一滑动操作和第二滑动操作的滑动距离不同,或者,第一滑动操作和第二滑动操作的滑动方向不同。
可选的,界面选择单元520,还具体用于响应于启用第二屏幕的操作,在第二屏幕中显示第一提示信息和第二提示信息,其中,第一提示信息用于提示触发第一触控手势的作用,第二提示信息用于提示触发第二触控手势的作用。
作为一种方式,界面选择单元520,还用于响应于启用第二屏幕的操作,在第二屏幕显示多个控件,且不同的控件所对应的界面不同。在这种方式下,界面选择单元520,具体用于响应作用于第二屏幕的触控操作,获取触控操作所作用的控件;将触控操作所作用的控件对应的界面作为目标界面。
可选的,界面选择单元520,具体用于若在显示多个控件后的指定时间范围内有作用于第二屏幕的触控操作,响应作用于第二屏幕的触控操作,获取触控操作所作用的控件;若在显示多个控件后的指定时间范围内未有作用于第二屏幕的触控操作,对第二屏幕进行息屏处理。
作为一种方式,界面选择单元520,具体用于在检测到启用第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。可选的,界面选择单元520,具体用于在检测到启用第二屏幕的操作后,若在指定时间长度内有作用于屏幕的触控操作,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。
可选的,电子设备还包括可折叠的设备主体,第一屏幕和第二屏幕相背设置于设备主体的两侧,其中,所示第一屏幕可跟随设备主体进行折叠,当设备主体处于折叠状态时,第一屏幕位于设备主体的内侧。在这种情况下,显示单元510,具体用于在设备主体处于展开状态的情况下,第一屏幕显示第一界面。对应的,界面选择单元520,具体用于将设备主体切换处于折叠状态后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。
可选的,电子设备还包括可折叠的设备主体,第一屏幕和第二屏幕相背设置于设备主体的两侧,其中,所示第一屏幕可跟随设备主体进行折叠,当设备主体处于折叠状态时,第一屏幕位于设备主体的外侧。在这种情况下,显示单元510,具体用于在设备主体处于折叠状态的情况下,第一屏幕显示第一界面。对应的,,界面选择单元520,具体用于将设备主体切换处于展开状态后,响应作用于第二屏幕的触控操作,获取与触控操作对应的界面作为目标界面。
可选的,显示单元510,还用于在检测到启用第二屏幕的操作后,控制第一屏幕息屏。
如图19所示,装置500还包括:
配置单元530,用于响应于用户的配置操作,为不同的触控操作配置对应的界面。
本实施例提供的一种设备控制装置,从而通过上述装置使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。
需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中具体的原理可以参见前述方法实施例中的内容,此处不再赘述。
下面将结合图20对本申请提供的一种电子设备进行说明。
请参阅图20,基于上述的设备控制方法、装置,本申请实施例还提供的另一种可以执行前述设备控制方法的电子设备200。电子设备200包括可折叠的设备主体、相互耦合的一个或多个(图中仅示出一个)处理器202、存储器204、网络模块206、第一屏幕208、第二屏幕210以及图像采集组件。其中,该存储器204中存储有可以执行前述实施例中内容的程序,而处理器202可以执行该存储器204中存储的程序。
其中,处理器202可以包括一个或者多个用于处理数据的核。处理器202利用各种接口和线路连接整个电子设备200内的各个部分,通过运行或执行存储在存储器204内的指令、程序、代码集或指令集,以及调用存储在存储器204内的数据,执行电子设备200的各种功能和处理数据。可选地,处理器202可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器202可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器202中,单独通过一块通信芯片进行实现。
存储器204可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器204可用于存储指令、程序、代码、代码集或指令集。例如,存储器204中可以存储有设备控制装置。该设备控制装置可以为前述的装置500。存储器204可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备200在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
所述网络模块206用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述网络模块206可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块206可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。例如,网络模块206可以与基站进行信息交互。
该第一屏幕208以及第二屏幕210可以用于进行界面显示。所述第一屏幕208和第二屏幕210相背设置于所述设备主体的两侧。所示第一屏幕208可跟随所述设备主体进行折叠,当所述设备主体处于折叠状态时,所述第一屏幕208位于所述设备主体的内侧。
图像采集组件可以包括有第一前置摄像头212、第二前置摄像头214以及后置摄像头216。第一前置摄像头212设置于所述第一屏幕208所在侧,后置摄像头216设置于所述第二屏幕210所在侧,且所述后置摄像头216和所述第二屏幕210相对设置在设备主体的折叠位置的两边。所述第二前置摄像头214设置于所述第二屏幕210处。
请参考图21,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1100中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质1100可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1100包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1100具有执行上述方法中的任何方法步骤的程序代码1110的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1110可以例如以适当形式进行压缩。
综上所述,本申请提供的一种设备控制方法、装置、电子设备以及可读存储介质,其中,电子设备包括第一屏幕和第二屏幕,在第一屏幕显示第一界面的情况下,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为所述第一界面,然后在所述第二屏幕中显示所述目标界面。从而通过上述方式使得在当前正在使用第一屏幕显示第一界面的情况下,若用户又期望使用第二屏幕,则用户可以通过对第二屏幕做出不同的触控操作来选择是在第二屏幕中显示之前显示在第一屏幕中的第一界面,还是选择显示其他的界面,从而提升了在多个屏幕之间进行流转的灵活性。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种设备控制方法,其特征在于,应用于电子设备,所述电子设备包括第一屏幕以及第二屏幕,所述方法包括:
    所述第一屏幕显示第一界面;
    响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为所述第一界面;
    在所述第二屏幕中显示所述目标界面。
  2. 根据权利要求1所述的方法,其特征在于,所述响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面包括:
    响应作用于第二屏幕的触控操作,获取所述触控操作的手势类型;
    若所述触控操作为第一触控手势,则获取所述第一触控手势作对应的所述第一界面为目标界面;
    若所述触控操作为第二触控手势,则获取所述第二触控手势对应的第二界面为目标界面,其中,所述第一触控手势与所述第一触控手势不同。
  3. 根据权利要求2所述的方法,其特征在于,所述第一触控手势包括第一滑动操作,所述第二触控手势包括第二滑动操作;
    其中,所述第一滑动操作和所述第二滑动操作的滑动距离不同,或者,所述第一滑动操作和所述第二滑动操作的滑动方向不同。
  4. 根据权利要求2所述的方法,其特征在于,所述响应作用于第二屏幕的触控操作,获取所述触控操作的手势类型之前还包括:
    响应于启用所述第二屏幕的操作,在所述第二屏幕中显示第一提示信息和/或第二提示信息,其中,所述第一提示信息用于提示触发所述第一触控手势的作用,所述第二提示信息用于提示触发所述第二触控手势的作用。
  5. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若所述电子设备的姿态为竖直姿态,则所述第一触控手势包括第一滑动操作,所述第二触控手势包括第二滑动操作。
  6. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若所述电子设备的姿态为水平姿态,则所述第一触控手势包括第一按压操作,所述第二触控手势包括第二按压操作。
  7. 根据权利要求1所述的方法,其特征在于,所述作用于第二屏幕的触控操作包括指定的滑动操作或者指定的按压操作。
  8. 根据权利要求1所述的方法,其特征在于,所述响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面之前还包括:
    响应于启用所述第二屏幕的操作,在所述第二屏幕显示多个控件,且不同的控件所对应的界面不同;
    所述响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,包括:
    响应作用于第二屏幕的触控操作,获取所述触控操作所作用的控件;
    将所述触控操作所作用的控件对应的界面作为目标界面。
  9. 根据权利要求8所述的方法,其特征在于,所述在所述第二屏幕显示多个控件之后,还包括:
    若在显示所述多个控件后的指定时间范围内有作用于第二屏幕的触控操作,响应作用于第二屏幕的触控操作,获取所述触控操作所作用的控件;
    若在显示所述多个控件后的指定时间范围内未有作用于第二屏幕的触控操作,对第二屏幕进行息屏处理。
  10. 根据权利要求8所述的方法,其特征在于,在所述第二屏幕显示多个控件中,有一个控件所对应的界面为所述第一界面,其余控件所对应的界面由所述电子设备的用户手动配置。
  11. 根据权利要求8所述的方法,其特征在于,在所述第二屏幕显示多个控件中,有一个控件所对应的界面为所述第一界面,其余控件所对应的界面由所述电子设备中的应用程序的使用频率确定。
  12. 根据权利要求1所述的方法,其特征在于,所述响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,包括:
    在检测到启用所述第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面。
  13. 根据权利要求12所述的方法,其特征在于,所述在检测到启用所述第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,包括:
    在检测到启用所述第二屏幕的操作后,若在指定时间长度内有作用于屏幕的触控操作,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面。
  14. 根据权利要求12所述的方法,其特征在于,所述电子设备还包括可折叠的设备主体,所述第一屏幕和第二屏幕相背设置于所述设备主体的两侧,其中,所示第一屏幕可跟随所述设备主体进行折叠,当所述设备主体处于折叠状态时,所述第一屏幕位于所述设备主体的内侧;
    所述第一屏幕显示第一界面,包括:在所述设备主体处于展开状态的情况下,所述第一屏幕显示第一界面;
    其中,所述启用所述第二屏幕的操作包括将所述设备主体切换处于所述折叠状态。
  15. 根据权利要求12所述的方法,其特征在于,所述电子设备还包括可折叠的设备主体,所述第一屏幕和第二屏幕相背设置于所述设备主体的两侧,其中,所示第一屏幕可跟随所述设备主体进行折叠,当所述设备主体处于折叠状态时,所述第一屏幕位于所述设备主体的外侧;
    所述第一屏幕显示第一界面,包括:在所述设备主体处于折叠状态的情况下,所述第一屏幕显示第一界面;
    所述在检测到启用所述第二屏幕的操作后,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,包括:
    将所述设备主体切换处于展开状态后,响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面。
  16. 根据权利要求12所述的方法,其特征在于,所述方法还包括;
    在检测到启用所述第二屏幕的操作后,控制所述第一屏幕息屏。
  17. 根据权利要求1-16任一所述的方法,其特征在于,所述响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面之前还包括:
    响应于用户的配置操作,为不同的触控操作配置对应的界面。
  18. 一种设备控制装置,其特征在于,运行于电子设备,所述电子设备包括第一屏幕以及第二屏幕,所述装置包括:
    显示单元,用于控制第一屏幕显示第一界面;
    界面选择单元,用于响应作用于第二屏幕的触控操作,获取与所述触控操作对应的界面作为目标界面,其中,不同的触控操作所对应的界面不同,且至少一种触控操作对应的界面为所述第一界面;
    所述显示单元,还用于在所述第二屏幕中显示所述目标界面。
  19. 一种电子设备,其特征在于,所述电子设备包括第一屏幕以及第二屏幕;所述电子设备还包括处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述处理器执行以实现权利要求1-17任一所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-17任一所述的方法。
PCT/CN2023/094578 2022-07-11 2023-05-26 设备控制方法、装置、电子设备以及可读存储介质 WO2024012043A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210814575.1 2022-07-11
CN202210814575.1A CN117420939A (zh) 2022-07-11 2022-07-11 设备控制方法、装置以及电子设备

Publications (1)

Publication Number Publication Date
WO2024012043A1 true WO2024012043A1 (zh) 2024-01-18

Family

ID=89528951

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/094578 WO2024012043A1 (zh) 2022-07-11 2023-05-26 设备控制方法、装置、电子设备以及可读存储介质

Country Status (2)

Country Link
CN (1) CN117420939A (zh)
WO (1) WO2024012043A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239156A1 (en) * 2010-03-26 2011-09-29 Acer Incorporated Touch-sensitive electric apparatus and window operation method thereof
CN108170354A (zh) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 一种显示方法及装置、移动终端
CN113821154A (zh) * 2021-08-27 2021-12-21 深圳市柔宇科技股份有限公司 屏幕切换控制方法、可折叠设备和存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239156A1 (en) * 2010-03-26 2011-09-29 Acer Incorporated Touch-sensitive electric apparatus and window operation method thereof
CN108170354A (zh) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 一种显示方法及装置、移动终端
CN113821154A (zh) * 2021-08-27 2021-12-21 深圳市柔宇科技股份有限公司 屏幕切换控制方法、可折叠设备和存储介质

Also Published As

Publication number Publication date
CN117420939A (zh) 2024-01-19

Similar Documents

Publication Publication Date Title
US11128802B2 (en) Photographing method and mobile terminal
WO2020147666A1 (zh) 用户界面显示方法、装置、终端及存储介质
US11054988B2 (en) Graphical user interface display method and electronic device
KR102266674B1 (ko) 촬영 방법 및 단말
US20220155922A1 (en) Side-toolbar-display method, terminal, and storage medium
CN106951163B (zh) 一种显示控制方法及装置
KR101669046B1 (ko) 폴더블 전자 장치의 인터페이싱 방법 및 그 폴더블 전자 장치
CN104750495B (zh) 一种截图方法及装置
EP3680764B1 (en) Icon moving method and device
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
US20140173498A1 (en) Multiple screen mode in mobile terminal
US20160004425A1 (en) Method of displaying graphic user interface and electronic device implementing same
CN109976655B (zh) 长截屏方法、装置、终端及存储介质
WO2022001341A1 (zh) 应用程序标签生成方法、应用界面显示方法以及装置
US20190138200A1 (en) Information processing method and device
US9524537B2 (en) Display control apparatus and method, image display apparatus, and non-transitory computer readable medium for controlling a displayed image
WO2018184443A1 (zh) 终端屏幕显示处理方法、装置及存储介质
CN108512997B (zh) 显示方法、装置、移动终端以及存储介质
KR102401467B1 (ko) 버튼 설정 방법, 장치 및 기록 매체
WO2018184442A1 (zh) 终端控制方法及装置
US20150153921A1 (en) Apparatuses and methods for inputting a uniform resource locator
KR20160053641A (ko) 멀티 디스플레이 제어 방법 및 그 전자 장치
CN106201295B (zh) 一种消息复制方法和装置、以及智能终端
WO2024012043A1 (zh) 设备控制方法、装置、电子设备以及可读存储介质
WO2023197679A1 (zh) 视频播放方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23838538

Country of ref document: EP

Kind code of ref document: A1