CN107632768A - Button application method, terminal and computer-readable recording medium - Google Patents

Button application method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107632768A
CN107632768A CN201710916336.6A CN201710916336A CN107632768A CN 107632768 A CN107632768 A CN 107632768A CN 201710916336 A CN201710916336 A CN 201710916336A CN 107632768 A CN107632768 A CN 107632768A
Authority
CN
China
Prior art keywords
virtual key
button
terminal
physical button
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710916336.6A
Other languages
Chinese (zh)
Inventor
邱情
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710916336.6A priority Critical patent/CN107632768A/en
Publication of CN107632768A publication Critical patent/CN107632768A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a kind of button application method, terminal and computer-readable recording medium, the terminal is provided with physical button, and the physical button is connected with the processor communication of the terminal, and the button application method includes:Virtual key corresponding to physical button is mapped out based on physical button in display interface;When receiving pressing operation in virtual key region, function corresponding to the virtual key is determined, wherein, the function of the virtual key is consistent with the function of its physical button;Function based on determination, the terminal is controlled to perform corresponding operation.Physical button is mapped out virtual key by the present invention in display interface, and the virtual key is as the function of physical button, even if physical button breaks down, virtual key can also replace physical button normal use, ensure that the normal use of terminal.

Description

Button application method, terminal and computer-readable recording medium
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of button application method, terminal and computer-readable storage Medium.
Background technology
With the development of mobile terminal technology, the button set in mobile terminal is fewer and fewer.In present mobile terminal It is most of only to retain the physical buttons such as key, volume adjusting key, Home key.
When the physical buttons such as key, volume adjusting amount or Home key in the terminal break down, it can cause to move Dynamic terminal can not normal use could allow terminal normal use, it is necessary to carry out maintenance.
The content of the invention
It is a primary object of the present invention to propose a kind of button application method, terminal and computer-readable recording medium, purport During solving existing button use, if physical button breaks down, the problem of terminal can be caused not use.
To achieve the above object, the invention provides a kind of button application method, applied to terminal, the terminal is provided with Physical button, the physical button are connected with the processor communication of the terminal, and the button application method includes:
Virtual key corresponding to physical button is mapped out based on physical button in display interface;
When receiving pressing operation in virtual key region, function corresponding to the virtual key is determined, wherein, institute The function of stating virtual key is consistent with the function of its physical button;
Function based on determination, the terminal is controlled to perform corresponding operation.
Alternatively, it is described when receiving pressing operation in virtual key region, determine corresponding to the virtual key Before the step of function, methods described also includes:
The virtual key is shown in the borderline region of display interface;
Or virtual key corresponding to physical button described in the position display in display interface close to physical button.
Alternatively, it is described when receiving pressing operation in virtual key region, determine corresponding to the virtual key Before the step of function, methods described also includes:
When detecting the idsplay order of virtual key, virtual key is shown in display interface.
Alternatively, it is described when receiving pressing operation in virtual key region, determine corresponding to the virtual key Before the step of function, methods described also includes:
It is determined that the application type currently run;
According to default application type and the corresponding relation of virtual key display mode, the application type for obtaining determination is corresponding Virtual key display mode;
Control virtual key is shown according to the display mode of acquisition.
Alternatively, the function based on determination, after controlling described terminal execution corresponding the step of operating, the side Method also includes:
When not receiving the duration of touch control operation in display interface and reaching preset duration, the virtual key is hidden.
Alternatively, methods described also includes:
When detecting that terminal screen is rotated, the virtual key is controlled to be rotated according to predetermined angle.
Alternatively, it is described when detecting that terminal screen is rotated, control the virtual key to be carried out according to predetermined angle The step of rotation, includes:
When detecting that terminal screen is rotated, the anglec of rotation of terminal screen is determined;
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to predetermined angle.
Alternatively, it is described when the anglec of rotation reaches predetermined angle, the virtual key is controlled according to predetermined angle The step of being rotated includes:
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to diagonal angles, So that the placement location between postrotational virtual key is as the placement location between the virtual key before rotation.
In addition, to achieve the above object, the present invention also provides a kind of terminal, the terminal include memory, processor and The button that being stored in can run on the memory and on the processor uses program, and the button uses program described The step of button application method as described above is realized during computing device.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Button is stored with storage medium and uses program, when the button is executed by processor using program realize as described above by The step of key application method.
The button application method of the present invention is applied to terminal, and the terminal is provided with physical button, the physical button and The processor communication connection of the terminal, terminal are first mapped out empty corresponding to physical button in display interface based on physical button Intend button, when then receiving pressing operation in virtual key region, determine function corresponding to the virtual key, finally Function based on determination, the terminal is controlled to perform corresponding operation.The present invention maps out physical button in display interface Virtual key, the virtual key is as the function of physical button, even if physical button breaks down, virtual key can also replace Physical button normal use, it ensure that the normal use of terminal.
Brief description of the drawings
Fig. 1 is a kind of each hardware architecture diagram of terminal of embodiment of the realization present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of button application method first embodiment of the present invention;
Fig. 4 is the schematic diagram that the present invention shows virtual key in the borderline region of display interface;
Fig. 5 is virtual key corresponding to position display physical button of the present invention close to physical button in display interface Schematic diagram;
Fig. 6 is the schematic diagram of the present invention preferably implement scene;
Fig. 7 is the schematic diagram of Rotation screen at grade of the invention;
Fig. 8 is the schematic diagram of present invention Rotation screen in Different Plane;
After Fig. 9 is present invention rotation terminal screen, the schematic diagram of virtual key placement location is shown.
The realization, functional characteristics and advantage of the object of the invention will explain referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is used as at least one external device (ED) and connecing of can passing through is connected with mobile terminal 100
Mouthful.For example, external device (ED) can include wired or wireless head-band earphone port, external power source (or battery charging Device) it is port, wired or wireless FPDP, memory card port, defeated for connecting the port of device with identification module, audio Enter/export (I/O) port, video i/o port, ear port etc..Interface unit 108, which can be used for receiving, comes from external device (ED) Input (for example, data message, electric power etc.) and the input received is transferred to one or more in mobile terminal 100 Individual element can be used for transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in the terminal shown in Fig. 1, be stored with the memory 109 run on the processor 110 by Key uses program, and the terminal calls the button stored in memory 109 to use program by processor 110, and performs following Step:
Virtual key corresponding to physical button is mapped out based on physical button in display interface;
When receiving pressing operation in virtual key region, function corresponding to the virtual key is determined, wherein, institute The function of stating virtual key is consistent with the function of its physical button;
Function based on determination, the terminal is controlled to perform corresponding operation.
Further, it is described when receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function the step of before, the terminal calls the button that stores in memory 109 use program by processor 110, also reality Existing following steps:
The virtual key is shown in the borderline region of display interface;
Or virtual key corresponding to physical button described in the position display in display interface close to physical button.
Further, it is described when receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function the step of before, the terminal calls the button that stores in memory 109 use program by processor 110, also reality Existing following steps:
When detecting the idsplay order of virtual key, virtual key is shown in display interface.
Further, it is described when receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function the step of before, the terminal calls the button that stores in memory 109 use program by processor 110, also reality Existing following steps:
It is determined that the application type currently run;
According to default application type and the corresponding relation of virtual key display mode, the application type for obtaining determination is corresponding Virtual key display mode;
Control virtual key is shown according to the display mode of acquisition.
Further, the function based on determination, it is described after controlling described terminal execution corresponding the step of operating Terminal calls the button stored in memory 109 to use program by processor 110, also realizes following steps:
When not receiving the duration of touch control operation in display interface and reaching preset duration, the virtual key is hidden.
Further, the terminal calls the button stored in memory 109 to use program by processor 110, also real Existing following steps:
When detecting that terminal screen is rotated, the virtual key is controlled to be rotated according to predetermined angle.
Further, the terminal calls the button stored in memory 109 to use program by processor 110, also real Now when detecting that terminal screen is rotated, the step of controlling the virtual key to be rotated according to predetermined angle:
When detecting that terminal screen is rotated, the anglec of rotation of terminal screen is determined;
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to predetermined angle.
Further, the terminal calls the button stored in memory 109 to use program by processor 110, also real When the present anglec of rotation reaches predetermined angle, the step of controlling the virtual key to be rotated according to predetermined angle:
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to diagonal angles, So that the placement location between postrotational virtual key is as the placement location between the virtual key before rotation.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, each implementation of button application method of the present invention is proposed Example.
The present invention provides a kind of button application method.
Reference picture 3, Fig. 3 are the schematic flow sheet of button application method first embodiment of the present invention.
In the present embodiment, the button application method is optional is applied in terminal, and the terminal is chosen as described in Fig. 1 Mobile terminal, the terminal is provided with physical button, and the physical button is connected with the processor communication of the terminal, described Button application method comprises the following steps:
Virtual key corresponding to physical button is mapped out based on physical button in display interface;
When receiving pressing operation in virtual key region, function corresponding to the virtual key is determined, wherein, institute The function of stating virtual key is consistent with the function of its physical button;
Function based on determination, the terminal is controlled to perform corresponding operation.
In the present embodiment, it is newly-designed button in terminal that the physical button is optional, and the specific number of physical button is not Limit, set according to being actually needed.Physical button in the present embodiment is chosen as multifunction push key, including voice wakes up work( Can, using the multiple functions such as startup function or interface startup function, in addition, also different entities can be pressed in different applications Key is multiplexed out different functions, for example, in audiovisual applications, physical button is multiplexed out into volume adjusting function, audio frequency and video are cut Change function;In game application, physical button is multiplexed out the functions such as upper and lower, left and right switching.The physical button can be set In any position of terminal, the optional side or the back side for being arranged on terminal, specific set location does not limit equally, according to reality Depending on the situation of border.
In the present embodiment, the physical button is also chosen as the existing button of terminal, includes the home keys or volume of terminal Adjusting key, in physical button button existing for terminal, more functions can be multiplexed out to physical button so that the entity is pressed Key possesses voice arousal function, using the multiple functions such as startup function or interface startup function, equally, goes back in different applications Different physical buttons can be multiplexed out to different functions.In the physical button that terminal is set, the processor communication with terminal Connection, the operational order received is sent to processor, is performed accordingly according to the operational order received by processor Control operation, such as start application, startup interface or perform volume adjusting operation.
It is that the specific steps that button uses are realized in the present embodiment below:
Step S10, virtual key corresponding to physical button is mapped out based on physical button in display interface;
In the present embodiment, in the display interface of terminal based on physical button map out corresponding to physical button virtually by Key, function corresponding to virtual key is consistent with the function of its physical button, such as physical button is volume adjusting button, then maps Obtained virtual key is equally volume adjusting button.Because the physical button in the present embodiment can be multifunction push key, by The virtual key that physical button maps out equally can be multifunction push key.
In the present embodiment, it can be selected in the borderline region of display interface and physical button is mapped out correspondingly based on physical button Virtual key, for example, two side border regions based on each physical button in display interface map out each virtual key;Or Person, the position close to physical button in display interface maps out virtual key corresponding to the physical button, for example, physical button Positioned at the upper left corner of mobile terminal, then the upper left corner in display interface maps out virtual key corresponding to the physical button.
It is optional including following after mapping out virtual key corresponding to physical button based on physical button in display interface Two kinds of embodiments:
1) mode one, in the borderline region of display interface show the virtual key;
Or virtual key corresponding to physical button described in the position display in display interface close to physical button.
In the present embodiment, can be selected in display interface based on physical button map out corresponding to physical button virtually by After key, the virtual key directly is shown in the borderline region of display interface, referring in particular to Fig. 4, Fig. 4 display interface border The dotted border in region represents virtual key;Or the position close to physical button in display interface maps out the physical button Corresponding virtual key, referring in particular to Fig. 5, the dotted border in Fig. 5 display interface close to physical button position represents virtual Button.The virtual key can show that user can realize terminal by the virtual key based on display at any time in display interface always Control operation.
In the present embodiment, control virtual key is shown in display interface always, so that user can use at any time, Improve the convenience that button uses.
2) mode two, when detecting the idsplay order of virtual key, virtual key is shown in display interface.
I.e., in the present embodiment, when terminal does not receive the idsplay order of virtual key, display interface does not show void Intend button, only when detecting the idsplay order of virtual key, just shown in display interface.
The triggering mode of the idsplay order of the virtual key includes but is not limited to:
Mode a, the borderline region of long-press display interface are to trigger the idsplay order of the virtual key;
Close to the position of physical button to trigger the idsplay order of virtual key in mode b, long-press display interface.
When terminal receives long-press operation, or the close physical button in display interface in the borderline region of display interface Position receive long-press operation, it is determined that receive the idsplay order of virtual key, and based on the idsplay order received, control Virtual key corresponding to each physical button is shown in display interface.
In the present embodiment, virtual key can be hidden, and the display that virtual key is triggered only when needing to use refers to Order is just shown in display interface, avoids the letter shown always in display interface so as to influence to show in display interface Breath, so as to improve the intelligent and flexibility that button uses.
It should be appreciated that the display mode of the above-mentioned two kinds of virtual keys referred to, may be selected one kind therein and is shown have Body is actually needed according to user and is configured.
Further, the terminal can also set above-mentioned any mode automatically as empty according to the application currently run Intend the display mode of button, specifically include:
Step 1, it is determined that the application type currently run;
Step 2, according to the corresponding relation of default application type and virtual key display mode, the application class of determination is obtained Virtual key display mode corresponding to type;
Step 3, control virtual key is shown according to the display mode of acquisition.
Wherein, the application type that currently runs is optional to be divided into two kinds:The application of social communication class, network push class application, society Handing over communication class, network push class, which is applied, includes voice applications, Video Applications, game application or using QQ, wechat, mailbox is included Practise application etc..
The present embodiment can be selected in application type for the application of social communication class when, corresponding virtual key display mode is above-mentioned Mode one, i.e. when the application that terminal is currently run is that wechat is applied, frontier district of the control virtual key in display interface Domain, or the position of close physical button maps out virtual key corresponding to physical button in display interface.It is in application type When network push class is applied, corresponding virtual key display mode is above-mentioned mode two, i.e. in the application that terminal is currently run For Video Applications when, only when detecting the idsplay order of virtual key, virtual key is just shown in display interface.
It should be appreciated that set the display mode of virtual key by the application type that currently runs, so that terminal is according to ought The application of preceding operation automatically adjusts the display mode of virtual key, is manually adjusted without user, improve button use it is flexible Property and intelligent.
Step S20, when receiving pressing operation in virtual key region, determine work(corresponding to the virtual key Can, wherein, the function of the virtual key is consistent with the function of its physical button;
After terminal shows virtual key corresponding to physical button in display interface, if in the area where virtual key Pressing operation is received in domain, it is determined that function corresponding to the virtual key, the pressing operation can be clicking operation (click or Double-click), touch operation or long-press operation, before be described in detail virtual key the corresponding physical button of function function one Cause, therefore, when receiving pressing operation in virtual key region, the work(based on physical button corresponding to the virtual key Can, you can determine function corresponding to the virtual key.
Step S30, the function based on determination, the terminal is controlled to perform corresponding operation.
It is determined that after function corresponding to virtual key, you can control terminal is performed and operated corresponding to the function, for example, When the function of the virtual key is volume adjusting, then the terminal is controlled to carry out the regulation of volume;In the virtual key When function is channel switch, then the terminal is controlled to carry out the switching of channel.
To be best understood from the present embodiment, the embodiment of the present invention is described in detail with concrete application scene:
Reference picture 6, terminal first map out virtual key corresponding to physical button in display interface based on physical button, can The current operation application of choosing is Video Applications, and now physical button is multiplexed with video switching key and volume adjusting button, then maps Go out the same video switching key of virtual key and volume adjusting button, such as the volume plus key, volume down key, video that are shown in Fig. 6 On cut key, video incision key.When receiving pressing operation in virtual key such as video switching key, determine the video switching by Function corresponding to key, if now the function is Switch Video, the terminal is controlled to perform video handover operation to switch to it Its video.
The present embodiment propose button application method, terminal first in display interface based on physical button map out entity by Virtual key corresponding to key, when then receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function, be based ultimately upon the function of determination, control the terminal to perform corresponding operation.The present invention is by physical button on display circle Virtual key is mapped out in face, the virtual key, even if physical button breaks down, is virtually pressed as the function of physical button Key can also replace physical button normal use, ensure that the normal use of terminal.
Further, the second embodiment of button application method of the present invention is proposed based on first embodiment.
The difference of the second embodiment of button application method and the first embodiment of button application method is, the step After S30, methods described also includes:
Step A, when not receiving the duration of touch control operation in display interface and reaching preset duration, hide and described virtually press Key.
In the present embodiment, in the case that terminal shows virtual key in display interface, if when display interface is long Between do not receive touch control operation, then it is optional hide the virtual key.Wherein, hiding the mode of virtual key includes:Showing When all not receiving touch control operation in the region of each virtual key in interface, all virtual keys are hidden;It is or empty at any one Intend not receiving the duration of touch control operation in the region of button when reaching preset duration, hide the void for not receiving touch control operation Intend button.In the present embodiment, the concrete numerical value of the preset duration does not limit, and is set according to actual conditions.
In the present embodiment, if not receiving the touch control operation of virtual key for a long time, virtual key is hidden, is avoided The virtual key of display influences the information shown in display interface for a long time, when subsequently needing to show virtual key, then inputs void Virtual key can be shown by terminal in display interface by intending the idsplay order of button, improve convenience and spirit that button uses Activity.
Further, based on the first to second embodiment 3rd embodiment for proposing button application method of the present invention.
The difference of the first of the 3rd embodiment of button application method and button application method to second embodiment is, institute Stating method also includes:
Step B, when detecting that terminal screen is rotated, the virtual key is controlled to be rotated according to predetermined angle.
In the present embodiment, the rotation of terminal screen includes the screen rotation in same plane, specifically can refer to Fig. 7, from In Fig. 6 to Fig. 7, terminal screen is that dextrorotation is turn 90 degrees at grade;Additionally include the screen rotation in Different Plane Turn, specifically can refer to Fig. 8, from Fig. 6 to Fig. 8 in, terminal screen is rotated in Different Plane, be using terminal side for revolve Rotating shaft have rotated 180 degree.In the embodiment of the present invention, the rotation of terminal screen preferably uses the screen rotation side in same plane Case, the place illustrated hereafter is needed, also with the screen rotation in same plane.
When detecting that terminal screen is rotated, the virtual key is controlled to be rotated according to predetermined angle, specifically, institute Stating step B includes:
Step B1, when detecting that terminal screen is rotated, determine the anglec of rotation of terminal screen;
Step B2, when the anglec of rotation reaches predetermined angle, the virtual key is controlled to be carried out according to predetermined angle Rotation.
That is, when detecting that terminal screen is rotated, the anglec of rotation of terminal screen is first determined, due to terminal screen Rotation includes conplane screen rotation, also the screen rotation including Different Plane, therefore, the anglec of rotation pair of terminal screen The calculation answered is different, and specific calculation is prior art, is not repeated herein.It is determined that the anglec of rotation of terminal screen After degree, by the anglec of rotation of calculating compared with predetermined angle, in the present embodiment, the predetermined angle is according to setting needs It is configured, such as is arranged to 100 degree, when the anglec of rotation for detecting terminal screen reaches predetermined angle, just described in control Virtual key is rotated according to predetermined angle, and specifically, the step B2 includes:
Step B21, when the anglec of rotation reaches predetermined angle, the virtual key is controlled to enter according to diagonal angles Row rotates, so that the placement location one between the virtual key before the placement location and rotation between postrotational virtual key Sample.
I.e. in the present embodiment, when the anglec of rotation of terminal screen reaches predetermined angle, control the virtual key according to Diagonal angles are rotated, so that between the virtual key before the placement location and rotation between postrotational virtual key Placement location is the same.
To be best understood from, it is exemplified below:Fig. 9 specifically is can refer to, in terminal screen dextrorotation corner at grade During 180 degree, the virtual key is controlled to be rotated according to diagonal angles, so that the placement between postrotational virtual key Position is as the placement location between the virtual key before rotation, it can be seen in fig. 9 that volume adjusting key is still located on showing boundary The upper left corner in face, video switch key are located at the lower left corner of display interface.
It should be noted that before and after each virtual key rotation, the diagonal angles formed after its line are different, from Fig. 9 In can be seen that, the diagonal angles between the switching of different virtual keys is front and rear are different.
It should be appreciated that when terminal screen rotates, if the placement location of virtual key is not changed, then postrotational end Hold in screen, for needing to be accustomed to again the placement location of virtual key, the problem of due to inertia, easily cause user's touch-control by Key malfunctions.And in the present embodiment, when terminal screen is rotated, control the virtual key to be revolved according to diagonal angles Turn, when realizing the display direction replacing of terminal screen, the placement location of virtual key can be changed without, and be easy to user according to use Custom operated, improve button use it is intelligent.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium.
Button is stored with the computer-readable recording medium and uses program, the button is held using program by processor Following steps are realized during row:
Virtual key corresponding to physical button is mapped out based on physical button in display interface;
When receiving pressing operation in virtual key region, function corresponding to the virtual key is determined, wherein, institute The function of stating virtual key is consistent with the function of its physical button;
Function based on determination, the terminal is controlled to perform corresponding operation.
Further, it is described when receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function the step of before, when the button is executed by processor using program, also realize following steps:
The virtual key is shown in the borderline region of display interface;
Or virtual key corresponding to physical button described in the position display in display interface close to physical button.
Further, it is described when receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function the step of before, when the button is executed by processor using program, also realize following steps:
When detecting the idsplay order of virtual key, virtual key is shown in display interface.
Further, it is described when receiving pressing operation in virtual key region, determine that the virtual key is corresponding Function the step of before, when the button is executed by processor using program, also realize following steps:
It is determined that the application type currently run;
According to default application type and the corresponding relation of virtual key display mode, the application type for obtaining determination is corresponding Virtual key display mode;
Control virtual key is shown according to the display mode of acquisition.
Further, the function based on determination, it is described after controlling described terminal execution corresponding the step of operating When button is executed by processor using program, following steps are also realized:
When not receiving the duration of touch control operation in display interface and reaching preset duration, the virtual key is hidden.
Further, when the button is executed by processor using program, following steps are also realized:
When detecting that terminal screen is rotated, the virtual key is controlled to be rotated according to predetermined angle.
Further, when the button is executed by processor using program, also realizes and detecting that terminal screen is rotated When, the step of controlling the virtual key to be rotated according to predetermined angle:
When detecting that terminal screen is rotated, the anglec of rotation of terminal screen is determined;
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to predetermined angle.
Further, when the button is executed by processor using program, also realizes and reach default in the anglec of rotation During angle, the step of controlling the virtual key to be rotated according to predetermined angle:
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to diagonal angles, So that the placement location between postrotational virtual key is as the placement location between the virtual key before rotation.
Technical scheme proposed by the present invention, the button realize following steps when being executed by processor using program:First exist Virtual key corresponding to physical button is mapped out based on physical button in display interface, then received in virtual key region During to pressing operation, determine the virtual key corresponding to function, be based ultimately upon the function of determination, control the terminal to perform phase The operation answered.Physical button is mapped out virtual key by the present invention in display interface, the work(of the virtual key and physical button Can be the same, even if physical button breaks down, virtual key can also replace physical button normal use, ensure that the normal of terminal Use.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And also include the other key elements being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of button application method, it is characterised in that applied to terminal, the terminal is provided with physical button, the entity Button is connected with the processor communication of the terminal, and the button application method includes:
Virtual key corresponding to physical button is mapped out based on physical button in display interface;
When receiving pressing operation in virtual key region, function corresponding to the virtual key is determined, wherein, the void The function of intending button is consistent with the function of its physical button;
Function based on determination, the terminal is controlled to perform corresponding operation.
2. button application method as claimed in claim 1, it is characterised in that it is described received in virtual key region by During press operation, before the step of determining function corresponding to the virtual key, methods described also includes:
The virtual key is shown in the borderline region of display interface;
Or virtual key corresponding to physical button described in the position display in display interface close to physical button.
3. button application method as claimed in claim 1, it is characterised in that it is described received in virtual key region by During press operation, before the step of determining function corresponding to the virtual key, methods described also includes:
When detecting the idsplay order of virtual key, virtual key is shown in display interface.
4. button application method as claimed in claim 1, it is characterised in that it is described received in virtual key region by During press operation, before the step of determining function corresponding to the virtual key, methods described also includes:
It is determined that the application type currently run;
According to default application type and the corresponding relation of virtual key display mode, obtain empty corresponding to the application type of determination Intend button display mode;
Control virtual key is shown according to the display mode of acquisition.
5. the button application method as described in claim any one of 2-4, it is characterised in that the function based on determination, control After making the step of terminal performs corresponding operation, methods described also includes:
When not receiving the duration of touch control operation in display interface and reaching preset duration, the virtual key is hidden.
6. the button application method as described in claim any one of 1-4, it is characterised in that methods described also includes:
When detecting that terminal screen is rotated, the virtual key is controlled to be rotated according to predetermined angle.
7. button application method as claimed in claim 6, it is characterised in that it is described when detecting that terminal screen is rotated, The step of controlling the virtual key to be rotated according to predetermined angle includes:
When detecting that terminal screen is rotated, the anglec of rotation of terminal screen is determined;
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to predetermined angle.
8. button application method as claimed in claim 7, it is characterised in that described to reach predetermined angle in the anglec of rotation When, the step of controlling the virtual key to be rotated according to predetermined angle, includes:
When the anglec of rotation reaches predetermined angle, the virtual key is controlled to be rotated according to diagonal angles, so that Placement location between postrotational virtual key is as the placement location between the virtual key before rotation.
9. a kind of terminal, it is characterised in that the terminal includes memory, processor and is stored on the memory and can be The button run on the processor uses program, and the button is realized that right such as will using program during the computing device The step of seeking the button application method any one of 1 to 8.
10. a kind of computer-readable recording medium, it is characterised in that being stored with button on the computer-readable recording medium makes With program, realize that the button as any one of claim 1 to 8 uses when the button is executed by processor using program The step of method.
CN201710916336.6A 2017-09-28 2017-09-28 Button application method, terminal and computer-readable recording medium Pending CN107632768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710916336.6A CN107632768A (en) 2017-09-28 2017-09-28 Button application method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710916336.6A CN107632768A (en) 2017-09-28 2017-09-28 Button application method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107632768A true CN107632768A (en) 2018-01-26

Family

ID=61103945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710916336.6A Pending CN107632768A (en) 2017-09-28 2017-09-28 Button application method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107632768A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769414A (en) * 2018-05-30 2018-11-06 维沃移动通信(深圳)有限公司 A kind of information cuing method and mobile terminal
CN109151163A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109739346A (en) * 2018-11-29 2019-05-10 努比亚技术有限公司 A kind of key simulating method, double screen terminal and computer readable storage medium
CN110059215A (en) * 2019-04-26 2019-07-26 广东电网有限责任公司 Clearing system suitable for the filing of transmission line of electricity defect photo shorthand nomenclature
CN112015101A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, intelligent control switch and storage medium
CN113821147A (en) * 2020-06-19 2021-12-21 西安诺瓦星云科技股份有限公司 Key binding method, device and system
CN114518158A (en) * 2022-01-28 2022-05-20 厦门顶尖电子有限公司 Touch identification scale and label printing triggering method based on touch identification scale
CN115503476A (en) * 2022-11-09 2022-12-23 阿维塔科技(重庆)有限公司 Control method for vehicle and vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440080A (en) * 2013-06-28 2013-12-11 上海斐讯数据通信技术有限公司 Button display method and mobile terminal
CN104572071A (en) * 2014-12-02 2015-04-29 深圳市金立通信设备有限公司 Terminal
CN105094609A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Method and device for achieving key operation in single-handed mode
CN106293471A (en) * 2016-08-12 2017-01-04 乐视控股(北京)有限公司 Virtual functional key call method based on screen pressure sensitive and device
CN106547663A (en) * 2016-10-31 2017-03-29 北京小米移动软件有限公司 Button management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440080A (en) * 2013-06-28 2013-12-11 上海斐讯数据通信技术有限公司 Button display method and mobile terminal
CN104572071A (en) * 2014-12-02 2015-04-29 深圳市金立通信设备有限公司 Terminal
CN105094609A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Method and device for achieving key operation in single-handed mode
CN106293471A (en) * 2016-08-12 2017-01-04 乐视控股(北京)有限公司 Virtual functional key call method based on screen pressure sensitive and device
CN106547663A (en) * 2016-10-31 2017-03-29 北京小米移动软件有限公司 Button management method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769414A (en) * 2018-05-30 2018-11-06 维沃移动通信(深圳)有限公司 A kind of information cuing method and mobile terminal
CN109151163A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109739346A (en) * 2018-11-29 2019-05-10 努比亚技术有限公司 A kind of key simulating method, double screen terminal and computer readable storage medium
CN110059215A (en) * 2019-04-26 2019-07-26 广东电网有限责任公司 Clearing system suitable for the filing of transmission line of electricity defect photo shorthand nomenclature
CN110059215B (en) * 2019-04-26 2023-03-14 广东电网有限责任公司 Arrangement system suitable for rapid naming and filing of defect photos of power transmission line
CN113821147A (en) * 2020-06-19 2021-12-21 西安诺瓦星云科技股份有限公司 Key binding method, device and system
CN112015101A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, intelligent control switch and storage medium
CN112015101B (en) * 2020-08-14 2024-03-12 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, intelligent control switch and storage medium
CN114518158A (en) * 2022-01-28 2022-05-20 厦门顶尖电子有限公司 Touch identification scale and label printing triggering method based on touch identification scale
CN115503476A (en) * 2022-11-09 2022-12-23 阿维塔科技(重庆)有限公司 Control method for vehicle and vehicle
CN115503476B (en) * 2022-11-09 2024-05-21 阿维塔科技(重庆)有限公司 Control method for vehicle and vehicle

Similar Documents

Publication Publication Date Title
CN107632768A (en) Button application method, terminal and computer-readable recording medium
CN107943400A (en) Double-sided screen switching method, mobile terminal and readable storage medium storing program for executing
CN107943367A (en) Interface display method, double screen terminal and the computer-readable storage medium of double screen terminal
CN108664185A (en) Picture display process, mobile terminal and computer readable storage medium
CN109213401A (en) Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing
CN107592416A (en) Method for sending voice message, terminal and computer-readable recording medium
CN107678654A (en) A kind of Application Program Interface display methods, equipment and computer-readable recording medium
CN107562357A (en) Content of pages page turning method, terminal and computer-readable recording medium
CN107239191A (en) Using switching method, terminal and computer-readable recording medium
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN108108081A (en) Method for information display, mobile terminal and readable storage medium storing program for executing based on double-sided screen
CN107885438A (en) A kind of mobile terminal device and its control method, computer-readable recording medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN108040168A (en) Mobile terminal operating method, mobile terminal and computer-readable recording medium
CN108228034A (en) Control method, mobile terminal and the computer readable storage medium of mobile terminal
CN109697008A (en) A kind of content share method, terminal and computer readable storage medium
CN107741802A (en) Using startup method, terminal and computer-readable recording medium
CN107908355A (en) Touch control method, mobile terminal and the storage medium of mobile terminal
CN108881635A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN107809534A (en) A kind of control method, terminal and computer-readable storage medium
CN107229410A (en) Interactive operation method, mobile terminal and computer-readable recording medium
CN107562329A (en) A kind of message notification display method, terminal and computer-readable recording medium
CN107589887A (en) One kind applies startup method and terminal
CN107682540A (en) Image processing method, terminal and computer-readable recording medium
CN107526493A (en) A kind of small tool display methods, equipment and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180126

RJ01 Rejection of invention patent application after publication