CN114968430A - Interface control method and device and electronic equipment - Google Patents

Interface control method and device and electronic equipment Download PDF

Info

Publication number
CN114968430A
CN114968430A CN202110195839.5A CN202110195839A CN114968430A CN 114968430 A CN114968430 A CN 114968430A CN 202110195839 A CN202110195839 A CN 202110195839A CN 114968430 A CN114968430 A CN 114968430A
Authority
CN
China
Prior art keywords
display
display area
interface
application program
state
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.)
Pending
Application number
CN202110195839.5A
Other languages
Chinese (zh)
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 CN202110195839.5A priority Critical patent/CN114968430A/en
Publication of CN114968430A publication Critical patent/CN114968430A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

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

Abstract

The embodiment of the application discloses an interface control method and device and electronic equipment. The electronic equipment comprises a display device, the display device comprises at least two display areas, and the at least two display areas can rotate relatively, and the method comprises the following steps: if the current position is in a first position state, controlling the at least two display areas to display the interface of the current application program together, wherein the current position is the relative rotation position of the at least two display areas; if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas; and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program. Therefore, the flexibility of interface display is improved through the method.

Description

Interface control method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an interface control method and apparatus, and an electronic device.
Background
With the development of electronic technology, to obtain better experience, the screen of the electronic device is larger and larger, and the problem of inconvenience in carrying the electronic device is also brought along with the enlargement of the screen, so that the electronic device with the foldable screen is gradually raised and popularized. The folding screen can be unfolded or folded in a screen folding mode, so that the display area of the screen can be increased and the portable use requirement can be met. However, the related electronic device with the foldable screen is still not flexible enough in the aspect of interface display of the application program, thereby causing a problem that the user experience needs to be improved.
Disclosure of Invention
In view of the foregoing problems, the present application provides an interface control method and apparatus, and an electronic device to improve the foregoing problems.
In a first aspect, the present application provides an interface control method applied to an electronic device, where the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas are relatively rotatable, and the method includes: if the current position is in a first position state, controlling the at least two display areas to display the interface of the current application program together, wherein the current position is the relative rotation position of the at least two display areas; if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas; and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program.
In a second aspect, the present application provides an interface control apparatus, which is operable on an electronic device, where the electronic device includes a display apparatus, the display apparatus includes at least two display areas, and the at least two display areas are rotatable relative to each other, and the apparatus includes: the interface control unit is used for controlling the at least two display areas to display the interface of the current application program together if the current position is in a first position state, and the current position is the relative rotation position of the at least two display areas; the display area control unit is used for selecting a first display area from the at least two display areas and taking the display area except the first display area as a second display area if the current position is in a second position state; the interface control unit is further configured to control the first display area to display the interface of the current application program, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application program.
In a third aspect, the present application provides an electronic device, including a display device, the display device including at least two display areas, the at least two display areas being relatively rotatable, including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the methods described above.
In a fourth aspect, the present application provides a computer readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed by a processor.
According to the interface control method and device and the electronic equipment, under the condition that the electronic equipment comprises a display device and the display device comprises at least two display areas which can rotate relatively, the relative rotation positions of the at least two display areas can be obtained firstly as the current positions, and if the current positions are in the first position state, the at least two display areas are controlled to display the interface of the current application program together; if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas; and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program. Therefore, the electronic equipment can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating a current position of a display area in a first position state according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a current position of a display area in a second position state according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display area in a fully folded state according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a current position of a display area in a second position state according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a display area in a fully folded state according to an embodiment of the present application;
FIG. 6 is a diagram illustrating another embodiment of the present application in which the current position of the display area is in the first position state;
FIG. 7 is a diagram illustrating another embodiment of the present application in which the current position of the display area is in the second position state;
fig. 8 is a flowchart illustrating an interface control method according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating that a first display area and a second display area jointly display the same interface in an embodiment of the present application;
FIG. 10 is a diagram illustrating an interface for controlling a first display area to display a current application program according to an embodiment of the present application;
FIG. 11 is a flow chart illustrating another method for controlling an interface according to an embodiment of the present application;
FIG. 12 is a diagram illustrating a target message interface displayed in a second display area according to an embodiment of the present application;
FIG. 13 is a schematic diagram illustrating a floating keyboard displayed in a second display area according to an embodiment of the present application;
fig. 14 is a flowchart illustrating a further interface control method according to an embodiment of the present application;
FIG. 15 is a schematic view of a first interface in an embodiment of the present application;
FIG. 16 is a diagram illustrating a display of an input control in a second display region in an embodiment of the application;
fig. 17 is a block diagram illustrating an interface control apparatus according to an embodiment of the present application;
fig. 18 is a block diagram showing a configuration of an interface control apparatus according to still another embodiment of the present application;
fig. 19 is a block diagram showing a configuration of an electronic device according to the present application for executing an interface control method according to an embodiment of the present application;
fig. 20 is a storage unit for storing or carrying program codes for implementing an interface control method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As users of electronic devices demand higher and higher visual experiences, more electronic devices are configured with larger screen sizes. However, the screen with a larger size is inconvenient to carry, and therefore, electronic devices with foldable screens are gradually emerging and popular. The folding screen can be unfolded or folded in a screen folding mode, so that the display area of the screen can be increased and the portable use requirement can be met.
However, the inventor researches the related electronic device with the foldable screen, and finds that the related electronic device with the foldable screen is not flexible enough in the aspect of interface display of an application program, so that the user experience needs to be improved.
Therefore, in order to improve the above problems, the inventors propose an interface control method, an interface control device and an electronic device. When the electronic device comprises a display device, and the display device comprises at least two display areas which can rotate relatively, the relative rotation positions of the at least two display areas can be firstly obtained as the current positions, and if the current positions are in a first position state, the at least two display areas are controlled to display the interface of the current application program together; if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas; and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program.
Therefore, the electronic equipment can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas through the mode, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved.
The following describes a scenario in which the interface control method provided in the embodiment of the present application is applied, with reference to the accompanying drawings.
The electronic equipment comprises at least two display areas, wherein the at least two display areas can rotate relatively. As shown in fig. 1, the electronic device shown in fig. 1 includes a display area 10 and a display area 20. Wherein the display area 10 is rotatable relative to the display area 20. In the embodiment of the present application, the rotation direction of the display area 10 with respect to the display area 20 is not limited.
For example, in the scene shown in fig. 2, the display area 10 may rotate facing the display area 20, in this manner shown in fig. 2, if the display area 10 continues to rotate facing the display area 20 along the direction shown by the arrow, the electronic device may be in the completely folded state shown in fig. 3, and in the state shown in fig. 3, the display area 10 and the display area 20 may be attached to each other.
In another way, as shown in fig. 4, the display area 10 may rotate away from the display area 20, in this way, as shown in fig. 4, if the display area 10 continues to rotate along the direction shown by the arrow, the electronic device may be in the completely folded state shown in fig. 5, and when the electronic device rotates to the completely folded state, as shown in fig. 5, the display area 10 and the display area 20 may be exposed outside the electronic device.
Furthermore, the electronic device according to the embodiment of the present application may further include more display areas. For example, as shown in fig. 6, the electronic device may include three display regions, a display region 30, a display region 40, and a display region 50. And any two display areas can rotate relatively. For example, as shown in FIG. 7, the display area 30 may be rotated relative to the display area 40.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 8, an interface control method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relative to each other, and the method includes:
s110: and if the current position is in a first position state, controlling the at least two display areas to display the interface of the current application program together, wherein the current position is the relative rotation position of the at least two display areas.
The electronic equipment can acquire the relative rotation position between the display areas in real time, and the acquired relative rotation position is used as the current position.
In one approach, the electronic device may determine the relative position between the display regions based on the angle between the display regions. In this way, if it is detected that the angle between the at least two display areas is a first angle, the current position is a first position state; if the angle between the at least two display areas is detected to be a second angle, the current position is in a second position state; wherein the second angle is less than the first angle.
As one mode, the first position state may be defined as any two display regions being in the same parallel state, or defined as an angle between any two display regions being the first angle. The first angle may be 180 degrees. The second position state may be defined as an angle between at least two adjacent display areas being a second angle. The second angle may be any angle between 90 degrees and 179 degrees. It should be noted that the specific values of the first angle and the second angle may be changed according to the user's requirement, and are not limited to the specific values indicated in the foregoing examples. For example, the second angle may be any angle between 30 degrees and 150 degrees.
After the electronic device obtains the current position, the interface display mode of the current application program can be adjusted according to the current position.
By one approach, the current application may be understood as the application currently running in the foreground. Optionally, a corresponding relationship between the position state and the interface display mode may be established in the electronic device, and then the electronic device may determine how to adjust the interface display mode of the current application program according to the position state corresponding to the current position.
Optionally, the first position state represents a position state suitable for the at least two display areas included in the display device to jointly perform interface display. Wherein, commonly displaying may be understood as at least two display areas each displaying a portion of the interface, thereby presenting the interface as a whole. For example, as shown in fig. 9, when the display areas are at least two display areas, part of the content in the interface 70 of the application is displayed in the display area 10, and the other part of the content is displayed in the display area 20.
S120: and if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display area except the first display area as a second display area.
And the second position state is displayed by less display areas corresponding to the interface representing the current application program, so that a better display effect can be achieved. It should be noted that, for example, the display device includes two display areas, when the two display areas are relatively rotated to the state shown in fig. 2, the two display areas still display the interface of the current application program together, so that an included angle is formed between the two parts of the displayed interface, and further, a visual sense of unevenness is generated, which results in poor user experience. Then, in order to improve the problem, when the current position is in the second position state, the interface of the current application program can be separately displayed by selecting the first display area from the at least two display areas.
In the case where the number of display regions included in the display device is different, the first display region and the second display region may be determined in different manners.
Optionally, the display device comprises two display areas. In this case, the electronic device may determine one of the display regions as the first display region and the other display region as the second display region. For example, as an aspect, the electronic device may detect respective orientations of two display areas, and after acquiring that the current position is in the second position state, determine the display area facing the user as the first display area, and correspondingly determine the other display area as the second display area. As one mode, each display area may be correspondingly configured with one image capture device, and then a specific display area is determined to face a user through an image captured by the image capture device corresponding to each display area.
For example, taking the example that the display device includes the display area 10 and the display area 20 shown in fig. 1, if the display area corresponds to the image capturing device 11, the display area 20 corresponds to the image capturing device 21. In the process of determining the display area facing the user, the electronic device may acquire a first image to be detected acquired by the image acquisition apparatus 11 and a second image to be detected acquired by the image acquisition apparatus 21. If a target face is detected in the first image to be detected, the display area 10 is determined to be a display area facing the user, and then the display area 10 is determined to be the first display area, and if a target face is detected in the second image to be detected, the display area 20 is determined to be a display area facing the user, and then the display area 20 is determined to be the first display area. Moreover, if it is detected that neither the first image to be detected nor the second image to be detected has the target face, any one of the display areas may be determined as the first display area. The target face is a face of a user of the electronic equipment configured in advance.
Further, optionally, the display device comprises three display areas. In this case, referring back to fig. 6, there are two sets of adjacent display areas in this case, namely, the display area 30 and the display area 40 are a set of adjacent display areas, and the display area 40 and the display area 50 are a set of adjacent display areas. In the process of determining the first display area, the electronic device may first detect whether a relative rotation position between adjacent display areas is in a first position state, and if it is detected that the relative rotation position between adjacent display areas is in the first position state, the adjacent display areas may be all used as the first display area, and the remaining display areas may be used as the second display area. For example, referring to fig. 7 again, in the case shown in fig. 7, the display area 40 and the display area 50 can be understood as a group of display areas whose relative rotation positions are in the first position state and are adjacent to each other, and further, the display area 40 and the display area 50 can be determined as the first display area, and the display area 30 can be determined as the second display area.
Correspondingly, if it is detected that the relative rotation position between the adjacent display areas is not the first position state, one display area can be determined from the three display areas to be used as the first display area, and then one display area adjacent to the first display area is selected from the rest display areas to be used as the second display area. The manner of determining one display area from the three display areas as the first display area may be the same as the manner of performing the target face recognition by configuring the image acquisition device.
It should be noted that, as a way of achieving the relative rotation, a rotating member may be disposed between each set of adjacent display areas, and then an angle between the adjacent display areas may be represented by a rotation angle of the rotating member, so as to determine the position state based on the angle between the adjacent display areas. In this embodiment, in order to obtain the relative rotation position between the adjacent display regions, a corresponding relationship between the rotating member and one group of display regions may be established, so that the rotation angle of the rotating member may be used as the angle between the corresponding group of display regions.
For example, referring to fig. 7, a first rotating member is corresponding between the display area 30 and the display area 40, and a second rotating member is corresponding between the display area 40 and the display area 50, so that the electronic device can establish a group of adjacent display areas, i.e., the display area 30 and the display area 40, corresponding to the first rotating member, and establish a group of adjacent display areas, i.e., the display area 40 and the display area 50, corresponding to the second rotating member. In the process of acquiring the current position, the rotation angle corresponding to the first rotating member may be used as the angle between the display area 30 and the display area 40, and the rotation angle corresponding to the second rotating member may be used as the angle between the display area 40 and the display area 50.
S130: and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program.
The control of the first display area to display the interface of the current application program can be understood as that the first display area is used to display the interface of the current application program separately, so as to improve the problem that the visual experience of the user is reduced due to the relative rotation between the display areas. For example, as shown in fig. 10, if the relative position between the display area 10 and the display area 20 is rotated from the position shown in the left image in fig. 10 to the position shown in the right image, the interface 80 originally displayed by both the display area 10 and the display area 20 may be switched to be displayed separately by the display area 10.
It should be noted that, in the case that the display areas included in the display device are three or more, the determined first display area may still include a plurality of display areas, and further, in the case that the first display area still includes a plurality of display areas, the plurality of display areas included in the first display area may jointly display the interface of the current application program.
After the first display area is controlled to independently display the interface of the current application program, the target display state of the second display area can be determined according to some states of the current application program.
By one approach, the state of the current application may include a content input state and a non-content input state. It should be noted that, during the running process of the application program, another application program may be needed to perform some content input, and when it is detected that the input control for performing content input on the current application program is running, it is determined that the current application program is in a content input state, otherwise, it is determined that the current application program is in a non-content input state. For example, if a user needs to input text content in the current application program, the electronic device needs to call and display an input keyboard, so that the user can operate the input keyboard to input content in the current application program, and if the electronic device detects that the input keyboard is running, it can be determined that the current application program is in a content input state. Optionally, the controlling the second display area to be in the target display state includes: and if the current application program is in a content input state, controlling to display an input control in the second display area. Correspondingly, if the current application program is in a non-content input state, the second display area can be controlled to display a black picture, or the second display area is controlled to screen.
Optionally, the input control may be an input keyboard or a voice acquisition control. The voice capture control can capture user voice input as content input to the current application.
When the current position is in the second position state, the contents displayed in the first display area and the second display area are different. Wherein, the displayed content is different, which means that the displayed object is different. For example, when the current position is in the first position state, the plurality of display regions may be an object commonly used for displaying a video image, and after the current position is switched to the second position state, the first display region may be caused to display the object of the original video image alone, and the second display region may be caused to display another object after the first display region and the second display region are determined from the plurality of display regions. The additional object may be an input control, a screenshot, or the like.
Optionally, when the current position is in the second position state, different objects displayed in the first display area and the second display area may belong to the same application program, or belong to different application programs. For example, if the first display area continues to display the original video image and the second display area displays the screen-off picture, the video image and the screen-off picture belong to different applications. For another example, if the first display area continues to display the original video image and the second display area displays the control interface corresponding to the video image, the video image and the control interface may belong to the same application program. The control interface comprises a control for controlling the video image. The control includes playing progress control, video definition control, playing volume control and the like.
In the interface control method provided by this embodiment, when the electronic device includes a display device, and the display device includes at least two display areas capable of rotating relatively, a relative rotation position of the at least two display areas may be first obtained as a current position, and if the current position is in a first position state, the at least two display areas are controlled to display an interface of a current application program together; if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas; and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program. Therefore, the electronic equipment can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas through the mode, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved.
Referring to fig. 11, an interface control method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relatively, and the method includes:
s210: and if the current position is in a first position state, controlling the at least two display areas to display the interface of the current application program together, wherein the current position is the relative rotation position of the at least two display areas.
S220: and if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display area except the first display area as a second display area.
S230: and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program.
S240: and if the message is received, displaying prompt information in the first display area.
The application having the communication function can communicate with another application having the same communication function. For example, applications with communication functions can send messages to each other, and messages can still be received when the applications are running in the background or the main process is not running. In the electronic device, if the message is received and the application program to which the message belongs is running in the background, or the application program to which the message belongs is not running, the prompt message may be displayed in the first display area. The prompting message is used for prompting the user that a certain application program has a corresponding message to be processed by the user.
For example, as shown in fig. 12, after receiving a message, if it is detected that an application program to which the message belongs is running in the background or the host process is not running, a prompt message 82 may be displayed in a floating manner on an interface 81 of the current application program, so that a user may know that an application program has an unprocessed message.
As one approach, the electronic device may identify, through the virtual port, the application to which the received message belongs. It should be noted that, during the communication process, an application having a communication function may occupy a certain virtual port, and send a message to other electronic devices based on the occupied virtual port. Then, the messages sent by other electronic devices also indicate which virtual port the message is sent to, and the electronic device can compare the virtual port to be transmitted with the port occupied by the foreground running application program, if the comparison is not consistent, it can be determined that the application program to which the received message belongs runs in the background or the main process is closed, and if the comparison is consistent, it can be determined that the application program to which the received message belongs is the foreground running application program. The foreground running application may be the current application.
S250: and when the prompt message is triggered, displaying a target message interface in the second display area, and displaying the message in the target message interface.
The target message interface may be understood as an interface for presenting the received message. It should be noted that a user of the electronic device may communicate with multiple communication objects through the same application program, and for different communication objects, the application program may display different message interfaces to display sent or received messages, so that different communication objects may respectively correspond to one message interface. Then, in the embodiment of the present application, the target message interface may correspond to a message interface that is understood to correspond to a communication object associated with the received message.
Optionally, after detecting that there is a gesture operation acting on the prompt message, it is determined that the prompt message is triggered, and the received message may be displayed in the second display area. For example, referring back to fig. 12, if the prompt message 82 is triggered, a target message interface 83 may be displayed in the second display area and the message may be displayed in the target message interface.
As a mode, the method provided in this embodiment further includes: and displaying a floating keyboard in the second display area, wherein the current input target of the floating keyboard is the application program of the target message interface. The floating keyboard may be understood as a keyboard whose display position is not connected to the display position of the input target. It should be noted that, after the target message interface is displayed in the second display area, the user may need to reply the message, so that the user can reply the message in time, when the prompt message is triggered, the floating keyboard of the application program to which the input target is the target message interface is also displayed on the second display interface. The input target represents that the floating keyboard is used for inputting the content of which application program, and if the input target is the application program to which the target message interface belongs, the floating keyboard is currently used for inputting the content of the application program to which the target message interface belongs. Illustratively, as shown in fig. 13, a floating keyboard 84 may be displayed in the second display area.
In order to flexibly implement content input for different applications, as a manner, displaying a floating keyboard in a second display area, where a current input target of the floating keyboard is an application program to which a target message interface belongs, the method further includes: and responding to a first operation, switching the input target of the floating keyboard to the current application program displayed in the first display area, wherein the first operation is used for switching the input target of the floating keyboard.
Optionally, a selection control is configured in the floating keyboard, and then a touch operation on the selection control may be determined as the first operation. In this way, the electronic device may acquire the currently running application program, and then sequentially switch the input target among the currently running application programs after acquiring the first operation each time. For example, if the electronic device obtains that the currently running application includes application a, application B, and application C, and the current input target is application B, the input target may be switched to application B after a first operation is detected, and the input target may be switched to application C after a first operation is detected again, and so on. By the method, the input target of the floating keyboard can be switched by directly operating the floating keyboard without back and forth operating different application programs.
In order to be able to simultaneously adapt to an application program that has a designated display mode and an application program that does not have a designated display mode, in this embodiment of the present application, before controlling the first display area to display the interface of the current application program and controlling the second display area to be in the target display state, whether the current application program has a designated display mode may be detected, where the designated display mode is a display mode corresponding to the second position state; and if the current application program does not specify a display mode, executing the interface for controlling the first display area to display the current application program, and controlling the second display area to be in a target display state.
Optionally, the electronic device may identify whether the application corresponds to the specified display mode by establishing a list. Wherein the applications in the list characterize that the application has a corresponding designated display mode. In this way, the installation package of the application program may carry identification information indicating whether the application program supports the specified display mode, so that in the installation process of the application program, the electronic device may determine whether the currently installed application program corresponds to the specified display mode through the identification information in the installation package, and if the currently installed application program corresponds to the specified display mode, the application program may be added to the established list.
According to the interface control method provided by the embodiment, the electronic device can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas in the manner, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved. In addition, in the embodiment, after the second position state is reached, if a message is received, the second display area can be triggered to be switched to a message interface for displaying the target application program, and the message is displayed on the message interface, so that the flexibility of message display is improved.
Referring to fig. 14, an interface control method provided in an embodiment of the present application is applied to an electronic device, where the electronic device includes a display device, the display device includes at least two display areas, and the at least two display areas can rotate relatively, and the method includes:
s310: and if the current position is in a first position state, controlling the at least two display areas to jointly display the interface of the current application program, wherein the current position is the relative rotation position of the at least two display areas.
S320: and if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display area except the first display area as a second display area.
S330: and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program.
S340: and if a second operation acting on the second display area is detected, displaying a first interface in the second display area, wherein the first interface displays the application program to be selected.
Alternatively, the second operation may be a long press operation or a double click operation. The selected application program can be characterized in the first interface in a text or thumbnail mode.
S350: and acquiring the target application program determined from the first interface.
S360: and displaying an interface corresponding to the target application program in the second display area.
As shown in fig. 15, the first interface 85 may be as shown, a thumbnail 86 and a thumbnail 87 may be displayed in the first interface 85, and the thumbnail 86 and the thumbnail 87 respectively represent one application to be selected. If it is detected that the thumbnail 86 is selected, the application program to be selected represented by the thumbnail 86 may be used as the target application program, and then the interface corresponding to the target application program is displayed in the second display area.
Furthermore, in the embodiment of the present application, in the case that the current application is displayed in the first display area, and the target application is displayed in the second display area, the two applications may have a content input requirement. Then, as a way, when it is detected that the current application program displayed in the first display area has a content input requirement, the originally displayed interface in the second content display area may be replaced with an input control whose input target is the current application program. As a mode, when it is detected that the target application program displayed in the second display area has a content input requirement, the interface in the first display area and the interface in the second display area may be moved toward the same direction at the same time, and then the input control whose input target is the target application program is displayed in the blank area generated by the movement. Therefore, when the content is input in the second display area, the area of the interface in the second display area is not reduced due to the display of the input control originally.
As shown in fig. 16, if the interface of the current application (the interface in the first display area) includes an area a, an area B, and an area C, the interface of the target application (the interface in the second display area) includes an area D, an area E, and an area F. When it is detected that the target application displayed in the second display area has a content input requirement, the interface in the first display area and the interface in the second display area may be moved simultaneously in the direction indicated by the arrow, the moved effect is shown as the right image in fig. 16, a blank area 88 is generated after the movement, and then an input control for inputting the target application may be displayed in the blank area 88.
According to the interface control method provided by the embodiment, the electronic device can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas in the manner, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved. In addition, in this embodiment, the first interface including the application program to be selected may be further displayed in the second display area in response to the second operation, and then the target application program selected from the first interface may be displayed in the second display area, so that the electronic device may display different application programs in different display areas, and user experience is improved.
Referring to fig. 17, an interface control apparatus 400 provided in the present embodiment is operated in an electronic device, where the electronic device includes a display apparatus, the display apparatus includes at least two display regions, and the at least two display regions are relatively rotatable, and the apparatus 400 includes:
the interface control unit 410 is configured to control the at least two display areas to display the interface of the current application program together if the current position is in a first position state, where the current position is a relative rotation position of the at least two display areas.
If the angle between the at least two display areas is detected to be a first angle, the current position is in a first position state; if the angle between the at least two display areas is detected to be a second angle, the current position is in a second position state; wherein the second angle is less than the first angle.
A display area control unit 420, configured to select a first display area from the at least two display areas if the current position is in the second position state, and use a display area other than the first display area as a second display area.
The interface control unit 410 is further configured to control the first display area to display the interface of the current application program, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application program.
As a mode, the interface control unit 410 is further specifically configured to control to display an input control in the second display area if the current application program is in a content input state.
As shown in fig. 18, the apparatus 400 further comprises: a program control unit 430, configured to display a prompt message in the first display area if a message is received; and when the prompt message is triggered, displaying a target message interface in the second display area, and displaying the message in the target message interface. Optionally, the program control unit 430 is further configured to display a floating keyboard in the second display area, where a current input target of the floating keyboard is an application program to which the target message interface belongs.
As one mode, the program control unit 430 is further configured to switch the input target of the floating keyboard to the current application program displayed in the first display area in response to a first operation, where the first operation is used to switch the input target of the floating keyboard.
As one way, the target display state is a black screen state; the program control unit 430 is further configured to display a first interface in the second display area if a second operation acting on the second display area is detected, where the first interface displays an application program to be selected; acquiring a target application program determined from the first interface; and displaying an interface corresponding to the target application program in the second display area.
As a mode, the program control unit 430 is further configured to detect whether there is a specified display mode in the current application program before controlling the first display area to display the interface of the current application program and controlling the second display area to be in the target display state, where the specified display mode is a display mode corresponding to the second position state; and if the current application program does not specify a display mode, executing and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state.
In the interface control device provided in this embodiment, when the electronic device includes a display device, and the display device includes at least two display areas capable of rotating relatively, a relative rotation position of the at least two display areas may be first obtained as a current position, and if the current position is in a first position state, the at least two display areas are controlled to display an interface of a current application program together; if the current position is in the second position state, the current position is changed from the at least two positionsSelecting a first display area from the display areas, and taking the display areas except the first display area as second display areas; controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program Therefore, the electronic equipment can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas through the mode, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved.
It should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
An electronic device provided by the present application will be described below with reference to fig. 19.
Referring to fig. 19, based on the interface control method and apparatus, another electronic device 200 capable of executing the interface control method is further provided in the embodiment of the present application. The electronic device 200 includes one or more processors 102 (only one shown), a memory 104, a network module 106, and a display 108 coupled to each other. The memory 104 stores therein a program capable of executing the contents of the foregoing embodiments, and the processor 102 executes the program stored in the memory 104.
Processor 102 may include one or more cores for processing data, among other things. The processor 102 interfaces with various components throughout the electronic device 200 using various interfaces and circuitry to perform various functions of the electronic device 200 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and implement interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with a base station.
The display device 108 may be used to display an interface. Optionally, the display device includes at least two display areas, and the at least two display areas can rotate relatively.
Referring to fig. 20, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 1100 has stored therein program code that can be called by a processor to perform the method described in the above-described method embodiments.
The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1100 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1110 may be compressed, for example, in a suitable form.
To sum up, in the interface control method, the interface control device and the electronic device provided by the present application, when the electronic device includes a display device, and the display device includes at least two display areas capable of rotating relatively, the relative rotation positions of the at least two display areas may be obtained as the current position, and if the current position is the first position state, the at least two display areas are controlled to display the interface of the current application program together; if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas; and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program. Therefore, the electronic equipment can adjust the interface display position of the current application program according to the relative rotation positions of the at least two display areas through the mode, so that the interface of the current application program can be adapted to the relative rotation positions of the at least two display areas, the display state of the display area which does not participate in the interface display of the current application program can be determined according to the state of the current application program, and the flexibility of interface display is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. An interface control method is applied to an electronic device, wherein the electronic device comprises a display device, the display device comprises at least two display areas, and the at least two display areas can rotate relatively, and the method comprises the following steps:
if the current position is in a first position state, controlling the at least two display areas to display the interface of the current application program together, wherein the current position is the relative rotation position of the at least two display areas;
if the current position is in a second position state, selecting a first display area from the at least two display areas, and taking the display areas except the first display area as second display areas;
and controlling the first display area to display the interface of the current application program, and controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program.
2. The method of claim 1, wherein the controlling the second display region to be in a target display state comprises:
and if the current application program is in a content input state, controlling to display an input control in the second display area.
3. The method of claim 1, wherein controlling the first display area to display the interface of the current application program and controlling the second display area to be in a target display state further comprises:
if a message is received, displaying prompt information in the first display area;
and when the prompt message is triggered, displaying a target message interface in the second display area, and displaying the message in the target message interface.
4. The method of claim 3, further comprising:
and displaying a floating keyboard in the second display area, wherein the current input target of the floating keyboard is the application program of the target message interface.
5. The method of claim 4, wherein displaying a floating keyboard in the second display area, wherein the current input target of the floating keyboard is after an application program to which the target message interface belongs, further comprises:
and responding to a first operation, switching the input target of the floating keyboard to the current application program displayed in the first display area, wherein the first operation is used for switching the input target of the floating keyboard.
6. The method of claim 1, wherein the target display state is a black screen state; the controlling the first display area to display the interface of the current application program and the controlling the second display area to be in a target display state, wherein the target display state corresponds to the state of the current application program and then further comprises:
if a second operation acting on the second display area is detected, displaying a first interface in the second display area, wherein the first interface displays an application program to be selected;
acquiring a target application program determined from the first interface;
and displaying an interface corresponding to the target application program in the second display area.
7. The method of claim 1, wherein controlling the first display area to display the interface of the current application and controlling the second display area to be in a target display state further comprises:
detecting whether the current application program has a designated display mode, wherein the designated display mode is a display mode corresponding to the second position state;
and if the current application program does not specify a display mode, executing the interface for controlling the first display area to display the current application program, and controlling the second display area to be in a target display state.
8. The method according to any one of claims 1-7, further comprising:
if the angle between the at least two display areas is detected to be a first angle, the current position is in a first position state;
if the angle between the at least two display areas is detected to be a second angle, the current position is in a second position state;
wherein the second angle is less than the first angle.
9. An interface control device, operating on an electronic device, the electronic device including a display device, the display device including at least two display areas, the at least two display areas being relatively rotatable, the device comprising:
the interface control unit is used for controlling the at least two display areas to jointly display the interface of the current application program if the current position is in a first position state, and the current position is the relative rotation position of the at least two display areas;
the display area control unit is used for selecting a first display area from the at least two display areas and taking the display area except the first display area as a second display area if the current position is in a second position state;
the interface control unit is further configured to control the first display area to display the interface of the current application program, and control the second display area to be in a target display state, where the target display state corresponds to the state of the current application program.
10. An electronic device, comprising a display device, wherein the display device comprises at least two display areas, and the at least two display areas can rotate relatively, and comprises a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-8.
11. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-8.
CN202110195839.5A 2021-02-19 2021-02-19 Interface control method and device and electronic equipment Pending CN114968430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110195839.5A CN114968430A (en) 2021-02-19 2021-02-19 Interface control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110195839.5A CN114968430A (en) 2021-02-19 2021-02-19 Interface control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114968430A true CN114968430A (en) 2022-08-30

Family

ID=82954166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110195839.5A Pending CN114968430A (en) 2021-02-19 2021-02-19 Interface control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114968430A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728901A (en) * 2017-10-24 2018-02-23 广东欧珀移动通信有限公司 interface display method, device and terminal
CN109710206A (en) * 2017-11-07 2019-05-03 Oppo广东移动通信有限公司 Show method, apparatus, terminal and the storage medium of information
CN109766053A (en) * 2019-01-15 2019-05-17 Oppo广东移动通信有限公司 Method for displaying user interface, device, terminal and storage medium
CN109889630A (en) * 2019-01-11 2019-06-14 华为技术有限公司 Display methods and relevant apparatus
CN109947315A (en) * 2019-03-04 2019-06-28 Oppo广东移动通信有限公司 Multi-screen display method, device, electronic equipment and computer readable storage medium
WO2019196707A1 (en) * 2018-04-12 2019-10-17 维沃移动通信有限公司 Mobile terminal control method and mobile terminal
CN111078091A (en) * 2019-11-29 2020-04-28 华为技术有限公司 Split screen display processing method and device and electronic equipment
CN111124561A (en) * 2019-11-08 2020-05-08 华为技术有限公司 Display method applied to electronic equipment with folding screen and electronic equipment
EP3660650A1 (en) * 2018-11-30 2020-06-03 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for operating a folding display screen, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728901A (en) * 2017-10-24 2018-02-23 广东欧珀移动通信有限公司 interface display method, device and terminal
CN109710206A (en) * 2017-11-07 2019-05-03 Oppo广东移动通信有限公司 Show method, apparatus, terminal and the storage medium of information
WO2019196707A1 (en) * 2018-04-12 2019-10-17 维沃移动通信有限公司 Mobile terminal control method and mobile terminal
EP3660650A1 (en) * 2018-11-30 2020-06-03 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for operating a folding display screen, terminal and storage medium
CN109889630A (en) * 2019-01-11 2019-06-14 华为技术有限公司 Display methods and relevant apparatus
CN109766053A (en) * 2019-01-15 2019-05-17 Oppo广东移动通信有限公司 Method for displaying user interface, device, terminal and storage medium
CN109947315A (en) * 2019-03-04 2019-06-28 Oppo广东移动通信有限公司 Multi-screen display method, device, electronic equipment and computer readable storage medium
CN111124561A (en) * 2019-11-08 2020-05-08 华为技术有限公司 Display method applied to electronic equipment with folding screen and electronic equipment
CN111078091A (en) * 2019-11-29 2020-04-28 华为技术有限公司 Split screen display processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
WO2022001341A1 (en) Application program tag generation method, application interface display method and device
KR101620933B1 (en) Method and apparatus for providing a mechanism for gesture recognition
CN111147749A (en) Photographing method, photographing device, terminal and storage medium
CN104992096A (en) Data protection method and mobile terminal
KR20130102083A (en) Method and apparatus for providing hand detection
CN108366163B (en) Control method and device for camera application, mobile terminal and computer readable medium
CN112135081B (en) Mode control method and device, frame insertion chip and electronic equipment
US11231836B2 (en) Multi-window displaying apparatus and method and mobile electronic equipment
CN112203034A (en) Frame rate control method and device and electronic equipment
CN110569008A (en) screen data processing method and device and electronic equipment
CN111259907A (en) Content identification method and device and electronic equipment
US20230342002A1 (en) Method for displaying content, electronic device, and storage medium
WO2023197678A1 (en) Information recording method and apparatus, and electronic device and storage medium
CN114968430A (en) Interface control method and device and electronic equipment
CN110618975A (en) Image sharing method and device and electronic equipment
CN113138693B (en) Operation identification method and device, electronic equipment and storage medium
CN112596883B (en) Application switching method and device, storage medium and electronic equipment
CN114721575A (en) Text content processing method and device and electronic equipment
CN114827708A (en) Video playing method and device and electronic equipment
CN114690996A (en) Content display method and device and electronic equipment
CN112887768A (en) Screen projection display method and device, electronic equipment and storage medium
CN111782100A (en) Method, device, terminal and storage medium for previewing background picture
CN110401749B (en) Display control method and related equipment
CN104423867A (en) Character input method and character input device

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