Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example one
An embodiment of the present invention provides a display control method, and as shown in fig. 1, a processing flow of the method may include the following steps:
step 101, receiving a first control instruction.
And 102, if the current interface is an application program interface, locking the switching function between the horizontal screen mode and the vertical screen mode.
103, if the current interface is a system interface, determining a target display mode according to the current display mode, and displaying a shortcut icon of an application program which has a unique display mode and is in the target display mode in the system; the display mode comprises a horizontal screen mode and a vertical screen mode.
In the embodiment of the invention, in the application program interface, the switching function between the horizontal screen mode and the vertical screen mode is locked through the first control instruction, so that the switching of the display mode can be prevented, and the display mode is locked into a fixed mode.
Example two
The embodiment of the invention provides a display control method, and an execution main body of the method can be a mobile terminal (such as a mobile phone, a tablet computer and the like).
The process flow shown in fig. 1 will be described in detail below with reference to embodiments, and the contents may be as follows.
Step 101, the mobile terminal receives a first control instruction.
The first control instruction is a preset instruction for triggering the processing ofsteps 102 and 103, and may be any control instruction. For example, the first control instruction may be a control instruction triggered by clicking a certain key on the body of the mobile terminal, and may also be a control instruction triggered by touching a screen.
Preferably, the first control instruction may be a control instruction triggered when a connection line between two touch points on the screen rotates and the rotation angle reaches a preset angle threshold. Here, the first control command is a control command triggered by multi-touch. At least one of the two touch points slides, and a connecting line between the two touch points rotates in the process of sliding of one touch point or the two touch points. The preset angle threshold may be set according to actual requirements, such as 80 °. And triggering a first control instruction when the rotation angle of the connecting line reaches the preset angle threshold.
In implementation, a user may touch a screen of the mobile terminal with two fingers, and then perform hand rotation to slide one of the fingers on the screen or both the fingers on the screen, where a connection line of two contacts starts to rotate, and when the connection line slides to a certain distance, a rotation angle of the connection line between the two contacts reaches a preset angle threshold, a first control instruction is triggered.
And 102, if the current interface is an application program interface, locking the switching function between the horizontal screen mode and the vertical screen mode by the mobile terminal.
The application program interface, i.e., the interface provided by the application program, may be a main interface or a sub-interface of the application program. The display mode includes a landscape mode and a portrait mode. The landscape mode is a display mode in which the long side direction of the mobile terminal is the left-right direction and the wide side direction is the up-down direction. The vertical screen mode is a display mode in which the long side direction of the mobile terminal is the up-down direction and the wide side direction is the left-right direction.
The execution process of this step may be: and if the current interface is the application program interface, the mobile terminal locks the switching function between the horizontal screen mode and the vertical screen mode in the current display mode. And if the current display mode is the landscape mode, locking the display mode to the landscape mode. And if the current display mode is the vertical screen mode, locking the display mode to be the vertical screen mode. And locking the switching function between the horizontal screen mode and the vertical screen mode, namely locking the display mode. The process of locking the display mode may be to prevent execution of all instructions for switching the display mode, may be to prevent execution in an application program, or may be to prevent execution in a system program.
Alternatively, the step may be performed by: and if the current interface is an application program interface, the mobile terminal switches the current display mode and locks the switching function between the horizontal screen mode and the vertical screen mode after the switching is finished. And if the current display mode is the horizontal screen mode, switching the display mode into the vertical screen mode, and locking the display mode in the vertical screen mode. And if the current display mode is the vertical screen mode, switching the display mode into the horizontal screen mode, and locking the display mode in the horizontal screen mode.
After thestep 102 is completed, the unlocking process may also be performed, and the corresponding process may be as follows:
first, the mobile terminal receives a second control instruction.
The second control instruction is a preset instruction for releasing the display mode lock, and may be any control instruction. For example, the second control instruction may be a control instruction triggered by clicking a certain key on the body of the mobile terminal, or may be a control instruction triggered by touching a screen. The second control instruction may be the same as the first control instruction.
Preferably, the second control instruction may be a control instruction triggered when a connection line between two touch points on the screen rotates and the rotation angle reaches a preset angle threshold. The corresponding description may refer to the description of the first control instruction.
Alternatively, the second control instruction may also be a control instruction triggered when a preset unlock button is clicked. For example, a preset unlock button may be provided in a menu displayed by a menu key trigger of the mobile phone.
Then, the mobile terminal unlocks the switching function between the landscape mode and the portrait mode.
The lock of the switching function between the landscape mode and the portrait mode, that is, the lock of the display mode is released. The processing of releasing the lock on the display mode may be canceling the blocking of the display mode switching instruction and no longer blocking the execution of the instruction to perform the display mode switching.
And 103, if the current interface is a system interface, the mobile terminal determines a target display mode according to the current display mode and displays a shortcut icon of an application program which has a unique display mode and is the target display mode in the system.
The system interface is an interface provided by a system such as a system desktop. Each application program may be provided with a corresponding display mode, and the display mode of the application program may be a landscape screen mode (for example, the display modes of some racing games, video playing applications, and many applications in a tablet computer are all landscape screen modes), may be a portrait screen mode (for example, the display modes of many applications in a vertical flight game, reading applications, and a mobile phone are all portrait screen modes), and may also be a combination of the landscape screen mode and the portrait screen mode (for example, the display modes of a browser application, a dial plate application, a short message application, and the like are all a combination of the landscape screen mode and the portrait screen mode). The mobile terminal may previously store a display mode of each application program installed therein. The display mode is only the application program, namely the display mode is not the combination of the horizontal screen mode and the vertical screen mode, but the application program of the single horizontal screen mode or the vertical screen mode.
When this step is executed, the processing for determining the target display mode according to the current display mode may adopt two different processing modes as follows:
in the first mode, the current display mode is determined to be the target display mode. And acquiring the current display mode of the mobile terminal, and setting the display mode as a target display mode.
And secondly, determining that the display mode except the current display mode is the target display mode. If the current display mode is the horizontal screen mode, setting the vertical screen display mode as the target display mode; and if the current display mode is the vertical screen mode, setting the horizontal screen display mode as the target display mode.
After the target display mode is determined, an application program with a unique display mode and the display mode being the target display mode can be selected, and then a shortcut icon of the selected application program is displayed. When the shortcut icon is displayed, a temporary window can be generated, and the shortcut icon of the selected application program is displayed in the generated temporary window. Clicking on the shortcut icon in the temporary window may launch the corresponding application. And the temporary window can be closed by clicking an area outside the temporary window or clicking a cancel key of the mobile terminal, and the shortcut icon is cancelled.
The application programs are screened through the processing mode, the selected shortcut icons of the application programs with the display modes meeting the conditions are displayed in a centralized mode, and the query efficiency of the shortcut icons of the application programs can be improved.
In the embodiment of the invention, in the application program interface, the switching function between the horizontal screen mode and the vertical screen mode is locked through the first control instruction, so that the switching of the display mode can be prevented, and the display mode is locked into a fixed mode.
EXAMPLE III
Based on the same technical concept, an embodiment of the present invention further provides a display control apparatus, as shown in fig. 2, the apparatus including:
a receiving module 210, configured to receive a first control instruction;
a locking module 220, configured to lock a switching function between the landscape mode and the portrait mode if the current interface is an application program interface;
the display module 230 is configured to determine a target display mode according to a current display mode if the current interface is a system interface, and display a shortcut icon of an application program, which has a unique display mode in the system and is the target display mode; wherein the display mode includes a landscape mode and a portrait mode.
Preferably, the first control instruction is: and a control instruction is triggered when a connecting line between two touch points on the screen rotates and the rotating angle reaches a preset angle threshold value.
Preferably, the locking module 220 is configured to:
and if the current interface is an application program interface, switching the current display mode, and locking the switching function between the horizontal screen mode and the vertical screen mode after the switching is finished.
Preferably, the locking module 220 is further configured to:
receiving a second control instruction;
and unlocking the switching function between the horizontal screen mode and the vertical screen mode.
Preferably, the second control instruction is: a control instruction is triggered when a connecting line between two touch points on the screen rotates and the rotating angle reaches a preset angle threshold; or a control instruction triggered when a preset unlocking button is clicked.
Preferably, the display module 230 is configured to:
determining that the current display mode is the target display mode; or,
and determining that the display mode other than the current display mode is the target display mode.
In the embodiment of the invention, in the application program interface, the switching function between the horizontal screen mode and the vertical screen mode is locked through the first control instruction, so that the switching of the display mode can be prevented, and the display mode is locked into a fixed mode.
Example four
Referring to fig. 3, a schematic structural diagram of a terminal with a touch-sensitive surface according to an embodiment of the present invention is shown, where the terminal may be used to implement the sliding control method provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 700 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. 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), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 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 terminal 700, and the like. Further, the memory 120 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. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 700, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 3, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 700 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 700 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and may be used for applications of recognizing gestures of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor that are further configurable to the terminal 700, which are not described herein again.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 700. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the terminal 700.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 700 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 700 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 700, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 700 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 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 180.
The terminal 700 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 700 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal 700 is a touch screen display, the terminal 700 further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
receiving a first control instruction;
if the current interface is an application program interface, locking the switching function between the horizontal screen mode and the vertical screen mode;
if the current interface is a system interface, determining a target display mode according to the current display mode, and displaying a shortcut icon of an application program which has a unique display mode in the system and is the target display mode; wherein the display mode includes a landscape mode and a portrait mode.
Preferably, the first control instruction is: and a control instruction is triggered when a connecting line between two touch points on the screen rotates and the rotating angle reaches a preset angle threshold value.
Preferably, if the current interface is an application program interface, the locking of the switching function between the landscape mode and the portrait mode includes:
and if the current interface is an application program interface, switching the current display mode, and locking the switching function between the horizontal screen mode and the vertical screen mode after the switching is finished.
Preferably, after the locking the switching function between the landscape mode and the portrait mode, the method further includes:
receiving a second control instruction;
and unlocking the switching function between the horizontal screen mode and the vertical screen mode.
Preferably, the second control instruction is: a control instruction is triggered when a connecting line between two touch points on the screen rotates and the rotating angle reaches a preset angle threshold; or a control instruction triggered when a preset unlocking button is clicked.
Preferably, the determining the target display mode according to the current display mode includes:
determining that the current display mode is the target display mode; or,
and determining that the display mode other than the current display mode is the target display mode.
In the embodiment of the invention, in the application program interface, the switching function between the horizontal screen mode and the vertical screen mode is locked through the first control instruction, so that the switching of the display mode can be prevented, and the display mode is locked into a fixed mode.
It should be noted that: in the display control device provided in the above embodiment, when the display mode is controlled, only the division of the above functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the display control apparatus and the display control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
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.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.