CN109976633A - Interface alternation method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN109976633A
CN109976633A CN201910200056.4A CN201910200056A CN109976633A CN 109976633 A CN109976633 A CN 109976633A CN 201910200056 A CN201910200056 A CN 201910200056A CN 109976633 A CN109976633 A CN 109976633A
Authority
CN
China
Prior art keywords
display unit
interface
rotation
user interface
graphic user
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.)
Granted
Application number
CN201910200056.4A
Other languages
Chinese (zh)
Other versions
CN109976633B (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

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

This application involves a kind of interface alternation method and device, electronic equipment and storage mediums, electronic equipment has Folding screen, foldable screen includes the first display unit and the second display unit for being connected to the first display unit, and the first display unit and the second display unit are relatively rotatable to each other;First display unit and the second display unit for showing graphic user interface jointly.Interface alternation method includes: to obtain the rotation situation of the first display unit and the second display unit;The operational order for graphic user interface is determined according to rotation situation;And according to operational order, control graphic user interface, wherein operational order includes the operational order for switching the graphic user interface.In interface alternation method provided by the present application, user can realize human-computer interaction by the rotation between the first display unit and the second display unit, and then easily control graphic user interface.

Description

Interface alternation method and device, electronic equipment and storage medium
Technical field
This application involves consumer electronics device field more particularly to a kind of interface alternation method and devices, electronic equipment And storage medium.
Background technique
It improving with the development of science and technology, the communication technology is developed rapidly and significant progress, and with the communication technology Raising, the popularization and improvement of smart electronics product to a unprecedented height, more and more intelligent terminals or electronics Equipment is at indispensable a part in for people's lives, such as smart phone, smart television and computer.
While electronic equipment is popularized, the functional type and performance requirement that user has electronic equipment are increasingly Height, such as interaction function, audio-frequency function, shooting function and game function all have become the indispensability of intelligent terminal or electronic equipment Function.
The electronic equipment of demand growth with the development and user of to(for) reading, video and amusement, the screen of electronic equipment Curtain size is gradually increased, when user is using the electronic equipment reading electronic book of larger size, news or sees video, to logical The mode for crossing sliding or click interface realizes interface alternation, is taken into account due to the hand needs of user and holds electronic equipment and touch-control The work at interface is difficult to be activated to corresponding interactive controls accurately to realize expected operating effect, is unfavorable for user behaviour Control electronic equipment.
Summary of the invention
In view of this, the application provides a kind of interface alternation method and device, electronic equipment and storage medium, for solving The certainly above problem.
In a first aspect, the embodiment of the present application provides a kind of interface alternation method, set applied to the electronics with foldable screen Standby, foldable screen includes the first display unit and the second display unit for being connected to the first display unit, and the first display unit and second show The portion of showing is relatively rotatable to each other;First display unit and the second display unit for showing graphic user interface jointly.Interface alternation method It include: the rotation situation for obtaining the first display unit and the second display unit;It is determined according to rotation situation for graphic user interface Operational order;And according to operational order, control graphic user interface, wherein operational order includes switching the figure to use The operational order at family interface.
Second aspect, the embodiment of the present application provide a kind of interface alternation device, set applied to the electronics with foldable screen Standby, foldable screen includes the first display unit and the second display unit for being connected to the first display unit, and the first display unit and second show The portion of showing is relatively rotatable to each other to fold or be unfolded;First display unit and the second display unit for showing graphic user interface jointly. Interface alternation device includes: that rotation situation obtains module, for obtaining the rotation situation of the first display unit and the second display unit; Determining module is instructed, for determining the operational order for graphic user interface according to rotation situation;And interface control module, For controlling graphic user interface according to operational order, wherein operational order includes the interaction control for activating graphic user interface Part.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including foldable screen, and foldable screen includes first aobvious Show portion and be connected to the second display unit of the first display unit, the first display unit and the second display unit are relatively rotatable to each other to fold Or expansion.Electronic equipment further include: one or more processors, memory and one or more application program, one of them Or multiple application programs are stored in memory and are configured as being performed by one or more processors, one or more programs It is configurable for executing above-mentioned method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, which is characterized in that computer-readable Program code is stored in storage medium, program code can be called by processor and execute above-mentioned interface alternation method.
In interface alternation method provided by the present application, user can be while holding electronic equipment, directly by the Human-computer interaction is realized in rotation between one display unit and the second display unit, and then is easily controlled to graphic user interface System is capable of providing the convenience that user manipulates electronic equipment, to improve the experience that user carries out human-computer interaction.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the stereoscopic schematic diagram that foldable electronic provided by the present application is in folded state.
Fig. 2 is the stereoscopic schematic diagram that foldable electronic provided by the present application is in the partially unfolded state.
Fig. 3 is a kind of flow diagram of interface alternation method provided by the present application.
Fig. 4 is the flow diagram of another interface alternation method provided by the present application.
Fig. 5 is the flow diagram of another interface alternation method provided by the present application.
Fig. 6 is the functional block diagram of interface alternation device provided by the present application.
Fig. 7 is provided by the present application for executing the functional block of the electronic equipment of the interface alternation method of the embodiment of the present application Figure.
Fig. 8 is provided by the embodiments of the present application for saving or carrying the interface alternation method of realization the embodiment of the present application Program code storage unit.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Include as " communication terminal " (or referred to as " terminal ") that uses in the embodiment of the present application, " electronic equipment ", But it is not limited to be configured to connect via Wireline (such as via Public Switched Telephone Network (PSTN), digital subscriber line (DSL), digital cable, Direct cable connection and/or another data connection/network) and/or via (for example, being directed to honeycomb Network, WLAN (WLAN), the digital TV network of such as DVB-H network, satellite network, AM-FM broadcasting transmitter, with And/or another communication terminal) wireless interface receives/send the device of signal of communication.It is configured to pass through radio interface communication Communication terminal can be referred to as " wireless communication terminal ", " wireless terminal " and/or " electronic equipment ".Electronic equipment, electronics The example of equipment includes, but are not limited to satellite or cellular phone;Can with combination cellular radio telephone and data processing, fax with And PCS Personal Communications System (PCS) terminal of communication ability;It may include radio telephone, pager, the Internet/intranet Access, Web browser, memo pad, calendar and/or global positioning system (GPS) receiver PDA;And conventional laptop And/or palmtop receiver or other electronic devices including radiotelephone transceiver.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.
Referring to Fig. 1, the application embodiment provides a kind of foldable electronic 500, foldable electronic 500 can Think but be not limited to mobile phone, tablet computer electronic device.The foldable electronic 500 of present embodiment take the mobile phone as an example into Row explanation.
Foldable electronic 500 include foldable housing unit 100, foldable screen 200 and electronic building brick (in figure not Show), electronic building brick is set in foldable housing unit 100, and foldable screen 200 is layed on foldable housing unit 100. Foldable housing unit 100 protects electronic building brick for carrying to foldable screen 200.
Foldable housing unit 100 includes first shell 10, second shell 30 and rotating shaft mechanism 50,10 He of first shell Second shell 30 is connected to the two sides of rotating shaft mechanism 50.Second shell 30 can be by rotating shaft mechanism 50 with respect to first shell 10 fold or expansion, make foldable housing unit 100 that foldable screen 200 be driven to fold or expansion, foldable housing unit 100 and When foldable screen 200 is in overlapping shape, the volume of foldable electronic 500 is relatively small, convenient for storage and carries.
First shell 10 includes the first center 12 and the first lid 14.The side of first center 12 is connected to rotating shaft mechanism 50, it is used to carry the part-structure of electronic building brick.First lid 14 is covered on the first center 12.When first shell 10 and second When shell 30 is in overlapping shape, the first lid 14 is stacked with 30 phase of second shell, that is, the first lid 14 fits in second shell 30.Second shell 30 includes the second center 32 and the second lid 34.The side of second center 32 is connected to rotating shaft mechanism 50, For carrying the part-structure of electronic building brick.Second lid 34 is covered on the second center 32.When first shell 10 and second shell 30 be in when overlapping shape, and the second lid 34 is stacked with 14 phase of the first lid, that is, the second lid 34 fits in the first lid 14.
Electronic building brick includes the first electronics module, the second electronics module and flexible circuit board, the setting of the first electronics module In in first shell 10, the second electronics module is set in second shell 30, and flexible circuit board is electrically connected in the first electronics Mould group and the second electronics module.Further, the first electronics module can be mainboard and the central processing unit of mainboard, storage be arranged Device, antenna, camera and electrophone etc..Second electronics module can also be by printed circuit board and being set to printed circuit board Functional module constitute, the second electronics module be different from the first electronics module, the second electronics module may include battery, connector, Fingerprint mould group etc..
Foldable screen 200 is successively layed in first shell 10, rotating shaft mechanism 50 and second shell 30.In present embodiment In, foldable screen 200 is flexible display screen.Foldable screen 200 is with first shell 10 and the mutually overturning of second shell 30 in bending Shape or expansion shape.Foldable screen 200 is electrically connected to electronic building brick, so that electronic building brick can control foldable screen 200 and run.
Please refer to Fig. 1 and Fig. 2, in present embodiment, foldable screen 200 includes being connected to the first of first shell 10 Display unit 202, the second display unit 203 for being connected to second shell 30 and it is connected to the first display unit 202 and the second display unit 203 Bending display unit 204.First display unit 202 and the second display unit 203 are opposite with first shell 10 and second shell 30 respectively Ground folds or expansion.Bending display unit 203 bent with the folding or expansion of the first display unit 202 and the second display unit 203 or Flattening.In some embodiments, the first display unit 202, the second display unit 203 and bending display unit 204 can be integrated Structure makes the flexible display screen of foldable 200 full slice system of screen;Alternatively, bending display unit in other some embodiments 204 be bent flexible portion, and the first display unit 202, the second display unit 203 can be non-flexible position, the first display Portion 202, the second display unit 203 relatively fold or are unfolded by bending display unit 204.In the present embodiment, first shell 10 with second shell 30 in overlapping shape when, the first display unit 202 is away from each other with the second display unit 203, makes foldable electronic 500 are rendered as being folded outward the structure of screen, observe user equally can in the display of foldable screen 200 in the case where folding Hold, improves the convenience that foldable electronic 500 uses.In other some embodiments, first shell 10 and the When two shells 30 are in overlapping shape, the first display unit 202 is stacked with 203 phase of the second display unit, and foldable electronic 500 is presented For the structure of infolding screen, so that foldable screen 200 is from scratching damage.
It should be understood that the name of the first above-mentioned display unit, the second display unit and bending display unit is only to be convenient for It describes and is arranged, be not intended as the structure limitation of foldable screen, in actual application scenarios, the first display unit, the second display Portion and bending display unit can not have apparent boundary, alternatively, foldable screen can occur with other partition structures, example Such as, foldable screen includes the first display unit and the second display unit for being connected to first display unit, first display unit and should Second display unit is relatively rotatable to each other to fold or be unfolded.
In the present embodiment, foldable electronic 500 further includes angle detection mould group 70 (please referring to Fig. 1), angle Detection mould group 70 is for detecting angulation between first shell 10 and second shell 30.In some embodiments, angle Degree detection mould group 70 can be Hall angle degree sensor, can connect in first shell 10, second shell 30 or turning engine Any one of structure 50.
In some embodiments, foldable electronic 500 can also include that two motion sensors 90 (please refer to figure 1), two motion sensors 90 are respectively arranged at first shell 10 and second shell 30, to be respectively used to detection first shell 10 and second shell 30 rotation situation.Motion sensor 90 can include but is not limited to include: acceleration transducer, gravity The sensors such as sensor, Inertial Measurement Unit, gyroscope.By taking acceleration transducer as an example, two acceleration transducers are set respectively Be placed in first shell 10 and second shell 30, can be detected by two acceleration sensors first shell 10 acceleration direction and The acceleration direction of second shell 30, and according to the walking direction of the acceleration of first shell 10 and the acceleration of second shell 30 The rotation situation of first shell 10 and second shell 30.It is understood that the rotation feelings of first shell 10 and second shell 30 Condition includes: that first shell 10 is moved with respect to the movement of second shell 30, second shell 30 with respect to first shell 10,10 He of first shell Second shell 30 moves toward one another or is 30 back movement of first shell 10 and second shell.
Referring to Fig. 3, the embodiment of the present application provides a kind of interface alternation method based on above-mentioned foldable electronic, Human-computer interaction is realized for showing graphic user interface in foldable electronic device, and by foldable shell, to allow User easily operates graphic user interface, to improve the experience that user carries out human-computer interaction.The embodiment of the present application The interface alternation method of offer is once triggered, then in embodiment method process can by electronic equipment automatic running, In, each step can be when operation and successively carry out according to the sequence in such as flow chart, be also possible to according to practical feelings The multiple steps of condition carry out simultaneously, herein and without limitation.In the present embodiment, which may include step S101~S105.
Step S101: the rotation situation of the first display unit and the second display unit is obtained.
Further, when electronic equipment starting graphic user interface, can be continued by the motion sensor of electronic equipment Detect the rotation situation of the first display unit and the second display unit.The rotation situation, it is thus understood that the first display unit and second The respective rotary state of display unit, and/or rotary state opposite therebetween.The rotary state, it is thus understood that first is aobvious The state at show portion and the second display unit each moment during rotation, including but not limited to includes rotational angle, rotation speed The physical quantitys such as degree, rotation direction, acceleration.That is, above-mentioned rotation situation, may include the first display unit and the second display The movement physical quantity of portion respectively during rotation can also include that the first display unit and the second display unit are opposite therebetween Rotary state, such as opposite rotation direction therebetween.
In the embodiment of the present application, when electronic equipment starting graphic user interface, user can pass through graphic user interface It to electronic equipment input information, is operated, electronic equipment then passes through graphic user interface and provides a user information, for user It read, analyzed and is judged.Further, graphic user interface may include interactive controls, and interactive controls are user and electricity Sub- equipment carries out medium when input information, for example, interactive controls can be the virtual key of graphic user interface, virtual key It may include any in the virtual keys such as acknowledgement key, return key, Menu key, main interface key, function key, page up, lower one page A or multiple combination.When user is by that can carry out electronic equipment corresponding when graphic user interface activates interactive controls The click of virtual key, and then make the order of electronic equipment execution respective virtual key.
Further, it when user operates on a graphical user interface, may be implemented to use the figure of electronic equipment The interactive actions such as slided, clicked in family interface.The interface type of graphical user interface displays is unrestricted, such as graphical user Interface can be shown as picture interface, text interface, picture and text interface, control menu interface etc..
Step S103: it according to the rotation situation of the first display unit and the second display unit, determines for graphic user interface Operational order.
In the present embodiment, the rotation situation of the first display unit and the second display unit can include but is not limited to wrap It includes: rotation direction, rotational angle, speed and the acceleration of the first display unit and rotation direction, the angle of rotation of the second display unit Degree, speed and acceleration.In some embodiments, the operational order of graphic user interface can include but is not limited to include: It activates the interactive controls of graphic user interface and switches the current display interface of graphic user interface.
It should be noted that according to the corresponding relationship between rotation situation and operational order, the rotation side of the first display unit To with the rotation situations such as rotational angle, the rotation direction of the second display unit and rotational angle, can be with activation graphic user interface Interactive controls, the operational orders such as current display interface that switch graphic user interface establish corresponding relationship, in order to according to turning Emotionally condition determines the operational order of graphical user interface.It, can be with for example, according to the rotation direction and rotational angle of the first display unit The operational order for determining graphic user interface is the current interactive controls for activating graphic user interface.
Step S105: according to operational order, graphic user interface is controlled.
In some specific application scenarios, for example, text interface is as above-mentioned graphical user in e-book reading Interface, the required operational order executed of user are switching text interface.When electronic equipment starts e-book reading, it is believed that Electronic equipment triggers interface alternation method provided by the present application, and user passes through the first display unit of manipulation and/or the second display unit Rotation (for example, the direction folded against of rotation direction between the first display unit and the second display unit), switching can be inputted The operational order of the current display interface of graphic user interface, to switch over the text interface currently shown (for example, to the left Single switching switches to let continuous switching, to the right single switching, to fight continuity), namely realize the operation of e-book page turning.
In some specific application scenarios, for example, menu interface is as above-mentioned in the navigation process of menu interface Graphic user interface, the required operational order executed of user is menu interface.When electronic equipment starts menu interface, can recognize It has been touched for electronic equipment and has sent out interface alternation method provided by the present application, user passes through the first display unit of manipulation and/or the second display The rotation (for example, the opposite expansion direction of rotation direction between the first display unit and the second display unit) in portion, can input sharp The operational order of the current set of menu of graphic user interface living, to activate the interactive controls of graphic user interface (for example, clicking confirmation Key, return key, main interface key, any virtual key in function key).
In the interface alternation method provided by the present application, allow through the first display unit of manipulation and/or the second display unit Rotation to the manipulation instruction of electronic equipment input interface interaction, and then realizes the interactive operation of graphical interface of user, can be convenient The operation to graphical interface of user is realized on ground, such as switches the page or activation interactive controls, carries out human-computer interaction to improve user Experience.
Referring to Fig. 4, the embodiment of the present application also provides another interface alternation method based on above-mentioned electronic equipment, use In showing graphic user interface in foldable electronic device, and human-computer interaction is realized by foldable shell, to allow to use Family easily operates graphic user interface, to improve the experience that user carries out human-computer interaction.It should be noted that The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also, It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts The step of out or describing.In the present embodiment, interface alternation method may include step S21~S27.
Step S21: the rotation situation of first display unit and second display unit is obtained.
Step S23: the direction of motion of detection the first display unit and the second display unit.
Further, the movement side of the first display unit and the second display unit during an operational motion executes is detected To.In the present embodiment, operational motion be user by once being folded to the first display screen and/or second display screen or The movement of expansion.It should be noted that if user turned round after the first display screen and/or second display screen once fold or The movement turned round after One step development is considered as an operational motion.For example, an operational motion can be in following movement Any: the first display unit is rotated along the first preset direction, the first display unit is rotated along the second preset direction or the first display unit It is together an operational motion along the second preset direction rotation etc. with the second display unit, that is, an operational motion refers to first Display unit is rotated along the first preset direction, the first display unit is rotated along the second preset direction or the first display unit and second is shown Portion is together along any of the second preset direction rotation etc. movement.
As an implementation, the estimated time for executing an operational motion is named as default rotation time, preset Rotation time can be set according to user's customized time or electronic equipment preset time, for example, when default rotation Between can any number between 10ms~300ms.It should be noted that in default rotation time, estimating user can be with An operational motion is executed, namely in default rotation time, estimating user can be to the first display unit and/or the second display unit It executes primary rotation or executes the operation turned round after primary rotation.By introducing default rotation time, be conducive to subsequent to operation The number of movement determined and estimated, and judges the actual instruction of user with the number of binding operation movement, and this point will be It is described in detail hereinafter.
In the embodiment of the present application, the direction of motion of the first display unit and/or the second display unit includes the first preset direction With the second preset direction, wherein the first preset direction is the first display unit and the second display unit direction folded against, and second is pre- Set direction is the direction of the first display unit and the opposite expansion of the second display unit.It should be noted that the first preset direction and second The setting of preset direction is to illustrate done setting for the application embodiment, can according to user it is specifically used into The other setting of row.For example, in some embodiments, the direction of motion of the first display unit and/or the second display unit includes the The direction that opposite second display unit in one display unit edge folds, the direction that opposite second display unit in the first display unit edge is unfolded, second Display unit is along the direction that opposite first display unit folds, and for the second display unit along the direction of opposite first display unit expansion, first is aobvious Show portion and the second display unit together along direction folded against, the first display unit and the second display unit are together along the side of opposite expansion To etc..
As an implementation, when the first display unit of electronic equipment and the second display unit are unfolded relatively, electronics is set It is standby can according to the relative position between the first display unit and the second display unit, come determine the first display unit and the second display unit it Between angle.Wherein, when the first display unit of electronic equipment and the second display unit are unfolded, angle between the two can be substantially The display surface of 180 degree namely the first display unit and the second display unit is aobvious in same display surface or the first display unit and second Show the display surface in portion approximatively in same display surface.Further, when electronic equipment be infolding screen electronic displays when, for The use habit at family and viewing habit, the angle between the first display unit and the second display unit can be less than 180 degree, so as to Graphical interface of user is watched at family.Wherein, the angle between the first display unit and the second display unit is detected, can use electronic equipment Itself setting angular transducer, range sensor or other can directly or indirectly detect the first display unit and second display The sensor of angle between portion is realized.
In the present embodiment, user can be carried out by control any of the first display unit and the second display unit Rotation, to change angle between the two.When detecting that the angle between the first display unit and the second display unit changes When, for example, angle between the two reduces or the first display unit when the first display unit and the second display unit folded against And second display unit it is opposite when being unfolded, angle between the two increases.It is possible to further aobvious in the first display unit and second Show and the motion sensors such as Inertial Measurement Unit are respectively set in portion, to combine the angle between the first display unit and the second display unit The direction of motion for changing to obtain the first display unit and/or the second display unit is the first preset direction or the second preset direction.
In the embodiment of the present application, the result of step S23 detection includes but is not limited to: the first display unit is along the first default side To movement, the first display unit is moved along the second preset direction, and the second display unit is moved along the first preset direction, the second display unit edge The movement of second preset direction, the first display unit and the second display unit are moved along the second preset direction.
Step S25: the behaviour for graphic user interface is determined according to the direction of motion of the first display unit and the second display unit It instructs.
In the embodiment of the present application, according to the direction of motion of the first display unit and the second display unit be the first preset direction or Second preset direction can determine different operational orders.
Further, the first display unit and/or the second display unit can be rotated along the first preset direction, the first display unit And/or second display unit can also be rotated along the second preset direction, therefore, as shown in figure 4, in the present embodiment, step S25 is also It may include step S251a~S253a and step S251b.Wherein, step S251a~S253a is the first display unit and/or The step of two display units execute when rotating along the first preset direction, step S251b are the first display unit and/or the second display unit edge The step of second preset direction executes when rotating.
Step S251a: if one and only one display unit is along the first preset direction in the first display unit and the second display unit Rotation, it is determined that operational order is the current display interface for switching graphic user interface.
In the present embodiment, the preset condition for switching the current display interface of graphic user interface may include: the first display One and only one display unit is rotated along the first preset direction in portion and the second display unit.That is, if the rotation situation obtained is full When the above-mentioned preset condition of foot, determine that operational order is the current display interface for switching graphic user interface.
Further, if one and only one display unit turns along the first preset direction in the first display unit and the second display unit It is dynamic, and rotation direction of the display unit rotated in default rotation time does not change, it is determined that operational order is continuous switching figure The current display interface of shape user interface.
For example, the first display unit is rotated along the first preset direction, and the rotation direction in default rotation time does not change, Determine that operational order is the current interface of continuous switching graphic user interface.Wherein, continuously switch the current of graphic user interface Interface can be equivalent to current interface carrying out continuous handover operation, such as switch multiple pages to let continuous, or to fight continuity Switch multiple pages.Optionally, the switch speed continuously switched can determine according to the rotational angle size of the first display unit, Specifically determining corresponding relationship can be by user's sets itself.At this point, when electronic equipment executes continuous switching graphic user interface Current interface when, the rotation direction of the first display unit is persistently detected, if the first display unit turns in the handoff procedure of the page along former Dynamic direction revolution, then stop the movement for switching the page.In other implementations, when user is turned by the second display unit of control When moving to switch current interface, the implementation procedure of switching command be it is similar, this specification repeats no more.
If one and only one display unit is rotated along the first preset direction in the first display unit and the second display unit, and is rotated Display unit turned round after rotation, it is determined that operational order be single switch graphic user interface current display interface; Wherein, it is rotated after the display unit of rotation rotates in default rotation time along the direction opposite with former rotation direction, then it is assumed that turn Dynamic display unit revolution.
For example, the first display unit is rotated along the first preset direction, and rotated after being rotated in default rotation time along with original Contrary direction rotation, it is determined that operational order is the current interface that single switches graphic user interface.Wherein, single is cut The current interface of graphic user interface is changed, can be equivalent to and single handover operation is carried out along same switching direction to current interface, Such as switch a page to the left, or switch a page to the right.
Step S253a: the switching direction of current display interface is determined according to the display unit of rotation.
Wherein it is possible to by being set in advance to the first display unit and the second display unit, such as set the first display unit into When row rotation, the switching direction of current display interface is to switch to the left;When second display unit is rotated, current display interface Switching direction is to switch to the right.In some embodiments, inertia can be respectively set in the first display unit and the second display unit Measurement sensor, and determine according to the acceleration change of the first display unit or the second display unit the display unit of rotation.
For example, if the first display unit is rotated along the first preset direction, and the rotation direction in default rotation time does not change Become, it is determined that being switched to let continuous for current display interface switches graphic user interface.If the first display unit is default along first Direction rotation, and the first display unit turns round in default rotation time;Then determine being switched to the left for current display interface Single switches graphic user interface.
Optionally, in some embodiments, the switching direction at interface can be determined by the rotation direction of display unit, At this point, step S253a can be with are as follows: according to the rotation direction of the display unit of rotation, determine the switching direction of current display interface.This When, for the same display unit, when rotation direction difference, it can control current display interface and switch to different directions, just In user's operation.
In the embodiment of the present application, as shown in Fig. 2, the first display unit and the second display unit be located at the left side in figure and The right, it is also contemplated that the first display unit and the second display unit are located at the left side and the right of user.With the first display unit along For one preset direction (for counterclockwise in figure) rotation, at this point, the rotation direction of the first display unit is to rotate counterclockwise, it can It, can if the rotation direction of the first display unit is to rotate counterclockwise to determine that the switching direction of current display interface is to switch to the right To determine that the switching direction of current display interface is to switch to the right.
Further, if the first display unit is rotated along the first preset direction, and the rotation direction in default rotation time Do not change, it is determined that being switched to fight continuity for current display interface switches graphic user interface.If the first display unit is along first Preset direction rotation, and the first display unit turns round in default rotation time;Then determine being switched to for current display interface Single switches graphic user interface to the right.
In the present embodiment, current interface switching direction is determined according to the display unit of rotation, with the display according to rotation The rotation direction in portion determines the switching direction of current interface, can satisfy the use demand of different clients.
Step S251b: if at least one display unit turns along the second preset direction in the first display unit and the second display unit It is dynamic, it is determined that operational order is the interactive controls for activating graphic user interface.
In the present embodiment, activate the interactive controls of graphic user interface preset condition may include: the first display unit and At least one display unit in second display unit is rotated along the second preset direction.That is, if obtain rotation situation meet it is above-mentioned When preset condition, determine that operational order is the interactive controls for activating graphic user interface.
In the present embodiment, interactive controls be graphic user interface virtual key, virtual key may include acknowledgement key, The combination of any one or more in the virtual keys such as return key, Menu key, main interface key, function key, page up, lower one page. Therefore, the interactive controls for activating graphic user interface may include: to click acknowledgement key, return key, Menu key, main interface key, function Any virtual key in energy key, page up, lower one page etc..
It should be noted that at least one display unit turns along the second preset direction in the first display unit and the second display unit Dynamic type includes: that the first display unit is rotated along the second preset direction, and the second display unit is rotated along the second preset direction, and first is aobvious Showing that portion and the second display unit are rotated along the second preset direction simultaneously, the first display unit turns round after the rotation of the second preset direction, the Two display units turn round after the rotation of the second preset direction, and the first display unit and the second display unit are rotated along the second preset direction simultaneously After turn round.Wherein, the definition turned round after rotating and rotate is similar with S253a, and this will not be repeated here.It therefore, can be by building Corresponding relationship between vertical aforesaid operations movement and interactive controls enables different operational motions to activate corresponding interaction control Part.For example, user can set the corresponding interactive controls of above-mentioned six operational motions, in above-mentioned operational motion generation Corresponding interactive controls are activated, meet user to the operational requirements of the interactive controls of graphic user interface.
For example, can determine that operation refers to if the first display unit and the second display unit turn round after the rotation of the second preset direction Order is that the interactive controls of activation graphic user interface are to click main interface key;If the first display unit is after the rotation of the second preset direction Revolution, can determine operational order be activate graphic user interface interactive controls be click return key;If the second display unit edge Second preset direction rotation after turn round, can determine operational order be activate graphic user interface interactive controls be click menu Key.
Step S27: according to operational order, graphic user interface is controlled.
In the interface alternation method provided by the present application, allow through the first display unit of manipulation and/or the second display unit Rotation to the manipulation instruction of electronic equipment input interface interaction, and then realizes the interactive operation of graphical interface of user, can be convenient The operation to graphical interface of user is realized on ground, such as switches the page or activation interactive controls, to improve the convenience of user's operation, from And improve the experience that user carries out human-computer interaction.
Referring to Fig. 5, the embodiment of the present application also provides another interface alternation method based on above-mentioned electronic equipment, use In showing graphic user interface in foldable electronic device, and human-computer interaction is realized by foldable shell, to allow to use Family easily operates graphic user interface, to improve the experience that user carries out human-computer interaction.In the present embodiment, boundary Face exchange method may include step S31~S39.
Step S31: the rotation situation of the first display unit and the second display unit is obtained.
Step S33: detecting in default rotation time, the maximum angle variation between the first display unit and the second display unit Amount.
Further, presetting rotation time is the estimated time that an operational motion executes, and default rotation time can root It is set according to user's customized time or electronic equipment preset time, for example, default rotation time is 10ms~300ms Between any number.It should be noted that user can execute an operational motion, Ye Ji in default rotation time In default rotation time, user returns after executing primary rotation or the primary rotation of execution to the first display unit and/or the second display unit The operation turned.
In some embodiments, in default rotation time, default rotation time of the display unit of rotation after rotation The interior edge direction rotation opposite with former rotation direction, then it is assumed that turned round after the display unit rotation of rotation.For example, the first display It is turned round after portion's rotation, is also regarded as an operational motion;Wherein, the display unit of rotation rotates in default rotation time It is rotated afterwards along the direction opposite with former rotation direction, then it is assumed that the display unit of rotation turns round.It should be noted that the application In embodiment, it will be turned round after the rotation of the first display unit and/or the second display unit that occur in default rotation time, really It is set to an operational motion.
Above-mentioned " revolution " state, can be detected by inertia measurement sensor, for example, can be aobvious by detection first Show whether the rotation direction of portion and the second display unit changes, to judge whether it turns round, alternatively, detection the can be passed through Whether the acceleration direction of one display unit and the second display unit changes, to judge whether it turns round.
In the embodiment of the present application, pass through the angle change between the first display unit of detection and the second display unit, Ke Yigen According to the angle information after variation, the maximum angle variable quantity of the first display unit and the second display unit is obtained.As a kind of implementation Mode, in the operational motion that the display unit of rotation turns round after rotating, the angle variable quantity of revolution is less than or equal to rotation Angle variable quantity, thus, maximum angle variable quantity is the maximum of the angle change occurred when the display unit rotation of rotation.
Step S35: if maximum angle variable quantity does not fall within predetermined angle variable quantity range, it is determined that the first display unit and The rotation situation of second display unit is invalid operation, and returns to step S33.
As an implementation, predetermined angle variable quantity is 5 °~15 °, when the first display unit and the second display unit most When wide-angle variations amount does not fall within predetermined angle variable quantity range, i.e., maximum angle variable quantity is less than predetermined angle variable quantity range Lower limit value or upper limit value greater than predetermined angle variable quantity range.It should be noted that by the restriction to rotational angle, energy The erroneous judgement being intended to user is enough avoided, for example, when maximum angle variable quantity is less than the lower limit value of predetermined angle variable quantity range, It can be determined that the maloperation (such as shake in the shake normally held or receiving state) for user, at this time the first display unit It is confirmed as invalid operation with the rotation situation of the second display, which is not to be regarded as the input action of any operational order; When maximum angle variable quantity is greater than the upper limit value of predetermined angle variable quantity range, it is possible to determine that shown for user in execution first The overturning of screen and second display screen, to realize the folding or expansion of electronic equipment, rotation situation is also determined as invalid behaviour at this time Make.
Step S36: if maximum angle variable quantity falls into predetermined angle variation range, it is determined that the first display unit and second The rotation situation of display unit is effectively operation, and executes step S37.
As an implementation, predetermined angle variation range can be 5 °~15 °, when the first display unit and second are shown When maximum angle variable quantity between portion falls into predetermined angle variable quantity range, by the operational motion labeled as effectively operation.Its In, predetermined angle variation range can be set according to the use habit of individual subscriber.
Step S37: detection effectively operation, and record and effectively operate the number occurred in preset duration.
In the embodiment of the present application, by being divided into effectively operation and invalid operation to operational motion, part can be screened out The rotation of first display unit and the second display unit caused by as user misoperation, or exclude the folding or expansion of electronic equipment Movement.Further, if operational motion is effectively operation, which can be recorded;If operational motion is invalid dynamic When making, which can be ignored.It should be noted that the operational order of graphic user interface is carried out really by effectively operating It is fixed, to guarantee that user passes through effective operation of the first display unit and the realization of the second display unit, available corresponding operational order.
Further, preset duration is that the corresponding relationship between the number and operational order occurred according to effectively operation carries out Preset time span.As an implementation, presetting rotation time is 10ms~300ms, at this point, preset duration can be Longer time, such as 300ms~800ms.If default rotation time is 300ms, when preset duration is 600ms, it is contemplated that It is that in preset duration, the number that effectively operation occurs is up to twice.It should be noted that user can be according to effective behaviour The number of work is once or twice, and to combine the rotation side of the first display unit and/or the second display unit in default rotation time To can combine to form a plurality of manipulation instruction, and then enrich the combination of at user option operational order.
Further, if after effectively operation occurs, effectively operation does not occur again within the default waiting time, record has been sent out The raw number effectively operated.In some embodiments, for example, the default waiting time can be 5ms~100ms, preset etc. Length to the time is less than default rotation time, after completing an effective operation to avoid user, when needing to wait longer Between.It should be noted that if effectively operation does not occur in the default waiting time again, regardless of preset duration there remains how many, all Using the number effectively operated of record occurred as the foundation for determining operation.
For example, preset duration is 600ms, presetting the waiting time is 10ms, and presetting rotation time is 300ms, that is, pre- If at most may exist two default rotation times in duration, or perhaps effectively operation twice occurs.Further, if pre- If after primary effectively operation occurs in rotation time, primary effectively operation occurs again within the default waiting time, when record is default The effective number of operations occurred in long is twice, and to execute step S38;If primary effectively operation occurs in default rotation time Afterwards, effectively operation does not occur again within the default waiting time, the effective operation occurred in record preset duration is primary, and is held Row step S38;If effectively behaviour occurs again after the default waiting time after primary effectively operation occurs in default rotation time Make, wherein record preset duration in effective number of operations be it is primary, at this time execution step S38, and preset the waiting time after What is occurred effectively operates the number of operations being included in next preset duration.
In some embodiments, it is convenient to omit the setting of preset duration, but according within the default waiting time whether Effectively operation occurs to record the number effectively operated.If one effectively operates and occurs again in the default waiting time after occurring Effectively operation, then record effectively operates the accumulative number occurred;If one effectively operates in the default waiting time after occurring not Effectively operation occurs, then terminates the record for the number that effective operation occurs, and determines the number effectively operated occurred, into And step S38 is executed according to the number that effective operation of record occurs.That is, if effectively operating the default waiting time after occurring Effectively operation inside occurs again, adds up the number that effectively operation occurs, until the default waiting time after effective operation occurs Effectively operation inside no longer occurs, counts the number effectively operated occurred, and then hold according to the number that effective operation occurs Row step S38.
Step S38: according to the number occurred in preset duration is effectively operated, the behaviour of corresponding graphic user interface is determined It instructs.
In the embodiment of the present application, according to effectively operating, the number that occurs in preset duration is corresponding with preset times to be closed System, can determine the operational order of corresponding graphic user interface.If the number that effectively operation occurs is greater than preset times, scheme Shape user interface shows miscue or without response.Wherein, the number that effectively operation occurs is greater than preset times, i.e., when default It, can not be with preset figure when the number of revolutions of first display unit and the second display unit is more than the number of revolutions of user preset in long The operational order of shape user interface forms correspondence, is determined as the maloperation of user.
In some embodiments, also by according to the group for effectively operating the number and order that occur in preset duration It closes, determines the operational order of corresponding graphic user interface.It is more than that is, the number occurred in preset duration ought be operated effectively An at time, the operational order of corresponding graphic user interface can be determined by effectively operating the order of generation.For example, first turning Dynamic first display unit is rotated further by operational order corresponding to the second display unit, is different from and first rotates the second display unit and be rotated further by first Operational order corresponding to display unit.It should be noted that being increased by the combination of the different numbers and different order that effectively operate The optional way that the operational order of preset graphic user interface is carried out to user is added.
It should be noted that if when preset duration is identical as default rotation time, it is convenient to omit step S37, at this time pre- If in duration, the number that effectively operation occurs is at most once, i.e., without recording to the number effectively operated.If effectively behaviour When work occurs, the operational order of graphic user interface can be directly determined according to effectively operation.Further, for effectively operating The determination of the operational order of graphic user interface when the number of generation is one time, the step being referred in above-described embodiment S21~S27.
Step S39: according to operational order, graphic user interface is controlled.
In the interface alternation method provided by the present application, allow through the first display unit of manipulation and/or the second display unit Rotation to the manipulation instruction of electronic equipment input interface interaction, and then realizes the interactive operation of graphical interface of user, can be convenient The operation to graphical interface of user is realized on ground, is such as switched or is activated, to improve the experience that user carries out human-computer interaction.
Referring to Fig. 6, the application embodiment also provides a kind of interface alternation device based on above-mentioned interface alternation method 600, Fig. 6 show the structural block diagram of interface alternation device 600.Interface alternation device 600 runs on electronic equipment as shown in Figure 1 500, it is used to execute above-mentioned interface alternation method.In the application embodiment, interface alternation device 600 is stored in electricity In the memory of sub- equipment 500, and it is configured as being executed by the one or more processors of electronic equipment 500.
Specifically in the embodiment shown in fig. 6, interface alternation device 600 includes that rotation situation obtains module 610, instruction really Cover half block 630 and interface control module 650.It is understood that above-mentioned each module can be to run on computer-readable storage Program module or program unit in medium, the purposes of above-mentioned modules and work are specific as follows:
Rotation situation obtain module 610 be used for electronic equipment start graphic user interface when, obtain the first display unit with And second display unit rotation situation.Further, rotation situation obtains module 610 for the motion-sensing by electronic equipment Device detects the rotation situation of the first display unit and the second display unit.
Determining module 630 is instructed to be used to be determined according to the rotation situation of the first display unit and the second display unit for figure The operational order of user interface.Further, instruction determining module 630 is used for based on pair between rotation situation and operational order It should be related to, to determine the operational order of graphic user interface.Instructing determining module 630 includes maximum angle variable quantity determination unit 632, number recording unit 634, direction-determining unit 636 and interactive command unit 638.
Maximum angle determination unit 632 is used to determine that first is aobvious when the first display unit and/or the second display are rotated Show the maximum angle variable quantity in portion and/or the second display unit rotation process, and it is pre- to judge whether the maximum angle variable quantity falls into If angle change range, and then the operational motion is determined as effectively operation and invalid operation.
Number recording unit 634 is used to record the first display unit in preset duration and/or the second display unit is rotated Effective number of operations.Wherein, if after effectively operation occurs, effectively operation, record does not occur again within the default waiting time The number effectively operated occurred.
Direction-determining unit 636 is used for when the first display unit and/or the second display unit are rotated, and determines the first display The direction of motion of portion and/or the second display unit.In the embodiment of the present application, the movement of the first display unit and/or the second display unit Direction is divided into the first preset direction and the second preset direction, and direction-determining unit 636 is confirmed as effectively grasping in the operational motion While work, the direction of motion that this is effectively operated is recorded.
Interactive command unit 638 is used for the number recorded according to number recording unit 634 and/or direction-determining unit 636 According to determining the interactive command executed needed for graphical interface of user, and control the display of graphical interface of user according to interactive command.Its In, interactive command unit 638 can be according to 636 recorded data of number recording unit 634 and/or direction-determining unit, can To correspond respectively to multiple and different interactive commands.For example, interactive command unit 638 can be remembered according to number recording unit 634 The number of record effectively operated determines corresponding interactive instruction, the effective operation that can also be recorded according to direction-determining unit 636 The direction of motion determine corresponding interactive instruction, can also according to number recording unit 634 record the number effectively operated and The direction of motion effectively operated that direction unit 636 records combines the order effectively operated to be formed and determines that corresponding interaction refers to It enables.
Interface control module 650 is used to control graphic user interface according to operational order, wherein operational order includes activation The interactive controls of graphic user interface.In the embodiment of the present application, interactive controls are the virtual key of graphic user interface, are virtually pressed Key includes any of virtual keys such as acknowledgement key, return key, Menu key, main interface key, function key, page up, lower one page Or multiple combination.Therefore the interactive controls of activation graphic user interface include: to click acknowledgement key, return key, Menu key, main boundary The operation of any virtual key in face key, function key, page up, lower one page etc..Further, operational order further includes switching figure The current interface of shape user interface.Wherein, the current interface for switching graphic user interface includes: single switching to the left, connects to the left Continue switching, to the right single switching, switch to fight continuity etc..
In interface alternation method and device provided by the present application, allow aobvious by the first display unit of manipulation and/or second The rotation for showing portion to the manipulation instruction of electronic equipment input interface interaction, and then realizes the interactive operation of graphical interface of user, energy Enough operations easily realized to graphical interface of user, such as switch or activate, to improve the experience that user carries out human-computer interaction.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.In the application institute In the several embodiments provided, the mutual coupling, direct-coupling or communication connection of shown or discussed module be can be Through some interfaces, the indirect coupling or communication connection of device or module can be electrical property, mechanical or other forms.In addition, It can integrate in a processing module in each functional module in each embodiment of the application, it is independent to be also possible to modules It is physically present, can also be integrated in two or more modules in a module.Above-mentioned integrated module both can be using hard The form of part is realized, can also be realized in the form of software function module.
In actual application scenarios, electronic equipment 500 can be used as intelligent mobile phone terminal and carry out using in such case Under, electronic equipment 500 also typically includes one or more (one is only shown in Fig. 7) such as lower component: processor 102, memory 104, shooting module 108, voicefrequency circuit 110, input module 118, power module 122 and one or more application program, Middle one or more application program can be stored in memory 104 and be configured as being held by one or more processors 102 Row, one or more programs are configured to carry out the method as described in preceding method embodiment.Those of ordinary skill in the art It is appreciated that structure shown in Fig. 7 is only to illustrate, the structure of electronic equipment 500 is not caused to limit.For example, electronics is set Standby 500 may also include than shown in Fig. 7 more perhaps less component or with the configuration different from shown in Fig. 7.
Processor 102 may include one or more processing core.Processor 102 is whole using various interfaces and connection Various pieces in a electronic equipment 500, by run or execute the instruction being stored in memory 104, program, code set or Instruction set, and the data being stored in memory 104 are called, execute the various functions and processing data of electronic equipment 500.It can Selection of land, processor 102 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 102 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 102, be realized separately through one piece of communication chip.
Memory 104 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 104 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 104 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store electronic equipment 500 and be created in use Data (such as phone directory, audio, video data, chat record data) etc..
Shooting module 108 can be camera, be set to foldable housing unit 100, be used to execute shooting task, For example, for shooting photo, video or progress conversation on video telephone etc..Voicefrequency circuit 110, loudspeaker 101, sound jack 103, microphone 105 provides the audio interface between user and electronic equipment 500 jointly.Specifically, voicefrequency circuit 110 is from processing Voice data is received at device 102, voice data is converted into electric signal, by electric signal transmission to loudspeaker 101.Loudspeaker 101 Convert electrical signals to the sound wave that human ear can be heard.Voicefrequency circuit 110 receives electric signal also from microphone 105, by electric signal Be converted to voice data, and by data transmission in network telephony to processor 102 to be further processed.
In the present embodiment, input module 118 may include the touch screen 109 being arranged on foldable screen 200, touch screen 109 (for example user uses any suitable object or attachment such as finger, stylus for the touch operation of collectable user on it or nearby Operation on touch screen 109 or near touch screen 109), and corresponding attachment device is driven according to a pre-set procedure. In addition to touch screen 109, in other change embodiments, input module 118 can also include other input equipments, such as key 107 or microphone 105.Key 107 for example may include the character keys for inputting character, and for triggering control function Control button.The example of control button includes " returning to main screen " key, power on/off key etc..Microphone 105 can be used for Receive the voice command of user.
Foldable screen 200 is used to show information input by user, is supplied to user information and electronic equipment 500 Various graphic user interfaces, these graphic user interfaces can by figure, text, icon, number, video and any combination thereof Lai It constitutes, in an example, touch screen 109 may be disposed on foldable screen 200 to whole with foldable screen 200 composition one Body.
Power module 122 is used to provide power supply to processor 102 and other each components.Specifically, power module 122 may include electric power controller, one or more power supplys (such as battery or alternating current), charging circuit, power-fail detection The generation of electric power, pipe in circuit, inverter, indicator of the power supply status and any other and electronic building brick or foldable screen 200 Manage and be distributed relevant component.
It should be understood that above-mentioned electronic equipment 500 is not limited to intelligent mobile phone terminal, should refer to can moved Computer equipment used in dynamic.Specifically, electronic equipment 500, refers to the mobile computer for being equipped with intelligent operation apparatus Equipment, electronic equipment 500 include but is not limited to smart phone, smartwatch, notebook, tablet computer, POS machine or even include vehicle Carry computer, etc..
Referring to FIG. 8, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application. Program code is stored in the computer readable storage medium 800, program code can be called by processor and execute above method reality Apply method described in example.
Computer readable storage medium 800 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 800 includes non-transient meter Calculation machine readable storage medium storing program for executing (non-transitory computer-readable storage medium).It is computer-readable Storage medium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program generations Code can read or be written to the production of this one or more computer program from one or more computer program product In product.Program code 810 can for example be compressed in a suitable form.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means that specific features described in conjunction with this embodiment or example or feature are contained in this In at least one embodiment or example of application.In the present specification, the specific features of description or feature can be at any one Or it can be combined in any suitable manner in multiple embodiment or examples.In addition, without conflicting with each other, those skilled in the art Member the feature of different embodiments or examples described in this specification and different embodiments or examples can be combined and Combination.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer readable storage medium, For instruction executing device, device or equipment (such as computer based device, including the device of processor or other can be from finger The device for enabling executive device, device or equipment instruction fetch and executing instruction) it uses, or combine these instruction executing devices, device Or equipment and use.For the purpose of this specification, " computer readable storage medium " can be it is any may include, store, communicating, Propagate or transfer program for instruction executing device, device or equipment or in conjunction with these instruction executing devices, device or equipment and The device used.The more specific example (non-exhaustive list) of computer readable storage medium include the following: have one or The electrical connection section (electronic equipment) of multiple wirings, portable computer diskette box (magnetic device), random access memory (RAM), only It reads memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable light Disk read-only memory (CDROM).In addition, computer readable storage medium can even is that can on it the paper of print routine or its His suitable medium, because can then be edited for example by carrying out optical scanner to paper or other media, be interpreted or must It is handled when wanting with other suitable methods electronically to obtain program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction executing device with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium In, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the application Each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also be two Or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also be with It is realized in the form of software function module.If integrated module is realized in the form of software function module and as independent Product when selling or using, also can store in a computer readable storage medium.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (14)

1. a kind of interface alternation method, applied to the electronic equipment with foldable screen, the foldable screen includes the first display Portion and the second display unit for being connected to first display unit, first display unit and second display unit can be opposite Rotation;First display unit and second display unit for showing graphic user interface jointly;The interface alternation method Include:
Obtain the rotation situation of first display unit and second display unit;
The operational order for the graphic user interface is determined according to the rotation situation;And
According to the operational order, the graphic user interface is controlled, wherein the operational order includes switching the figure to use The operational order at family interface.
2. interface alternation method as described in claim 1, which is characterized in that described to be determined according to the rotation situation for institute State the operational order of graphic user interface, comprising:
Detect the direction of motion of first display unit and second display unit;
If the rotation situation meets the preset condition at switching interface, it is determined that the operational order is to switch the graphical user The current display interface at interface.
3. interface alternation method as claimed in claim 2, which is characterized in that described to switch the current of the graphic user interface The preset condition of display interface includes: one and only one display unit turn in first display unit and second display unit It is dynamic, and the direction that rotation direction is folded against along the first display unit and the second display unit.
4. interface alternation method as claimed in claim 3, which is characterized in that determine the operational order to switch the figure When the current display interface of user interface, the switching direction of the current display interface is determined according to the display unit of rotation.
5. interface alternation method as claimed in claim 3, which is characterized in that the determination operational order is described in switching The current display interface of graphic user interface, comprising:
If one and only one display unit rotates in first display unit and second display unit, and the display unit rotated Rotation direction does not change in default rotation time, it is determined that the operational order is continuously to switch the graphic user interface Current display interface;
If one and only one display unit rotates in first display unit and second display unit, and the display unit rotated turns It is turned round in default rotation time after dynamic, it is determined that the operational order is that single switches working as the graphic user interface Preceding display interface;Wherein, it is rotated after the display unit rotation of rotation along the direction opposite with former rotation direction, then it is assumed that rotation is shown Show that portion turns round.
6. interface alternation method as described in claim 1, which is characterized in that described to be determined according to the rotation situation for institute State the operational order of graphic user interface, comprising:
Detect the direction of motion of first display unit and second display unit;
If the rotation situation meets the preset condition of the interactive controls of activation graphic user interface, it is determined that the operational order For the interactive controls for activating the graphic user interface.
7. interface alternation method as claimed in claim 6, which is characterized in that the interactive controls of the activation graphic user interface Preset condition include: at least one display unit rotation in first display unit and second display unit, and rotation side To the direction along the first display unit and the opposite expansion of the second display unit, it is determined that the operational order is to activate the graphical user The interactive controls at interface.
8. interface alternation method as claimed in claim 6, the preset condition of the interactive controls of the activation graphic user interface Include: at least one display unit rotation in first display unit and second display unit, and is turned round after rotating;Wherein, The display unit of rotation rotates after rotating in default rotation time along the direction opposite with former rotation direction, then it is assumed that rotation is shown Show that portion turns round.
9. the interface alternation method as described in any one of claim 2~8, which is characterized in that the acquisition described first is aobvious Show the rotation situation in portion and second display unit, comprising:
It detects in default rotation time, the maximum angle variation of angle between first display unit and second display unit Amount;
If the maximum angle variable quantity falls into predetermined angle variation range, it is determined that the rotation situation is effectively operation;With And
If the maximum angle variable quantity does not fall within the predetermined angle variation range, it is determined that the rotation situation is invalid behaviour Make;
When determining the operational order for the graphic user interface according to the rotation situation, determined according to effective operation The operational order.
10. interface alternation method as claimed in claim 9, which is characterized in that described to obtain first display unit and institute State the rotation situation of the second display unit, further includes:
Effective operation is detected, and records the number that effective operation occurs in preset duration;And
It is described that the operational order is determined according to effective operation, comprising: according to effective operation in the preset duration The number of interior generation determines the operational order of the corresponding graphic user interface.
11. a kind of interface alternation device, applied to the electronic equipment with foldable screen, the foldable screen includes the first display Portion and the second display unit for being connected to first display unit, first display unit and second display unit can be opposite Rotation is to fold or be unfolded;First display unit and second display unit for showing graphic user interface jointly;It is described Interface alternation device includes:
Rotation situation obtains module, for obtaining the rotation situation of first display unit and second display unit;
Determining module is instructed, for determining the operational order for the graphic user interface according to the rotation situation;And Interface control module, for controlling the graphic user interface according to the operational order, wherein the operational order includes swashing The interactive controls of the graphic user interface living.
12. a kind of electronic equipment, which is characterized in that including foldable screen, the foldable screen includes the first display unit and company It is connected to the second display unit of first display unit, first display unit and second display unit are relatively rotatable to each other to roll over Folded or expansion;The electronic equipment further include: one or more processors, memory and one or more application program, Described in one or more application program be stored in the memory and be configured as by one or more of processors It executes, one or more of programs are configurable for executing the interface alternation as described in any one of claim 1~11 Method.
13. the electronic equipment as shown in claim 12, which is characterized in that the electronic equipment further includes the first motion sensor With the second motion sensor, first motion sensor is set to first display unit, and second motion sensor is set It is placed in second display unit.
14. a kind of computer readable storage medium, which is characterized in that be stored with program generation in the computer readable storage medium Code, said program code can be called by processor and execute interface alternation method described in any one of described claim 1~11.
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 true CN109976633A (en) 2019-07-05
CN109976633B 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)

Cited By (5)

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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103380406A (en) * 2011-02-10 2013-10-30 三星电子株式会社 Method and apparatus for inputting user commands using relative movements of device panels
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
CN108965608A (en) * 2018-08-28 2018-12-07 维沃移动通信有限公司 A kind of alarm clock setting method folds terminal and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103380406A (en) * 2011-02-10 2013-10-30 三星电子株式会社 Method and apparatus for inputting user commands using relative movements of device panels
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
CN108965608A (en) * 2018-08-28 2018-12-07 维沃移动通信有限公司 A kind of alarm clock setting method folds terminal and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377213A (en) * 2019-07-12 2019-10-25 Oppo广东移动通信有限公司 Control method, electronic equipment and the computer readable storage medium of electronic equipment
CN110377213B (en) * 2019-07-12 2021-04-09 Oppo广东移动通信有限公司 Control method of electronic device, and computer-readable storage medium
CN110691167A (en) * 2019-09-25 2020-01-14 北京蓦然认知科技有限公司 Control method and device of display unit
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
CN111952088A (en) * 2020-07-09 2020-11-17 广东美的厨房电器制造有限公司 Knob subassembly and domestic appliance
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

Also Published As

Publication number Publication date
CN109976633B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN109976633A (en) Interface alternation method and device, electronic equipment and storage medium
US8543166B2 (en) Mobile terminal equipped with flexible display and controlling method thereof
EP3754476B1 (en) Information display method, graphical user interface and terminal
US9323446B2 (en) Apparatus including a touch screen and screen change method thereof
EP2157770B1 (en) Method of controlling a mobile terminal with two display areas
JP4404863B2 (en) Mobile terminal equipped with scroll wheel device and function execution method using the same
CN101052179B (en) Apparatus and method for controlling auto display in a mobile station
KR102052424B1 (en) Method for display application excution window on a terminal and therminal
KR102198473B1 (en) Mobile terminal and method for controlling the same
CN109947320B (en) Picture display method and device, electronic equipment and storage medium
JP2021525430A (en) Display control method and terminal
EP2661068A2 (en) Mobile terminal and control method thereof
EP3657311B1 (en) Apparatus including a touch screen and screen change method thereof
KR20110026809A (en) Mobile terminal and control method thereof
CN109806589B (en) Virtual object control method and device, electronic device and storage medium
KR20100027502A (en) Mobile terminal equipped with flexible display and controlling method thereof
CN109947383B (en) Display control method and device, mobile terminal and storage medium
WO2006025250A1 (en) Electronic appliance
US20210278942A1 (en) Mobile terminal, an electronic device having a mobile terminal, and control method of the electronic device
EP3793177B1 (en) Electronic device including mobile terminal
KR20100042405A (en) Mobile terminal and method for controlling in thereof
US20070298784A1 (en) Information processing device
CN106200912A (en) Processing method that a kind of self-shooting bar is taken pictures and mobile terminal
US11934651B2 (en) Mobile terminal with multiple screens and mapped coordinates
CN112230910B (en) Page generation method, device and equipment of embedded program and storage medium

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