WO2019196864A1 - Control method for virtual button and mobile terminal - Google Patents
Control method for virtual button and mobile terminal Download PDFInfo
- Publication number
- WO2019196864A1 WO2019196864A1 PCT/CN2019/082046 CN2019082046W WO2019196864A1 WO 2019196864 A1 WO2019196864 A1 WO 2019196864A1 CN 2019082046 W CN2019082046 W CN 2019082046W WO 2019196864 A1 WO2019196864 A1 WO 2019196864A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- virtual button
- target
- mobile terminal
- target virtual
- display
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1626—Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1643—Details related to the display arrangement, including those related to the mounting of the display in the housing the display being associated to a digitizer, e.g. laptops that can be used as penpads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1694—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3215—Monitoring of peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2200/00—Indexing scheme relating to G06F1/04 - G06F1/32
- G06F2200/16—Indexing scheme relating to G06F1/16 - G06F1/18
- G06F2200/163—Indexing scheme relating to constructional details of the computer
- G06F2200/1637—Sensing arrangement for detection of housing movement or orientation, e.g. for controlling scrolling or cursor movement on the display of an handheld computer
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present disclosure relates to the field of communications technologies, and in particular, to a virtual button control method and a mobile terminal.
- buttons such as the Home button, the Back button, etc.
- virtual buttons to implement the functions of the original physical buttons.
- the more common way is to display a number of virtual buttons at the bottom of the screen to implement functions such as returning, returning to the main interface, and selecting. This display mode is fixed and single, and cannot meet the user's use requirements.
- the embodiment of the present disclosure provides a virtual button control method and a mobile terminal, so as to solve the problem that the virtual button on the screen of the mobile terminal has a fixed display mode.
- an embodiment of the present disclosure provides a virtual button control method, which is applied to a mobile terminal, where the method includes:
- the target virtual button is displayed or hidden.
- an embodiment of the present disclosure provides a mobile terminal, including:
- a first display module configured to display a target control if the mobile terminal switches from a vertical screen display state to a horizontal screen display state
- a receiving module configured to receive a first touch operation for the target control
- the response module is configured to display or hide the target virtual button in response to the first touch operation.
- an embodiment of the present disclosure provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor The steps in the above virtual key control method are implemented.
- an embodiment of the present disclosure provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the steps in the virtual button control method.
- the mobile terminal may display the target control when switching from the vertical screen display state to the horizontal screen display state, and may respond in response to receiving the first touch operation for the target control.
- the first touch operation displays or hides a target virtual button.
- the mobile terminal when the mobile terminal is in the horizontal screen display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button.
- the requirement can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
- FIG. 1 is a flowchart of a virtual button control method according to an embodiment of the present disclosure
- FIG. 2a is a schematic diagram of a display target virtual button and a target control according to an embodiment of the present disclosure
- 2b is a schematic diagram of a hidden target virtual button provided by an embodiment of the present disclosure.
- FIG. 3 is a flowchart of another virtual button control method according to an embodiment of the present disclosure.
- FIG. 4 is a schematic diagram of a screen edge area provided by an embodiment of the present disclosure.
- FIG. 5 is a flowchart of another virtual button control method according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure.
- FIG. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure.
- FIG. 9b is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure.
- FIG. 10 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure.
- FIG. 11 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 1 is a flowchart of a virtual button control method according to an embodiment of the present disclosure, which is applied to a mobile terminal. As shown in FIG. 1 , the method includes the following steps:
- Step 101 If the mobile terminal switches from a portrait display state to a landscape display state, the target control is displayed.
- the target control can be displayed on the display interface in the horizontal screen display state, and the target control is used to control the display state of the target virtual button on the display interface of the mobile terminal.
- the target virtual button may be understood as a virtual button displayed on the screen of the mobile terminal for replacing the cancelled physical button (such as a home button, a return button, etc.), and the number may be one or more. , usually fixed at the bottom of the screen.
- the user can hide the target virtual button by touching the target control when the target virtual button is not needed, and display the target by touching the target control when the target virtual button needs to be used.
- the virtual button and the target virtual button are displayed in a flexible manner to meet the user's needs.
- Step 102 Receive a first touch operation for the target control.
- the first touch operation for the target control may be received, so that the mobile terminal responds to the first touch operation, wherein the first touch
- the control operation can be a click, a press, a long press or other touch operation.
- Step 103 Display or hide the target virtual button in response to the first touch operation.
- the target virtual key may be displayed or hidden in response to the first touch operation, specifically, the mobile terminal displays the status from the vertical screen.
- the target virtual button When switching to the horizontal display state, the target virtual button may be in a hidden or displayed state by default, so that if the target virtual button is in a hidden state by default, the first touch operation for the target control is received, And in response to the first touch operation, displaying the target virtual button, so that the user can normally use the target virtual button, and if the target virtual button is in the display state by default, receiving the target control In the first touch operation, the target virtual button may be hidden in response to the first touch operation to prevent the user from accidentally touching.
- the target control may be a folder-like function, so that the step of hiding the target virtual button may be to move the target virtual button to the target control, or It is understood that the target control can be used to store and expand the target virtual button, for example, as shown in FIG. 2a and FIG. 2b, when the mobile terminal 200 switches from a portrait display state to a landscape display state, The target virtual control 202 is displayed on the screen, and the target virtual key 202 on the display interface is in a hidden state by default.
- the target virtual key 202 is expanded from the target control 201.
- the target virtual button 202 is received into the target control 201.
- the mobile terminal may be any device with a storage medium, such as a computer, a mobile phone, a tablet personal computer, a laptop computer, and a personal digital assistant.
- a terminal device such as a PDA or a mobile Internet device (MID) or a wearable device (Wearable Device).
- the mobile terminal may display the target control when switching from the vertical screen display state to the horizontal screen display state, and may receive the first touch operation for the target control.
- the target virtual button is displayed or hidden in response to the first touch operation.
- the mobile terminal when the mobile terminal is in the horizontal screen display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button. The requirement can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
- FIG. 3 is a flowchart of another virtual button control method according to an embodiment of the present disclosure, which is applied to a mobile terminal.
- the present embodiment is based on the embodiment shown in FIG.
- the first touch operation, the step of displaying or hiding the target virtual button is refined, so that the manner of responding to the first touch operation is more specific and specific.
- the method includes the following steps:
- Step 301 Display a target virtual button.
- the above-mentioned target virtual key can be understood as a virtual key displayed on the screen of the mobile terminal for replacing the cancelled physical key (such as a home key, a return key, etc.), the number of which can be one or more, usually fixed It is displayed at the bottom of the screen and is displayed on the screen along with other virtual buttons on the display interface.
- the cancelled physical key such as a home key, a return key, etc.
- the target virtual button when the mobile terminal is in the vertical display state, the target virtual button may be displayed. Since the target virtual button is generally displayed at the bottom of the screen, in the vertical display state, the touch is not easy to occur. Phenomenon, the target virtual button can be displayed normally for the user to use.
- Step 302 If the mobile terminal switches from the vertical screen display state to the horizontal screen display state, the target control is displayed, and the target virtual button is hidden.
- the target virtual button may also be in a default hidden state, that is, the target virtual button may not be displayed by default in the horizontal screen display state to prevent the user from accidentally touching.
- step of displaying the target control refers to the related implementation manner of step 101 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
- the target virtual button is a virtual button displayed in an edge region of the screen.
- the target virtual button may be not only a virtual button displayed on the screen of the mobile terminal for replacing the cancelled physical button (such as a home button, a return button, etc.), but may also include other
- the virtual button displayed in the edge area of the screen for example, the play/pause button at the bottom of the screen on the video playback interface.
- the screen edge area may be an area on the screen of the mobile terminal that is within a preset distance from a screen boundary.
- the edge area of the screen may be as shown by the area G in FIG. 4, and the distance from any point in the area G to the screen boundary does not exceed L.
- step 302 may include:
- the target virtual button is hidden;
- the target virtual button is hidden when the application running when the mobile terminal is in the horizontal display state is a preset application.
- the target virtual button when the mobile terminal is in the horizontal screen display state, the target virtual button may be hidden if the interface type displayed by the mobile terminal in the horizontal screen is the preset interface type.
- the attribute information of the display interface when the mobile terminal is displayed in the horizontal screen is obtained, and the type of the display interface is obtained, and then the type of the display interface is determined to be a preset interface type, where the preset is
- the interface type may be a system preset or a user-defined interface type.
- the preset interface type may include: a shooting interface class, a game interface class, and a video playing interface class.
- the interface of these preset interface types usually displays more interface virtual buttons, and the user needs to interact with the mobile terminal through these virtual buttons, under these types of interfaces, the user is more likely to accidentally touch the target virtual
- the button affects the normal use of the current display interface, so that the target virtual button can be hidden under the condition that the interface type displayed on the horizontal screen of the mobile terminal is the preset interface type, so as to prevent the user from accidentally touching. .
- the target virtual button may not be hidden.
- the target virtual button may be hidden when the application running when the mobile terminal is in the horizontal screen display state is a preset application, wherein the preset application may be a system pre- An application for setting or user-defined settings, for example, the preset application may include a video playing application, a shooting application, or a game application, and the applications are set to hide the target virtual button by default. Mode. Therefore, the setting information of the application running when the mobile terminal is in the horizontal screen display state may be acquired first, and it is determined whether the application is a preset application, and if the application is a preset application, the hidden device is hidden. The target virtual button.
- the target virtual button may not be hidden. It should be noted that, when the application running when the mobile terminal is in the horizontal display state is not the preset application, it may be further determined whether the interface type displayed by the mobile terminal in the horizontal screen is the preset interface type. Therefore, the application that is run when the mobile terminal is in the horizontal screen display state is not the preset application, but if the interface type displayed by the mobile terminal in the horizontal screen is the preset interface type, the target virtual is hidden. button. In this way, the situation in which the target virtual button needs to be hidden can be more comprehensively determined, and the probability that the user accidentally touches the target virtual button is reduced as much as possible.
- the interface type displayed on the horizontal screen of the mobile terminal is a preset interface type, or the application running when the mobile terminal is in the horizontal screen display state is a preset application, and hidden.
- the target virtual button prevents the user from accidentally touching the normal display of the current interface, and does not require manual operation by the user, thereby improving the user experience.
- Step 303 Receive a first touch operation for the target control.
- step 102 For the specific implementation of the step, refer to the implementation manner of step 102 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
- Step 304 Display the target virtual button in response to the first touch operation.
- the target virtual key may be hidden in response to the first touch operation, that is, the mobile terminal may receive the In the case of the first touch operation of the target control, the target virtual button is displayed, and if the first touch operation for the target control is not received, the target virtual button may remain hidden. status.
- the target virtual button is in a default hidden state, when the user touches the target control to use the target virtual button, the user can respond to the touch operation of the user to control the The target virtual button is in the display state.
- step 304 may include:
- the location of the target virtual button on the screen of the mobile terminal may be determined first, and specifically may be the target display location and location of the target virtual button.
- the display position of the target control is associated, so that the target display position of the target virtual button can be determined according to the display position of the target control.
- the target display position of the target virtual button is associated with the display position of the target control, and it can be understood that the target display position of the target virtual button is always located on a certain side of the display position of the target control, and The distance at which the target control is displayed is fixed.
- the target virtual button After determining the target display position of the target virtual button, the target virtual button may be displayed at the target display position.
- the display position of the target control may be fixed or may be moved according to a user's operation.
- the target may be conveniently determined according to the display position of the target control.
- the target display position of the virtual button, and by associating the display position of the target control with the target virtual button, the current display interface of the mobile terminal can be kept beautiful and concise.
- step 304 may also include:
- the target virtual button is displayed at a preset position on the screen of the mobile terminal.
- the target virtual button when the first touch operation is performed, the target virtual button may be directly displayed on a preset position on the screen, where the preset position may be a system preset or a user. Set the fixed position, such as the center of the bottom of the screen or the center of the top of the screen.
- the target virtual button in response to the first touch operation, may be displayed on a preset position on the screen of the mobile terminal, so that the display position of the target virtual button may be quickly determined. And because the display position of the target virtual button is fixed, it is beneficial to maintain the user's operating habits.
- the step of displaying or hiding the target virtual button in response to the first touch operation is refined, so that the first touch is responded to
- the way to control operations is more specific and specific.
- the embodiment adds a plurality of optional implementation manners to the embodiment shown in FIG. 1.
- the optional implementation manners can be implemented in combination with each other, or can be implemented separately, and can achieve flexible display modes. To ensure the user's normal use of the target virtual button, and to prevent the user from accidentally touching the technical effect of the target virtual button.
- FIG. 5 is a flowchart of another virtual button control method according to an embodiment of the present disclosure, which is applied to a mobile terminal, and the embodiment is based on the embodiment shown in FIG.
- the first touch operation, the step of displaying or hiding the target virtual button is refined, so that the manner of responding to the first touch operation is more specific and specific.
- the method includes the following steps:
- Step 501 Display a target virtual button.
- Step 502 If the mobile terminal switches from the vertical screen display state to the horizontal screen display state, the target control is displayed.
- step 101 For the specific implementation of the step, refer to the implementation manner of step 101 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
- step 501 and step 502 is not limited, that is, the target virtual button may be displayed when the mobile terminal is not switched from the portrait display state to the landscape display state. It may also be displayed when the mobile terminal switches from the portrait display state to the landscape display state.
- the target virtual button is a virtual button displayed in an edge region of the screen.
- the target virtual button may be not only a virtual button displayed on the screen of the mobile terminal for replacing the cancelled physical button (such as a home button, a return button, etc.), but may also include other
- the virtual button displayed in the edge area of the screen for example, the play/pause button at the bottom of the screen on the video playback interface.
- the screen edge area may be an area on the screen of the mobile terminal that is within a preset distance from a screen boundary.
- the edge area of the screen may be as shown by the area G in FIG. 4, and the distance from any point in the area G to the screen boundary does not exceed L.
- Step 503 Receive a first touch operation for the target control.
- step 102 For the specific implementation of the step, refer to the implementation manner of step 102 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
- Step 504 Hide the target virtual button in response to the first touch operation.
- the target virtual key may be hidden in response to the first touch operation to prevent the user from accidentally touching, that is, the mobile terminal
- the target virtual button may be hidden if a first touch operation for the target control is received, and may remain if the first touch operation for the target control is not received
- the target virtual button is in a display state. In this way, in the horizontal display state, since the target virtual button is in the default display state, when the user touches the target control to hide the target virtual button, the user can respond to the touch operation of the user to control the The target virtual button is hidden.
- the method may further include:
- the target control is moved according to the drag operation.
- the user may also drag the target control to any position on the screen, specifically, if a drag operation for the target control is detected, according to the The drag operation moves the target control, for example, as shown in FIG. 2b, the target control 201 can be dragged to the upper left corner position 203 of the screen. In this way, when the display position of the target control interferes with the user operation, the user can drag the target control to another location to prevent the user from accidentally touching the target control and then displaying the target virtual button.
- the user can drag and drop the target control to move it to other positions on the screen to avoid affecting the user operation, so that a better user can be obtained.
- the target virtual button after the target virtual button is hidden, the user can drag and drop the target control to move it to other positions on the screen to avoid affecting the user operation, so that a better user can be obtained.
- the step of displaying or hiding the target virtual button in response to the first touch operation is refined, so that the first touch is responded to
- the way to control operations is more specific and specific.
- the embodiment adds a plurality of optional implementation manners to the embodiment shown in FIG. 1.
- the optional implementation manners can be implemented in combination with each other, or can be implemented separately, and can achieve flexible display modes. To ensure the user's normal use of the target virtual button, and to prevent the user from accidentally touching the technical effect of the target virtual button.
- FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 6, the mobile terminal 600 includes:
- the first display module 601 is configured to display the target control if the mobile terminal 600 switches from the vertical display state to the horizontal display state;
- the receiving module 602 is configured to receive a first touch operation for the target control
- the response module 603 is configured to display or hide the target virtual button in response to the first touch operation.
- the target virtual button is a virtual button displayed in an edge region of the screen.
- the mobile terminal 600 further includes:
- a second display module 604 configured to display a target virtual button
- a hiding module 605, configured to hide the target virtual button if the mobile terminal 600 switches from a portrait display state to a landscape display state;
- the response module 603 is configured to display the target virtual button in response to the first touch operation.
- the mobile terminal 600 further includes:
- a third display module 606, configured to display a target virtual button
- the response module 603 is configured to hide the target virtual button in response to the first touch operation.
- the hiding module 605 includes:
- a first hiding unit 6051 configured to hide the target virtual button if the interface type displayed by the mobile terminal 600 in the horizontal screen is a preset interface type
- the second hiding unit 6052 is configured to hide the target virtual button when the application running when the mobile terminal 600 is in the horizontal screen display state is a preset application.
- the response module 603 includes:
- a determining unit 6031 configured to determine, according to the first touch operation, a target display position of the target virtual button according to a display position of the target control, wherein the target display position and a display position of the target control Associated;
- the display unit 6032 is configured to display the target virtual button at the target display position.
- the mobile terminal 600 can implement various processes implemented by the mobile terminal in the method embodiments of FIG. 1 , FIG. 3 and FIG. 5 . To avoid repetition, details are not described herein again.
- the mobile terminal 600 of the embodiment of the present disclosure may display a target control when switching from a portrait display state to a landscape display state, and may respond to the first touch operation for the target control.
- the first touch operation displays or hides the target virtual button.
- the user when the mobile terminal 600 is in the horizontal display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button.
- the demand can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
- the mobile terminal 1100 includes, but is not limited to, a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, and a display unit. 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and a power source 1111. It will be understood by those skilled in the art that the mobile terminal structure shown in FIG. 11 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than those illustrated, or combine some components, or different components. Arrangement.
- the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle terminal, a wearable device, a pedometer, and the like.
- the processor 1110 is configured to display a target control if the mobile terminal 1100 switches from a vertical display state to a horizontal display state;
- the target virtual button is displayed or hidden in response to the first touch operation.
- the target virtual button is a virtual button displayed in an edge region of the screen.
- the processor 1110 is further configured to: display a target virtual button;
- the target virtual button is displayed in response to the first touch operation.
- the processor 1110 is further configured to: display a target virtual button;
- the target virtual button is hidden in response to the first touch operation.
- the processor 1110 is further configured to hide the target virtual button if the interface type displayed by the mobile terminal 1100 is a preset interface type; or
- the target virtual button is hidden.
- the processor 1110 is further configured to: in response to the first touch operation, determine a target display position of the target virtual button according to a display position of the target control, where the target display position is The display position of the target control is associated;
- the mobile terminal 1100 can implement various processes implemented by the mobile terminal in the foregoing embodiment. To avoid repetition, details are not described herein again.
- the mobile terminal 1100 of the embodiment of the present disclosure may display a target control when switching from a portrait display state to a landscape display state, and may respond to the first touch operation for the target control.
- the first touch operation displays or hides the target virtual button.
- the user when the mobile terminal is in the horizontal screen display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button.
- the requirement can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
- the radio frequency unit 1101 can be used for receiving and transmitting signals during the transmission and reception of information or during a call, and specifically, after receiving downlink data from the base station, processing the processor 1110; The uplink data is sent to the base station.
- radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio unit 1101 can also communicate with the network and other devices through a wireless communication system.
- the mobile terminal provides the user with wireless broadband Internet access through the network module 1102, such as helping the user to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 1103 can convert the audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as a sound. Moreover, the audio output unit 1103 can also provide an audio output (eg, a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 1100.
- the audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 1104 is for receiving an audio or video signal.
- the input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042.
- the graphics processor 11041 is for a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. Image data is processed.
- the processed image frame can be displayed on the display unit 1106.
- the image frames processed by the graphics processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio unit 1101 or the network module 1102.
- the microphone 11042 can receive sound and can process such sound as audio data.
- the processed audio data can be converted to a format output that can be transmitted to the mobile communication base station via the radio unit 1101 in the case of a telephone call mode.
- the mobile terminal 1100 also includes at least one type of sensor 1105, such as a light sensor, motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 11061 when the mobile terminal 1100 moves to the ear. / or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games).
- sensor 1105 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors and the like are not described here.
- the display unit 1106 is for displaying information input by the user or information provided to the user.
- the display unit 1106 can include a display panel 11061.
- the display panel 11061 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the user input unit 1107 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal.
- the user input unit 1107 includes a touch panel 11071 and other input devices 11072.
- the touch panel 11071 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 11071 or near the touch panel 11071. operating).
- the touch panel 11071 may include two parts of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 1110 receives the commands from the processor 1110 and executes them.
- the touch panel 11071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the user input unit 1107 may also include other input devices 11072.
- other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which are not described herein.
- the touch panel 11071 can be overlaid on the display panel 11061. After the touch panel 11071 detects a touch operation thereon or nearby, the touch panel 11071 transmits to the processor 1110 to determine the type of the touch event, and then the processor 1110 according to the touch. The type of event provides a corresponding visual output on display panel 11061.
- the touch panel 11071 and the display panel 11061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 11071 and the display panel 11061 may be integrated. The input and output functions of the mobile terminal are implemented, and are not limited herein.
- the interface unit 1108 is an interface in which an external device is connected to the mobile terminal 1100.
- the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
- the interface unit 1108 can be configured to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more components within the mobile terminal 1100 or can be used at the mobile terminal 1100 and externally Data is transferred between devices.
- Memory 1109 can be used to store software programs as well as various data.
- the memory 1109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
- memory 1109 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the processor 1110 is a control center of the mobile terminal that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1109, and recalling data stored in the memory 1109.
- the mobile terminal performs various functions and processing data to perform overall monitoring on the mobile terminal.
- the processor 1110 may include one or more processing units; optionally, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and a modulation solution
- the processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 1110.
- the mobile terminal 1100 may further include a power source 1111 (such as a battery) for supplying power to various components.
- a power source 1111 such as a battery
- the power source 1111 may be logically connected to the processor 1110 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- the mobile terminal 1100 includes some functional modules not shown, which are not described herein again.
- an embodiment of the present disclosure further provides a mobile terminal, including a processor 1110, a memory 1109, a computer program stored on the memory 1109 and executable on the processor 1110, where the computer program is executed by the processor 1110.
- a mobile terminal including a processor 1110, a memory 1109, a computer program stored on the memory 1109 and executable on the processor 1110, where the computer program is executed by the processor 1110.
- the embodiment of the present disclosure further provides a computer readable storage medium.
- the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements various processes of the virtual button control method embodiment, and can achieve the same Technical effects, to avoid repetition, will not be repeated here.
- the computer readable storage medium such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present disclosure, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
- the instructions include a number of instructions for causing a terminal (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A control method for a virtual button and a mobile terminal (200). The method comprises: if the mobile terminal (200) switches from a portrait screen display state to a landscape screen display state, then displaying a target control (201); receiving a first touch operation with respect to the target control (201); and, in response to the first touch operation, displaying or hiding a target virtual button (202).
Description
相关申请的交叉引用Cross-reference to related applications
本申请主张在2018年4月13日在中国提交的中国专利申请号No.201810333778.2的优先权,其全部内容通过引用包含于此。The present application claims priority to Chinese Patent Application No. 20181033377, filed on Jan. 13, 2018, the entire content of which is hereby incorporated by reference.
本公开涉及通信技术领域,尤其涉及一种虚拟按键控制方法及移动终端。The present disclosure relates to the field of communications technologies, and in particular, to a virtual button control method and a mobile terminal.
目前,移动终端已成为人们日常生活中不可或缺的终端设备,随着移动终端技术的不断发展与进步,全面屏移动终端开始被越来越多的用户所使用。现有全面屏移动终端的正面不再设有实体按键,如Home键、返回键等,而是使用虚拟按键来实现原有实体按键的功能。目前较为常见的方式是在屏幕的底端显示若干个虚拟按键,用以分别实现返回、回到主界面、选择等功能。这种显示方式固定、单一,不能满足用户的使用需求。At present, mobile terminals have become an indispensable terminal device in people's daily life. With the continuous development and advancement of mobile terminal technologies, full-screen mobile terminals are beginning to be used by more and more users. The front panel of the existing full-screen mobile terminal no longer has physical buttons, such as the Home button, the Back button, etc., but uses virtual buttons to implement the functions of the original physical buttons. At present, the more common way is to display a number of virtual buttons at the bottom of the screen to implement functions such as returning, returning to the main interface, and selecting. This display mode is fixed and single, and cannot meet the user's use requirements.
可见,相关技术中的移动终端屏幕上的虚拟按键存在显示方式固定、单一的问题。It can be seen that the virtual buttons on the screen of the mobile terminal in the related art have a fixed display mode and a single problem.
发明内容Summary of the invention
本公开实施例提供一种虚拟按键控制方法及移动终端,以解决移动终端屏幕上的虚拟按键存在显示方式固定、单一的问题。The embodiment of the present disclosure provides a virtual button control method and a mobile terminal, so as to solve the problem that the virtual button on the screen of the mobile terminal has a fixed display mode.
为解决上述技术问题,本公开是这样实现的:To solve the above technical problems, the present disclosure is implemented as follows:
第一方面,本公开实施例提供了一种虚拟按键控制方法,应用于移动终端,所述方法包括:In a first aspect, an embodiment of the present disclosure provides a virtual button control method, which is applied to a mobile terminal, where the method includes:
若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件;Displaying the target control if the mobile terminal switches from the portrait display state to the landscape display state;
接收针对所述目标控件的第一触控操作;Receiving a first touch operation for the target control;
响应所述第一触控操作,显示或隐藏目标虚拟按键。In response to the first touch operation, the target virtual button is displayed or hidden.
第二方面,本公开实施例提供一种移动终端,包括:In a second aspect, an embodiment of the present disclosure provides a mobile terminal, including:
第一显示模块,用于若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件;a first display module, configured to display a target control if the mobile terminal switches from a vertical screen display state to a horizontal screen display state;
接收模块,用于接收针对所述目标控件的第一触控操作;a receiving module, configured to receive a first touch operation for the target control;
响应模块,用于响应所述第一触控操作,显示或隐藏目标虚拟按键。The response module is configured to display or hide the target virtual button in response to the first touch operation.
第三方面,本公开实施例提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述虚拟按键控制方法中的步骤。In a third aspect, an embodiment of the present disclosure provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor The steps in the above virtual key control method are implemented.
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述虚拟按键控制方法中的步骤。In a fourth aspect, an embodiment of the present disclosure provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the steps in the virtual button control method.
本公开实施例中,所述移动终端可以在从竖屏显示状态切换至横屏显示状态时,显示目标控件,并可以在接收到针对所述目标控件的第一触控操作的情况下,响应所述第一触控操作,显示或隐藏目标虚拟按键。这样,在所述移动终端处于横屏显示状态下,用户可以通过触控所述目标控件来控制界面上的目标虚拟按键的显示状态,显示方式灵活,能保证用户正常使用所述目标虚拟按键的需求,还能达到防止用户误触碰所述目标虚拟按键的目的。In the embodiment of the present disclosure, the mobile terminal may display the target control when switching from the vertical screen display state to the horizontal screen display state, and may respond in response to receiving the first touch operation for the target control. The first touch operation displays or hides a target virtual button. In this way, when the mobile terminal is in the horizontal screen display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button. The requirement can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present disclosure. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1是本公开实施例提供的一种虚拟按键控制方法的流程图;FIG. 1 is a flowchart of a virtual button control method according to an embodiment of the present disclosure;
图2a是本公开实施例提供的显示目标虚拟按键和目标控件的示意图;2a is a schematic diagram of a display target virtual button and a target control according to an embodiment of the present disclosure;
图2b本公开实施例提供的隐藏目标虚拟按键的示意图;2b is a schematic diagram of a hidden target virtual button provided by an embodiment of the present disclosure;
图3是本公开实施例提供的另一种虚拟按键控制方法的流程图;3 is a flowchart of another virtual button control method according to an embodiment of the present disclosure;
图4是本公开实施例提供的屏幕边缘区域的示意图;4 is a schematic diagram of a screen edge area provided by an embodiment of the present disclosure;
图5是本公开实施例提供的另一种虚拟按键控制方法的流程图;FIG. 5 is a flowchart of another virtual button control method according to an embodiment of the present disclosure;
图6是本公开实施例提供的一种移动终端的结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图7是本公开实施例提供的另一种移动终端的结构示意图;FIG. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure;
图8是本公开实施例提供的另一种移动终端的结构示意图;FIG. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure;
图9a是本公开实施例提供的另一种移动终端的结构示意图;FIG. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure;
图9b是本公开实施例提供的另一种移动终端的结构示意图;FIG. 9b is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure;
图10是本公开实施例提供的另一种移动终端的结构示意图;FIG. 10 is a schematic structural diagram of another mobile terminal according to an embodiment of the present disclosure;
图11是本公开实施例提供的一种移动终端的硬件结构示意图。FIG. 11 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present disclosure.
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present disclosure. It is obvious that the described embodiments are a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without departing from the inventive scope are the scope of the disclosure.
参见图1,图1是本公开实施例提供的一种虚拟按键控制方法的流程图,应用于移动终端,如图1所示,所述方法包括以下步骤:Referring to FIG. 1 , FIG. 1 is a flowchart of a virtual button control method according to an embodiment of the present disclosure, which is applied to a mobile terminal. As shown in FIG. 1 , the method includes the following steps:
步骤101、若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件。Step 101: If the mobile terminal switches from a portrait display state to a landscape display state, the target control is displayed.
本实施例中,当所述移动终端处于横屏显示状态时,由于用户握持移动终端时手指通常会在屏幕的两端,因而较容易发生误触碰到显示界面上的目标虚拟按键的事件,因此,可以在横屏显示状态下的显示界面上显示目标控件,所述目标控件用于对所述移动终端的显示界面上的目标虚拟按键的显示状态进行控制。其中,所述目标虚拟按键可以理解为所述移动终端的屏幕上显示的用于替代被取消的实体按键(如Home键、返回键等)而定义的虚拟按键,其数量可以为一个或多个,通常固定显示在屏幕的底端。In this embodiment, when the mobile terminal is in the horizontal display state, since the finger is usually at both ends of the screen when the user holds the mobile terminal, the event that the target virtual button on the display interface is accidentally touched is relatively easy to occur. Therefore, the target control can be displayed on the display interface in the horizontal screen display state, and the target control is used to control the display state of the target virtual button on the display interface of the mobile terminal. The target virtual button may be understood as a virtual button displayed on the screen of the mobile terminal for replacing the cancelled physical button (such as a home button, a return button, etc.), and the number may be one or more. , usually fixed at the bottom of the screen.
这样,用户可以在不需要使用所述目标虚拟按键时通过触控所述目标控件来隐藏所述目标虚拟按键,在需要使用所述目标虚拟按键时通过触控所述目标控件来显示所述目标虚拟按键,目标虚拟按键的显示方式灵活,满足用户的使用需求。In this way, the user can hide the target virtual button by touching the target control when the target virtual button is not needed, and display the target by touching the target control when the target virtual button needs to be used. The virtual button and the target virtual button are displayed in a flexible manner to meet the user's needs.
步骤102、接收针对所述目标控件的第一触控操作。Step 102: Receive a first touch operation for the target control.
该步骤中,当用户触控所述目标控件时,可以接收针对所述目标控件的 第一触控操作,以使所述移动终端响应所述第一触控操作,其中,所述第一触控操作可以是点击、按压、长按或其他触控操作。In this step, when the user touches the target control, the first touch operation for the target control may be received, so that the mobile terminal responds to the first touch operation, wherein the first touch The control operation can be a click, a press, a long press or other touch operation.
步骤103、响应所述第一触控操作,显示或隐藏目标虚拟按键。Step 103: Display or hide the target virtual button in response to the first touch operation.
该步骤中,在接收到针对所述目标控件的第一触控操作后,可以响应所述第一触控操作,显示或隐藏目标虚拟按键,具体地,在所述移动终端从竖屏显示状态切换至横屏显示状态时,所述目标虚拟按键可以默认处于隐藏或显示状态,从而若在所述目标虚拟按键默认处于隐藏状态的情况下接收到针对所述目标控件的第一触控操作,则可以响应所述第一触控操作,显示目标虚拟按键,以使用户可以正常使用所述目标虚拟按键,若在所述目标虚拟按键默认处于显示状态的情况下接收到针对所述目标控件的第一触控操作,则可以响应所述第一触控操作,隐藏目标虚拟按键,以达到防止用户误触碰的目的。In this step, after receiving the first touch operation for the target control, the target virtual key may be displayed or hidden in response to the first touch operation, specifically, the mobile terminal displays the status from the vertical screen. When switching to the horizontal display state, the target virtual button may be in a hidden or displayed state by default, so that if the target virtual button is in a hidden state by default, the first touch operation for the target control is received, And in response to the first touch operation, displaying the target virtual button, so that the user can normally use the target virtual button, and if the target virtual button is in the display state by default, receiving the target control In the first touch operation, the target virtual button may be hidden in response to the first touch operation to prevent the user from accidentally touching.
需说明的是,本实施例中,所述目标控件可以是具备类似文件夹的功能,从而所述隐藏目标虚拟按键的步骤可以是将所述目标虚拟按键移至所述目标控件中,或者可以理解为所述目标控件可用于对所述目标虚拟按键进行收纳和展开,例如:如图2a和图2b所示,在所述移动终端200从竖屏显示状态切换至横屏显示状态时,可在屏幕上显示目标控件201,假设显示界面上的目标虚拟按键202默认处于隐藏状态,则在接收到针对目标控件201的第一触控操作时,将目标虚拟按键202从目标控件201中展开,在再次接收到针对目标控件201的第一触控操作时,将目标虚拟按键202收纳至目标控件201中。It should be noted that, in this embodiment, the target control may be a folder-like function, so that the step of hiding the target virtual button may be to move the target virtual button to the target control, or It is understood that the target control can be used to store and expand the target virtual button, for example, as shown in FIG. 2a and FIG. 2b, when the mobile terminal 200 switches from a portrait display state to a landscape display state, The target virtual control 202 is displayed on the screen, and the target virtual key 202 on the display interface is in a hidden state by default. When the first touch operation for the target control 201 is received, the target virtual key 202 is expanded from the target control 201. When the first touch operation for the target control 201 is received again, the target virtual button 202 is received into the target control 201.
本公开实施例中,上述移动终端可以是任何具有存储媒介的设备,例如:计算机(Computer)、手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,简称MID)或可穿戴式设备(Wearable Device)等终端设备。In the embodiment of the present disclosure, the mobile terminal may be any device with a storage medium, such as a computer, a mobile phone, a tablet personal computer, a laptop computer, and a personal digital assistant. A terminal device such as a PDA or a mobile Internet device (MID) or a wearable device (Wearable Device).
本实施例中的虚拟按键控制方法,所述移动终端可以在从竖屏显示状态切换至横屏显示状态时,显示目标控件,并可以在接收到针对所述目标控件的第一触控操作的情况下,响应所述第一触控操作,显示或隐藏目标虚拟按 键。这样,在所述移动终端处于横屏显示状态下,用户可以通过触控所述目标控件来控制界面上的目标虚拟按键的显示状态,显示方式灵活,能保证用户正常使用所述目标虚拟按键的需求,还能达到防止用户误触碰所述目标虚拟按键的目的。In the virtual button control method in this embodiment, the mobile terminal may display the target control when switching from the vertical screen display state to the horizontal screen display state, and may receive the first touch operation for the target control. In the case, the target virtual button is displayed or hidden in response to the first touch operation. In this way, when the mobile terminal is in the horizontal screen display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button. The requirement can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
参见图3,图3是本公开实施例提供的另一种虚拟按键控制方法的流程图,应用于移动终端,本实施例在图1所示的实施例的基础上,对所述响应所述第一触控操作,显示或隐藏目标虚拟按键的步骤进行了细化,从而使得响应所述第一触控操作的方式更加清楚具体。如图3所示,所述方法包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of another virtual button control method according to an embodiment of the present disclosure, which is applied to a mobile terminal. The present embodiment is based on the embodiment shown in FIG. The first touch operation, the step of displaying or hiding the target virtual button is refined, so that the manner of responding to the first touch operation is more specific and specific. As shown in FIG. 3, the method includes the following steps:
步骤301、显示目标虚拟按键。Step 301: Display a target virtual button.
上述目标虚拟按键可以理解为所述移动终端的屏幕上显示的用于替代被取消的实体按键(如Home键、返回键等)而定义的虚拟按键,其数量可以为一个或多个,通常固定显示在屏幕的底端,且随着显示界面上的其他虚拟按键一同显示在屏幕上。The above-mentioned target virtual key can be understood as a virtual key displayed on the screen of the mobile terminal for replacing the cancelled physical key (such as a home key, a return key, etc.), the number of which can be one or more, usually fixed It is displayed at the bottom of the screen and is displayed on the screen along with other virtual buttons on the display interface.
本实施例中,可以在所述移动终端处于竖屏显示状态时,显示目标虚拟按键,由于所述目标虚拟按键一般显示在屏幕底端,因而在竖屏显示状态下,不易发生误触碰的现象,可以正常显示所述目标虚拟按键,以供用户使用。In this embodiment, when the mobile terminal is in the vertical display state, the target virtual button may be displayed. Since the target virtual button is generally displayed at the bottom of the screen, in the vertical display state, the touch is not easy to occur. Phenomenon, the target virtual button can be displayed normally for the user to use.
步骤302、若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件,并隐藏所述目标虚拟按键。Step 302: If the mobile terminal switches from the vertical screen display state to the horizontal screen display state, the target control is displayed, and the target virtual button is hidden.
本实施例中,在所述移动终端从竖屏显示状态切换至横屏显示状态的情况下,除了显示所述目标控件以使用户可以对显示界面上的目标虚拟按键的显示状态进行控制外,还可以使所述目标虚拟按键处于默认隐藏状态,即在横屏显示状态下可以默认不显示所述目标虚拟按键,以防止用户误触碰。In this embodiment, in the case that the mobile terminal switches from the vertical screen display state to the horizontal screen display state, in addition to displaying the target control so that the user can control the display state of the target virtual button on the display interface, The target virtual button may also be in a default hidden state, that is, the target virtual button may not be displayed by default in the horizontal screen display state to prevent the user from accidentally touching.
其中,所述显示目标控件的步骤的具体实施方式可以参见图1所示的方法实施例中步骤101的相关实施方式,且能达到相同的有益效果,为避免重复,这里不再赘述。For the specific implementation of the step of displaying the target control, refer to the related implementation manner of step 101 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
可选的,所述目标虚拟按键为显示在屏幕边缘区域的虚拟按键。Optionally, the target virtual button is a virtual button displayed in an edge region of the screen.
该实施方式中,所述目标虚拟按键可以不仅仅是所述移动终端的屏幕上显示的用于替代被取消的实体按键(如Home键、返回键等)而定义的虚拟 按键,还可以包括其他的显示在屏幕边缘区域的虚拟按键,例如:视频播放界面上位于屏幕底端的播放/暂停按键。这些虚拟按键都存在易被误触碰的风险,因此,通过显示所述目标控件可使用户对显示在屏幕边缘区域的虚拟按键的显示状态都能够进行灵活。In this implementation manner, the target virtual button may be not only a virtual button displayed on the screen of the mobile terminal for replacing the cancelled physical button (such as a home button, a return button, etc.), but may also include other The virtual button displayed in the edge area of the screen, for example, the play/pause button at the bottom of the screen on the video playback interface. These virtual keys all have the risk of being easily touched by mistake. Therefore, by displaying the target control, the user can flexibly display the display state of the virtual keys displayed in the edge area of the screen.
具体地,所述屏幕边缘区域可以是所述移动终端屏幕上距屏幕边界的距离在预设距离范围内的区域。例如:所述屏幕边缘区域可以如图4中的区域G所示,区域G中任意一点距屏幕边界的距离均不超过L。Specifically, the screen edge area may be an area on the screen of the mobile terminal that is within a preset distance from a screen boundary. For example, the edge area of the screen may be as shown by the area G in FIG. 4, and the distance from any point in the area G to the screen boundary does not exceed L.
当然,该实施方式中,同样可以应用到图1所示的实施例中,且能达到相同有益效果。Of course, in this embodiment, the same can be applied to the embodiment shown in FIG. 1 and the same advantageous effects can be achieved.
可选的,步骤302可以包括:Optionally, step 302 may include:
在所述移动终端横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键;或者In a case where the interface type displayed on the horizontal screen of the mobile terminal is a preset interface type, the target virtual button is hidden; or
在所述移动终端处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键。The target virtual button is hidden when the application running when the mobile terminal is in the horizontal display state is a preset application.
该实施方式中,在所述移动终端处于横屏显示状态时,可以在所述移动终端横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键。具体地,可以先获取所述移动终端横屏显示时的显示界面的属性信息,得到所述显示界面的类型,然后判断所述显示界面的类型是否为预设界面类型,其中,所述预设界面类型可以是系统预设或用户自定义的界面类型,例如:所述预设界面类型可以包括:拍摄界面类、游戏界面类和视频播放界面类等等。由于这些预设界面类型的界面上通常会显示较多的界面虚拟按键,且用户需要通过这些虚拟按键与移动终端进行交互,因而在这些类型的界面下,用户比较容易误触碰所述目标虚拟按键而影响当前显示界面的正常使用,从而可以在判断出所述移动终端横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键,以达到防止用户误触碰的目的。In this embodiment, when the mobile terminal is in the horizontal screen display state, the target virtual button may be hidden if the interface type displayed by the mobile terminal in the horizontal screen is the preset interface type. Specifically, the attribute information of the display interface when the mobile terminal is displayed in the horizontal screen is obtained, and the type of the display interface is obtained, and then the type of the display interface is determined to be a preset interface type, where the preset is The interface type may be a system preset or a user-defined interface type. For example, the preset interface type may include: a shooting interface class, a game interface class, and a video playing interface class. Since the interface of these preset interface types usually displays more interface virtual buttons, and the user needs to interact with the mobile terminal through these virtual buttons, under these types of interfaces, the user is more likely to accidentally touch the target virtual The button affects the normal use of the current display interface, so that the target virtual button can be hidden under the condition that the interface type displayed on the horizontal screen of the mobile terminal is the preset interface type, so as to prevent the user from accidentally touching. .
可以理解的是,在所述移动终端横屏显示的界面类型不为预设界面类型的情况下,可以不隐藏所述目标虚拟按键。It can be understood that, in a case where the interface type displayed by the mobile terminal in the horizontal screen is not the preset interface type, the target virtual button may not be hidden.
该实施方式中,还可以在所述移动终端处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键,其中,所述预设应 用程序可以是系统预先设置或用户自定义设置的应用程序,例如:所述预设应用程序可以包括视频播放类应用程序、拍摄类应用程序或游戏类应用程序等,这些应用程序被设置为默认隐藏所述目标虚拟按键的模式。因此,可以先获取所述移动终端处于横屏显示状态时运行的应用程序的设置信息,判断该应用程序是否被为预设的应用程序,若该应用程序为预设的应用程序,则隐藏所述目标虚拟按键。In this embodiment, the target virtual button may be hidden when the application running when the mobile terminal is in the horizontal screen display state is a preset application, wherein the preset application may be a system pre- An application for setting or user-defined settings, for example, the preset application may include a video playing application, a shooting application, or a game application, and the applications are set to hide the target virtual button by default. Mode. Therefore, the setting information of the application running when the mobile terminal is in the horizontal screen display state may be acquired first, and it is determined whether the application is a preset application, and if the application is a preset application, the hidden device is hidden. The target virtual button.
可以理解的是,在所述移动终端处于横屏显示状态时运行的应用程序不为预设应用程序的情况下,可以不隐藏所述目标虚拟按键。需说明的是,在所述移动终端处于横屏显示状态时运行的应用程序不为预设应用程序的情况下,还可以再判断所述移动终端横屏显示的界面类型是否为预设界面类型,从而可以在所述移动终端处于横屏显示状态时运行的应用程序不为预设应用程序,但所述移动终端横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键。这样,可以更为全面地确定需隐藏所述目标虚拟按键的情况,尽可能地减少用户误触碰所述目标虚拟按键的概率。It can be understood that, in a case where the application running when the mobile terminal is in the horizontal display state is not the preset application, the target virtual button may not be hidden. It should be noted that, when the application running when the mobile terminal is in the horizontal display state is not the preset application, it may be further determined whether the interface type displayed by the mobile terminal in the horizontal screen is the preset interface type. Therefore, the application that is run when the mobile terminal is in the horizontal screen display state is not the preset application, but if the interface type displayed by the mobile terminal in the horizontal screen is the preset interface type, the target virtual is hidden. button. In this way, the situation in which the target virtual button needs to be hidden can be more comprehensively determined, and the probability that the user accidentally touches the target virtual button is reduced as much as possible.
这样,该实施方式中,可以在所述移动终端横屏显示的界面类型为预设界面类型,或者所述移动终端处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键,以防止用户误触碰而影响当前界面的正常显示,且无需用户手动操作,进而提高用户体验。In this way, in the embodiment, the interface type displayed on the horizontal screen of the mobile terminal is a preset interface type, or the application running when the mobile terminal is in the horizontal screen display state is a preset application, and hidden. The target virtual button prevents the user from accidentally touching the normal display of the current interface, and does not require manual operation by the user, thereby improving the user experience.
步骤303、接收针对所述目标控件的第一触控操作。Step 303: Receive a first touch operation for the target control.
该步骤的具体实施方式可以参见图1所示的方法实施例中步骤102的实施方式,且能达到相同的有益效果,为避免重复,这里不再赘述。For the specific implementation of the step, refer to the implementation manner of step 102 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
步骤304、响应所述第一触控操作,显示所述目标虚拟按键。Step 304: Display the target virtual button in response to the first touch operation.
该步骤中,在接收到针对所述目标控件的第一触控操作后,可以响应所述第一触控操作,显示所述目标虚拟按键隐藏,即所述移动终端可以在接收到针对所述目标控件的第一触控操作的情况下,显示所述目标虚拟按键,而在未接收到针对所述目标控件的第一触控操作的情况下,则可以继续保持所述目标虚拟按键处于隐藏状态。这样,在横屏显示状态下,由于所述目标虚拟按键处于默认隐藏状态,从而在用户触控所述目标控件以期望使用所述目标虚拟按键时,可以响应用户的触控操作,以控制所述目标虚拟按键处于显 示状态。In this step, after receiving the first touch operation for the target control, the target virtual key may be hidden in response to the first touch operation, that is, the mobile terminal may receive the In the case of the first touch operation of the target control, the target virtual button is displayed, and if the first touch operation for the target control is not received, the target virtual button may remain hidden. status. In this way, in the horizontal display state, since the target virtual button is in a default hidden state, when the user touches the target control to use the target virtual button, the user can respond to the touch operation of the user to control the The target virtual button is in the display state.
可选的,步骤304可以包括:Optionally, step 304 may include:
响应所述第一触控操作,根据所述目标控件的显示位置,确定所述目标虚拟按键的目标显示位置,其中,所述目标显示位置与所述目标控件的显示位置相关联;Determining, according to the first touch operation, a target display position of the target virtual button according to a display position of the target control, wherein the target display position is associated with a display position of the target control;
将所述目标虚拟按键显示在所述目标显示位置。Displaying the target virtual button at the target display position.
该实施方式中,在响应所述第一触控操作时,可以先确定所述移动终端屏幕上用于显示所述目标虚拟按键的位置,具体可以是所述目标虚拟按键的目标显示位置与所述目标控件的显示位置相关联,从而可以根据所述目标控件的显示位置,来确定所述目标虚拟按键的目标显示位置。所述目标虚拟按键的目标显示位置与所述目标控件的显示位置相关联,可以理解为所述目标虚拟按键的目标显示位置总是位于所述目标控件的显示位置的某一侧,且与所述目标控件的显示位置的距离固定。In this embodiment, in response to the first touch operation, the location of the target virtual button on the screen of the mobile terminal may be determined first, and specifically may be the target display location and location of the target virtual button. The display position of the target control is associated, so that the target display position of the target virtual button can be determined according to the display position of the target control. The target display position of the target virtual button is associated with the display position of the target control, and it can be understood that the target display position of the target virtual button is always located on a certain side of the display position of the target control, and The distance at which the target control is displayed is fixed.
在确定所述目标虚拟按键的目标显示位置后,便可以将所述目标虚拟按键显示在所述目标显示位置。After determining the target display position of the target virtual button, the target virtual button may be displayed at the target display position.
在实际应用中,所述目标控件的显示位置可以是固定的,也可以是根据用户的操作移动的,从而该实施方式中,根据所述目标控件的显示位置,可以较为方便地确定所述目标虚拟按键的目标显示位置,且通过关联所述目标控件与所述目标虚拟按键的显示位置,可使所述移动终端当前的显示界面保持美观简洁。In an actual application, the display position of the target control may be fixed or may be moved according to a user's operation. In this embodiment, the target may be conveniently determined according to the display position of the target control. The target display position of the virtual button, and by associating the display position of the target control with the target virtual button, the current display interface of the mobile terminal can be kept beautiful and concise.
当然,该实施方式中,同样可以应用到图1所示的实施例中,且能达到相同有益效果。Of course, in this embodiment, the same can be applied to the embodiment shown in FIG. 1 and the same advantageous effects can be achieved.
可选的,步骤304也可以包括:Optionally, step 304 may also include:
响应所述第一触控操作,将所述目标虚拟按键显示在所述移动终端屏幕上的预设位置。In response to the first touch operation, the target virtual button is displayed at a preset position on the screen of the mobile terminal.
该实施方式中,在响应所述第一触控操作时,也可以直接将所述目标虚拟按键显示在所述屏幕上的预设位置,其中,所述预设位置可以是系统预设或用户设定的固定位置,如屏幕底端中央或屏幕顶端中央等。In this embodiment, when the first touch operation is performed, the target virtual button may be directly displayed on a preset position on the screen, where the preset position may be a system preset or a user. Set the fixed position, such as the center of the bottom of the screen or the center of the top of the screen.
这样,该实施方式中,在响应所述第一触控操作时,可以将所述目标虚 拟按键显示在所述移动终端屏幕上的预设位置,从而可以迅速确定所述目标虚拟按键的显示位置,且由于所述目标虚拟按键的显示位置固定,进而有利于保持用户操作习惯。In this embodiment, in response to the first touch operation, the target virtual button may be displayed on a preset position on the screen of the mobile terminal, so that the display position of the target virtual button may be quickly determined. And because the display position of the target virtual button is fixed, it is beneficial to maintain the user's operating habits.
当然,该实施方式中,同样可以应用到图1所示的实施例中,且能达到相同有益效果。Of course, in this embodiment, the same can be applied to the embodiment shown in FIG. 1 and the same advantageous effects can be achieved.
本实施例中,在图1所示的实施例的基础上,对所述响应所述第一触控操作,显示或隐藏目标虚拟按键的步骤进行了细化,从而使得响应所述第一触控操作的方式更加清楚具体。另外,本实施例在图1所示的实施例的基础上还增加了多种可选的实施方式,这些可选的实施方式可以相互结合实现,也可以单独实现,且都能达到显示方式灵活,保证用户正常使用所述目标虚拟按键的需求,还能防止用户误触碰所述目标虚拟按键的技术效果。In this embodiment, on the basis of the embodiment shown in FIG. 1, the step of displaying or hiding the target virtual button in response to the first touch operation is refined, so that the first touch is responded to The way to control operations is more specific and specific. In addition, the embodiment adds a plurality of optional implementation manners to the embodiment shown in FIG. 1. The optional implementation manners can be implemented in combination with each other, or can be implemented separately, and can achieve flexible display modes. To ensure the user's normal use of the target virtual button, and to prevent the user from accidentally touching the technical effect of the target virtual button.
参见图5,图5是本公开实施例提供的另一种虚拟按键控制方法的流程图,应用于移动终端,本实施例在图1所示的实施例的基础上,对所述响应所述第一触控操作,显示或隐藏目标虚拟按键的步骤进行了细化,从而使得响应所述第一触控操作的方式更加清楚具体。如图5所示,所述方法包括以下步骤:Referring to FIG. 5, FIG. 5 is a flowchart of another virtual button control method according to an embodiment of the present disclosure, which is applied to a mobile terminal, and the embodiment is based on the embodiment shown in FIG. The first touch operation, the step of displaying or hiding the target virtual button is refined, so that the manner of responding to the first touch operation is more specific and specific. As shown in FIG. 5, the method includes the following steps:
步骤501、显示目标虚拟按键。Step 501: Display a target virtual button.
步骤502、若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件。Step 502: If the mobile terminal switches from the vertical screen display state to the horizontal screen display state, the target control is displayed.
该步骤的具体实施方式可以参见图1所示的方法实施例中步骤101的实施方式,且能达到相同的有益效果,为避免重复,这里不再赘述。For the specific implementation of the step, refer to the implementation manner of step 101 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
需说明的是,本实施例中,并不限定步骤501与步骤502的执行时序,即所述目标虚拟按键既可以是在所述移动终端未从竖屏显示状态切换至横屏显示状态时显示,也可以是在所述移动终端从竖屏显示状态切换至横屏显示状态时显示。It should be noted that, in this embodiment, the execution timing of step 501 and step 502 is not limited, that is, the target virtual button may be displayed when the mobile terminal is not switched from the portrait display state to the landscape display state. It may also be displayed when the mobile terminal switches from the portrait display state to the landscape display state.
可选的,所述目标虚拟按键为显示在屏幕边缘区域的虚拟按键。Optionally, the target virtual button is a virtual button displayed in an edge region of the screen.
该实施方式中,所述目标虚拟按键可以不仅仅是所述移动终端的屏幕上显示的用于替代被取消的实体按键(如Home键、返回键等)而定义的虚拟按键,还可以包括其他的显示在屏幕边缘区域的虚拟按键,例如:视频播放 界面上位于屏幕底端的播放/暂停按键。这些虚拟按键都存在易被误触碰的风险,因此,通过显示所述目标控件可使用户对显示在屏幕边缘区域的虚拟按键的显示状态都能够进行灵活。In this implementation manner, the target virtual button may be not only a virtual button displayed on the screen of the mobile terminal for replacing the cancelled physical button (such as a home button, a return button, etc.), but may also include other The virtual button displayed in the edge area of the screen, for example, the play/pause button at the bottom of the screen on the video playback interface. These virtual keys all have the risk of being easily touched by mistake. Therefore, by displaying the target control, the user can flexibly display the display state of the virtual keys displayed in the edge area of the screen.
具体地,所述屏幕边缘区域可以是所述移动终端屏幕上距屏幕边界的距离在预设距离范围内的区域。例如:所述屏幕边缘区域可以如图4中的区域G所示,区域G中任意一点距屏幕边界的距离均不超过L。Specifically, the screen edge area may be an area on the screen of the mobile terminal that is within a preset distance from a screen boundary. For example, the edge area of the screen may be as shown by the area G in FIG. 4, and the distance from any point in the area G to the screen boundary does not exceed L.
当然,该实施方式中,同样可以应用到图1所示的实施例中,且能达到相同有益效果。Of course, in this embodiment, the same can be applied to the embodiment shown in FIG. 1 and the same advantageous effects can be achieved.
步骤503、接收针对所述目标控件的第一触控操作。Step 503: Receive a first touch operation for the target control.
该步骤的具体实施方式可以参见图1所示的方法实施例中步骤102的实施方式,且能达到相同的有益效果,为避免重复,这里不再赘述。For the specific implementation of the step, refer to the implementation manner of step 102 in the method embodiment shown in FIG. 1 , and the same beneficial effects can be achieved. To avoid repetition, details are not described herein again.
步骤504、响应所述第一触控操作,隐藏所述目标虚拟按键。Step 504: Hide the target virtual button in response to the first touch operation.
该步骤中,在接收到针对所述目标控件的第一触控操作后,可以响应所述第一触控操作,隐藏所述目标虚拟按键隐藏,以防止用户误触碰,即所述移动终端可以在接收到针对所述目标控件的第一触控操作的情况下,隐藏所述目标虚拟按键,而在未接收到针对所述目标控件的第一触控操作的情况下,则可以继续保持所述目标虚拟按键处于显示状态。这样,在横屏显示状态下,由于所述目标虚拟按键处于默认显示状态,从而在用户触控所述目标控件以期望隐藏所述目标虚拟按键时,可以响应用户的触控操作,以控制所述目标虚拟按键处于隐藏状态。In this step, after receiving the first touch operation for the target control, the target virtual key may be hidden in response to the first touch operation to prevent the user from accidentally touching, that is, the mobile terminal The target virtual button may be hidden if a first touch operation for the target control is received, and may remain if the first touch operation for the target control is not received The target virtual button is in a display state. In this way, in the horizontal display state, since the target virtual button is in the default display state, when the user touches the target control to hide the target virtual button, the user can respond to the touch operation of the user to control the The target virtual button is hidden.
可选的,在隐藏所述目标虚拟按键之后,所述方法还可以包括:Optionally, after the target virtual button is hidden, the method may further include:
若检测到针对所述目标控件的拖拽操作,则根据所述拖拽操作移动所述目标控件。If a drag operation for the target control is detected, the target control is moved according to the drag operation.
在隐藏所述目标虚拟按键之后,用户还可以将所述目标控件拖拽至所述屏幕上的任意位置,具体地,可以是若检测到针对所述目标控件的拖拽操作,则根据所述拖拽操作移动所述目标控件,例如:如图2b所示,可以将所述目标控件201拖拽至屏幕的左上角位置203。这样,当所述目标控件的显示位置妨碍用户操作时,用户可以将所述目标控件拖动到其他位置,以避免用户误触碰所述目标控件而再显示所述目标虚拟按键。After the target virtual button is hidden, the user may also drag the target control to any position on the screen, specifically, if a drag operation for the target control is detected, according to the The drag operation moves the target control, for example, as shown in FIG. 2b, the target control 201 can be dragged to the upper left corner position 203 of the screen. In this way, when the display position of the target control interferes with the user operation, the user can drag the target control to another location to prevent the user from accidentally touching the target control and then displaying the target virtual button.
这样,该实施方式中,在隐藏所述目标虚拟按键后,用户可以对所述目标控件进行拖拽,以将其移动到屏幕上的其他位置而避免影响用户操作,从而可获得较佳的用户体验。In this way, in the embodiment, after the target virtual button is hidden, the user can drag and drop the target control to move it to other positions on the screen to avoid affecting the user operation, so that a better user can be obtained. Experience.
当然,该实施方式中,同样可以应用到图1所示的实施例中,且能达到相同有益效果。Of course, in this embodiment, the same can be applied to the embodiment shown in FIG. 1 and the same advantageous effects can be achieved.
本实施例中,在图1所示的实施例的基础上,对所述响应所述第一触控操作,显示或隐藏目标虚拟按键的步骤进行了细化,从而使得响应所述第一触控操作的方式更加清楚具体。另外,本实施例在图1所示的实施例的基础上还增加了多种可选的实施方式,这些可选的实施方式可以相互结合实现,也可以单独实现,且都能达到显示方式灵活,保证用户正常使用所述目标虚拟按键的需求,还能防止用户误触碰所述目标虚拟按键的技术效果。In this embodiment, on the basis of the embodiment shown in FIG. 1, the step of displaying or hiding the target virtual button in response to the first touch operation is refined, so that the first touch is responded to The way to control operations is more specific and specific. In addition, the embodiment adds a plurality of optional implementation manners to the embodiment shown in FIG. 1. The optional implementation manners can be implemented in combination with each other, or can be implemented separately, and can achieve flexible display modes. To ensure the user's normal use of the target virtual button, and to prevent the user from accidentally touching the technical effect of the target virtual button.
参见图6,图6是本公开实施例提供的一种移动终端的结构示意图,如图6所示,移动终端600包括:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 6, the mobile terminal 600 includes:
第一显示模块601,用于若所述移动终端600从竖屏显示状态切换至横屏显示状态,则显示目标控件;The first display module 601 is configured to display the target control if the mobile terminal 600 switches from the vertical display state to the horizontal display state;
接收模块602,用于接收针对所述目标控件的第一触控操作;The receiving module 602 is configured to receive a first touch operation for the target control;
响应模块603,用于响应所述第一触控操作,显示或隐藏所述目标虚拟按键。The response module 603 is configured to display or hide the target virtual button in response to the first touch operation.
可选的,所述目标虚拟按键为显示在屏幕边缘区域的虚拟按键。Optionally, the target virtual button is a virtual button displayed in an edge region of the screen.
可选的,如图7所示,所述移动终端600还包括:Optionally, as shown in FIG. 7, the mobile terminal 600 further includes:
第二显示模块604,用于显示目标虚拟按键;a second display module 604, configured to display a target virtual button;
隐藏模块605,用于若所述移动终端600从竖屏显示状态切换至横屏显示状态,则隐藏所述目标虚拟按键;a hiding module 605, configured to hide the target virtual button if the mobile terminal 600 switches from a portrait display state to a landscape display state;
所述响应模块603,用于响应所述第一触控操作,显示所述目标虚拟按键。The response module 603 is configured to display the target virtual button in response to the first touch operation.
可选的,如图8所示,所述移动终端600还包括:Optionally, as shown in FIG. 8, the mobile terminal 600 further includes:
第三显示模块606,用于显示目标虚拟按键;a third display module 606, configured to display a target virtual button;
所述响应模块603用于响应所述第一触控操作,隐藏所述目标虚拟按键。The response module 603 is configured to hide the target virtual button in response to the first touch operation.
可选的,如图9a和图9b所示,所述隐藏模块605包括:Optionally, as shown in FIG. 9a and FIG. 9b, the hiding module 605 includes:
第一隐藏单元6051,用于在所述移动终端600横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键;或者a first hiding unit 6051, configured to hide the target virtual button if the interface type displayed by the mobile terminal 600 in the horizontal screen is a preset interface type; or
第二隐藏单元6052,用于在所述移动终端600处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键。The second hiding unit 6052 is configured to hide the target virtual button when the application running when the mobile terminal 600 is in the horizontal screen display state is a preset application.
可选的,如图10所示,所述响应模块603包括:Optionally, as shown in FIG. 10, the response module 603 includes:
确定单元6031,用于响应所述第一触控操作,根据所述目标控件的显示位置,确定所述目标虚拟按键的目标显示位置,其中,所述目标显示位置与所述目标控件的显示位置相关联;a determining unit 6031, configured to determine, according to the first touch operation, a target display position of the target virtual button according to a display position of the target control, wherein the target display position and a display position of the target control Associated;
显示单元6032,用于将所述目标虚拟按键显示在所述目标显示位置。The display unit 6032 is configured to display the target virtual button at the target display position.
移动终端600能够实现图1、图3和图5的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。本公开实施例的移动终端600可以在从竖屏显示状态切换至横屏显示状态时,显示目标控件,并可以在接收到针对所述目标控件的第一触控操作的情况下,响应所述第一触控操作,显示或隐藏目标虚拟按键。这样,在所述移动终端600处于横屏显示状态下,用户可以通过触控所述目标控件来控制界面上的目标虚拟按键的显示状态,显示方式灵活,能保证用户正常使用所述目标虚拟按键的需求,还能达到防止用户误触碰所述目标虚拟按键的目的。The mobile terminal 600 can implement various processes implemented by the mobile terminal in the method embodiments of FIG. 1 , FIG. 3 and FIG. 5 . To avoid repetition, details are not described herein again. The mobile terminal 600 of the embodiment of the present disclosure may display a target control when switching from a portrait display state to a landscape display state, and may respond to the first touch operation for the target control. The first touch operation displays or hides the target virtual button. In this way, when the mobile terminal 600 is in the horizontal display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button. The demand can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
图11为实现本公开各个实施例的一种移动终端的硬件结构示意图,该移动终端1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、处理器1110、以及电源1111等部件。本领域技术人员可以理解,图11中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。11 is a schematic diagram of a hardware structure of a mobile terminal that implements various embodiments of the present disclosure. The mobile terminal 1100 includes, but is not limited to, a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, and a display unit. 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and a power source 1111. It will be understood by those skilled in the art that the mobile terminal structure shown in FIG. 11 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than those illustrated, or combine some components, or different components. Arrangement. In the embodiments of the present disclosure, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle terminal, a wearable device, a pedometer, and the like.
其中,处理器1110,用于若所述移动终端1100从竖屏显示状态切换至横屏显示状态,则显示目标控件;The processor 1110 is configured to display a target control if the mobile terminal 1100 switches from a vertical display state to a horizontal display state;
接收针对所述目标控件的第一触控操作;Receiving a first touch operation for the target control;
响应所述第一触控操作,显示或隐藏所述目标虚拟按键。The target virtual button is displayed or hidden in response to the first touch operation.
可选的,所述目标虚拟按键为显示在屏幕边缘区域的虚拟按键。Optionally, the target virtual button is a virtual button displayed in an edge region of the screen.
可选的,处理器1110还用于:显示目标虚拟按键;Optionally, the processor 1110 is further configured to: display a target virtual button;
若所述移动终端1100从竖屏显示状态切换至横屏显示状态,则隐藏所述目标虚拟按键;If the mobile terminal 1100 switches from a portrait display state to a landscape display state, hiding the target virtual button;
响应所述第一触控操作,显示所述目标虚拟按键。The target virtual button is displayed in response to the first touch operation.
可选的,处理器1110还用于:显示目标虚拟按键;Optionally, the processor 1110 is further configured to: display a target virtual button;
响应所述第一触控操作,隐藏所述目标虚拟按键。The target virtual button is hidden in response to the first touch operation.
可选的,处理器1110还用于:在所述移动终端1100横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键;或者Optionally, the processor 1110 is further configured to hide the target virtual button if the interface type displayed by the mobile terminal 1100 is a preset interface type; or
在所述移动终端1100处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键。In the case where the application that is run when the mobile terminal 1100 is in the landscape display state is a preset application, the target virtual button is hidden.
可选的,处理器1110还用于:响应所述第一触控操作,根据所述目标控件的显示位置,确定所述目标虚拟按键的目标显示位置,其中,所述目标显示位置与所述目标控件的显示位置相关联;Optionally, the processor 1110 is further configured to: in response to the first touch operation, determine a target display position of the target virtual button according to a display position of the target control, where the target display position is The display position of the target control is associated;
将所述目标虚拟按键显示在所述目标显示位置。Displaying the target virtual button at the target display position.
移动终端1100能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。本公开实施例的移动终端1100可以在从竖屏显示状态切换至横屏显示状态时,显示目标控件,并可以在接收到针对所述目标控件的第一触控操作的情况下,响应所述第一触控操作,显示或隐藏目标虚拟按键。这样,在所述移动终端处于横屏显示状态下,用户可以通过触控所述目标控件来控制界面上的目标虚拟按键的显示状态,显示方式灵活,能保证用户正常使用所述目标虚拟按键的需求,还能达到防止用户误触碰所述目标虚拟按键的目的。The mobile terminal 1100 can implement various processes implemented by the mobile terminal in the foregoing embodiment. To avoid repetition, details are not described herein again. The mobile terminal 1100 of the embodiment of the present disclosure may display a target control when switching from a portrait display state to a landscape display state, and may respond to the first touch operation for the target control. The first touch operation displays or hides the target virtual button. In this way, when the mobile terminal is in the horizontal screen display state, the user can control the display state of the target virtual button on the interface by touching the target control, and the display mode is flexible, and the user can normally use the target virtual button. The requirement can also achieve the purpose of preventing the user from accidentally touching the target virtual button.
应理解的是,本公开实施例中,射频单元1101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1110处理;另外,将上行的数据发送给基站。通常,射频单元1101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 1101 can be used for receiving and transmitting signals during the transmission and reception of information or during a call, and specifically, after receiving downlink data from the base station, processing the processor 1110; The uplink data is sent to the base station. In general, radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 1101 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块1102为用户提供了无线的宽带互联网访问,如帮 助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the network module 1102, such as helping the user to send and receive emails, browse web pages, and access streaming media.
音频输出单元1103可以将射频单元1101或网络模块1102接收的或者在存储器1109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1103还可以提供与移动终端1100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1103包括扬声器、蜂鸣器以及受话器等。The audio output unit 1103 can convert the audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as a sound. Moreover, the audio output unit 1103 can also provide an audio output (eg, a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 1100. The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
输入单元1104用于接收音频或视频信号。输入单元1104可以包括图形处理器(Graphics Processing Unit,简称GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1106上。经图形处理器11041处理后的图像帧可以存储在存储器1109(或其它存储介质)中或者经由射频单元1101或网络模块1102进行发送。麦克风11042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1101发送到移动通信基站的格式输出。The input unit 1104 is for receiving an audio or video signal. The input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042. The graphics processor 11041 is for a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. Image data is processed. The processed image frame can be displayed on the display unit 1106. The image frames processed by the graphics processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio unit 1101 or the network module 1102. The microphone 11042 can receive sound and can process such sound as audio data. The processed audio data can be converted to a format output that can be transmitted to the mobile communication base station via the radio unit 1101 in the case of a telephone call mode.
移动终端1100还包括至少一种传感器1105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板11061的亮度,接近传感器可在移动终端1100移动到耳边时,关闭显示面板11061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 1100 also includes at least one type of sensor 1105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 11061 when the mobile terminal 1100 moves to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, related games). , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; sensor 1105 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors and the like are not described here.
显示单元1106用于显示由用户输入的信息或提供给用户的信息。显示单元1106可包括显示面板11061,可以采用液晶显示器(Liquid Crystal Display,简称LCD)、有机发光二极管(Organic Light-Emitting Diode,简称OLED)等形式来配置显示面板11061。The display unit 1106 is for displaying information input by the user or information provided to the user. The display unit 1106 can include a display panel 11061. The display panel 11061 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元1107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1107包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板11071上或在触控面板11071附近的操作)。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1110,接收处理器1110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板11071。除了触控面板11071,用户输入单元1107还可以包括其他输入设备11072。具体地,其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1107 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 11071 or near the touch panel 11071. operating). The touch panel 11071 may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1110 receives the commands from the processor 1110 and executes them. In addition, the touch panel 11071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 11071, the user input unit 1107 may also include other input devices 11072. Specifically, other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which are not described herein.
进一步的,触控面板11071可覆盖在显示面板11061上,当触控面板11071检测到在其上或附近的触摸操作后,传送给处理器1110以确定触摸事件的类型,随后处理器1110根据触摸事件的类型在显示面板11061上提供相应的视觉输出。虽然在图11中,触控面板11071与显示面板11061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板11071与显示面板11061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 11071 can be overlaid on the display panel 11061. After the touch panel 11071 detects a touch operation thereon or nearby, the touch panel 11071 transmits to the processor 1110 to determine the type of the touch event, and then the processor 1110 according to the touch. The type of event provides a corresponding visual output on display panel 11061. Although in FIG. 11 , the touch panel 11071 and the display panel 11061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 11071 and the display panel 11061 may be integrated. The input and output functions of the mobile terminal are implemented, and are not limited herein.
接口单元1108为外部装置与移动终端1100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端1100内的一个或多个元件或者可以用于在移动终端1100和外部装置之间传输数据。The interface unit 1108 is an interface in which an external device is connected to the mobile terminal 1100. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more. The interface unit 1108 can be configured to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more components within the mobile terminal 1100 or can be used at the mobile terminal 1100 and externally Data is transferred between devices.
存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个 功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。 Memory 1109 can be used to store software programs as well as various data. The memory 1109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 1109 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器1110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器1109内的软件程序和/或模块,以及调用存储在存储器1109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器1110可包括一个或多个处理单元;可选的,处理器1110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。The processor 1110 is a control center of the mobile terminal that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1109, and recalling data stored in the memory 1109. The mobile terminal performs various functions and processing data to perform overall monitoring on the mobile terminal. The processor 1110 may include one or more processing units; optionally, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, etc., and a modulation solution The processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 1110.
移动终端1100还可以包括给各个部件供电的电源1111(比如电池),可选的,电源1111可以通过电源管理系统与处理器1110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 1100 may further include a power source 1111 (such as a battery) for supplying power to various components. Alternatively, the power source 1111 may be logically connected to the processor 1110 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,移动终端1100包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 1100 includes some functional modules not shown, which are not described herein again.
可选的,本公开实施例还提供一种移动终端,包括处理器1110,存储器1109,存储在存储器1109上并可在所述处理器1110上运行的计算机程序,该计算机程序被处理器1110执行时实现上述虚拟按键控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a mobile terminal, including a processor 1110, a memory 1109, a computer program stored on the memory 1109 and executable on the processor 1110, where the computer program is executed by the processor 1110. The various processes of the foregoing embodiment of the virtual button control method are implemented, and the same technical effects can be achieved. To avoid repetition, details are not described herein again.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述虚拟按键控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present disclosure further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements various processes of the virtual button control method embodiment, and can achieve the same Technical effects, to avoid repetition, will not be repeated here. The computer readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还 包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present disclosure, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure have been described above with reference to the drawings, but the present disclosure is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative and not restrictive, and those skilled in the art In the light of the present disclosure, many forms may be made without departing from the scope of the disclosure and the scope of the appended claims.
Claims (14)
- 一种虚拟按键控制方法,应用于移动终端,所述方法包括:A virtual button control method is applied to a mobile terminal, and the method includes:若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件;Displaying the target control if the mobile terminal switches from the portrait display state to the landscape display state;接收针对所述目标控件的第一触控操作;Receiving a first touch operation for the target control;响应所述第一触控操作,显示或隐藏目标虚拟按键。In response to the first touch operation, the target virtual button is displayed or hidden.
- 根据权利要求1所述的方法,其中,所述目标虚拟按键为显示在屏幕边缘区域的虚拟按键。The method of claim 1, wherein the target virtual key is a virtual key displayed in an edge region of the screen.
- 根据权利要求1或2所述的方法,其中,所述若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件之前,所述方法还包括:The method according to claim 1 or 2, wherein, if the mobile terminal switches from a portrait display state to a landscape display state, the method further includes:显示目标虚拟按键;Display the target virtual button;所述接收针对所述目标控件的第一触控操作之前,所述显示目标虚拟按键之后,所述方法还包括:The method further includes: after the displaying the target virtual button, before the receiving the first touch operation for the target control, the method further includes:若所述移动终端从竖屏显示状态切换至横屏显示状态,则隐藏所述目标虚拟按键;If the mobile terminal switches from a portrait display state to a landscape display state, hiding the target virtual button;所述响应所述第一触控操作,显示或隐藏目标虚拟按键,包括:The displaying or hiding the target virtual button in response to the first touch operation comprises:响应所述第一触控操作,显示所述目标虚拟按键。The target virtual button is displayed in response to the first touch operation.
- 根据权利要求1或2所述的方法,其中,所述接收针对所述目标控件的第一触控操作之前,所述方法还包括:The method according to claim 1 or 2, wherein before the receiving the first touch operation for the target control, the method further comprises:显示目标虚拟按键;Display the target virtual button;所述响应所述第一触控操作,显示或隐藏目标虚拟按键,包括:The displaying or hiding the target virtual button in response to the first touch operation comprises:响应所述第一触控操作,隐藏所述目标虚拟按键。The target virtual button is hidden in response to the first touch operation.
- 根据权利要求3所述的方法,其中,所述隐藏所述目标虚拟按键,包括:The method of claim 3, wherein the hiding the target virtual button comprises:在所述移动终端横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键;或者In a case where the interface type displayed on the horizontal screen of the mobile terminal is a preset interface type, the target virtual button is hidden; or在所述移动终端处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键。The target virtual button is hidden when the application running when the mobile terminal is in the horizontal display state is a preset application.
- 根据权利要求3所述的方法,其中,所述响应所述第一触控操作,显 示所述目标虚拟按键,包括:The method of claim 3, wherein the displaying the target virtual button in response to the first touch operation comprises:响应所述第一触控操作,根据所述目标控件的显示位置,确定所述目标虚拟按键的目标显示位置,其中,所述目标显示位置与所述目标控件的显示位置相关联;Determining, according to the first touch operation, a target display position of the target virtual button according to a display position of the target control, wherein the target display position is associated with a display position of the target control;将所述目标虚拟按键显示在所述目标显示位置。Displaying the target virtual button at the target display position.
- 一种移动终端,包括:A mobile terminal includes:第一显示模块,用于若所述移动终端从竖屏显示状态切换至横屏显示状态,则显示目标控件;a first display module, configured to display a target control if the mobile terminal switches from a vertical screen display state to a horizontal screen display state;接收模块,用于接收针对所述目标控件的第一触控操作;a receiving module, configured to receive a first touch operation for the target control;响应模块,用于响应所述第一触控操作,显示或隐藏目标虚拟按键。The response module is configured to display or hide the target virtual button in response to the first touch operation.
- 根据权利要求7所述的移动终端,其中,所述目标虚拟按键为显示在屏幕边缘区域的虚拟按键。The mobile terminal of claim 7, wherein the target virtual key is a virtual key displayed in an edge region of the screen.
- 根据权利要求7或8所述的移动终端,其中,所述移动终端还包括:The mobile terminal according to claim 7 or 8, wherein the mobile terminal further comprises:第二显示模块,用于显示目标虚拟按键;a second display module, configured to display a target virtual button;隐藏模块,用于若所述移动终端从竖屏显示状态切换至横屏显示状态,则隐藏所述目标虚拟按键;a hiding module, configured to hide the target virtual button if the mobile terminal switches from a portrait display state to a landscape display state;所述响应模块用于响应所述第一触控操作,显示所述目标虚拟按键。The response module is configured to display the target virtual button in response to the first touch operation.
- 根据权利要求7或8所述的移动终端,其中,所述移动终端还包括:The mobile terminal according to claim 7 or 8, wherein the mobile terminal further comprises:第三显示模块,用于显示目标虚拟按键;a third display module, configured to display a target virtual button;所述响应模块用于响应所述第一触控操作,隐藏所述目标虚拟按键。The response module is configured to hide the target virtual button in response to the first touch operation.
- 根据权利要求9所述的移动终端,其中,所述隐藏模块包括:The mobile terminal of claim 9, wherein the hiding module comprises:第一隐藏单元,用于在所述移动终端横屏显示的界面类型为预设界面类型的情况下,隐藏所述目标虚拟按键;或者a first hiding unit, configured to hide the target virtual button if the interface type displayed by the mobile terminal in the horizontal screen is a preset interface type; or第二隐藏单元,用于在所述移动终端处于横屏显示状态时运行的应用程序为预设应用程序的情况下,隐藏所述目标虚拟按键。And a second hiding unit, configured to hide the target virtual button if the application running when the mobile terminal is in the horizontal screen display state is a preset application.
- 根据权利要求9所述的移动终端,其中,所述响应模块包括:The mobile terminal of claim 9, wherein the response module comprises:确定单元,用于响应所述第一触控操作,根据所述目标控件的显示位置,确定所述目标虚拟按键的目标显示位置,其中,所述目标显示位置与所述目标控件的显示位置相关联;a determining unit, configured to determine, according to the display position of the target control, a target display position of the target virtual button, wherein the target display position is related to a display position of the target control Union显示单元,用于将所述目标虚拟按键显示在所述目标显示位置。And a display unit, configured to display the target virtual button at the target display position.
- 一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的虚拟按键控制方法中的步骤。A mobile terminal comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, the computer program being executed by the processor to implement any of claims 1 to 6 A step in a virtual key control method as described.
- 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的虚拟按键控制方法中的步骤。A computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the virtual key control method according to any one of claims 1 to 6. The steps in .
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810333778.2A CN108595089A (en) | 2018-04-13 | 2018-04-13 | A kind of virtual key control method and mobile terminal |
CN201810333778.2 | 2018-04-13 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019196864A1 true WO2019196864A1 (en) | 2019-10-17 |
Family
ID=63622316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/082046 WO2019196864A1 (en) | 2018-04-13 | 2019-04-10 | Control method for virtual button and mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108595089A (en) |
WO (1) | WO2019196864A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595089A (en) * | 2018-04-13 | 2018-09-28 | 维沃移动通信有限公司 | A kind of virtual key control method and mobile terminal |
CN109782944A (en) | 2018-12-11 | 2019-05-21 | 华为技术有限公司 | A kind of response method and electronic equipment of touch screen |
CN111913750B (en) * | 2019-05-10 | 2022-04-22 | 华为技术有限公司 | Application program management method, device and equipment |
CN110087001B (en) * | 2019-05-30 | 2021-07-13 | 维沃移动通信有限公司 | Shooting processing method and device and mobile terminal |
CN110354497A (en) * | 2019-06-13 | 2019-10-22 | 努比亚技术有限公司 | Virtual key initial position control method, terminal and computer readable storage medium |
CN114816209A (en) * | 2019-06-25 | 2022-07-29 | 华为技术有限公司 | Full screen display method and device of mobile terminal |
CN111309416B (en) * | 2020-01-19 | 2022-06-14 | 北京字节跳动网络技术有限公司 | Information display method, device and equipment of application interface and readable medium |
CN111966254B (en) * | 2020-08-06 | 2022-06-10 | 惠州Tcl移动通信有限公司 | Image shooting method and device, storage medium and terminal |
CN112109692A (en) * | 2020-08-28 | 2020-12-22 | 宝能(广州)汽车研究院有限公司 | Display control method and control device for virtual electronic parking switch of vehicle |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8296686B1 (en) * | 2008-10-14 | 2012-10-23 | Handhold Adaptive, LLC | Portable prompting aid for the developmentally disabled |
CN106598249A (en) * | 2016-12-16 | 2017-04-26 | 广东欧珀移动通信有限公司 | Wrong touch prevention method and device for touch key, and mobile terminal |
CN106708407A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method and device for preventing mistaken triggering of touch key and mobile terminal |
CN107390977A (en) * | 2017-07-27 | 2017-11-24 | 广东欧珀移动通信有限公司 | Button operation method, apparatus and storage medium |
CN107783719A (en) * | 2017-11-24 | 2018-03-09 | 维沃移动通信有限公司 | One kind applies recommendation method, mobile terminal and computer-readable recording medium |
CN108595089A (en) * | 2018-04-13 | 2018-09-28 | 维沃移动通信有限公司 | A kind of virtual key control method and mobile terminal |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9766719B2 (en) * | 2012-06-28 | 2017-09-19 | Meizu Technology Co., Ltd. | Display control method for generating virtual keys to supplement physical keys |
CN103793143A (en) * | 2014-02-13 | 2014-05-14 | 宇龙计算机通信科技(深圳)有限公司 | Display method and device for user interface keys |
CN104156171B (en) * | 2014-08-29 | 2017-05-03 | 广东欧珀移动通信有限公司 | Method and device for preventing touch key misoperations in landscape screen state of mobile terminal |
CN104363505B (en) * | 2014-11-17 | 2017-05-31 | 天脉聚源(北京)传媒科技有限公司 | A kind of method and device for showing broadcast interface |
CN106406848A (en) * | 2016-03-28 | 2017-02-15 | 乐视控股(北京)有限公司 | Terminal horizontal/vertical screen switching method and device |
CN105930156A (en) * | 2016-04-19 | 2016-09-07 | 乐视控股(北京)有限公司 | Terminal control method and terminal |
CN107450823A (en) * | 2016-06-01 | 2017-12-08 | 宇龙计算机通信科技(深圳)有限公司 | The display methods and device of a kind of virtual key |
CN107678666A (en) * | 2017-09-14 | 2018-02-09 | 维沃移动通信有限公司 | A kind of virtual key display methods, mobile terminal and computer-readable recording medium |
-
2018
- 2018-04-13 CN CN201810333778.2A patent/CN108595089A/en active Pending
-
2019
- 2019-04-10 WO PCT/CN2019/082046 patent/WO2019196864A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8296686B1 (en) * | 2008-10-14 | 2012-10-23 | Handhold Adaptive, LLC | Portable prompting aid for the developmentally disabled |
CN106598249A (en) * | 2016-12-16 | 2017-04-26 | 广东欧珀移动通信有限公司 | Wrong touch prevention method and device for touch key, and mobile terminal |
CN106708407A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method and device for preventing mistaken triggering of touch key and mobile terminal |
CN107390977A (en) * | 2017-07-27 | 2017-11-24 | 广东欧珀移动通信有限公司 | Button operation method, apparatus and storage medium |
CN107783719A (en) * | 2017-11-24 | 2018-03-09 | 维沃移动通信有限公司 | One kind applies recommendation method, mobile terminal and computer-readable recording medium |
CN108595089A (en) * | 2018-04-13 | 2018-09-28 | 维沃移动通信有限公司 | A kind of virtual key control method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108595089A (en) | 2018-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019154181A1 (en) | Display control method and mobile terminal | |
WO2019196864A1 (en) | Control method for virtual button and mobile terminal | |
WO2019196707A1 (en) | Mobile terminal control method and mobile terminal | |
EP4047940A1 (en) | Screencast control method and electronic device | |
WO2019141174A1 (en) | Unread message processing method and mobile terminal | |
US12095858B2 (en) | Application sharing method, electronic device and computer readable storage medium | |
US11604567B2 (en) | Information processing method and terminal | |
US20200280628A1 (en) | Method for prompting notification message and mobile terminal | |
CN108712577B (en) | Call mode switching method and terminal equipment | |
WO2019120087A1 (en) | Processing method for reducing power consumption and mobile terminal | |
WO2021017776A1 (en) | Information processing method and terminal | |
WO2019120192A1 (en) | Method for editing text, and mobile device | |
WO2019196691A1 (en) | Keyboard interface display method and mobile terminal | |
WO2020238497A1 (en) | Icon moving method and terminal device | |
WO2019062364A1 (en) | Display method and mobile terminal | |
WO2019085774A1 (en) | Application control method and mobile terminal | |
WO2021068885A1 (en) | Control method and electronic device | |
CN107613095B (en) | Incoming call processing method and mobile terminal | |
WO2020001604A1 (en) | Display method and terminal device | |
WO2019169991A1 (en) | Display method and mobile terminal | |
WO2019114522A1 (en) | Screen control method, screen control apparatus, and mobile terminal | |
WO2019228296A1 (en) | Display processing method and terminal device | |
WO2020135042A1 (en) | Virtual key display method and terminal | |
WO2020078234A1 (en) | Display control method and terminal | |
WO2019076371A1 (en) | Resource data display method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19785706 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19785706 Country of ref document: EP Kind code of ref document: A1 |