CN108037887B - Method for constructing virtual key of terminal, terminal and computer readable storage medium - Google Patents

Method for constructing virtual key of terminal, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108037887B
CN108037887B CN201711234822.6A CN201711234822A CN108037887B CN 108037887 B CN108037887 B CN 108037887B CN 201711234822 A CN201711234822 A CN 201711234822A CN 108037887 B CN108037887 B CN 108037887B
Authority
CN
China
Prior art keywords
terminal
virtual key
construction
bending
determining
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.)
Active
Application number
CN201711234822.6A
Other languages
Chinese (zh)
Other versions
CN108037887A (en
Inventor
侯穆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201711234822.6A priority Critical patent/CN108037887B/en
Publication of CN108037887A publication Critical patent/CN108037887A/en
Application granted granted Critical
Publication of CN108037887B publication Critical patent/CN108037887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for constructing a virtual key of a terminal, the terminal and a computer readable storage medium, wherein the method comprises the following steps: when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen; judging the size relationship between the bending angle and a preset angle, and determining a construction surface of the terminal virtual key according to the size relationship and the bending direction; receiving virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position. According to the scheme, the construction surface of the virtual key is determined according to the bending direction and the bending angle of the flexible screen of the terminal, and the construction surface is determined according to the bending direction and the bending angle because different terminal users have different requirements on the bending direction and the bending angle, so that the individual requirements of the users can be reflected; when the virtual keys are constructed in the area outside the screen, the virtual keys do not occupy the display space of the screen, and the reduction of the display range of the screen is avoided.

Description

Method for constructing virtual key of terminal, terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a method for constructing a virtual key of a terminal, the terminal and a computer readable storage medium.
Background
At present, screens of terminals such as smart phones and tablet computers are made of glass materials, the screens cannot be folded at will, and virtual keys on the terminals are arranged on the front of the screens and occupy the display space of the screens, so that the display range of the screens is reduced; meanwhile, the positions of the virtual keys are fixed, so that the positions of the virtual keys cannot be arranged according to the user requirements, the individual requirements of the user cannot be met, and the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a method for constructing a virtual key of a terminal, the terminal and a computer readable storage medium, and aims to solve the problem that the virtual key of the terminal occupies the screen display space in the prior art.
In order to achieve the above object, the present invention provides a method for constructing a virtual key of a terminal, which comprises the following steps:
when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen;
judging the size relationship between the bending angle and a preset angle, and determining a construction surface of the terminal virtual key according to the size relationship and the bending direction;
receiving virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position.
Optionally, the receiving the virtual key construction information, and determining a construction position of the construction surface according to the virtual key construction information, where the step of constructing the virtual key at the construction position includes:
when virtual key construction information is received, determining position information and virtual key type information in the virtual key construction information;
and determining the construction position of the construction surface according to the position information, and constructing the virtual key corresponding to the type information of the virtual key at the construction position.
Optionally, when the virtual key construction information is received, the step of determining the position information and the virtual key type information in the virtual key construction information includes:
when virtual key construction information is received, determining a current display scene of a terminal flexible screen, and determining virtual key type information according to the current display scene;
and determining the position information according to the triggering position of each virtual key to be constructed in the virtual key type information at the terminal.
Optionally, the determining, according to the virtual key construction information, a construction position of the construction surface includes, after the step of constructing the virtual key at the construction position:
associating the constructed virtual key with the current display scene;
and when the terminal flexible screen is detected to be switched to the current display scene, calling the corresponding virtual key.
Optionally, the bending direction includes a forward bending direction, and the step of determining the building surface of the terminal virtual key according to the size relationship and the bending direction includes:
when the bending direction is positive bending and the size relation is that the bending angle is smaller than a preset angle, determining that the back of the terminal is a construction surface of a terminal virtual key;
and when the bending direction is positive bending and the size relation is that the bending angle is larger than or equal to a preset angle, determining that the front face of the terminal is a construction face of the terminal virtual key.
Optionally, the bending direction includes reverse bending, and the step of determining the building surface of the terminal virtual key according to the magnitude relation and the bending direction includes:
when the bending direction is reverse bending and the size relation is that the bending angle is smaller than a preset angle, determining that the front face of the terminal is a construction face of a virtual key of the terminal;
and when the bending direction is reverse bending and the size relationship is that the bending angle is larger than or equal to a preset angle, determining that the back surface of the terminal is a construction surface of the terminal virtual key.
Optionally, the determining, according to the virtual key construction information, a construction position of the construction surface includes, after the step of constructing the virtual key at the construction position:
displaying prompt information whether to confirm that the virtual key is constructed at the construction position on a flexible screen of the terminal;
and when a confirmation instruction sent based on the prompt information is received, the construction of the virtual key of the terminal is completed.
Optionally, after the step of displaying a prompt message on the flexible screen of the terminal to confirm whether to construct the virtual key at the construction position, the method includes:
and when an adjusting instruction is received, adjusting the constructed virtual key according to the adjusting instruction.
In addition, in order to achieve the above object, the present invention further provides a terminal for constructing a virtual key of a terminal, where the terminal for constructing a virtual key of a terminal includes: the method comprises the following steps of (1) a memory, a processor, a communication bus and a construction program of a terminal virtual key stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing a construction program of the terminal virtual key so as to realize the following steps:
when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen;
judging the size relationship between the bending angle and a preset angle, and determining a construction surface of the terminal virtual key according to the size relationship and the bending direction;
receiving virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen;
judging the size relationship between the bending angle and a preset angle, and determining a construction surface of the terminal virtual key according to the size relationship and the bending direction;
receiving virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position.
According to the method for constructing the virtual key of the terminal, when the bending of the flexible screen of the terminal is detected, the bending direction and the bending angle of the flexible screen of the terminal are determined, the size relation between the bending angle and the preset angle is judged, and the construction surface of the virtual key of the terminal is determined according to the size relation and the bending direction; and when the virtual key construction information is received, determining a constructed construction position according to the virtual key construction information, and constructing the virtual key at the constructed position. According to the scheme, the construction surface of the virtual key is determined according to the bending direction and the bending angle of the terminal flexible screen, and the construction surface is determined according to the bending direction and the bending angle because different terminal users have different requirements on the bending direction and the bending angle of the terminal flexible screen, so that the individual requirements of the users can be reflected; when the virtual key is constructed in the area outside the screen, the virtual key does not occupy the display space of the screen, and the reduction of the display range of the screen is avoided; and the construction position of the construction surface is determined according to the virtual key construction information, the virtual key construction is carried out on the construction position, and the virtual key construction information is sent by a user, so that the user requirements are further met according to the determined construction position.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram illustrating a wireless communication system of the mobile terminal shown in FIG. 1;
FIG. 3 is a flowchart illustrating a method for constructing a virtual key of a terminal according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a method for constructing a virtual key of a terminal according to the present invention;
FIG. 5 is a flowchart illustrating a method for constructing a virtual key of a terminal according to a third embodiment of the present invention;
FIG. 6 is a schematic diagram of a first scenario of a method for constructing a virtual key of a terminal according to the present invention;
fig. 7 is a schematic diagram of a second scenario of a method for constructing a virtual key of a terminal according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110 (e.g., CPU), communication bus 1002, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Such as adding user interfaces, network interfaces, cameras, etc. Wherein the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The communication bus 1002 is used to enable communications between the processor 110 and the memory 109. The memory 109 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 109 may alternatively be a storage device separate from the processor 110 described above.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
As shown in fig. 1, the memory 109, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a construction program of a terminal virtual key. The operating system is a program for managing and controlling the hardware and software resources of the terminal for constructing the virtual keys of the terminal, and supports the operation of the hardware and software resources of the terminal for constructing the virtual keys of the terminal and other software and/or programs. The network communication module is used for realizing communication among the components in the memory 109 and communication with other hardware and software in the terminal for constructing the virtual keys of the terminal.
In the terminal for constructing the terminal virtual key shown in fig. 1, the processor 110 is configured to execute the program for constructing the terminal virtual key stored in the memory 109, and implement the following steps:
when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen;
judging the size relationship between the bending angle and a preset angle, and determining a construction surface of the terminal virtual key according to the size relationship and the bending direction;
receiving virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position.
Further, the step of receiving the virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position includes:
when virtual key construction information is received, determining position information and virtual key type information in the virtual key construction information;
and determining the construction position of the construction surface according to the position information, and constructing the virtual key corresponding to the type information of the virtual key at the construction position.
Further, when the virtual key construction information is received, the step of determining the position information and the virtual key type information in the virtual key construction information includes:
when virtual key construction information is received, determining a current display scene of a terminal flexible screen, and determining virtual key type information according to the current display scene;
and determining the position information according to the triggering position of each virtual key to be constructed in the virtual key type information at the terminal.
Further, the processor 110 is configured to execute the building program of the terminal virtual key stored in the memory 109 after the step of building the virtual key at the building position, and implement the following steps:
associating the constructed virtual key with the current display scene;
and when the terminal flexible screen is detected to be switched to the current display scene, calling the corresponding virtual key.
Further, the bending direction includes a forward bending, and the step of determining the building surface of the terminal virtual key according to the magnitude relation and the bending direction includes:
when the bending direction is positive bending and the size relation is that the bending angle is smaller than a preset angle, determining that the back of the terminal is a construction surface of a terminal virtual key;
and when the bending direction is positive bending and the size relation is that the bending angle is larger than or equal to a preset angle, determining that the front face of the terminal is a construction face of the terminal virtual key.
Further, the bending direction includes reverse bending, and the step of determining the building surface of the terminal virtual key according to the magnitude relation and the bending direction includes:
when the bending direction is reverse bending and the size relation is that the bending angle is smaller than a preset angle, determining that the front face of the terminal is a construction face of a virtual key of the terminal;
and when the bending direction is reverse bending and the size relationship is that the bending angle is larger than or equal to a preset angle, determining that the back surface of the terminal is a construction surface of the terminal virtual key.
Further, the processor 110 is configured to execute the building program of the terminal virtual key stored in the memory 109 after the step of building the virtual key at the building position, and implement the following steps:
displaying prompt information whether to confirm that the virtual key is constructed at the construction position on a flexible screen of the terminal;
and when a confirmation instruction sent based on the prompt information is received, the construction of the virtual key of the terminal is completed.
Further, after the step of displaying the prompt message whether to confirm the construction of the virtual key at the construction position on the flexible screen of the terminal, the processor 110 is configured to execute the construction program of the virtual key of the terminal stored in the memory 109, and implement the following steps:
and when an adjusting instruction is received, adjusting the constructed virtual key according to the adjusting instruction.
The specific implementation of the terminal for constructing the terminal virtual key of the present invention is basically the same as the following embodiments of the method for constructing the terminal virtual key, and is not described herein again.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the hardware structure and the communication device structure of the mobile terminal, the invention provides various embodiments of the method for constructing the virtual key of the terminal.
Referring to fig. 3, the present invention provides a method for constructing a virtual key of a terminal, where in a first embodiment of the method for constructing a virtual key of a terminal, the method for constructing a virtual key of a terminal includes:
step S10, when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen;
the virtual key of the terminal is constructed by the aid of the flexible screen, the virtual key is constructed on the terminal using the flexible screen, the terminal can be a smart phone or a tablet computer with a conversation function, and the flexible screen is adopted and has the advantages of being flexible and good in flexibility. After the terminal flexible screen is installed on the terminal, the terminal flexible screen and the terminal are of an integral structure, and if only the flexible screen can be bent and other structures cannot be bent, the bending effect of the terminal cannot be achieved. Therefore, the circuit board of the terminal is a flexible circuit board, and the shell frame is made of soft bendable materials, so that the terminal is integrally bent, namely the terminal flexible screen is bent to be substantially the bending of the terminal body. Different terminal users have different modes of using the terminal, the bending directions used by the different terminal users are different, and some terminal users are used to bend the flexible screen of the terminal towards the screen direction, so that the flexible screen has a visual effect of a compressed state; and other terminal users are used to bend the terminal flexible screen in a direction away from the screen, so that the flexible screen has a visual effect of a stretching state. The same different terminal users are used to different bending angles, some users are used to bend the terminal flexible screen to a greater extent, while other terminal users are used to bend the terminal flexible screen to a lesser extent. In order to meet the use habits of different users, the virtual keys are constructed according to the use habits. And detecting whether the terminal flexible screen is bent or not, taking the state of the machine body when the terminal flexible screen is not bent as a default state, and when the default state of the machine body is detected to be changed, indicating that the state of the machine body is changed, namely the terminal flexible screen is bent. It should be noted that the terminal flexible screen may be bent in the length direction of the terminal screen, or may be bent in the width direction of the terminal screen, which is not limited herein. When the bending of the flexible screen of the terminal is detected, the bending direction and the bending angle of the flexible screen of the terminal are determined. Specifically, the bending direction is determined by detecting the state of the terminal flexible screen, whether the terminal flexible screen is in a compression state or a stretching state is detected, and when the terminal flexible screen is in the compression state, the terminal flexible screen is bent towards the screen direction; when the screen is in a stretching state, the screen bends away from the screen. And for the bending angle, determining a bending line with the largest bending radian when the terminal flexible screen is bent, wherein the bending line can be a line parallel to the two ends of the terminal or a line intersecting with the two ends of the terminal, the terminal flexible screen is bent by taking the bending line as a boundary to form two intersecting curved surfaces, and the angle formed by the two intersecting curved surfaces is the bending angle obtained by bending the terminal flexible screen. The method and the device realize that when the terminal flexible screen is bent, the bending direction and the bending angle of the terminal flexible screen are determined, namely the use habit of a terminal user is determined, so that the virtual keys are constructed according to the use habit.
Step S20, judging the size relationship between the bending angle and a preset angle, and determining the construction surface of the terminal virtual key according to the size relationship and the bending direction;
understandably, no matter the terminal flexible screen is bent towards the screen or away from the screen, when the bending angle is too large, the space formed by bending between the two ends of the terminal is reduced, and if the virtual key is constructed in the inner curved surface bent between the two ends, the operation of a user is inconvenient. Therefore, the preset angle is preset in the embodiment and used for judging whether the bending angle is convenient for the user to operate. The size of the preset angle can be determined by collecting experiences of different users during operation, so that the operation requirements of most users are met. And comparing the bending angle formed by the terminal flexible screen with a preset angle, and judging the size relation between the bending angle and the preset angle. In addition, when a terminal user operates the terminal flexible screen, the operation object aimed at by the terminal user is the terminal flexible screen, and the terminal flexible screen is located at different positions due to different bending directions. When the bending direction faces to the screen, the terminal flexible screen is positioned in a space formed by bending between the two ends of the terminal; and when the bending direction deviates from the screen, the terminal flexible screen is positioned outside a space formed by bending between the two ends of the terminal. If the user operation is convenient to judge only according to the size relation between the bending angle and the preset angle, the construction surface of the virtual key is determined, and the construction of the virtual key is still unreasonable. Therefore, the embodiment determines the construction surface of the terminal virtual key by combining the size relationship between the bending angle and the preset angle and the bending direction, so that the construction of the terminal virtual key is more convenient for the operation and use of a terminal user.
And step S30, receiving the virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position.
Further, after the construction surface of the virtual key of the terminal is determined, whether key construction information is received or not is detected in real time, the key construction information is operation information of a terminal user's finger on the terminal, such as an operation position used by the terminal user on a terminal flexible screen and functions correspondingly realized by each operation position, and the operation position and the corresponding function are substantially the position and the corresponding function of the virtual key, namely the virtual key construction information. When the virtual key construction information is received, the construction position on the construction surface is determined according to the virtual key position included in the virtual key construction information, so that the virtual key is constructed on the construction position. In addition, in another embodiment, virtual keys can be constructed on the peripheral frame of the terminal, that is, the peripheral frame is used as a construction surface. Because the peripheral frames comprise an upper frame positioned at the top of the terminal, a lower frame positioned at the bottom of the terminal, a left frame on the left side of the terminal and a right frame on the right side of the terminal, when the peripheral frames are used as construction surfaces, specific frames need to be determined. Detecting the way of holding the terminal by a terminal user, and taking the left frame as a construction surface when the terminal is held by a left hand; when the terminal is held by a right hand, the right frame is used as a construction surface; when the terminal is held in the two-handed landscape mode, the upper frame and the lower frame are used as building surfaces. Specifically, the construction surface is determined according to the use habits of the user, after the surrounding frame is determined to be the construction surface, the operation information, namely the virtual key construction information, is further determined according to the operation habits of the user, so that the construction position of the construction surface is determined according to the virtual key construction information, and the virtual key is constructed at the construction position. Meanwhile, when the virtual keys are constructed by the peripheral frames, the peripheral frames are required to be formed by devices with induction functions, such as a touch screen or an inductor, and the like, so that operation instructions of users can be induced, the virtual keys can be constructed on the peripheral frames, and different requirements of different users are met.
According to the method for constructing the virtual key of the terminal, when the bending of the flexible screen of the terminal is detected, the bending direction and the bending angle of the flexible screen of the terminal are determined, the size relation between the bending angle and the preset angle is judged, and the construction surface of the virtual key of the terminal is determined according to the size relation and the bending direction; and when the virtual key construction information is received, determining a constructed construction position according to the virtual key construction information, and constructing the virtual key at the constructed position. According to the scheme, the construction surface of the virtual key is determined according to the bending direction and the bending angle of the terminal flexible screen, and the construction surface is determined according to the bending direction and the bending angle because different terminal users have different requirements on the bending direction and the bending angle of the terminal flexible screen, so that the individual requirements of the users can be reflected; when the virtual key is constructed in the area outside the screen, the virtual key does not occupy the display space of the screen, and the reduction of the display range of the screen is avoided; and the construction position of the construction surface is determined according to the virtual key construction information, the virtual key construction is carried out on the construction position, and the virtual key construction information is sent by a user, so that the user requirements are further met according to the determined construction position.
Further, in another embodiment of the method for constructing a virtual key of a terminal according to the present invention, the receiving virtual key construction information, and determining a construction position of a construction surface according to the virtual key construction information, the constructing a virtual key at the construction position includes:
step S31, when receiving the virtual key construction information, determining the position information and the virtual key type information in the virtual key construction information;
and step S32, determining the construction position of the construction surface according to the position information, and constructing the virtual key corresponding to the virtual key type information at the construction position.
Further, the virtual key construction information of this embodiment includes position information of the virtual key and virtual key type information, where the position information is used to indicate a construction position of the virtual key on the construction surface, and the virtual key type information is used to indicate a function implemented by each virtual key. When receiving the operation information of the terminal user as the key construction information, for example, the terminal user holds the terminal in the vertical screen mode with one hand or holds the terminal in the horizontal screen mode with two hands to operate. When a single hand is used for clamping a vertical screen, the fingers of the user are used to operate in a mode that the thumb and the little finger are positioned on the front side of the screen of the flexible screen of the terminal, the other three fingers are positioned on the back side of the screen of the flexible screen of the terminal to clamp the terminal, and the other three fingers can perform various types of operation on the flexible screen of the terminal. The operation information such as the operation position and the operation type used by the terminal user is the position information of the virtual key and the function which can be realized by the virtual key, namely the virtual key construction information. When the terminal is held in the corresponding double-hand transverse screen mode, the fingers are used to operate in a manner that, for example, thumbs of the two hands are positioned on the front side of the flexible screen of the terminal, and other four fingers are positioned on the back side of the flexible screen of the terminal, so that the terminal is held, the thumb and other fingers can be used for performing combined operation, the used operation positions and operation information such as operation types are the position information of the virtual keys and the functions which can be realized by the thumb, namely, the virtual keys are used for constructing information. After receiving the virtual key construction information, determining the position information and the virtual key type information. And determining the construction position of the virtual key on the construction surface according to the position information, and constructing the virtual key corresponding to the type information of the virtual key at the construction position. If the determined position information comprises three positions a, b and c, namely three virtual keys are required to be constructed, the functions realized by each virtual key indicated by each virtual key type information are returning to the previous page, returning to the main page and switching in multiple tasks, so that three virtual keys are constructed at the three positions a, b and c of the terminal, and the functions of the three virtual keys are returning to the previous page, returning to the main page and switching in multiple tasks respectively. Because the construction position and the virtual key type information are determined according to the operation of the terminal user and are attached to the requirements of the terminal user, the satisfaction degree of the terminal user is high.
Further, in another embodiment of the method for constructing a virtual key of a terminal according to the present invention, the step of determining the position information and the virtual key type information in the virtual key construction information when the virtual key construction information is received includes:
step S311, when virtual key construction information is received, determining a current display scene of the terminal flexible screen, and determining virtual key type information according to the current display scene;
step S312, according to the triggering position of each virtual key to be constructed in the virtual key type information at the terminal, determining position information.
Understandably, the functions realized by the virtual keys are related to the contents displayed by the terminal flexible screen, and if the contents displayed by the terminal flexible screen are WeChat interfaces, the virtual keys are WeChat, address list, discovery and my four items; when the displayed content is a game interface, the virtual key types are direction keys, operation keys and skill keys. The virtual key type information is related to the display content of the terminal flexible screen, so that when the virtual key construction information is received and the virtual key construction is needed, the current display scene of the terminal flexible screen is determined, the current display scene is the content currently displayed by the terminal flexible screen, the displayed content is different, the virtual key type information is determined according to the current display scene, namely the function needed by the current display scene to be realized by the virtual key, the walking action of a game character is realized by the virtual key in the direction needed by the game scene, the virtual key type information comprises the virtual key to be constructed, and the function of the current display scene is realized by the virtual key to be constructed. In addition, because the virtual key type information is used for indicating the functions realized by each virtual key, the habitual degree of different users to the positions of the functions realized by each virtual key is different, for example, a user used to operate with the right hand and a customer used to operate with the left hand, the user used to operate with the left hand arranges the virtual keys on the left side, and the user used to operate with the right hand arranges the virtual keys on the right side. Therefore, when the virtual keys in the determined virtual key type information are arranged, different positions need to be determined for different end users. Specifically, the operation information of the terminal user is key construction information, and the key construction information carries virtual key type information, so that the virtual key type information is determined by the operation information of the terminal user. And operating the terminal flexible screen by a terminal user, wherein the operation is a trigger instruction of each virtual key to be constructed in the virtual key type information at the terminal, and the trigger position of the operation is the arrangement position of the virtual key to be constructed, namely position information. And when the operation is realized, the position information is determined according to the triggering position of each virtual key to be constructed in the virtual key type information at the terminal.
Further, referring to fig. 4, on the basis of the first embodiment of the method for constructing a virtual key of a terminal of the present invention, a second embodiment of the method for constructing a virtual key of a terminal of the present invention is provided, in the second embodiment, the step of determining a construction position of a construction surface according to the virtual key construction information includes:
step S40, associating the constructed virtual key with the current display scene;
and step S50, when the terminal flexible screen is detected to be switched to the current display scene, calling the corresponding virtual key.
The method comprises the steps of determining virtual key type information according to a current display scene of a terminal flexible screen, and building a virtual key corresponding to the virtual key type information at a building position. Considering that the terminal user may have the same virtual key requirement when using the current display scene again later, the constructed virtual key is associated with the current display scene. When the terminal flexible screen is subsequently detected to be switched to the current display scene, the virtual key associated with the current display scene is called, the virtual key does not need to be reconstructed, and the utilization efficiency of the virtual key is improved.
Further, in another embodiment of the method for constructing a virtual key of a terminal according to the present invention, the bending direction includes a forward bending direction, and the step of determining the constructed surface of the virtual key of the terminal according to the magnitude relationship and the bending direction includes:
step S21, when the bending direction is positive bending and the size relation is that the bending angle is smaller than a preset angle, determining that the back of the terminal is a construction surface of the terminal virtual key;
and step S22, when the bending direction is positive bending and the size relationship is that the bending angle is larger than or equal to a preset angle, determining that the front face of the terminal is a construction face of the terminal virtual key.
The terminal flexible screen is taken as the positive direction bending towards the bending direction of the screen direction bending in the embodiment, and the terminal flexible screen is in the visual effect of a compressed state when the positive direction bending is carried out. At this time, if the bending range is too large, the bending angle formed by the two curved surfaces is too small, for example, less than 45 °, and if the virtual key is built in the inner curved surface bent between the two ends of the terminal, the operation of the terminal user is inconvenient because the bending angle is too small. Therefore, when the bending angle is positive bending and the size relation between the bending angle and the preset angle is that the bending angle is smaller than the preset angle, the back of the terminal is determined as the construction surface of the virtual key of the terminal. The back of the terminal is a surface opposite to the surface where the flexible screen is located, and the terminal is formed by a device with an induction function, such as a touch screen or an inductor, and can induce an operation instruction of a user so as to ensure that the construction of a virtual key is realized according to operation information. The virtual keys of the terminal are constructed on the back of the terminal, so that the virtual keys are prevented from being constructed on the front of the flexible screen, and the operation is not easy due to the fact that the bending angle is too small. When the relationship between the bending angle and the predetermined angle is that the bending angle is greater than or equal to the predetermined angle, please refer to fig. 6, determine the front surface of the terminal as the construction surface of the virtual key of the terminal. The front face of the terminal is the face where the flexible screen is located, and at the moment, due to the fact that the bending angle is large, if the bending angle is larger than 45 degrees, the virtual key is directly constructed on the face where the flexible screen is located, and the terminal is convenient for a user to operate intuitively.
Further, in another embodiment of the method for constructing a virtual key of a terminal according to the present invention, the bending direction includes reverse bending, and the step of determining the constructed surface of the virtual key of the terminal according to the magnitude relationship and the bending direction includes:
step S23, when the bending direction is reverse bending and the size relationship is that the bending angle is smaller than a preset angle, determining that the front face of the terminal is a construction face of the terminal virtual key;
and step S24, when the bending direction is reverse bending and the size relationship is that the bending angle is larger than or equal to a preset angle, determining that the back surface of the terminal is a construction surface of the terminal at the virtual night.
Further, in this embodiment, a bending direction in which the terminal flexible screen is bent away from the screen direction is taken as a reverse bending, and the terminal flexible screen is in a stretched state when the terminal flexible screen is bent in the reverse direction. At this time, if the bending range is too large, the bending angle formed by the two curved surfaces is too small, for example, less than 45 °, and if the virtual key is built in the inner curved surface bent between the two ends of the terminal, the operation of the terminal user is inconvenient because the bending angle is too small. Therefore, when the bending angle is reverse bending and the size relation between the bending angle and the preset angle is that the bending angle is smaller than the preset angle, the front face of the terminal is determined as the construction face of the virtual key of the terminal. The front side of the terminal is the flexible screen, the virtual key of the terminal is constructed on the front side of the terminal, and the problem that the virtual key is constructed on the back side opposite to the flexible screen and is not easy to operate due to the fact that the bending angle is too small is avoided. When the relationship between the bending angle and the predetermined angle is that the bending angle is greater than or equal to the predetermined angle, please refer to fig. 7, the back side of the terminal is determined as the construction surface of the virtual key of the terminal. The back of the terminal is a surface opposite to the flexible screen, and is formed by a device with an induction function, such as a touch screen or an inductor, and the like, and can induce an operation instruction of a user so as to ensure that the construction of the virtual key is realized according to the operation information. Because the bending angle of the terminal flexible screen is large, such as larger than 45 degrees, the virtual keys are constructed on the surface opposite to the flexible screen, the display space of the flexible screen is not occupied, and the display range of the flexible screen is maximized.
Further, referring to fig. 5, on the basis of the first or second embodiment of the method for constructing a virtual key of a terminal according to the present invention, a third embodiment of the method for constructing a virtual key of a terminal according to the present invention is provided, in the third embodiment, the step of determining a construction position of a construction surface according to the virtual key construction information includes:
step S60, displaying prompt information whether to confirm that the virtual key is constructed at the construction position on a terminal flexible screen;
and step S70, completing the construction of the terminal virtual key when receiving the confirmation instruction sent based on the prompt message.
Understandably, after the construction operation of the virtual key is performed at the construction position of the construction surface, the constructed virtual key may not meet the requirements of the terminal user, for example, the position of the constructed virtual key does not meet the requirements, or the function of the virtual key at a certain position does not meet the requirements, or the number of constructed virtual keys does not meet the requirements. And displaying prompt information on the flexible screen of the terminal after the construction operation, wherein the prompt information is used for confirming the virtual key constructed at the construction position by a terminal user and is displayed on the flexible screen of the terminal in a dialog box mode. And the terminal user checks the constructed virtual key according to the prompt information, and sends a confirmed confirmation instruction to the displayed dialog box when the virtual key meets the requirement of the virtual key. And when a confirmation instruction sent based on the prompt message is received, the constructed virtual key is proved to meet the requirements of the terminal user, and the construction of the terminal virtual key is completed. Furthermore, the constructed virtual key may not meet the requirements of the terminal user, so that the step of displaying a prompt message on the terminal flexible screen to confirm whether to construct the virtual key at the construction position comprises the following steps:
and step S80, when the adjusting instruction is received, adjusting the constructed virtual key according to the adjusting instruction.
When the constructed virtual key cannot meet the requirements of the terminal user, the terminal user can adjust the constructed virtual key through operation. The type of operation is determined by the type which does not meet the requirements of the end user, for example, when the position of the constructed virtual key does not meet the requirements, the constructed virtual key can be moved. Or when the function of the virtual key at a certain position does not meet the requirement, the terminal user requires that the function of the virtual key at the position is to return to the previous page, but the actually realized function is to return to the main page. The terminal stores the setting mode of the virtual key function, and when the function of the virtual key needs to be set, the setting mode can be called from the terminal and displayed on the flexible screen. If the setting mode for returning to the previous page is to press the virtual key for a long time, and the setting mode for returning to the main page is to double-click the virtual key. According to the setting mode, the virtual key which actually realizes the function of returning to the main page is subjected to long-time pressing operation, so that the function of the virtual key is set to be the last page required by the terminal user to return. And taking the received operation as an adjusting instruction, and firmly adjusting the constructed virtual key according to the adjusting instruction so as to meet the requirements of the terminal user.
The present invention provides a computer readable storage medium storing one or more programs, the one or more programs further executable by one or more processors for:
when the bending of the terminal flexible screen is detected, determining the bending direction and the bending angle of the terminal flexible screen;
judging the size relationship between the bending angle and a preset angle, and determining a construction surface of the terminal virtual key according to the size relationship and the bending direction;
receiving virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position.
Further, the step of receiving the virtual key construction information, determining the construction position of the construction surface according to the virtual key construction information, and constructing the virtual key at the construction position includes:
when virtual key construction information is received, determining position information and virtual key type information in the virtual key construction information;
and determining the construction position of the construction surface according to the position information, and constructing the virtual key corresponding to the type information of the virtual key at the construction position.
Further, when the virtual key construction information is received, the step of determining the position information and the virtual key type information in the virtual key construction information includes:
when virtual key construction information is received, determining a current display scene of a terminal flexible screen, and determining virtual key type information according to the current display scene;
and determining the position information according to the triggering position of each virtual key to be constructed in the virtual key type information at the terminal.
Further, the determining a build position of a build surface from virtual key build information, after the step of building a virtual key at the build position, the one or more programs being further executable by the one or more processors for:
associating the constructed virtual key with the current display scene;
and when the terminal flexible screen is detected to be switched to the current display scene, calling the corresponding virtual key.
Further, the bending direction includes a forward bending, and the step of determining the building surface of the terminal virtual key according to the magnitude relation and the bending direction includes:
when the bending direction is positive bending and the size relation is that the bending angle is smaller than a preset angle, determining that the back of the terminal is a construction surface of a terminal virtual key;
and when the bending direction is positive bending and the size relation is that the bending angle is larger than or equal to a preset angle, determining that the front face of the terminal is a construction face of the terminal virtual key.
Further, the bending direction includes reverse bending, and the step of determining the building surface of the terminal virtual key according to the magnitude relation and the bending direction includes:
when the bending direction is reverse bending and the size relation is that the bending angle is smaller than a preset angle, determining that the front face of the terminal is a construction face of a virtual key of the terminal;
and when the bending direction is reverse bending and the size relationship is that the bending angle is larger than or equal to a preset angle, determining that the back surface of the terminal is a construction surface of the terminal virtual key.
Further, the determining a build position of a build surface from virtual key build information, after the step of building a virtual key at the build position, the one or more programs being further executable by the one or more processors for:
displaying prompt information whether to confirm that the virtual key is constructed at the construction position on a flexible screen of the terminal;
and when a confirmation instruction sent based on the prompt information is received, the construction of the virtual key of the terminal is completed.
Further, after the step of displaying a prompt on the flexible screen of the terminal to confirm whether to construct the virtual key at the construction position, the one or more programs may be further executable by the one or more processors to:
and when an adjusting instruction is received, adjusting the constructed virtual key according to the adjusting instruction.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of each embodiment of the method for constructing a virtual key of a terminal, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for constructing a virtual key of a terminal is characterized by comprising the following steps:
when the bending of the terminal flexible screen is detected, determining the bending direction of the terminal flexible screen and the bending angle between two bent curved surfaces, wherein the bending direction comprises positive bending;
when the bending direction is positive bending and the bending angle is smaller than a preset angle, determining that the back surface of the terminal is a construction surface of a virtual key of the terminal;
when the bending direction is positive bending and the bending angle is larger than or equal to a preset angle, determining that the front face of the terminal is a construction face of a terminal virtual key;
when virtual key construction information is received, determining position information and virtual key type information in the virtual key construction information;
and determining the construction position of the construction surface according to the position information, and constructing the virtual key corresponding to the type information of the virtual key at the construction position.
2. The method for constructing a virtual key of a terminal according to claim 1, wherein the step of determining the position information and the virtual key type information in the virtual key construction information when the virtual key construction information is received comprises:
when virtual key construction information is received, determining a current display scene of a terminal flexible screen, and determining virtual key type information according to the current display scene;
and determining the position information according to the triggering position of each virtual key to be constructed in the virtual key type information at the terminal.
3. The method for constructing a virtual key of a terminal according to claim 2, wherein the step of determining the construction position of the construction surface according to the position information comprises, after the step of constructing the virtual key corresponding to the virtual key type information at the construction position:
associating the constructed virtual key with the current display scene;
and when the terminal flexible screen is detected to be switched to the current display scene, calling the corresponding virtual key.
4. The method for constructing the virtual key of the terminal according to any one of claims 1 to 3, wherein the bending direction includes a reverse bending, and the step of determining the bending direction of the flexible screen of the terminal and the bending angle between two curved surfaces of the bending when the bending of the flexible screen of the terminal is detected comprises the following steps:
when the bending direction is reverse bending and the bending angle is smaller than a preset angle, determining that the front face of the terminal is a construction face of a virtual key of the terminal;
and when the bending direction is reverse bending and the bending angle is larger than or equal to a preset angle, determining that the back surface of the terminal is a construction surface of the terminal virtual key.
5. A method for constructing a virtual key for a terminal according to any one of claims 1 to 3, wherein said determining a construction position of a construction surface based on the virtual key construction information comprises, after the step of constructing a virtual key at said construction position:
displaying prompt information whether to confirm that the virtual key is constructed at the construction position on a flexible screen of the terminal;
and when a confirmation instruction sent based on the prompt information is received, the construction of the virtual key of the terminal is completed.
6. The method for constructing the virtual key of the terminal as claimed in claim 5, wherein the step of displaying the prompt message on the flexible screen of the terminal to confirm whether to construct the virtual key at the construction position comprises:
and when an adjusting instruction is received, adjusting the constructed virtual key according to the adjusting instruction.
7. The terminal for constructing the virtual key of the terminal is characterized by comprising the following steps: the method comprises the following steps of (1) a memory, a processor, a communication bus and a construction program of a terminal virtual key stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a building program of the terminal virtual key to implement the steps of the method for building a terminal virtual key according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a terminal virtual key construction program, which when executed by a processor implements the steps of the terminal virtual key construction method according to any one of claims 1 to 6.
CN201711234822.6A 2017-11-30 2017-11-30 Method for constructing virtual key of terminal, terminal and computer readable storage medium Active CN108037887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711234822.6A CN108037887B (en) 2017-11-30 2017-11-30 Method for constructing virtual key of terminal, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711234822.6A CN108037887B (en) 2017-11-30 2017-11-30 Method for constructing virtual key of terminal, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108037887A CN108037887A (en) 2018-05-15
CN108037887B true CN108037887B (en) 2021-06-18

Family

ID=62094488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711234822.6A Active CN108037887B (en) 2017-11-30 2017-11-30 Method for constructing virtual key of terminal, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108037887B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992189B (en) * 2019-02-22 2021-05-11 华为技术有限公司 Screen control method, electronic device and storage medium
CN109976628A (en) * 2019-02-27 2019-07-05 Oppo广东移动通信有限公司 Adjust method, electronic equipment and the storage medium of virtual key display position
CN110035154B (en) * 2019-04-15 2021-02-02 珠海格力电器股份有限公司 Virtual key interaction method and system based on folding screen mobile terminal and mobile terminal
CN110413181B (en) * 2019-07-22 2021-04-06 维沃移动通信有限公司 Mobile terminal control method and device and mobile terminal
CN110456864A (en) * 2019-10-08 2019-11-15 芯海科技(深圳)股份有限公司 Control method, flexible apparatus and the storage medium of flexible apparatus
CN111142767B (en) * 2019-12-16 2021-06-01 华为技术有限公司 User-defined key method and device of folding device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382822A (en) * 2008-10-31 2009-03-11 华硕电脑股份有限公司 Folding type mobile operation apparatus and operation method applying thereon
CN101470461A (en) * 2007-12-26 2009-07-01 怡利电子工业股份有限公司 Ultra-folding portable electronic device
CN101674361A (en) * 2008-09-09 2010-03-17 Lg电子株式会社 Mobile terminal and operation method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470461A (en) * 2007-12-26 2009-07-01 怡利电子工业股份有限公司 Ultra-folding portable electronic device
CN101674361A (en) * 2008-09-09 2010-03-17 Lg电子株式会社 Mobile terminal and operation method thereof
CN101382822A (en) * 2008-10-31 2009-03-11 华硕电脑股份有限公司 Folding type mobile operation apparatus and operation method applying thereon

Also Published As

Publication number Publication date
CN108037887A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN107566721B (en) Information display method, terminal and computer readable storage medium
CN107943400B (en) Double-sided screen switching method, mobile terminal and readable storage medium
CN108037887B (en) Method for constructing virtual key of terminal, terminal and computer readable storage medium
CN108196804B (en) Flexible screen-based screen splitting method, terminal and computer storage medium
CN108322612B (en) Icon display method, mobile terminal and computer-readable storage medium
CN108108081B (en) Information display method based on double-sided screen, mobile terminal and readable storage medium
CN107948360B (en) Shooting method of flexible screen terminal, terminal and computer readable storage medium
CN108762630B (en) Terminal control method, flexible terminal and computer readable storage medium
CN107979667B (en) Dual-screen display method, mobile terminal and computer-readable storage medium
CN108449513B (en) Interactive regulation and control method, equipment and computer readable storage medium
CN108172161B (en) Display method based on flexible screen, mobile terminal and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN108363455B (en) Working mode switching method, mobile terminal and computer readable storage medium
CN112667181A (en) Screen projection method, screen projection equipment, screen projection control system and storage medium
CN108196777B (en) Flexible screen application method and device and computer readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN108334266B (en) Control method of flexible terminal, flexible terminal and computer readable storage medium
CN111190559A (en) Screen projection control synchronization method, mobile terminal and computer readable storage medium
CN108076221B (en) Terminal control method, terminal and computer readable storage medium
CN108200327B (en) Shooting control method, flexible screen terminal and computer readable storage medium
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN109683778B (en) Flexible screen control method and device and computer readable storage medium
CN110096213B (en) Terminal operation method based on gestures, mobile terminal and readable storage medium
CN112000410A (en) Screen projection control method and device and computer readable storage medium
CN109491577B (en) Holding interaction method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant