CN109976633B - Interface interaction method and device, electronic equipment and storage medium - Google Patents

Interface interaction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109976633B
CN109976633B CN201910200056.4A CN201910200056A CN109976633B CN 109976633 B CN109976633 B CN 109976633B CN 201910200056 A CN201910200056 A CN 201910200056A CN 109976633 B CN109976633 B CN 109976633B
Authority
CN
China
Prior art keywords
display part
graphical user
rotation
user interface
interface
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910200056.4A
Other languages
Chinese (zh)
Other versions
CN109976633A (en
Inventor
陈彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910200056.4A priority Critical patent/CN109976633B/en
Publication of CN109976633A publication Critical patent/CN109976633A/en
Application granted granted Critical
Publication of CN109976633B publication Critical patent/CN109976633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The application relates to an interface interaction method and device, electronic equipment and a storage medium, wherein the electronic equipment is provided with a foldable screen, the foldable screen comprises a first display part and a second display part connected with the first display part, and the first display part and the second display part can rotate relatively; the first display part and the second display part are used for displaying a graphical user interface together. The interface interaction method comprises the following steps: acquiring rotation conditions of the first display part and the second display part; determining an operation instruction for the graphical user interface according to the rotation condition; and controlling the graphical user interface according to the operation instruction, wherein the operation instruction comprises an operation instruction for switching the graphical user interface. According to the interface interaction method, a user can realize man-machine interaction through rotation between the first display part and the second display part, and then the graphical user interface is conveniently controlled.

Description

Interface interaction method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of consumer electronics, and in particular, to an interface interaction method and apparatus, an electronic device, and a storage medium.
Background
With the development and progress of science and technology, the communication technology has been developed rapidly and greatly, and with the improvement of the communication technology, the popularization of intelligent electronic products has been improved to an unprecedented level, and more intelligent terminals or electronic devices become an indispensable part of the life of people, such as smart phones, smart televisions, computers and the like.
While the electronic devices are popularized, users have higher and higher requirements for the types and performances of the functions of the electronic devices, such as an interactive function, an audio function, a shooting function, a game function and the like, which become necessary functions of an intelligent terminal or the electronic devices.
With the development of electronic devices and the increasing demand of users for reading, video and entertainment, the screen size of electronic devices is gradually increased, and when a user uses a larger-sized electronic device to read e-books, news or watch videos, if interface interaction is to be realized by sliding or clicking the interface, since the hand of the user needs to consider the work of holding the electronic device and the touch interface, it is difficult to accurately activate corresponding interaction controls to realize the expected operation effect, which is not favorable for the user to control the electronic device.
Disclosure of Invention
In view of the above, the present application provides an interface interaction method and apparatus, an electronic device, and a storage medium, which are used to solve the above problems.
In a first aspect, an embodiment of the present application provides an interface interaction method, which is applied to an electronic device having a foldable screen, where the foldable screen includes a first display portion and a second display portion connected to the first display portion, and the first display portion and the second display portion can rotate relative to each other; the first display part and the second display part are used for displaying a graphical user interface together. The interface interaction method comprises the following steps: acquiring rotation conditions of the first display part and the second display part; determining an operation instruction for the graphical user interface according to the rotation condition; and controlling the graphical user interface according to the operation instruction, wherein the operation instruction comprises an operation instruction for switching the graphical user interface.
In a second aspect, an embodiment of the present application provides an interface interaction device, which is applied to an electronic device having a foldable screen, where the foldable screen includes a first display portion and a second display portion connected to the first display portion, and the first display portion and the second display portion can rotate relatively to fold or unfold; the first display part and the second display part are used for displaying a graphical user interface together. The interface interaction device comprises: the rotation condition acquisition module is used for acquiring the rotation conditions of the first display part and the second display part; the instruction determining module is used for determining an operation instruction for the graphical user interface according to the rotation condition; and the interface control module is used for controlling the graphical user interface according to the operation instruction, wherein the operation instruction comprises an interactive control for activating the graphical user interface.
In a third aspect, an embodiment of the present application provides an electronic device, including a foldable screen, where the foldable screen includes a first display portion and a second display portion connected to the first display portion, and the first display portion and the second display portion can rotate relatively to fold or unfold. The electronic device further includes: the system includes one or more processors, memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code is called by a processor to execute the interface interaction method.
According to the interface interaction method, a user can directly realize human-computer interaction through rotation between the first display part and the second display part while holding the electronic equipment, so that the graphical user interface is conveniently controlled, convenience for the user to control the electronic equipment can be provided, and the experience of the user in human-computer interaction is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a perspective view of a foldable electronic device provided in the present application in a folded state.
Fig. 2 is a schematic perspective view of a foldable electronic device provided in the present application in a partially unfolded state.
Fig. 3 is a schematic flowchart of an interface interaction method provided in the present application.
Fig. 4 is a schematic flowchart of another interface interaction method provided in the present application.
Fig. 5 is a schematic flowchart of another interface interaction method provided in the present application.
Fig. 6 is a functional module schematic diagram of an interface interaction device provided in the present application.
Fig. 7 is a functional block diagram of an electronic device provided in the present application for executing an interface interaction method according to an embodiment of the present application.
Fig. 8 is a storage unit, provided in an embodiment of the present application, for storing or carrying program codes for implementing an interface interaction method according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As used in embodiments herein, "communication terminal" (or simply "terminal"), "electronic device" includes, but is not limited to, devices that are configured to receive/transmit communication signals via a wireline connection, such as via a Public Switched Telephone Network (PSTN), a Digital Subscriber Line (DSL), a digital cable, a direct cable connection, and/or another data connection/network, and/or via a wireless interface (e.g., for a cellular network, a Wireless Local Area Network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter, and/or another communication terminal). A communication terminal arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", a "wireless terminal" and/or an "electronic device". Electronic devices, examples of electronic devices include, but are not limited to, satellite or cellular telephones; a Personal Communications System (PCS) terminal that may combine a cellular radiotelephone with data processing, facsimile and data communications capabilities; PDAs that may include radiotelephones, pagers, internet/intranet access, Web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, the present disclosure provides a foldable electronic device 500, where the foldable electronic device 500 may be, but is not limited to, a mobile phone and a tablet electronic device. The foldable electronic device 500 of the present embodiment is described by taking a mobile phone as an example.
The foldable electronic device 500 includes a foldable housing assembly 100, a foldable screen 200, and an electronic assembly (not shown) disposed in the foldable housing assembly 100, and the foldable screen 200 is laid on the foldable housing assembly 100. The foldable housing assembly 100 is used to carry the foldable screen 200 while shielding the electronic components.
The foldable housing assembly 100 includes a first housing 10, a second housing 30, and a rotation shaft mechanism 50, and the first housing 10 and the second housing 30 are respectively connected to both sides of the rotation shaft mechanism 50. The second housing 30 can be folded or unfolded relative to the first housing 10 through the hinge mechanism 50, so that the foldable housing assembly 100 drives the foldable screen 200 to fold or unfold, and when the foldable housing assembly 100 and the foldable screen 200 are folded, the foldable electronic device 500 has a relatively small volume and is convenient to store and carry.
The first casing 10 includes a first middle frame 12 and a first cover 14. One side of the first middle frame 12 is connected to a hinge mechanism 50 for carrying a part of the structure of the electronic component. The first cover 14 covers the first middle frame 12. When the first casing 10 and the second casing 30 are stacked, the first cover 14 and the second casing 30 are stacked, that is, the first cover 14 is attached to the second casing 30. The second casing 30 includes a second middle frame 32 and a second cover 34. One side of the second middle frame 32 is connected to a hinge mechanism 50 for carrying a part of the structure of the electronic component. The second cover 34 covers the second middle frame 32. When the first casing 10 and the second casing 30 are stacked, the second cover 34 is stacked on the first cover 14, that is, the second cover 34 is attached to the first cover 14.
The electronic assembly comprises a first electronic module, a second electronic module and a flexible circuit board, wherein the first electronic module is arranged in the first shell 10, the second electronic module is arranged in the second shell 30, and the flexible circuit board is electrically connected with the first electronic module and the second electronic module respectively. Further, the first electronic module can be a mainboard, a central processing unit for arranging the mainboard, a memory, an antenna, a camera, a headset and the like. The second electronic module can also be composed of a printed circuit board and a functional module arranged on the printed circuit board, the second electronic module is different from the first electronic module, and the second electronic module can comprise a battery, a connector, a fingerprint module and the like.
The foldable screen 200 is sequentially laid on the first housing 10, the rotation shaft mechanism 50, and the second housing 30. In this embodiment, the foldable screen 200 is a flexible display screen. The foldable screen 200 is folded or unfolded as the first and second housings 10 and 30 are turned over. The foldable screen 200 is electrically connected to the electronic components so that the electronic components can control the operation of the foldable screen 200.
Referring to fig. 1 and fig. 2, in the present embodiment, the foldable screen 200 includes a first display portion 202 connected to the first casing 10, a second display portion 203 connected to the second casing 30, and a bending display portion 204 connected to the first display portion 202 and the second display portion 203. The first display portion 202 and the second display portion 203 are folded or unfolded relatively with the first casing 10 and the second casing 30, respectively. The bending display portion 203 bends or flattens with the first display portion 202 and the second display portion 203 being folded or unfolded. In some embodiments, the first display portion 202, the second display portion 203, and the bending display portion 204 may be an integrated structure, such that the foldable screen 200 is a one-piece flexible display screen; alternatively, in some other embodiments, the bending display portion 204 is a flexible portion that can be bent, and the first display portion 202 and the second display portion 203 can be non-flexible portions, and the first display portion 202 and the second display portion 203 are folded or unfolded relatively by the bending display portion 204. In the present embodiment, when the first casing 10 and the second casing 30 are stacked, the first display portion 202 and the second display portion 203 are separated from each other, so that the foldable electronic device 500 has a folded-out screen structure, and a user can view the display content of the foldable screen 200 even when the foldable electronic device 500 is folded, thereby improving the convenience of using the foldable electronic device 500. In some other embodiments, when the first housing 10 and the second housing 30 are stacked, the first display portion 202 and the second display portion 203 are stacked, so that the foldable electronic device 500 is in a folded-in screen structure, so that the foldable screen 200 is not damaged by scratching.
It should be understood that the names of the first display portion, the second display portion, and the bending display portion are only provided for convenience of description, and are not limited to the structural limitations of the foldable screen, in an actual application scenario, the first display portion, the second display portion, and the bending display portion may not have obvious boundaries, or the foldable screen may appear in other division structures, for example, the foldable screen includes a first display portion and a second display portion connected to the first display portion, and the first display portion and the second display portion can rotate relatively to fold or unfold.
In the present embodiment, the foldable electronic device 500 further includes an angle detecting module 70 (see fig. 1), and the angle detecting module 70 is used for detecting an angle formed between the first casing 10 and the second casing 30. In some embodiments, the angle detection module 70 may be a hall angle sensor, which may be connected to any one of the first housing 10, the second housing 30, or the spindle mechanism 50.
In some embodiments, the foldable electronic device 500 may further include two motion sensors 90 (see fig. 1), where the two motion sensors 90 are respectively disposed on the first casing 10 and the second casing 30 for detecting the rotation of the first casing 10 and the second casing 30, respectively. Motion sensor 90 may include, but is not limited to including: acceleration sensor, gravity sensor, inertial measurement unit, gyroscope, etc. Taking an acceleration sensor as an example, two acceleration sensors are respectively disposed on the first casing 10 and the second casing 30, and the acceleration direction of the first casing 10 and the acceleration direction of the second casing 30 can be detected by the two acceleration sensors, and the rotation condition of the first casing 10 and the second casing 30 can be determined according to the acceleration of the first casing 10 and the acceleration direction of the second casing 30. It is understood that the rotation of the first and second housings 10 and 30 includes: the first casing 10 moves relative to the second casing 30, the second casing 30 moves relative to the first casing 10, the first casing 10 and the second casing 30 move towards each other, or the first casing 10 and the second casing 30 move away from each other.
Referring to fig. 3, based on the foldable electronic device, an embodiment of the present application provides an interface interaction method for displaying a graphical user interface in the foldable electronic device and implementing human-computer interaction through a foldable housing, so as to allow a user to conveniently operate the graphical user interface, thereby improving the experience of the user in human-computer interaction. Once the interface interaction method provided in the embodiment of the application is triggered, the flow of the method in the embodiment may automatically run through the electronic device, where each step may be performed sequentially according to the sequence in the flowchart, or may be performed simultaneously according to a plurality of steps in an actual situation, which is not limited herein. In this embodiment, the interface interaction method may include steps S101 to S105.
Step S101: rotation conditions of the first display part and the second display part are obtained.
Further, when the electronic device starts the graphical user interface, the rotation conditions of the first display part and the second display part can be continuously detected through a motion sensor of the electronic device. The rotation is understood to mean the respective rotation states of the first display unit and the second display unit, or/and the relative rotation state therebetween. The rotation state is understood to be a state of the first display portion and the second display portion at each time during the rotation process, and includes, but is not limited to, physical quantities including a rotation angle, a rotation speed, a rotation direction, an acceleration, and the like. That is, the rotation condition may include the physical movement quantity of the first display portion and the second display portion in the rotation process, and may also include a relative rotation state between the first display portion and the second display portion, such as a relative rotation direction between the first display portion and the second display portion.
In the embodiment of the application, when the electronic device starts the graphical user interface, a user can input information to the electronic device through the graphical user interface to operate, and the electronic device provides information to the user through the graphical user interface so that the user can read, analyze and judge the information. Further, the graphical user interface may include an interaction control, which is a medium for a user to input information with the electronic device, for example, the interaction control may be a virtual key of the graphical user interface, and the virtual key may include any one or a combination of a plurality of virtual keys, such as a confirmation key, a return key, a menu key, a home interface key, a function key, a previous page, a next page, and the like. When the user activates the interactive control on the graphical user interface, the user can click the corresponding virtual key on the electronic device, so that the electronic device executes the command of the corresponding virtual key.
Further, when the user operates on the graphical user interface, the user can perform interactive actions such as sliding and clicking on the graphical user interface of the electronic device. The type of interface displayed by the graphical user interface is not limited, for example, the graphical user interface may be displayed as a picture interface, a text interface, a graphic interface, a control menu interface, and the like.
Step S103: and determining an operation instruction for the graphical user interface according to the rotation conditions of the first display part and the second display part.
In this embodiment, the rotation of the first display portion and the second display portion may include, but is not limited to, the following: the rotation direction, rotation angle, speed and acceleration of the first display part, and the rotation direction, rotation angle, speed and acceleration of the second display part. In some embodiments, the operation instructions of the graphical user interface may include, but are not limited to including: activating an interactive control of the graphical user interface and switching a currently displayed interface of the graphical user interface.
It should be noted that, according to the corresponding relationship between the rotation condition and the operation instruction, the rotation direction and the rotation angle of the first display portion, the rotation direction and the rotation angle of the second display portion, and other rotation conditions, the corresponding relationship may be established with the operation instruction, such as activating the interactive control of the graphical user interface, switching the current display interface of the graphical user interface, and the like, so as to determine the operation instruction of the graphical user interface according to the rotation condition. For example, according to the rotation direction and the rotation angle of the first display part, the operation instruction of the graphical user interface can be determined to activate the current interaction control of the graphical user interface.
Step S105: and controlling the graphical user interface according to the operation instruction.
In some specific application scenarios, for example, in electronic book reading, the text interface is used as the above-mentioned graphical user interface, and the operation instruction that the user needs to execute is to switch the text interface. When the electronic device starts reading an electronic book, the electronic device may be considered to trigger the interface interaction method provided by the present application, and a user may input an operation command for switching a current display interface of the graphical user interface by controlling rotation of the first display portion or/and the second display portion (for example, a rotation direction is along a relative folding direction between the first display portion and the second display portion), so as to switch the currently displayed text interface (for example, single-time left switching, continuous left switching, single-time right switching, and continuous right switching), that is, to implement an operation of turning pages of the electronic book.
In some specific application scenarios, for example, during the browsing process of the menu interface, the menu interface serves as the graphical user interface, and the operation instruction that the user needs to execute is the menu interface. When the electronic device starts the menu interface, the electronic device may be considered to trigger the interface interaction method provided by the present application, and a user may input an operation command for activating a current menu of the graphical user interface by controlling rotation of the first display portion or/and the second display portion (for example, a rotation direction along a relative expansion direction between the first display portion and the second display portion), so as to activate an interaction control of the graphical user interface (for example, clicking any virtual key of a confirmation key, a return key, a main interface key, and a function key).
According to the interface interaction method, the electronic equipment is allowed to input the interface interaction control instruction by controlling the rotation of the first display part or/and the second display part, so that the interaction operation of the graphical user interface is realized, the operation of the graphical user interface can be conveniently realized, such as page switching or interactive control activation, so that the human-computer interaction experience of a user is improved.
Referring to fig. 4, based on the electronic device, another interface interaction method is further provided in an embodiment of the present application, for displaying a graphical user interface in a foldable electronic device, and implementing human-computer interaction through a foldable housing, so as to allow a user to conveniently operate the graphical user interface, thereby improving the experience of the user in human-computer interaction. It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein. In the present embodiment, the interface interaction method may include steps S21 to S27.
Step S21: and acquiring the rotation conditions of the first display part and the second display part.
Step S23: the movement directions of the first display section and the second display section are detected.
Further, the moving direction of the first display section and the second display section during execution of one operation action is detected. In this embodiment, one operation is an action of the user by folding or unfolding the first display screen and/or the second display screen once. It should be noted that, if the user performs an operation of turning around after folding or turning around after unfolding on the first display screen and/or the second display screen, the operation is also considered as an operation. For example, one operational action may be any of the following actions: the first display part rotates along a first preset direction, the first display part rotates along a second preset direction, or the first display part and the second display part rotate together along the second preset direction, and the like are one operation action, that is, one operation action refers to any one of the first display part rotates along the first preset direction, the first display part rotates along the second preset direction, or the first display part and the second display part rotate together along the second preset direction, and the like.
As an embodiment, the estimated time for executing an operation action is named as a preset rotation time, and the preset rotation time may be set according to a time defined by a user or a time preset by the electronic device, for example, the preset rotation time may be any value between 10ms and 300 ms. It should be noted that, within the preset rotation time, it is estimated that the user may perform an operation, that is, within the preset rotation time, it is estimated that the user may perform one rotation or perform a rotation operation after one rotation on the first display portion and/or the second display portion. By introducing the preset rotation time, it is beneficial to subsequently determine and predict the number of operation actions, so as to determine the actual instruction of the user by combining the number of operation actions, which will be described in detail later.
In an embodiment of the application, the moving direction of the first display portion and/or the second display portion includes a first preset direction and a second preset direction, where the first preset direction is a direction in which the first display portion and the second display portion are folded relatively, and the second preset direction is a direction in which the first display portion and the second display portion are unfolded relatively. The first preset direction and the second preset direction are set for the purpose of the description of the embodiments of the present application, and may be set separately according to specific use of a user. For example, in some embodiments, the direction of movement of the first display and/or the second display includes the first display being in a folded orientation relative to the second display, the first display being in an unfolded orientation relative to the second display, the second display being in a folded orientation relative to the first display, the second display being in an unfolded orientation relative to the first display, the first display and the second display together being in an oppositely folded orientation, the first display and the second display together being in an oppositely unfolded orientation, and/or the like.
In one embodiment, when the first display portion and the second display portion of the electronic device are relatively unfolded, the electronic device may determine an angle between the first display portion and the second display portion according to a relative position between the first display portion and the second display portion. When the first display portion and the second display portion of the electronic device are unfolded, an angle between the first display portion and the second display portion may be approximately 180 degrees, that is, display surfaces of the first display portion and the second display portion are on the same display surface, or display surfaces of the first display portion and the second display portion are approximately on the same display surface. Further, when the electronic device is a fold-in screen electronic device, an angle between the first display portion and the second display portion may be less than 180 degrees due to a usage habit and a viewing habit of a user, so that the user can view a graphical interface of the user. The angle between the first display portion and the second display portion can be detected by using an angle sensor, a distance sensor or other sensors which can directly or indirectly detect the angle between the first display portion and the second display portion, wherein the angle sensor and the distance sensor are arranged on the electronic device.
In the present embodiment, the user can change the angle between the first display unit and the second display unit by controlling either one of the two units to rotate. When it is detected that the angle between the first display portion and the second display portion changes, for example, when the first display portion and the second display portion are folded relatively, the angle between the first display portion and the second display portion decreases, or when the first display portion and the second display portion are unfolded relatively, the angle between the first display portion and the second display portion increases. Further, motion sensors such as an inertia measurement unit may be respectively disposed on the first display portion and the second display portion to obtain whether the motion direction of the first display portion and/or the second display portion is the first preset direction or the second preset direction according to the angle change between the first display portion and the second display portion.
In the embodiment of the present application, the result detected in step S23 includes, but is not limited to: the first display part moves along a first preset direction, the first display part moves along a second preset direction, the second display part moves along the first preset direction, the second display part moves along the second preset direction, and the first display part and the second display part both move along the second preset direction.
Step S25: and determining an operation instruction for the graphical user interface according to the movement directions of the first display part and the second display part.
In the embodiment of the application, different operation instructions can be determined according to whether the moving directions of the first display part and the second display part are the first preset direction or the second preset direction.
Further, the first display portion and/or the second display portion may rotate in the first preset direction, and the first display portion and/or the second display portion may also rotate in the second preset direction, so as shown in fig. 4, in this embodiment, step S25 may further include steps S251a to S253a and step S251 b. Steps S251a to S253a are steps executed when the first display portion and/or the second display portion rotates in the first preset direction, and step S251b is a step executed when the first display portion and/or the second display portion rotates in the second preset direction.
Step S251 a: and if one and only one of the first display part and the second display part rotate along the first preset direction, determining that the operation instruction is the current display interface of the switching graphical user interface.
In this embodiment, the preset condition for switching the current display interface of the gui may include: one or only one of the first display part and the second display part rotates along a first preset direction. That is, if the acquired rotation condition meets the preset condition, the operation instruction is determined to be the current display interface of the switching graphical user interface.
Further, if one and only one of the first display part and the second display part rotates along a first preset direction, and the rotating direction of the rotating display part is not changed within a preset rotating time, it is determined that the operation instruction is to continuously switch the current display interface of the graphical user interface.
For example, the first display part rotates along a first preset direction, and the rotating direction does not change within the preset rotating time, and the operation instruction is determined to be the current interface of the continuous switching graphical user interface. The continuous switching of the current interface of the graphical user interface may be equivalent to performing continuous switching operation on the current interface, such as continuously switching a plurality of pages to the left or continuously switching a plurality of pages to the right. Alternatively, the switching speed of the continuous switching may be determined according to the size of the rotation angle of the first display portion, and the specific determined correspondence may be set by the user. At this time, when the electronic device executes the continuous switching of the current interface of the graphical user interface, the rotation direction of the first display part is continuously detected, and if the first display part rotates along the original rotation direction in the switching process of the page, the action of switching the page is stopped. In other embodiments, when the user switches the current interface by controlling the second display portion to rotate, the execution process of the switching command is similar, and the description is omitted here.
If one and only one of the first display part and the second display part rotates along a first preset direction and the rotating display part rotates after rotating, determining that the operation instruction is the current display interface of the single-time switching graphical user interface; after the rotating display part rotates within the preset rotation time, the rotating display part rotates along the direction opposite to the original rotation direction, and then the rotating display part is considered to rotate.
For example, the first display portion rotates along a first preset direction, rotates in a direction opposite to the original rotation direction after rotating within a preset rotation time, and then determines that the operation instruction is the current interface of the single-time switching graphical user interface. The single switching of the current interface of the graphical user interface may be equivalent to performing a single switching operation on the current interface in the same switching direction, for example, switching a page to the left or switching a page to the right.
Step S253 a: and determining the switching direction of the current display interface according to the rotated display part.
The first display part and the second display part can be set in advance, and if the first display part is set to rotate, the switching direction of the current display interface is switched to the left; when the second display part rotates, the switching direction of the current display interface is rightward switching. In some embodiments, inertial measurement sensors may be provided at the first display part and the second display part, respectively, and the rotated display part may be determined according to an acceleration change of the first display part or the second display part.
For example, if the first display portion rotates along a first preset direction and the rotation direction does not change within a preset rotation time, it is determined that the current display interface is switched to the left continuous switching graphical user interface. If the first display part rotates along a first preset direction, the first display part rotates within a preset rotation time; it is determined that the switching of the currently displayed interface is to switch the graphical user interface a single time to the left.
Alternatively, in some embodiments, the switching direction of the interface may be determined by the rotation direction of the display part, and in this case, step S253a may be: and determining the switching direction of the current display interface according to the rotating direction of the rotating display part. At the moment, aiming at the same display part, when the rotation directions are different, the current display interface can be controlled to switch to different directions, so that the user operation is facilitated.
In the embodiment of the present application, as shown in fig. 2, the first display portion and the second display portion are respectively located on the left and right in the drawing, and the first display portion and the second display portion may also be considered to be respectively located on the left and right of the user. Taking the first display portion rotating along the first preset direction (counterclockwise direction in the figure) as an example, at this time, the rotating direction of the first display portion is counterclockwise rotation, which may determine that the switching direction of the current display interface is right switching, and if the rotating direction of the first display portion is counterclockwise rotation, it may determine that the switching direction of the current display interface is right switching.
Further, if the first display portion rotates along a first preset direction and the rotating direction within the preset rotating time is not changed, it is determined that the current display interface is switched to be the graphical user interface which is continuously switched to the right. If the first display part rotates along a first preset direction, the first display part rotates within a preset rotation time; it is determined that the currently displayed interface is switched to a single switch of the graphical user interface to the right.
In the embodiment, the current interface switching direction is determined according to the rotating display part, and the current interface switching direction is determined according to the rotating direction of the rotating display part, so that the use requirements of different customers can be met.
Step S251 b: and if at least one of the first display part and the second display part rotates along a second preset direction, determining that the operation instruction is to activate an interactive control of the graphical user interface.
In this embodiment, the preset condition for activating the interactive control of the graphical user interface may include: at least one of the first display part and the second display part rotates along a second preset direction. That is, if the acquired rotation condition meets the preset condition, determining that the operation instruction is to activate an interactive control of the graphical user interface.
In this embodiment, the interactive control is a virtual key of the graphical user interface, and the virtual key may include any one or more of a confirmation key, a return key, a menu key, a main interface key, a function key, a previous page, a next page, and the like. Thus, activating an interaction control of a graphical user interface may include: clicking any one virtual key of a confirmation key, a return key, a menu key, a main interface key, a function key, a previous page, a next page and the like.
It should be noted that the type of rotation of at least one of the first display portion and the second display portion along the second preset direction includes: the first display part rotates along a second preset direction, the second display part rotates along the second preset direction, the first display part and the second display part rotate along the second preset direction simultaneously, the first display part rotates along the second preset direction and then rotates, the second display part rotates along the second preset direction and then rotates, and the first display part and the second display part rotate along the second preset direction and then rotate. The definition of rotation and the rotation after rotation is similar to S253a, and is not described herein. Therefore, different operation actions can activate corresponding interaction controls by establishing the corresponding relation between the operation actions and the interaction controls. For example, the user may set the interaction controls corresponding to the six operation actions, so as to activate the corresponding interaction controls when the operation actions occur, and meet the operation requirements of the user on the interaction controls of the graphical user interface.
For example, if the first display portion and the second display portion rotate in the second preset direction and then turn around, it may be determined that the operation instruction is to activate the interactive control of the graphical user interface as a key for clicking the main interface; if the first display part rotates along the second preset direction and then turns around, the operation instruction can be determined as that the interactive control activating the graphical user interface is a click return key; if the second display portion rotates back along the second preset direction, it can be determined that the operation instruction is to activate the interactive control of the graphical user interface as a click menu key.
Step S27: and controlling the graphical user interface according to the operation instruction.
According to the interface interaction method, the electronic equipment is allowed to input the interface interaction control instruction by controlling the rotation of the first display part or/and the second display part, so that the interaction operation of the graphical user interface is realized, the graphical user interface can be conveniently operated, such as switching a page or activating an interaction control, so that the convenience of the user operation is improved, and the experience of the user in man-machine interaction is improved.
Referring to fig. 5, based on the electronic device, a further interface interaction method is further provided in an embodiment of the present application, for displaying a graphical user interface in a foldable electronic device, and implementing human-computer interaction through a foldable housing, so as to allow a user to conveniently operate the graphical user interface, thereby improving the experience of the user in human-computer interaction. In the present embodiment, the interface interaction method may include steps S31 to S39.
Step S31: rotation conditions of the first display part and the second display part are obtained.
Step S33: and detecting the maximum angle variation between the first display part and the second display part within the preset rotation time.
Further, the preset rotation time is an estimated time for executing an operation action, and the preset rotation time may be set according to a time defined by a user or a time preset by the electronic device, for example, the preset rotation time is an arbitrary value between 10ms and 300 ms. It should be noted that, within the preset rotation time, the user may perform one operation, that is, within the preset rotation time, the user performs one rotation or performs one rotation and then turns back on the first display portion and/or the second display portion.
In some embodiments, the rotating display part rotates in the opposite direction to the original rotation direction within the preset rotation time after the rotation, and then the rotating display part is considered to rotate after the rotation. For example, the first display portion rotates and then rotates, which is also regarded as an operation action; after the rotating display part rotates within the preset rotation time, the rotating display part rotates along the direction opposite to the original rotation direction, and then the rotating display part is considered to rotate. In the embodiment of the present application, the first display unit and/or the second display unit that rotate within a preset rotation time is determined to be one operation.
The "turning" state described above can be detected by the inertial measurement sensor, and for example, whether or not the first display unit and the second display unit turn can be determined by detecting whether or not the turning direction thereof changes, or whether or not the first display unit and the second display unit turn can be determined by detecting whether or not the acceleration direction thereof changes.
In the embodiment of the present application, by detecting the angle change between the first display unit and the second display unit, the maximum angle change amount of the first display unit and the second display unit can be obtained according to the changed angle information. In one embodiment, in the operation of the display section that rotates after the rotation of the display section, the amount of angular change of the rotation is equal to or smaller than the amount of angular change of the rotation, and therefore, the maximum amount of angular change is the maximum amount of angular change that occurs when the display section that rotates.
Step S35: if the maximum angle variation does not fall within the preset angle variation range, the rotation conditions of the first display part and the second display part are determined as invalid operations, and the process returns to step S33.
In one embodiment, the preset angle variation is 5 ° to 15 °, and when the maximum angle variation of the first display part and the second display part does not fall within the preset angle variation range, the maximum angle variation is smaller than the lower limit value of the preset angle variation range or larger than the upper limit value of the preset angle variation range. It should be noted that, by limiting the rotation angle, it is possible to avoid erroneous determination of the user's intention, for example, when the maximum angle change amount is smaller than the lower limit value of the preset angle change amount range, it may be determined that the user has performed an erroneous operation (for example, shaking in normal holding or shaking in a storage state), and at this time, the rotation condition of the first display portion and the second display portion is determined as an invalid operation, which is not regarded as an input operation of any operation instruction; when the maximum angle variation is larger than the upper limit value of the preset angle variation range, it can be determined that the user is performing the turning of the first display screen and the second display screen to realize the folding or unfolding of the electronic device, and the rotation condition is also determined as an invalid operation.
Step S36: if the maximum angle variation falls within the preset angle variation range, the rotation conditions of the first display part and the second display part are determined to be valid operations, and step S37 is executed.
As an embodiment, the preset angle variation range may be 5 ° to 15 °, and the operation action is marked as an effective operation when the maximum angle variation between the first display part and the second display part falls within the preset angle variation range. The preset angle change range can be set according to personal use habits of users.
Step S37: and detecting effective operation, and recording the occurrence times of the effective operation within a preset time length.
In the embodiment of the application, by dividing the operation action into the effective operation and the ineffective operation, the rotation of the first display part and the second display part caused by the misoperation of a user can be partially screened out, or the folding or unfolding action of the electronic equipment can be excluded. Further, if the operation action is effective, the operation action is recorded; if the operation is invalid, the operation is ignored. It should be noted that the operation instruction of the graphical user interface is determined by effective operation, so as to ensure that the user can obtain the corresponding operation instruction through the effective operation realized by the first display part and the second display part.
Further, the preset duration is a time length preset according to a corresponding relationship between the number of times of occurrence of the effective operation and the operation instruction. In one embodiment, the preset rotation time is 10ms to 300ms, and in this case, the preset time period may be a longer time period, such as 300ms to 800 ms. If the preset rotation time is 300ms and the preset duration is 600ms, it can be expected that the number of times of the effective operation is two at most within the preset duration. It should be noted that, the number of times of the effective operation by the user may be one or two, and the first display portion and/or the second display portion may be combined to form a plurality of control instructions in combination with the rotation direction within the preset rotation time, so as to enrich the operation instruction combinations selectable by the user.
Further, if the effective operation occurs, the effective operation does not occur again within the preset waiting time, and the number of times of the occurring effective operation is recorded. In some embodiments, for example, the preset waiting time may be 5ms to 100ms, and the length of the preset waiting time is less than the preset rotation time, so as to avoid the need for waiting for a long time after the user completes an effective operation. It should be noted that, if no valid operation occurs again within the preset waiting time, no matter how much the preset time length remains, the recorded number of times of the valid operation that has occurred is used as a basis for determining the operation.
For example, the preset time duration is 600ms, the preset waiting time is 10ms, and the preset rotation time is 300ms, that is, at most two preset rotation times may exist within the preset time duration, or two effective operations may occur. Further, if an effective operation occurs within a preset rotation time, and then an effective operation occurs within a preset waiting time, recording the number of effective operations occurring within a preset time length as two, and executing step S38; if the valid operation does not occur again within the preset waiting time after the valid operation occurs once within the preset rotation time, recording the valid operation occurring within the preset time length as one time, and executing the step S38; if the valid operation occurs again after the preset waiting time after the valid operation occurs within the preset rotation time, wherein the number of valid operations within the preset time period is recorded as one, step S38 is executed, and the valid operation occurring after the preset waiting time is counted into the number of operations within the next preset time period.
In some embodiments, the setting of the preset time length may be omitted, and the number of valid operations may be recorded according to whether the valid operations occur within the preset waiting time. If the effective operation occurs again within the preset waiting time after the effective operation occurs, recording the accumulated occurrence frequency of the effective operation; if no valid operation occurs within the preset waiting time after a valid operation occurs, the recording of the number of times of the occurrence of the valid operation is terminated, and the number of times of the occurrence of the valid operation is determined, and then step S38 is executed according to the recorded number of times of the occurrence of the valid operation. That is, if the valid operation occurs again within the preset waiting time after the valid operation occurs, the number of times of occurrence of the valid operation is accumulated until the valid operation does not occur within the preset waiting time after the valid operation occurs, the number of times of the occurred valid operation is counted, and then step S38 is executed according to the number of times of occurrence of the valid operation.
Step S38: and determining the operation instruction of the corresponding graphical user interface according to the frequency of the effective operation within the preset time length.
In the embodiment of the application, the operation instruction of the corresponding graphical user interface can be determined according to the corresponding relation between the occurrence frequency of the effective operation in the preset time length and the preset frequency. And if the occurrence frequency of the effective operation is greater than the preset frequency, displaying an error prompt or no response on the graphical user interface. When the number of times of the effective operation is greater than the preset number of times, that is, the number of times of rotation of the first display part and the second display part is greater than the number of times of rotation preset by the user within the preset duration, the number of times of rotation cannot correspond to an operation instruction of a preset graphical user interface, and the number of times of rotation is determined as the misoperation of the user.
In some embodiments, the operation instruction of the corresponding graphical user interface is further determined according to a combination of the number and the sequence of the occurrences of the effective operation within the preset time length. That is, when the number of times of the effective operations occurring within the preset time duration is more than one, the operation instruction of the corresponding graphical user interface may be determined according to the order in which the effective operations occur. For example, the operation command corresponding to the first display part being rotated first and then the second display part is different from the operation command corresponding to the first display part being rotated first and then the second display part. It should be noted that, by combining different times and different orders of effective operations, an optional manner of performing a preset operation instruction of the graphical user interface to the user is added.
It should be noted that, if the preset time duration is the same as the preset rotation time, the step S37 may be omitted, and at this time, the number of times of the effective operation is at most one time within the preset time duration, that is, the number of times of the effective operation does not need to be recorded. And if the effective operation occurs, the operation instruction of the graphical user interface can be directly determined according to the effective operation. Further, for the determination of the operation instruction of the graphical user interface when the number of occurrences of the valid operation is one, reference may be made to steps S21 to S27 in the above-described embodiment.
Step S39: and controlling the graphical user interface according to the operation instruction.
According to the interface interaction method, the electronic equipment is allowed to input the interface interaction control instruction by controlling the rotation of the first display part or/and the second display part, so that the interaction operation of the graphical user interface is realized, the graphical user interface can be conveniently operated, such as switching or activating, and the human-computer interaction experience of a user is improved.
Referring to fig. 6, based on the interface interaction method, an interface interaction apparatus 600 is further provided in an embodiment of the present application, and fig. 6 shows a block diagram of the interface interaction apparatus 600. The interface interaction device 600 operates on the electronic device 500 shown in fig. 1, and is configured to perform the interface interaction method described above. In an embodiment of the present application, the interface interaction apparatus 600 is stored in a memory of the electronic device 500 and configured to be executed by one or more processors of the electronic device 500.
Specifically, in the embodiment shown in fig. 6, the interface interaction apparatus 600 includes a rotation condition obtaining module 610, an instruction determining module 630, and an interface control module 650. It is understood that the modules may be program modules or program units running on a computer-readable storage medium, and the purpose and operation of the modules are as follows:
the rotation status acquiring module 610 is configured to acquire rotation statuses of the first display portion and the second display portion when the electronic device starts the graphical user interface. Further, the rotation status acquiring module 610 is configured to detect rotation statuses of the first display portion and the second display portion through a motion sensor of the electronic device.
The instruction determining module 630 is configured to determine an operation instruction for the graphical user interface according to rotation conditions of the first display portion and the second display portion. Further, the instruction determining module 630 is configured to determine an operation instruction of the graphical user interface based on a corresponding relationship between the rotation condition and the operation instruction. The instruction determining module 630 includes a maximum angle change amount determining unit 632, a number recording unit 634, a direction determining unit 636, and an interaction command unit 638.
The maximum angle determining unit 632 is configured to determine a maximum angle variation amount during the rotation of the first display unit and/or the second display unit, and determine whether the maximum angle variation amount falls within a preset angle variation range, so as to determine the operation action as an effective operation and an ineffective operation.
The number recording unit 634 is used for recording the effective operation number of the rotation of the first display part and/or the second display part in a preset time length. And if the effective operation occurs, the effective operation does not occur again within the preset waiting time, and the frequency of the occurred effective operation is recorded.
The direction determining unit 636 is used for determining the moving direction of the first display part and/or the second display part when the first display part and/or the second display part rotates. In the embodiment of the present application, the moving direction of the first display part and/or the second display part is divided into a first preset direction and a second preset direction, and the direction determining unit 636 records the moving direction of the effective operation while the operation action is determined to be the effective operation.
The interactive command unit 638 is configured to determine an interactive command that needs to be executed by the user graphical interface according to the data recorded by the times recording unit 634 and/or the direction determining unit 636, and control display of the user graphical interface according to the interactive command. The interactive command unit 638 may correspond to a plurality of different interactive commands according to the data recorded by the times recording unit 634 and/or the direction determining unit 636. For example, the interactive command unit 638 may determine the corresponding interactive instruction according to the number of valid operations recorded by the number recording unit 634, may determine the corresponding interactive instruction according to the moving direction of the valid operations recorded by the direction determining unit 636, and may determine the corresponding interactive instruction according to the order of valid operations formed by the combination of the number of valid operations recorded by the number recording unit 634 and the moving direction of the valid operations recorded by the direction unit 636.
The interface control module 650 is configured to control the graphical user interface according to an operation instruction, where the operation instruction includes an interaction control that activates the graphical user interface. In this embodiment of the present application, the interactive control is a virtual key of the graphical user interface, where the virtual key includes any one or a combination of multiple virtual keys, such as a confirmation key, a return key, a menu key, a main interface key, a function key, a previous page, a next page, and the like. Thus, activating the interaction controls of the graphical user interface includes: clicking any virtual key in a confirmation key, a return key, a menu key, a main interface key, a function key, a previous page, a next page and the like. Further, the operation instruction further comprises switching the current interface of the graphical user interface. Wherein switching the current interface of the graphical user interface comprises: single switch to the left, continuous switch to the left, single switch to the right, continuous switch to the right, etc.
According to the interface interaction method and device, the interface interaction control instruction is input to the electronic equipment by controlling the rotation of the first display part or/and the second display part, so that the interaction operation of the graphical user interface is realized, the operation of the graphical user interface, such as switching or activation, can be conveniently realized, and the experience of human-computer interaction of a user is improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
In a practical application scenario, the electronic device 500 may be used as a smartphone terminal, in which case the electronic device 500 typically further includes one or more (only one shown in fig. 7) of the following components: a processor 102, a memory 104, a capture module 108, an audio circuit 110, an input module 118, a power module 122, and one or more applications, wherein the one or more applications may be stored in the memory 104 and configured to be executed by the one or more processors 102, the one or more programs configured to perform a method as described in the aforementioned method embodiments. It will be understood by those of ordinary skill in the art that the structure shown in fig. 7 is merely exemplary and is not intended to limit the structure of the electronic device 500. For example, electronic device 500 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
Processor 102 may include one or more processing cores. The processor 102 interfaces with various components throughout the electronic device 500 using various interfaces and circuitry to perform various functions of the electronic device 500 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 500 (e.g., phone books, audio-visual data, chat log data), and so forth.
The camera module 108 may be a camera disposed on the foldable housing assembly 100 and used for performing a shooting task, such as taking a picture, a video or making a video phone call. The audio circuitry 110, speaker 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic device 500. Specifically, audio circuitry 110 receives sound data from processor 102, converts the sound data to an electrical signal, and transmits the electrical signal to speaker 101. The speaker 101 converts the electric signal into a sound wave that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing.
In this embodiment, the input module 118 may include a touch screen 109 disposed on the foldable screen 200, and the touch screen 109 may collect a touch operation of the user (for example, an operation of the user on the touch screen 109 or near the touch screen 109 by using any suitable object or accessory such as a finger, a stylus pen, etc.) and drive the corresponding connection device according to a preset program. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys 107 or a microphone 105. The keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of control buttons include a "back to home" button, a power on/off button, and the like. The microphone 105 may be used to receive voice commands of the user.
The foldable screen 200 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic device 500, which may be formed of graphics, text, icons, numbers, videos, and any combination thereof, and in one example, the touch screen 109 may be provided on the foldable screen 200 so as to be integrated with the foldable screen 200.
The power module 122 is used to provide a supply of power to the processor 102 and other components. Specifically, power module 122 may include a power management device, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within electronic components or foldable screen 200.
It should be understood that the electronic device 500 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobile. Specifically, the electronic device 500 is a mobile computer device equipped with an intelligent operating device, and the electronic device 500 includes, but is not limited to, a smart phone, a smart watch, a notebook, a tablet computer, a POS device, and even a vehicle-mounted computer.
Referring to fig. 8, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 800 has stored therein program code that can be invoked by a processor to perform the methods described in the method embodiments above.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, particular features or characteristics described may be combined in any one or more embodiments or examples as appropriate. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution apparatus, device, or device (e.g., a computer-based apparatus, processor-containing apparatus, or other apparatus that can fetch the instructions from the instruction execution apparatus, device, or device and execute the instructions). For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution apparatus, device, or apparatus. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by suitable instruction execution devices. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. An interface interaction method is applied to electronic equipment with a foldable screen, wherein the foldable screen comprises a first display part and a second display part connected with the first display part, and the first display part and the second display part can rotate relatively; the first display part and the second display part are used for displaying a graphical user interface together; the interface interaction method comprises the following steps:
acquiring rotation conditions of the first display part and the second display part; the rotation condition comprises respective rotation states of the first display part and the second display part, and the rotation state comprises a rotation direction at each moment in a rotation process;
determining an operation instruction for the graphical user interface according to the corresponding relationship between the rotation condition and the interactive control activating the graphical user interface, wherein the operation instruction comprises the following steps:
if the rotation condition meets a preset condition for activating an interactive control of a graphical user interface, determining that the operation instruction is to activate the interactive control of the graphical user interface; the preset conditions for activating the interactive control of the graphical user interface comprise: at least one of the first display part and the second display part rotates, and the rotating direction of the rotating display part is along the direction in which the first display part and the second display part are relatively unfolded; the interactive control comprises at least one of a confirmation key, a return key, a menu key, a main interface key, a function key, a previous page and a next page; and
and controlling the graphical user interface according to the operation instruction, wherein the operation instruction comprises an operation instruction for switching the graphical user interface.
2. The interface interaction method of claim 1, wherein the determining the operation instruction for the graphical user interface according to the correspondence between the rotation condition and the interaction control activating the graphical user interface comprises:
and according to the corresponding relation between the rotation condition and the interactive control activating the graphical user interface, if the rotation condition meets the preset condition of switching the interface, determining that the operation instruction is to switch the current display interface of the graphical user interface.
3. The interface interaction method of claim 2, wherein the preset condition for switching the interface comprises: only one of the first display part and the second display part rotates, and the rotation direction is along the direction in which the first display part and the second display part are folded relatively.
4. The interface interaction method of claim 3, wherein when it is determined that the operation command is to switch a current display interface of the graphical user interface, a switching direction of the current display interface is determined according to the rotated display part.
5. The interface interaction method of claim 3, wherein the determining that the operation instruction is to switch a currently displayed interface of the graphical user interface comprises:
if one and only one of the first display part and the second display part rotates and the rotation direction of the rotating display part does not change within preset rotation time, determining that the operation instruction is to continuously switch the current display interface of the graphical user interface;
if one and only one of the first display part and the second display part rotate and the rotating display part rotates within a preset rotation time, determining that the operation instruction is to switch the current display interface of the graphical user interface once; after the rotating display part rotates in the direction opposite to the original rotation direction, the rotating display part is considered to rotate.
6. The interface interaction method of claim 1, wherein the preset condition for activating the interaction control of the graphical user interface comprises: at least one display part of the first display part and the second display part rotates and then turns around; after the rotating display part rotates within the preset rotation time, the rotating display part rotates along the direction opposite to the original rotation direction, and then the rotating display part is considered to rotate.
7. The interface interaction method of any one of claims 2 to 6, wherein the obtaining of the rotation of the first display part and the second display part comprises:
detecting the maximum angle variation of the angle between the first display part and the second display part within a preset rotation time;
if the maximum angle variation falls into a preset angle variation range, determining that the rotation condition is effective operation; and
if the maximum angle variation does not fall into the preset angle variation range, determining that the rotation condition is invalid operation;
and when the operation instruction of the graphical user interface is determined according to the rotation condition, determining the operation instruction according to the effective operation.
8. The interface interaction method of claim 7, wherein the obtaining of the rotation of the first display portion and the second display portion further comprises:
detecting the effective operation, and recording the occurrence frequency of the effective operation within a preset time length; and
the determining the operation instruction according to the valid operation includes: and determining the corresponding operation instruction of the graphical user interface according to the frequency of the effective operation in the preset time.
9. An interface interaction device is applied to an electronic device with a foldable screen, wherein the foldable screen comprises a first display part and a second display part connected with the first display part, and the first display part and the second display part can rotate relatively to be folded or unfolded; the first display part and the second display part are used for displaying a graphical user interface together; the interface interaction device comprises:
a rotation condition obtaining module, configured to obtain rotation conditions of the first display portion and the second display portion; the rotation condition comprises respective rotation states of the first display part and the second display part, and the rotation state comprises a rotation direction at each moment in a rotation process;
an instruction determining module, configured to determine an operation instruction for the graphical user interface according to a correspondence between the rotation condition and an interaction control activating the graphical user interface, where the instruction determining module includes:
if the rotation condition meets a preset condition for activating an interactive control of a graphical user interface, determining that the operation instruction is to activate the interactive control of the graphical user interface; the preset conditions for activating the interactive control of the graphical user interface comprise: at least one of the first display part and the second display part rotates, and the rotation direction is along the direction in which the first display part and the second display part are relatively unfolded; the interactive control comprises at least one of a confirmation key, a return key, a menu key, a main interface key, a function key, a previous page and a next page; and
and the interface control module is used for controlling the graphical user interface according to the operation instruction, wherein the operation instruction comprises an interactive control for activating the graphical user interface.
10. An electronic device, comprising a foldable screen, wherein the foldable screen comprises a first display part and a second display part connected to the first display part, and the first display part and the second display part can rotate relatively to fold or unfold; the electronic device further includes: one or more processors, memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the interface interaction method of any of claims 1-8.
11. The electronic device according to claim 10, further comprising a first motion sensor provided to the first display portion and a second motion sensor provided to the second display portion.
12. A computer-readable storage medium having stored therein program code that can be invoked by a processor to perform the interface interaction method of any one of claims 1 to 8.
CN201910200056.4A 2019-03-15 2019-03-15 Interface interaction method and device, electronic equipment and storage medium Active CN109976633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910200056.4A CN109976633B (en) 2019-03-15 2019-03-15 Interface interaction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910200056.4A CN109976633B (en) 2019-03-15 2019-03-15 Interface interaction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109976633A CN109976633A (en) 2019-07-05
CN109976633B true CN109976633B (en) 2021-10-22

Family

ID=67079050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910200056.4A Active CN109976633B (en) 2019-03-15 2019-03-15 Interface interaction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109976633B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377213B (en) * 2019-07-12 2021-04-09 Oppo广东移动通信有限公司 Control method of electronic device, and computer-readable storage medium
CN110691167B (en) * 2019-09-25 2021-04-16 北京蓦然认知科技有限公司 Control method and device of display unit
CN110995896A (en) * 2019-11-27 2020-04-10 维沃移动通信有限公司 Control method and electronic equipment
CN111952088B (en) * 2020-07-09 2022-10-04 广东美的厨房电器制造有限公司 Knob subassembly and domestic appliance
CN114518927A (en) * 2022-02-18 2022-05-20 维沃移动通信有限公司 Page switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103477304A (en) * 2011-02-10 2013-12-25 三星电子株式会社 Portable device comprising a touch-screen display, and method for controlling same
CN105141772A (en) * 2015-09-08 2015-12-09 广东欧珀移动通信有限公司 Method and device for turning off alarm clock of mobile terminal
CN105452983A (en) * 2014-05-23 2016-03-30 三星电子株式会社 Foldable device and method of controlling the same
WO2017119531A1 (en) * 2016-01-07 2017-07-13 엘지전자 주식회사 Mobile terminal and control method therefor
CN107179865A (en) * 2017-05-19 2017-09-19 维沃移动通信有限公司 A kind of page switching method and terminal
CN107589903A (en) * 2017-10-19 2018-01-16 广东欧珀移动通信有限公司 The method and apparatus for showing more page number displaying information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101933452B1 (en) * 2011-02-10 2019-01-02 삼성전자주식회사 Method and apparatus for inputting user commands using relative movements of device panels
CN108965608B (en) * 2018-08-28 2021-01-08 维沃移动通信有限公司 Alarm clock setting method, folding terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103477304A (en) * 2011-02-10 2013-12-25 三星电子株式会社 Portable device comprising a touch-screen display, and method for controlling same
CN105452983A (en) * 2014-05-23 2016-03-30 三星电子株式会社 Foldable device and method of controlling the same
CN105141772A (en) * 2015-09-08 2015-12-09 广东欧珀移动通信有限公司 Method and device for turning off alarm clock of mobile terminal
WO2017119531A1 (en) * 2016-01-07 2017-07-13 엘지전자 주식회사 Mobile terminal and control method therefor
CN107179865A (en) * 2017-05-19 2017-09-19 维沃移动通信有限公司 A kind of page switching method and terminal
CN107589903A (en) * 2017-10-19 2018-01-16 广东欧珀移动通信有限公司 The method and apparatus for showing more page number displaying information

Also Published As

Publication number Publication date
CN109976633A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109976633B (en) Interface interaction method and device, electronic equipment and storage medium
CN110058828B (en) Application program display method and device, electronic equipment and storage medium
KR101472021B1 (en) Mobile terminal equipped with flexible display and controlling method thereof
EP2637086B1 (en) Mobile terminal
EP2658227B1 (en) Exchange of hand-drawings on touch-devices
EP2661068B1 (en) Mobile terminal and control method thereof
US10042596B2 (en) Electronic device and method for controlling the same
CN109947320B (en) Picture display method and device, electronic equipment and storage medium
US20080088602A1 (en) Multi-functional hand-held device
US20060197753A1 (en) Multi-functional hand-held device
US20160127652A1 (en) Mobile terminal and control method thereof
JP2021525430A (en) Display control method and terminal
JP4764329B2 (en) Information processing device
KR20140092722A (en) Mobile apparatus displaying screen according to type of cover comprising of transparent-section and control method thereof
CN109947383B (en) Display control method and device, mobile terminal and storage medium
CN109806589B (en) Virtual object control method and device, electronic device and storage medium
KR20140119546A (en) Method and apparatus for displaying user interface
KR20210021863A (en) Electronic device having foldable display and method for generating content therof
CN112230910B (en) Page generation method, device and equipment of embedded program and storage medium
US11934651B2 (en) Mobile terminal with multiple screens and mapped coordinates
JP5524685B2 (en) Display device and control method thereof
KR102278676B1 (en) Method and apparatus for displaying user interface
KR102329890B1 (en) Method and apparatus for displaying user interface
KR102187856B1 (en) Method and apparatus for displaying user interface
KR101774317B1 (en) Mobile terminal and method for controlling thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant