[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020135042A1 - Virtual key display method and terminal - Google Patents

Virtual key display method and terminal Download PDF

Info

Publication number
WO2020135042A1
WO2020135042A1 PCT/CN2019/124521 CN2019124521W WO2020135042A1 WO 2020135042 A1 WO2020135042 A1 WO 2020135042A1 CN 2019124521 W CN2019124521 W CN 2019124521W WO 2020135042 A1 WO2020135042 A1 WO 2020135042A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual key
screen
terminal
distance
posture information
Prior art date
Application number
PCT/CN2019/124521
Other languages
French (fr)
Chinese (zh)
Inventor
陈俊辉
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020135042A1 publication Critical patent/WO2020135042A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present disclosure relates to the technical field of terminals, and in particular, to a virtual key display method and terminal.
  • the purpose of the present disclosure is to provide a virtual key display method and terminal to solve the problem that the virtual key display scheme in the related art is not convenient for satisfying different usage requirements of users.
  • some embodiments of the present disclosure provide a virtual key display method, including:
  • the distance between the first virtual key and the second virtual key is the first distance
  • the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
  • some embodiments of the present disclosure also provide a terminal, including:
  • the first obtaining module is used to obtain the current screen posture information of the terminal
  • a first display module configured to display a first virtual key and a second virtual key on the screen of the terminal according to the screen posture information
  • the distance between the first virtual key and the second virtual key is the first distance
  • the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
  • some embodiments of the present disclosure also provide a terminal, including a processor, a memory, and a program stored on the memory and executable on the processor, and the program is executed by the processor To realize the steps of the above virtual key display method.
  • some embodiments of the present disclosure also provide a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and the computer program is executed by a processor to implement the above virtual key display method step.
  • the screen posture information when it is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the first virtual key and The distance between the second virtual keys is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual keys according to the screen posture of the terminal, which is more intelligent, convenient for users to use, and very good Has solved the problem that the virtual key display scheme in the related art cannot meet the different usage requirements of users.
  • FIG. 1 is a schematic flowchart of a virtual key display method according to some embodiments of the present disclosure
  • FIG. 2 is a schematic diagram of a virtual key for off-screen display according to some embodiments of the present disclosure
  • FIG. 3 is a schematic structural diagram 1 of a terminal according to some embodiments of the present disclosure.
  • FIG. 4 is a second schematic structural diagram of a terminal according to some embodiments of the present disclosure.
  • This disclosure provides a virtual key display method for the problem that the virtual key display solution in related technologies cannot meet users' different use requirements, as shown in FIG. 1, including:
  • Step 11 Obtain the current screen posture information of the terminal.
  • the screen gesture information may specifically be instruction information indicating that the screen of the terminal is currently in a landscape state or a portrait state, but it is not limited thereto.
  • the display direction of the current display interface of the terminal can be detected by detecting the display direction of the current display interface of the terminal (some interfaces must be displayed horizontally by default, and some must be displayed vertically (the interface design is fixed and non-adjustable), and these default interfaces can be recognized), To identify the current screen posture of the terminal.
  • the display direction of the current screen can also be identified by detecting the direction of the gravity sensor, but it is not limited to this.
  • Step 12 Display the first virtual key and the second virtual key on the screen of the terminal according to the screen posture information; wherein, when the screen posture information is the first screen posture information, the first virtual key and The distance between the second virtual keys is the first distance; when the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is the second distance, The first distance is greater than the second distance.
  • the virtual keys can be displayed according to the horizontal and vertical screen states of the terminal screen.
  • the first screen posture information may correspond to the horizontal screen state of the terminal screen
  • the second screen posture information may correspond to the vertical screen state of the terminal screen
  • the first screen posture information may correspond to the vertical screen state of the terminal screen
  • the gesture information may correspond to the horizontal screen state of the terminal screen, but it is not limited to this.
  • the first virtual key and the second virtual key are separated by 3 cm; when switching to the horizontal screen display, the first virtual key and the second virtual key are separated by 5 cm.
  • the distance between the first virtual key and the second virtual key is shorter than in the horizontal screen state, which can facilitate the user's one-handed operation of the vertical screen.
  • the distance between the first virtual key and the second virtual key increases, so that the two virtual keys can be distributed on both sides of the screen, which is convenient for two-handed operation.
  • the virtual key display method obtains the current screen posture information of the terminal; according to the screen posture information, displays the first virtual key and the second virtual key on the screen of the terminal; wherein, When the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the The distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual key according to the screen posture of the terminal, which is more convenient for users to use , It solves the problem that the virtual key display scheme in the related technology cannot meet the different needs of users.
  • displaying the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information includes: if the first screen gesture information indicates that the terminal is currently in a landscape state, then Displaying the first virtual key on one side of the screen in the longitudinal direction (such as the left side of the screen), and displaying the second virtual key on the other side of the screen in the longitudinal direction (such as the right side of the screen); Or, if the second screen gesture information indicates that the terminal is currently in a portrait state, display the first virtual key and the second virtual key on the same side of the screen in the length direction (such as the top of the screen) side).
  • This display mode is more in line with the user's viewing habits (for example, when the user is in portrait mode, the user usually looks from the top to the bottom of the terminal screen), and can better meet the user's needs.
  • the corresponding function types of the first virtual key and the second virtual key are different. Different types of virtual buttons can be set to display in different preset positions on the screen.
  • the virtual keys and the power virtual keys are arranged together, so that the user may easily touch the power virtual keys accidentally, resulting in unnecessary operations and affecting user experience.
  • the acquiring the current screen posture information of the terminal includes: if it is detected that the terminal enters the target interface, acquiring the current screen posture information of the terminal.
  • the first virtual key may be a volume key, and there are two volume keys.
  • the second virtual button may be a power button, but it is not limited thereto.
  • it may further include: if it is detected that the terminal is in a screen-off state, displaying a preset virtual key on the screen according to a preset brightness value.
  • the power button and the virtual buttons for volume increase and decrease can be automatically illuminated in the case of the screen off, which is convenient for the user to turn off the screen. Under the circumstances, the operation to wake up the screen and increase or decrease the volume.
  • the displaying the preset virtual key on the screen according to the preset brightness value includes: displaying the preset virtual key on the screen with the preset brightness value according to the setting information of off-screen display.
  • the user can set the setting information for the screen-off display, so that the virtual buttons for the screen-off display can be set to better meet the needs of the user; for example: in some embodiments of the present disclosure, the virtual light emission after the screen off can be set Type or number of buttons.
  • the artificial intelligence AI button is not displayed; it is also possible to set all virtual buttons not to be displayed when the screen is turned off. You can operate the virtual button only after double-clicking the screen to brighten the screen, but not limited to this.
  • Some embodiments of the present disclosure also provide a terminal, as shown in FIG. 3, including:
  • the first obtaining module 31 is used to obtain the current screen posture information of the terminal;
  • the first display module 32 is configured to display the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information;
  • the distance between the first virtual key and the second virtual key is the first distance
  • the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
  • the terminal obtained by some embodiments of the present disclosure obtains the current screen pose information of the terminal; according to the screen pose information, displays the first virtual key and the second virtual key on the screen of the terminal; wherein, the screen When the posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the first virtual The distance between the key and the second virtual key is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual key according to the screen posture of the terminal, which is more intelligent and user-friendly. It solves the problem that the virtual key display scheme in the related technology cannot meet the different usage requirements of users.
  • the first display module includes: a first display sub-module for displaying the first virtual key on the screen if the first screen gesture information indicates that the terminal is currently in a landscape state On one side of the length direction of the screen, the second virtual key is displayed on the other side of the screen in the length direction; or if the second screen gesture information indicates that the terminal is currently in a portrait state, the A virtual key and the second virtual key are displayed on the same side in the length direction of the screen.
  • the corresponding function types of the first virtual key and the second virtual key are different.
  • the first acquisition module includes: a first acquisition submodule, configured to acquire the current screen posture information of the terminal if it is detected that the terminal enters the target interface.
  • the first virtual key is a volume key
  • the second virtual key is a power key
  • the terminal provided by some embodiments of the present disclosure can implement various processes implemented by the terminal in the method embodiments of FIG. 1 and FIG. 2, and to avoid repetition, details are not described herein again.
  • the terminal 40 includes but is not limited to: a radio frequency unit 41, a network module 42, an audio output unit 43, an input unit 44, a sensor 45, a display unit 46, The user input unit 47, interface unit 48, memory 49, processor 410, power supply 411 and other components.
  • a radio frequency unit 41 for converting radio frequency to digital signals
  • a network module 42 for converting audio signals to digital signals
  • an audio output unit 43 for generating signals
  • the terminal structure shown in FIG. 4 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than those illustrated, or combine certain components, or arrange different components.
  • terminals include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle terminals, wearable devices, and pedometers.
  • the processor 410 is used to obtain the current screen posture information of the terminal; according to the screen posture information, the first virtual key and the second virtual key are displayed on the screen of the terminal; wherein, the screen posture information is the first When there is screen gesture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen gesture information is the second screen gesture information, the first virtual key and the The distance between the second virtual keys is a second distance, and the first distance is greater than the second distance.
  • the screen posture information when it is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the first virtual key and The distance between the second virtual keys is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual keys according to the screen posture of the terminal, which is more intelligent, convenient for users to use, and very good Has solved the problem that the virtual key display scheme in the related art cannot meet the different usage requirements of users.
  • the processor 410 is specifically configured to display the first virtual key on one side of the length direction of the screen if the first screen gesture information indicates that the terminal is currently in a landscape state.
  • the second virtual key is displayed on the other side in the length direction of the screen; or if the second screen gesture information indicates that the terminal is currently in a portrait state, the first virtual key and the second The virtual keys are displayed on the same side in the longitudinal direction of the screen.
  • the corresponding function types of the first virtual key and the second virtual key are different.
  • the processor 410 is specifically configured to acquire the current screen gesture information of the terminal if it is detected that the terminal enters the target interface.
  • the processor 410 is specifically configured to: the first virtual key is a volume key, and the second virtual key is a power key.
  • the radio frequency unit 41 may be used to receive and send signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 410; To send the uplink data to the base station.
  • the radio frequency unit 41 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 frequency unit 41 can also communicate with the network and other devices through a wireless communication system.
  • the terminal provides users with wireless broadband Internet access through the network module 42, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 43 may convert the audio data received by the radio frequency unit 41 or the network module 42 or stored in the memory 49 into an audio signal and output as sound. Moreover, the audio output unit 43 may also provide audio output related to a specific function performed by the terminal 40 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 43 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 44 is used to receive audio or video signals.
  • the input unit 44 may include a graphics processor (Graphics, Processing, Unit, GPU) 441 and a microphone 442.
  • the graphics processor 441 may process images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed.
  • the processed image frame may be displayed on the display unit 46.
  • the image frame processed by the graphics processor 441 may be stored in the memory 49 (or other storage medium) or sent via the radio frequency unit 41 or the network module 42.
  • the microphone 442 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 41 in the case of a telephone call mode and output.
  • the terminal 40 also includes at least one sensor 45, such as a light sensor, a 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 461 according to the brightness of the ambient light, and the proximity sensor can close the display panel 461 and/or when the terminal 40 moves to the ear Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify the posture of the terminal (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 45 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared Sensors, etc., will not be repeated here.
  • the display unit 46 is used to display information input by the user or information provided to the user.
  • the display unit 46 may include a display panel 461, and the display panel 461 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • LCD Liquid Crystal
  • OLED Organic Light-Emitting Diode
  • the user input unit 47 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the terminal.
  • the user input unit 47 includes a touch panel 471 and other input devices 472.
  • the touch panel 471 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 471 operating).
  • the touch panel 471 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 410, the command sent by the processor 410 is received and executed.
  • the touch panel 471 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the user input unit 47 may also include other input devices 472.
  • other input devices 472 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the touch panel 471 may be overlaid on the display panel 461, and after the touch panel 471 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of touch event, and then the processor 410 according to the touch The type of event provides a corresponding visual output on the display panel 461.
  • the touch panel 471 and the display panel 461 are implemented as two independent components to realize the input and output functions of the terminal, in some embodiments, the touch panel 471 and the display panel 461 may be integrated to The input and output functions of the terminal are implemented, which is not limited here.
  • the interface unit 48 is an interface for connecting an external device to the terminal 40.
  • 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 with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 48 may be used to receive input from external devices (eg, data information, power, etc.) and transmit the received input to one or more elements within the terminal 40 or may be used between the terminal 40 and external devices Transfer data between.
  • the memory 49 can be used to store software programs and various data.
  • the memory 49 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data created by the use of mobile phones (such as audio data, phonebooks, etc.), etc.
  • the memory 49 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the processor 410 is the control center of the terminal, and uses various interfaces and lines to connect the various parts of the entire terminal, executes or executes the software programs and/or modules stored in the memory 49, and calls the data stored in the memory 49 to execute Various functions and processing data of the terminal, so as to monitor the terminal as a whole.
  • the processor 410 may include one or more processing units; optionally, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc.
  • the modulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
  • the terminal 40 may further include a power supply 411 (such as a battery) that supplies power to various components.
  • a power supply 411 (such as a battery) that supplies power to various components.
  • the power supply 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system And other functions.
  • the terminal 40 includes some function modules not shown, which will not be repeated here.
  • some embodiments of the present disclosure further provide a terminal, including a processor 410, a memory 49, a program stored on the memory 49 and executable on the processor 410, the program is used by the processor 410 During execution, the processes of the above embodiments of the virtual key display method are implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • Some embodiments of the present disclosure also provide a computer-readable storage medium that stores a computer program on the computer-readable storage medium.
  • the computer program is executed by a processor, the processes of the above-described virtual key display method embodiments are implemented and can be achieved The same technical effect will not be repeated here to avoid repetition.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk,
  • the CD-ROM includes several instructions to enable a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present disclosure essentially or part of the contribution to the existing technology or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the foregoing storage media include various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
  • the embodiments described in the embodiments of the present disclosure may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable Logic Device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, others for performing the functions described in this disclosure Electronic unit or its combination.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSP Device digital signal processing device
  • DPD digital signal processing device
  • PLD programmable Logic Device
  • Field Programmable Gate Array Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the technology described in the embodiments of the present disclosure may be implemented by modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • the software codes can be stored in memory and executed by the processor.
  • the memory may be implemented in the processor or external to the processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present disclosure provides a virtual key display method and a terminal, wherein, the virtual key display method comprises: acquiring the current screen posture information of the terminal; according to the screen gesture information, displaying the first virtual key and the second virtual key on the screen of the terminal; wherein, when the screen posture information is first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen gesture information is second screen gesture information, the distance between the first virtual key and the second virtual key is the second distance, the first distance is greater than the second distance.

Description

虚拟按键显示方法及终端Virtual key display method and terminal
相关申请的交叉引用Cross-reference of related applications
本申请主张在2018年12月27日在中国提交的中国专利申请号No.201811614708.0的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201811614708.0 filed in China on December 27, 2018, the entire contents of which are hereby incorporated by reference.
技术领域Technical field
本公开涉及终端技术领域,尤其涉及一种虚拟按键显示方法及终端。The present disclosure relates to the technical field of terminals, and in particular, to a virtual key display method and terminal.
背景技术Background technique
随着手机技术的发展,手机外观追求极致,逐渐出现全屏手机;返回键、Home键等实体按键也被虚拟按键取代。但是,虚拟按键显示方案并不足够智能,对于用户不同的需求并不能够很好的满足、不便于使用。With the development of mobile phone technology, the appearance of mobile phones is the ultimate, and full-screen mobile phones have gradually appeared; physical buttons such as the return button and the Home button have also been replaced by virtual buttons. However, the virtual key display solution is not smart enough, and it is not easy to meet the different needs of users and is not easy to use.
发明内容Summary of the invention
本公开的目的在于提供一种虚拟按键显示方法及终端,以解决相关技术中虚拟按键显示方案不便于满足用户不同使用需求的问题。The purpose of the present disclosure is to provide a virtual key display method and terminal to solve the problem that the virtual key display scheme in the related art is not convenient for satisfying different usage requirements of users.
为了解决上述技术问题,本公开是这样实现的:In order to solve the above technical problems, the present disclosure is implemented as follows:
第一方面,本公开的一些实施例提供了一种虚拟按键显示方法,包括:In a first aspect, some embodiments of the present disclosure provide a virtual key display method, including:
获取终端当前的屏幕姿态信息;Obtain the current screen pose information of the terminal;
根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;Displaying the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information;
其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;Wherein, when the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance;
所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。When the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
第二方面,本公开的一些实施例还提供了一种终端,包括:In a second aspect, some embodiments of the present disclosure also provide a terminal, including:
第一获取模块,用于获取终端当前的屏幕姿态信息;The first obtaining module is used to obtain the current screen posture information of the terminal;
第一显示模块,用于根据所述屏幕姿态信息,在所述终端的屏幕上显示 第一虚拟按键和第二虚拟按键;A first display module, configured to display a first virtual key and a second virtual key on the screen of the terminal according to the screen posture information;
其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;Wherein, when the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance;
所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。When the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
第三方面,本公开的一些实施例还提供了一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现上述的虚拟按键显示方法的步骤。In a third aspect, some embodiments of the present disclosure also provide a terminal, including a processor, a memory, and a program stored on the memory and executable on the processor, and the program is executed by the processor To realize the steps of the above virtual key display method.
第四方面,本公开的一些实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述的虚拟按键显示方法的步骤。According to a fourth aspect, some embodiments of the present disclosure also provide a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and the computer program is executed by a processor to implement the above virtual key display method step.
在本公开的一些实施例中,通过获取终端当前的屏幕姿态信息;根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离;能够实现自动根据终端的屏幕姿态调整虚拟按键的显示,更加智能、便于用户使用,很好的解决了相关技术中虚拟按键显示方案不能够满足用户不同使用需求的问题。In some embodiments of the present disclosure, by acquiring the current screen posture information of the terminal; according to the screen posture information, displaying the first virtual key and the second virtual key on the screen of the terminal; wherein, the screen posture information When it is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the first virtual key and The distance between the second virtual keys is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual keys according to the screen posture of the terminal, which is more intelligent, convenient for users to use, and very good Has solved the problem that the virtual key display scheme in the related art cannot meet the different usage requirements of users.
附图说明BRIEF DESCRIPTION
图1为本公开的一些实施例的虚拟按键显示方法流程示意图;FIG. 1 is a schematic flowchart of a virtual key display method according to some embodiments of the present disclosure;
图2为本公开的一些实施例的灭屏显示虚拟按键示意图;FIG. 2 is a schematic diagram of a virtual key for off-screen display according to some embodiments of the present disclosure;
图3为本公开的一些实施例的终端结构示意图一;以及3 is a schematic structural diagram 1 of a terminal according to some embodiments of the present disclosure; and
图4为本公开的一些实施例的终端结构示意图二。FIG. 4 is a second schematic structural diagram of a terminal according to some embodiments of the present disclosure.
具体实施方式detailed description
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是 全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present disclosure.
本公开针对相关的技术中虚拟按键显示方案不能够满足用户不同使用需求的问题,提供一种虚拟按键显示方法,如图1所示,包括:This disclosure provides a virtual key display method for the problem that the virtual key display solution in related technologies cannot meet users' different use requirements, as shown in FIG. 1, including:
步骤11:获取终端当前的屏幕姿态信息。Step 11: Obtain the current screen posture information of the terminal.
其中,屏幕姿态信息可具体为指示终端的屏幕当前处于横屏状态或者竖屏状态的指示信息,但并不以此为限。The screen gesture information may specifically be instruction information indicating that the screen of the terminal is currently in a landscape state or a portrait state, but it is not limited thereto.
具体可以通过检测终端当前显示界面的显示方向(有些界面默认必须是横屏显示,有些是默认必须竖屏显示(界面设计固定的,非可调的),这些默认的界面均可以识别出来),来识别终端当前的屏幕姿态。还可以通过检测重力传感器的方向对当前屏幕的显示方向进行识别,但并不以此为限。Specifically, it can be detected by detecting the display direction of the current display interface of the terminal (some interfaces must be displayed horizontally by default, and some must be displayed vertically (the interface design is fixed and non-adjustable), and these default interfaces can be recognized), To identify the current screen posture of the terminal. The display direction of the current screen can also be identified by detecting the direction of the gravity sensor, but it is not limited to this.
步骤12:根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。Step 12: Display the first virtual key and the second virtual key on the screen of the terminal according to the screen posture information; wherein, when the screen posture information is the first screen posture information, the first virtual key and The distance between the second virtual keys is the first distance; when the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is the second distance, The first distance is greater than the second distance.
具体可以根据终端的屏幕的横竖屏状态,进行虚拟按键的显示。第一屏幕姿态信息可对应于终端屏幕的横屏状态,第二屏幕姿态信息可对应于终端屏幕的竖屏状态,或者,第一屏幕姿态信息可对应于终端屏幕的竖屏状态,第二屏幕姿态信息可对应于终端屏幕的横屏状态,但并不以此为限。Specifically, the virtual keys can be displayed according to the horizontal and vertical screen states of the terminal screen. The first screen posture information may correspond to the horizontal screen state of the terminal screen, the second screen posture information may correspond to the vertical screen state of the terminal screen, or the first screen posture information may correspond to the vertical screen state of the terminal screen, the second screen The gesture information may correspond to the horizontal screen state of the terminal screen, but it is not limited to this.
例如,当屏幕竖屏显示时,第一虚拟按键和第二虚拟按键之间相距3cm;当切换为横屏显示时,第一虚拟按键和第二虚拟按键之间相距5cm。竖屏状态时,第一虚拟按键和第二虚拟按键之间的距离比横屏状态时的短,可以方便用户竖屏的单手操作。横屏操作时,第一虚拟按键和第二虚拟按键之间的距离增大,可以令两个虚拟按键分布在屏幕的两侧,方便双手操作。For example, when the screen is displayed vertically, the first virtual key and the second virtual key are separated by 3 cm; when switching to the horizontal screen display, the first virtual key and the second virtual key are separated by 5 cm. In the vertical screen state, the distance between the first virtual key and the second virtual key is shorter than in the horizontal screen state, which can facilitate the user's one-handed operation of the vertical screen. In horizontal screen operation, the distance between the first virtual key and the second virtual key increases, so that the two virtual keys can be distributed on both sides of the screen, which is convenient for two-handed operation.
本公开的一些实施例提供的所述虚拟按键显示方法通过获取终端当前的屏幕姿态信息;根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;所述屏幕姿态 信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离;能够实现自动根据终端的屏幕姿态调整虚拟按键的显示,更加便于用户使用,很好的解决了相关技术中虚拟按键显示方案不能够满足用户不同使用需求的问题。The virtual key display method provided by some embodiments of the present disclosure obtains the current screen posture information of the terminal; according to the screen posture information, displays the first virtual key and the second virtual key on the screen of the terminal; wherein, When the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the The distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual key according to the screen posture of the terminal, which is more convenient for users to use , It solves the problem that the virtual key display scheme in the related technology cannot meet the different needs of users.
其中,所述根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键,包括:若所述第一屏幕姿态信息指示所述终端当前处于横屏状态,则将所述第一虚拟按键显示于所述屏幕的长度方向的一侧(比如屏幕左侧),所述第二虚拟按键显示于所述屏幕的长度方向的另一侧(比如屏幕右侧);或者若所述第二屏幕姿态信息指示所述终端当前处于竖屏状态,则将所述第一虚拟按键和所述第二虚拟按键显示于所述屏幕的长度方向的同一侧(比如屏幕的顶部侧)。Wherein, displaying the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information includes: if the first screen gesture information indicates that the terminal is currently in a landscape state, then Displaying the first virtual key on one side of the screen in the longitudinal direction (such as the left side of the screen), and displaying the second virtual key on the other side of the screen in the longitudinal direction (such as the right side of the screen); Or, if the second screen gesture information indicates that the terminal is currently in a portrait state, display the first virtual key and the second virtual key on the same side of the screen in the length direction (such as the top of the screen) side).
这样的显示方式更符合用户的查看习惯(比如竖屏时用户通常是从终端屏幕的顶部向底部查看),能更好的满足用户需求。This display mode is more in line with the user's viewing habits (for example, when the user is in portrait mode, the user usually looks from the top to the bottom of the terminal screen), and can better meet the user's needs.
具体的,所述第一虚拟按键与所述第二虚拟按键的所对应的功能类型不同。可以设置不同类的虚拟按键显示在所述屏幕上的不同的预设位置。Specifically, the corresponding function types of the first virtual key and the second virtual key are different. Different types of virtual buttons can be set to display in different preset positions on the screen.
这样更加便于用户操作,不需要用户在大数量的虚拟按键中查找所需的按键,提高用户体验;而且在特定情境下能够避免用户误操作,比如在进行横屏游戏时,若用来操作的虚拟按键与电源虚拟键布置在一起,则用户容易不小心触碰到电源虚拟键,导致不必要的操作,影响用户使用感受。This is more convenient for the user to operate, and does not require the user to search for the required keys among a large number of virtual keys, which improves the user experience; and can prevent the user from misoperation under certain circumstances, such as when playing a horizontal screen game. The virtual keys and the power virtual keys are arranged together, so that the user may easily touch the power virtual keys accidentally, resulting in unnecessary operations and affecting user experience.
其中,所述获取终端当前的屏幕姿态信息,包括:若检测到所述终端进入目标界面,则获取终端当前的屏幕姿态信息。Wherein, the acquiring the current screen posture information of the terminal includes: if it is detected that the terminal enters the target interface, acquiring the current screen posture information of the terminal.
这样能够更加符合用户的实际应用需求,只有进入特定的界面(比如提前设置的目标界面),才会调整虚拟按键的位置,并非是所有的界面都会调整。In this way, it can be more in line with the actual application requirements of the user. Only when a specific interface (such as a target interface set in advance) is entered, the position of the virtual button can be adjusted, and not all interfaces will be adjusted.
具体的,所述第一虚拟按键可为音量键,音量键有两个。所述第二虚拟按键可为电源键,但并不以此为限。Specifically, the first virtual key may be a volume key, and there are two volume keys. The second virtual button may be a power button, but it is not limited thereto.
这样能够更加便于用户对音量键和电源键的操作,不是必须操作对应的实体键才能实现相应功能。In this way, it is easier for the user to operate the volume key and the power key, and it is not necessary to operate the corresponding physical key to realize the corresponding function.
进一步,本公开的一些实施例中,还可包括:若检测到所述终端处于灭屏状态,则根据预设亮度值在所述屏幕上显示预设的虚拟按键。Further, in some embodiments of the present disclosure, it may further include: if it is detected that the terminal is in a screen-off state, displaying a preset virtual key on the screen according to a preset brightness value.
这样方便用户在灭屏的情况下执行所需的操作,比如,如图2所示,可以在灭屏的情况下,电源键和音量加减的虚拟按键自动发光显示,方便用户在灭屏的情况下进行唤醒屏幕和加减音量的操作。This is convenient for the user to perform the required operation when the screen is off. For example, as shown in FIG. 2, the power button and the virtual buttons for volume increase and decrease can be automatically illuminated in the case of the screen off, which is convenient for the user to turn off the screen. Under the circumstances, the operation to wake up the screen and increase or decrease the volume.
具体的,所述根据预设亮度值在所述屏幕上显示预设的虚拟按键,包括:根据灭屏显示设置信息,在所述屏幕上以预设亮度值显示预设的虚拟按键。Specifically, the displaying the preset virtual key on the screen according to the preset brightness value includes: displaying the preset virtual key on the screen with the preset brightness value according to the setting information of off-screen display.
这样使得用户能够针对灭屏显示设置信息进行设置,从而实现针对灭屏显示的虚拟按键进行设置,以更好的满足用户需求;比如:本公开的一些实施例中可以设置灭屏后的发光虚拟按键种类或数量。例如灭屏时,不显示人工智能AI按键;也可以设置所有虚拟按键灭屏下都不显示,通过双击屏幕亮屏后,才可以操作虚拟按键,但并不以此为限。In this way, the user can set the setting information for the screen-off display, so that the virtual buttons for the screen-off display can be set to better meet the needs of the user; for example: in some embodiments of the present disclosure, the virtual light emission after the screen off can be set Type or number of buttons. For example, when the screen is turned off, the artificial intelligence AI button is not displayed; it is also possible to set all virtual buttons not to be displayed when the screen is turned off. You can operate the virtual button only after double-clicking the screen to brighten the screen, but not limited to this.
本公开的一些实施例还提供了一种终端,如图3所示,包括:Some embodiments of the present disclosure also provide a terminal, as shown in FIG. 3, including:
第一获取模块31,用于获取终端当前的屏幕姿态信息;The first obtaining module 31 is used to obtain the current screen posture information of the terminal;
第一显示模块32,用于根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;The first display module 32 is configured to display the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information;
其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;Wherein, when the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance;
所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。When the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
本公开的一些实施例提供的所述终端通过获取终端当前的屏幕姿态信息;根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离;能够实现自动根据终端的屏幕姿态调整虚拟按键的显示,更加智能、便于用户使用,很好的解决了相关技术中虚拟按键显示方案不能够满足用户不同使用需求的问题。The terminal provided by some embodiments of the present disclosure obtains the current screen pose information of the terminal; according to the screen pose information, displays the first virtual key and the second virtual key on the screen of the terminal; wherein, the screen When the posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the first virtual The distance between the key and the second virtual key is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual key according to the screen posture of the terminal, which is more intelligent and user-friendly. It solves the problem that the virtual key display scheme in the related technology cannot meet the different usage requirements of users.
其中,所述第一显示模块,包括:第一显示子模块,用于若所述第一屏幕姿态信息指示所述终端当前处于横屏状态,则将所述第一虚拟按键显示于所述屏幕的长度方向的一侧,所述第二虚拟按键显示于所述屏幕的长度方向 的另一侧;或者若所述第二屏幕姿态信息指示所述终端当前处于竖屏状态,则将所述第一虚拟按键和所述第二虚拟按键显示于所述屏幕的长度方向的同一侧。Wherein, the first display module includes: a first display sub-module for displaying the first virtual key on the screen if the first screen gesture information indicates that the terminal is currently in a landscape state On one side of the length direction of the screen, the second virtual key is displayed on the other side of the screen in the length direction; or if the second screen gesture information indicates that the terminal is currently in a portrait state, the A virtual key and the second virtual key are displayed on the same side in the length direction of the screen.
具体的,所述第一虚拟按键与所述第二虚拟按键的所对应的功能类型不同。Specifically, the corresponding function types of the first virtual key and the second virtual key are different.
其中,所述第一获取模块,包括:第一获取子模块,用于若检测到所述终端进入目标界面,则获取终端当前的屏幕姿态信息。Wherein, the first acquisition module includes: a first acquisition submodule, configured to acquire the current screen posture information of the terminal if it is detected that the terminal enters the target interface.
具体的,所述第一虚拟按键为音量键,所述第二虚拟按键为电源键。Specifically, the first virtual key is a volume key, and the second virtual key is a power key.
本公开的一些实施例提供的终端能够实现图1和图2的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。The terminal provided by some embodiments of the present disclosure can implement various processes implemented by the terminal in the method embodiments of FIG. 1 and FIG. 2, and to avoid repetition, details are not described herein again.
图4为实现本公开各个实施例的一种终端的硬件结构示意图,该终端40包括但不限于:射频单元41、网络模块42、音频输出单元43、输入单元44、传感器45、显示单元46、用户输入单元47、接口单元48、存储器49、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开的一些实施例中,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。4 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present disclosure. The terminal 40 includes but is not limited to: a radio frequency unit 41, a network module 42, an audio output unit 43, an input unit 44, a sensor 45, a display unit 46, The user input unit 47, interface unit 48, memory 49, processor 410, power supply 411 and other components. Those skilled in the art may understand that the terminal structure shown in FIG. 4 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than those illustrated, or combine certain components, or arrange different components. In some embodiments of the present disclosure, terminals include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle terminals, wearable devices, and pedometers.
其中,处理器410,用于获取终端当前的屏幕姿态信息;根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。Wherein, the processor 410 is used to obtain the current screen posture information of the terminal; according to the screen posture information, the first virtual key and the second virtual key are displayed on the screen of the terminal; wherein, the screen posture information is the first When there is screen gesture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen gesture information is the second screen gesture information, the first virtual key and the The distance between the second virtual keys is a second distance, and the first distance is greater than the second distance.
在本公开的一些实施例中,通过获取终端当前的屏幕姿态信息;根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述 第一距离大于所述第二距离;能够实现自动根据终端的屏幕姿态调整虚拟按键的显示,更加智能、便于用户使用,很好的解决了相关技术中虚拟按键显示方案不能够满足用户不同使用需求的问题。In some embodiments of the present disclosure, by acquiring the current screen posture information of the terminal; according to the screen posture information, displaying the first virtual key and the second virtual key on the screen of the terminal; wherein, the screen posture information When it is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance; when the screen posture information is the second screen posture information, the first virtual key and The distance between the second virtual keys is a second distance, and the first distance is greater than the second distance; it can automatically adjust the display of the virtual keys according to the screen posture of the terminal, which is more intelligent, convenient for users to use, and very good Has solved the problem that the virtual key display scheme in the related art cannot meet the different usage requirements of users.
可选的,处理器410具体用于,若所述第一屏幕姿态信息指示所述终端当前处于横屏状态,则将所述第一虚拟按键显示于所述屏幕的长度方向的一侧,所述第二虚拟按键显示于所述屏幕的长度方向的另一侧;或者若所述第二屏幕姿态信息指示所述终端当前处于竖屏状态,则将所述第一虚拟按键和所述第二虚拟按键显示于所述屏幕的长度方向的同一侧。Optionally, the processor 410 is specifically configured to display the first virtual key on one side of the length direction of the screen if the first screen gesture information indicates that the terminal is currently in a landscape state. The second virtual key is displayed on the other side in the length direction of the screen; or if the second screen gesture information indicates that the terminal is currently in a portrait state, the first virtual key and the second The virtual keys are displayed on the same side in the longitudinal direction of the screen.
可选的,所述第一虚拟按键与所述第二虚拟按键的所对应的功能类型不同。Optionally, the corresponding function types of the first virtual key and the second virtual key are different.
可选的,处理器410具体用于,若检测到所述终端进入目标界面,则获取终端当前的屏幕姿态信息。Optionally, the processor 410 is specifically configured to acquire the current screen gesture information of the terminal if it is detected that the terminal enters the target interface.
可选的,处理器410具体用于,所述第一虚拟按键为音量键,所述第二虚拟按键为电源键。Optionally, the processor 410 is specifically configured to: the first virtual key is a volume key, and the second virtual key is a power key.
应理解的是,本公开的一些实施例中,射频单元41可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元41包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元41还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in some embodiments of the present disclosure, the radio frequency unit 41 may be used to receive and send signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 410; To send the uplink data to the base station. Generally, the radio frequency unit 41 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 frequency unit 41 can also communicate with the network and other devices through a wireless communication system.
终端通过网络模块42为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal provides users with wireless broadband Internet access through the network module 42, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元43可以将射频单元41或网络模块42接收的或者在存储器49中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元43还可以提供与终端40执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元43包括扬声器、蜂鸣器以及受话器等。The audio output unit 43 may convert the audio data received by the radio frequency unit 41 or the network module 42 or stored in the memory 49 into an audio signal and output as sound. Moreover, the audio output unit 43 may also provide audio output related to a specific function performed by the terminal 40 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 43 includes a speaker, a buzzer, a receiver, and the like.
输入单元44用于接收音频或视频信号。输入单元44可以包括图形处理器(Graphics Processing Unit,GPU)441和麦克风442,图形处理器441对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态 图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元46上。经图形处理器441处理后的图像帧可以存储在存储器49(或其它存储介质)中或者经由射频单元41或网络模块42进行发送。麦克风442可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元41发送到移动通信基站的格式输出。The input unit 44 is used to receive audio or video signals. The input unit 44 may include a graphics processor (Graphics, Processing, Unit, GPU) 441 and a microphone 442. The graphics processor 441 may process images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frame may be displayed on the display unit 46. The image frame processed by the graphics processor 441 may be stored in the memory 49 (or other storage medium) or sent via the radio frequency unit 41 or the network module 42. The microphone 442 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 41 in the case of a telephone call mode and output.
终端40还包括至少一种传感器45,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板461的亮度,接近传感器可在终端40移动到耳边时,关闭显示面板461和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器45还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal 40 also includes at least one sensor 45, such as a light sensor, a 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 461 according to the brightness of the ambient light, and the proximity sensor can close the display panel 461 and/or when the terminal 40 moves to the ear Or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify the posture of the terminal (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 45 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared Sensors, etc., will not be repeated here.
显示单元46用于显示由用户输入的信息或提供给用户的信息。显示单元46可包括显示面板461,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板461。The display unit 46 is used to display information input by the user or information provided to the user. The display unit 46 may include a display panel 461, and the display panel 461 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元47可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元47包括触控面板471以及其他输入设备472。触控面板471,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板471上或在触控面板471附近的操作)。触控面板471可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板471。除了触控面板471,用户输入单元47还可以包括其他输入设备472。具体地,其他输入设备472可以 包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 47 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the terminal. Specifically, the user input unit 47 includes a touch panel 471 and other input devices 472. The touch panel 471, also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 471 operating). The touch panel 471 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 410, the command sent by the processor 410 is received and executed. In addition, the touch panel 471 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 471, the user input unit 47 may also include other input devices 472. Specifically, other input devices 472 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板471可覆盖在显示面板461上,当触控面板471检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板461上提供相应的视觉输出。虽然在图4中,触控面板471与显示面板461是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板471与显示面板461集成而实现终端的输入和输出功能,具体此处不做限定。Further, the touch panel 471 may be overlaid on the display panel 461, and after the touch panel 471 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of touch event, and then the processor 410 according to the touch The type of event provides a corresponding visual output on the display panel 461. Although in FIG. 4, the touch panel 471 and the display panel 461 are implemented as two independent components to realize the input and output functions of the terminal, in some embodiments, the touch panel 471 and the display panel 461 may be integrated to The input and output functions of the terminal are implemented, which is not limited here.
接口单元48为外部装置与终端40连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元48可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端40内的一个或多个元件或者可以用于在终端40和外部装置之间传输数据。The interface unit 48 is an interface for connecting an external device to the terminal 40. 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 with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 48 may be used to receive input from external devices (eg, data information, power, etc.) and transmit the received input to one or more elements within the terminal 40 or may be used between the terminal 40 and external devices Transfer data between.
存储器49可用于存储软件程序以及各种数据。存储器49可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器49可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 49 can be used to store software programs and various data. The memory 49 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data created by the use of mobile phones (such as audio data, phonebooks, etc.), etc. In addition, the memory 49 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
处理器410是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器49内的软件程序和/或模块,以及调用存储在存储器49内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。处理器410可包括一个或多个处理单元;可选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the terminal, and uses various interfaces and lines to connect the various parts of the entire terminal, executes or executes the software programs and/or modules stored in the memory 49, and calls the data stored in the memory 49 to execute Various functions and processing data of the terminal, so as to monitor the terminal as a whole. The processor 410 may include one or more processing units; optionally, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc. The modulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
终端40还可以包括给各个部件供电的电源411(比如电池),可选的, 电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 40 may further include a power supply 411 (such as a battery) that supplies power to various components. Optionally, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system And other functions.
另外,终端40包括一些未示出的功能模块,在此不再赘述。In addition, the terminal 40 includes some function modules not shown, which will not be repeated here.
可选的,本公开的一些实施例还提供一种终端,包括处理器410,存储器49,存储在存储器49上并可在所述处理器410上运行的程序,该程序被所述处理器410执行时实现上述虚拟按键显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, some embodiments of the present disclosure further provide a terminal, including a processor 410, a memory 49, a program stored on the memory 49 and executable on the processor 410, the program is used by the processor 410 During execution, the processes of the above embodiments of the virtual key display method are implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
本公开的一些实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述虚拟按键显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Some embodiments of the present disclosure also provide a computer-readable storage medium that stores a computer program on the computer-readable storage medium. When the computer program is executed by a processor, the processes of the above-described virtual key display method embodiments are implemented and can be achieved The same technical effect will not be repeated here to avoid repetition. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, It also includes other elements that are not explicitly listed, or include elements inherent to this process, method, article, or device. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation. Based on such an understanding, the technical solution of the present disclosure can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The CD-ROM includes several instructions to enable a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特 定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Persons of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present disclosure essentially or part of the contribution to the existing technology or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure. The foregoing storage media include various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述的程序可存储于一计 算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the process in the method of the above embodiments can be completed by controlling related hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the process of the above method embodiments may be included. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本公开所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present disclosure may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable Logic Device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, others for performing the functions described in this disclosure Electronic unit or its combination.
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology described in the embodiments of the present disclosure may be implemented by modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure. The software codes can be stored in memory and executed by the processor. The memory may be implemented in the processor or external to the processor.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure have been described above with reference to the drawings, but the present disclosure is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only schematic, not limiting, and those of ordinary skill in the art Under the inspiration of the present disclosure, many forms can be made without departing from the purpose of the present disclosure and the scope protected by the claims, all of which fall within the protection of the present disclosure.

Claims (10)

  1. 一种虚拟按键显示方法,包括:A virtual key display method, including:
    获取终端当前的屏幕姿态信息;Obtain the current screen pose information of the terminal;
    根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;Displaying the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information;
    其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第一距离;Wherein, when the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance;
    所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。When the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
  2. 根据权利要求1所述的虚拟按键显示方法,其中,所述根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键,包括:The virtual key display method according to claim 1, wherein the displaying the first virtual key and the second virtual key on the screen of the terminal according to the screen gesture information includes:
    若所述第一屏幕姿态信息指示所述终端当前处于横屏状态,则将所述第一虚拟按键显示于所述屏幕的长度方向的一侧,所述第二虚拟按键显示于所述屏幕的长度方向的另一侧;或者If the first screen gesture information indicates that the terminal is currently in a landscape state, the first virtual key is displayed on one side of the length of the screen, and the second virtual key is displayed on the screen The other side in the length direction; or
    若所述第二屏幕姿态信息指示所述终端当前处于竖屏状态,则将所述第一虚拟按键和所述第二虚拟按键显示于所述屏幕的长度方向的同一侧。If the second screen gesture information indicates that the terminal is currently in the portrait-oriented state, the first virtual key and the second virtual key are displayed on the same side in the length direction of the screen.
  3. 根据权利要求2所述的虚拟按键显示方法,其中,所述第一虚拟按键与所述第二虚拟按键的所对应的功能类型不同。The virtual key display method according to claim 2, wherein the corresponding function types of the first virtual key and the second virtual key are different.
  4. 根据权利要求1所述的虚拟按键显示方法,其中,所述获取终端当前的屏幕姿态信息,包括:The virtual key display method according to claim 1, wherein the acquiring the current screen posture information of the terminal includes:
    若检测到所述终端进入目标界面,则获取终端当前的屏幕姿态信息。If it is detected that the terminal enters the target interface, the current screen posture information of the terminal is acquired.
  5. 根据权利要求1至4任一项所述的虚拟按键显示方法,其中,所述第一虚拟按键为音量键,所述第二虚拟按键为电源键。The virtual key display method according to any one of claims 1 to 4, wherein the first virtual key is a volume key and the second virtual key is a power key.
  6. 一种终端,包括:A terminal, including:
    第一获取模块,用于获取终端当前的屏幕姿态信息;The first obtaining module is used to obtain the current screen posture information of the terminal;
    第一显示模块,用于根据所述屏幕姿态信息,在所述终端的屏幕上显示第一虚拟按键和第二虚拟按键;A first display module, configured to display a first virtual key and a second virtual key on the screen of the terminal according to the screen posture information;
    其中,所述屏幕姿态信息为第一屏幕姿态信息时,所述第一虚拟按键和 所述第二虚拟按键之间的距离为第一距离;Wherein, when the screen posture information is the first screen posture information, the distance between the first virtual key and the second virtual key is the first distance;
    所述屏幕姿态信息为第二屏幕姿态信息时,所述第一虚拟按键和所述第二虚拟按键之间的距离为第二距离,所述第一距离大于所述第二距离。When the screen posture information is the second screen posture information, the distance between the first virtual key and the second virtual key is a second distance, and the first distance is greater than the second distance.
  7. 根据权利要求6所述的终端,其中,所述第一显示模块,包括:The terminal according to claim 6, wherein the first display module comprises:
    第一显示子模块,用于若所述第一屏幕姿态信息指示所述终端当前处于横屏状态,则将所述第一虚拟按键显示于所述屏幕的长度方向的一侧,所述第二虚拟按键显示于所述屏幕的长度方向的另一侧;或者A first display submodule, configured to display the first virtual key on one side of the length direction of the screen if the first screen gesture information indicates that the terminal is currently in a landscape state The virtual key is displayed on the other side of the screen in the length direction; or
    若所述第二屏幕姿态信息指示所述终端当前处于竖屏状态,则将所述第一虚拟按键和所述第二虚拟按键显示于所述屏幕的长度方向的同一侧。If the second screen gesture information indicates that the terminal is currently in the portrait-oriented state, the first virtual key and the second virtual key are displayed on the same side in the length direction of the screen.
  8. 根据权利要求7所述的终端,其中,所述第一虚拟按键与所述第二虚拟按键的所对应的功能类型不同。The terminal according to claim 7, wherein the corresponding function types of the first virtual key and the second virtual key are different.
  9. 一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至5中任一项所述的虚拟按键显示方法的步骤。A terminal includes a processor, a memory, and a program stored on the memory and executable on the processor, and when the program is executed by the processor, the program is implemented as claimed in any one of claims 1 to 5. The steps of the virtual key display method described above.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的虚拟按键显示方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, a virtual key display method according to any one of claims 1 to 5 is implemented step.
PCT/CN2019/124521 2018-12-27 2019-12-11 Virtual key display method and terminal WO2020135042A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811614708.0 2018-12-27
CN201811614708.0A CN109743449A (en) 2018-12-27 2018-12-27 A virtual key display method and terminal

Publications (1)

Publication Number Publication Date
WO2020135042A1 true WO2020135042A1 (en) 2020-07-02

Family

ID=66361457

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124521 WO2020135042A1 (en) 2018-12-27 2019-12-11 Virtual key display method and terminal

Country Status (2)

Country Link
CN (1) CN109743449A (en)
WO (1) WO2020135042A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111991801A (en) * 2020-08-05 2020-11-27 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN113986113A (en) * 2021-10-29 2022-01-28 深圳电器公司 Information determination method and related device
CN114625462A (en) * 2022-03-04 2022-06-14 维沃移动通信有限公司 Virtual key management method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743449A (en) * 2018-12-27 2019-05-10 维沃移动通信有限公司 A virtual key display method and terminal
CN110087001B (en) * 2019-05-30 2021-07-13 维沃移动通信有限公司 A shooting processing method, device and mobile terminal
CN110312035A (en) * 2019-06-26 2019-10-08 维沃移动通信有限公司 Terminal control method, mobile terminal and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014000211A1 (en) * 2012-06-28 2014-01-03 珠海市魅族科技有限公司 Display control method and user equipment
CN105630294A (en) * 2015-12-28 2016-06-01 广东欧珀移动通信有限公司 Method and device for adjusting virtual keys of mobile terminal and mobile terminal
CN107608591A (en) * 2017-09-25 2018-01-19 维沃移动通信有限公司 The display methods and mobile terminal of a kind of virtual key
CN108536368A (en) * 2018-03-30 2018-09-14 努比亚技术有限公司 Button application method, terminal and computer readable storage medium
CN109743449A (en) * 2018-12-27 2019-05-10 维沃移动通信有限公司 A virtual key display method and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9158372B2 (en) * 2012-10-30 2015-10-13 Google Technology Holdings LLC Method and apparatus for user interaction data storage
CN103729138A (en) * 2013-12-18 2014-04-16 乐视致新电子科技(天津)有限公司 Display screen based physical button simulating method and electronic device
CN104765466B (en) * 2015-05-04 2018-01-26 广东欧珀移动通信有限公司 Key control method and device for mobile terminal
CN106257900A (en) * 2015-06-16 2016-12-28 赵跃 Method and device for the autonomous virtual key set on electronic equipment
CN105702204B (en) * 2016-03-31 2018-07-06 广东欧珀移动通信有限公司 A kind of method, apparatus and terminal of display of charging
CN106559565A (en) * 2016-11-04 2017-04-05 珠海市魅族科技有限公司 Pronunciation inputting method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014000211A1 (en) * 2012-06-28 2014-01-03 珠海市魅族科技有限公司 Display control method and user equipment
CN105630294A (en) * 2015-12-28 2016-06-01 广东欧珀移动通信有限公司 Method and device for adjusting virtual keys of mobile terminal and mobile terminal
CN107608591A (en) * 2017-09-25 2018-01-19 维沃移动通信有限公司 The display methods and mobile terminal of a kind of virtual key
CN108536368A (en) * 2018-03-30 2018-09-14 努比亚技术有限公司 Button application method, terminal and computer readable storage medium
CN109743449A (en) * 2018-12-27 2019-05-10 维沃移动通信有限公司 A virtual key display method and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111991801A (en) * 2020-08-05 2020-11-27 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN113986113A (en) * 2021-10-29 2022-01-28 深圳电器公司 Information determination method and related device
CN114625462A (en) * 2022-03-04 2022-06-14 维沃移动通信有限公司 Virtual key management method and device

Also Published As

Publication number Publication date
CN109743449A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
US12105935B2 (en) Method for displaying background application and mobile terminal
CN108182043B (en) Information display method and mobile terminal
WO2020135042A1 (en) Virtual key display method and terminal
CN109005262B (en) A camera control method, terminal and computer-readable storage medium
CN108536411A (en) A kind of method for controlling mobile terminal and mobile terminal
CN108073343B (en) A display interface adjustment method and mobile terminal
JP7301956B2 (en) Information processing method and terminal
WO2019196864A1 (en) Control method for virtual button and mobile terminal
CN110460907A (en) A video playback control method and terminal
CN107728923B (en) An operation processing method and mobile terminal
CN110531915B (en) Screen operation method and terminal device
CN110471559B (en) False touch prevention method and mobile terminal
WO2019169991A1 (en) Display method and mobile terminal
WO2020134811A1 (en) Key control method, and terminal
WO2020134743A1 (en) Icon moving method and terminal
WO2020078234A1 (en) Display control method and terminal
WO2020119517A1 (en) Input method control method and terminal device
CN108628515A (en) A kind of operating method and mobile terminal of multimedia content
WO2020038143A1 (en) Display interface processing method and mobile terminal
WO2020042921A1 (en) Screen control method and electronic device
CN109521937B (en) Screen display control method and mobile terminal
CN108984099B (en) Man-machine interaction method and terminal
CN110866465A (en) Electronic device control method and electronic device
CN111459447B (en) Volume adjustment display method and electronic equipment
CN109902679B (en) Icon display method and terminal device

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: 19904811

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: 19904811

Country of ref document: EP

Kind code of ref document: A1