Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a display control method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, when the flexible screen of the mobile terminal is detected to be bent, acquiring target content displayed in a bent area on a display interface of the flexible screen.
The display control method provided by the embodiment of the invention is mainly applied to a mobile terminal provided with a flexible screen and used for controlling the display state of the flexible screen in a bent state.
Specifically, the mode of detecting that the flexible screen is bent can be set according to actual needs. For example, in this embodiment, the flexible screen may be a foldable capacitive screen, and whether the flexible screen is bent or not and a bending area are determined by detecting a capacitance value of a capacitor in the capacitive screen. In addition, a pressure sensor can be arranged on the flexible screen, and whether the flexible screen is bent or not and a bending area can be determined according to bending stress detected by the pressure sensor.
In this embodiment, when it is detected that the flexible screen is bent, the bent position may be obtained, so as to determine coordinates of the bent region, and obtain target content displayed in the bent region in the current display interface of the flexible screen according to the coordinates of the bent region.
Specifically, different applications correspond to different display interfaces on the flexible display screen. Generally, the display interface for an application is divided into two displays.
In the first display scene, the user has few or simple operations on the display interface, but the displayed content cannot be lost or lost. For example, the application is a play-type application or a reading-type application, and the application belongs to a first display scene under a display interface of playing videos, electronic books, photo album previews and the like.
And in the second display scene, more operations are performed on the display interface by the user. For example, the photo interface belongs to the second display scenario.
In the second display scenario, the target content has a high possibility of including the functional touch control, and in this embodiment, the display scenario of the display interface may be detected first, and when it is determined that the target content belongs to the second display scenario, it is detected whether the target content includes the functional touch control. Of course, the scene may not be detected, and whether the target content includes the functional touch control may be directly detected.
Andstep 102, if the target content comprises a functional touch control, controlling the functional touch control to be displayed in a first plane area.
In this step, the display area of the flexible screen includes the bending area and the first and second plane areas separated by the bending area, and the area of the first plane area is smaller than or equal to the area of the second plane area. The target content including the functional touch control may be understood as a part or all of the target content including the functional touch control.
It should be noted that the number of the bending regions may be one or more, and the area and the position of the bending region are not further limited and described herein. As shown in fig. 2 and 3, one bending region is exemplified.
For example, the current display interface is a photographing interface, and the interface normally displayed in a case where the flexible screen is not bent is shown in fig. 2. If the display interface shown in fig. 3 is formed after the right side of the flexible screen is bent, specifically, in fig. 3, the flexible screen includes a first planar area a, a bent area B, and a second planar area C, and the first planar area a, the bent area B, and the second planar area C are sequentially arranged from right to left. Wherein, the functional touch control (e.g. the circle in fig. 3) is located in the first plane area a and the bending area B at the same time. At this time, the functional touch control may be controlled to be displayed in the first planar area a, and specifically, the functional touch control after the display state is adjusted is as shown in fig. 4. Therefore, in the display state of fig. 4, the functional touch control can be better operated.
It should be understood that the functional touch controls are not limited to the circular buttons shown in fig. 3 and may include buttons of other shapes or other functions, which are not listed here.
In this way, in the embodiment of the present invention, when it is detected that the flexible screen of the mobile terminal is bent, the target content displayed in the bent area on the display interface of the flexible screen is obtained; if the target content comprises a functional touch control, controlling the functional touch control to be displayed in a first plane area; the display area of the flexible screen comprises the bending area and the first plane area and the second plane area which are formed by the bending area in a separating mode, and the area of the first plane area is smaller than or equal to that of the second plane area. Due to the fact that the display state of the functional touch control in the target content is adjusted, operation of a user can be facilitated, and the display effect of the flexible screen after bending is improved. Meanwhile, the functional touch control is displayed in the first plane area, the display size of the picture in the second plane area can be ensured, the situation that the picture displayed in the second plane area is shielded by the functional touch control is avoided, and the use experience of a user is improved.
It should be noted that, there may be various ways to control the functional touch control to be displayed in the first planar area, for example, in this embodiment, the controlling the functional touch control to be displayed in the first planar area includes:
adjusting the display position and/or display size of the functional touch control so that the functional touch control is located in the first plane area.
Specifically, the display position and the display size are determined according to the size and the position of the first plane area. As shown in fig. 4, both the size and the position of the functional touch control (the circle in fig. 4) may be adjusted such that the functional touch control is located within the first planar area. In this embodiment, the display position and the display size can be adjusted comprehensively, and the flexibility of adjustment is high, so that the function touch control can be displayed to the maximum extent while the function touch control is located in the first plane area.
Furthermore, if the functional touch control does not exist in the target content, the whole display interface can be adjusted. Specifically, after thestep 101, the method further includes:
if the target content does not include the functional touch control, adjusting the display position and the display size of the display interface so that the display interface is located in the second plane area.
In this embodiment, in the general display interface in the first display scenario, the target content does not include the functional touch control. As shown in fig. 5 and 6, when the application is an electronic book reading application, the application displays a display interface for reading an electronic book, and it is detected that the target content does not include a functional touch control. In this scenario, in order to avoid the text being displayed in the bent area, the display interface may be controlled to be located in the second planar area.
Specifically, as shown in fig. 6, the flexible screen is bent at both left and right sides, and the flexible screen includes a first planar area a1, a bent area B1, a second planar area C, a bent area B2, and a first planar area a2, and the first planar area a1, the bent area B1, the second planar area C, the bent area B2, and the first planar area a2 are sequentially arranged from right to left. In this embodiment, all the display interfaces are placed in the middle second planar area C for displaying, so that the bending area can be prevented from affecting the viewing of the display content, and the display effect of the picture is improved.
It can be understood that the adjustment of the display interface can perform comprehensive adjustment of the display position and the display size, thereby improving the flexibility of adjustment to ensure that the display position is located in the second planar area and the interface is displayed in the largest display window.
Specifically, the adjusting the display position and the display size of the display interface includes:
determining an area of the second planar region;
determining a scaling ratio according to the area of the second plane area and the area of the display interface;
and adjusting the size of the display interface according to the scaling, and controlling the adjusted display interface to be displayed in the second plane area.
In order to prevent the distortion of the display interface, in this embodiment, the display interface may be scaled down in an equal ratio according to the scaling; and then determining the position of the reduced display interface according to the position of the second plane area, and finally enabling the adjusted display interface to be located in the second plane area. Specifically, as shown in fig. 6, the adjusted display interface is displayed in the middle second planar area C. In this embodiment, the scaling is determined according to the area of the second plane region and the area of the display interface, so that the display of the scaled display interface with the maximized display area can be ensured.
Further, in this embodiment, whether to adjust the display interface may also be determined according to the display state of the flexible screen. Specifically, in this embodiment, thestep 102 includes:
step 1021, when the flexible screen of the mobile terminal is detected to be bent, acquiring the display state of the flexible screen;
and 1022, if the flexible screen is in a bright screen state, acquiring target content displayed on the bending area by the display interface of the flexible screen.
In the embodiment of the invention, the on-off state of the current flexible screen can be acquired through the system interface of the mobile terminal. When the flexible screen is in a bright screen state, the display interface needs to be adjusted; when the flexible screen is in the screen-off state, no treatment is carried out. In the embodiment, the display interface is adjusted only when the flexible screen is in the bright screen state, so that the electric quantity loss of the mobile terminal in the screen-off standby state can be reduced, and the standby time is effectively prolonged.
It should be noted that, various optional implementations described in the embodiments of the present invention may be implemented in combination with each other or implemented separately, and the embodiments of the present invention are not limited thereto.
Referring to fig. 7, fig. 7 is a structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 7, the mobile terminal is provided with a flexible screen, and includes:
an obtainingmodule 701, configured to obtain target content displayed in a bending area on a display interface of a flexible screen when it is detected that the flexible screen of the mobile terminal is bent;
afirst control module 702, configured to control a functional touch control to be displayed in a first planar area if the target content includes the functional touch control;
the display area of the flexible screen comprises the bending area and the first plane area and the second plane area which are formed by the bending area in a separating mode, and the area of the first plane area is smaller than or equal to that of the second plane area.
Optionally, thefirst control module 702 is specifically configured to: if the target content does not include the functional touch control, adjusting the display position and/or the display size of the functional touch control so that the functional touch control is located in the first plane area.
Optionally, the mobile terminal further includes:
and the second control module is used for adjusting the display position and the display size of the display interface after acquiring the target content displayed by the display interface of the flexible screen in the bending area when the flexible screen is detected to bend, so that the display interface is positioned in the second plane area.
Optionally, the second control module includes:
an area determination unit configured to determine an area of the second planar region;
the scale determining unit is used for determining a scaling scale according to the area of the second plane area and the area of the display interface;
and the control unit is used for adjusting the size of the display interface according to the scaling and controlling the adjusted display interface to be displayed in the second plane area.
Optionally, the obtainingmodule 701 includes:
the state acquisition unit is used for acquiring the display state of the flexible screen when the flexible screen is detected to be bent;
and the content acquisition unit is used for acquiring the target content displayed in the area by the display interface of the flexible screen if the flexible screen is in a bright screen state.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition. Due to the fact that the display state of the functional touch control in the target content is adjusted, operation of a user can be facilitated, and the display effect of the flexible screen after bending is improved.
Fig. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Themobile terminal 800 includes, but is not limited to: aradio frequency unit 801, anetwork module 802, anaudio output unit 803, aninput unit 804, asensor 805, adisplay unit 806, auser input unit 807, aninterface unit 808, amemory 809, aprocessor 810, and apower supply 811. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theprocessor 810 is configured to, when it is detected that the flexible screen of the mobile terminal is bent, obtain target content displayed in the area by the display interface of the flexible screen; if the target content comprises a functional touch control, controlling the functional touch control to be displayed in a first plane area; the display area of the flexible screen comprises the bending area and the first plane area and the second plane area which are formed by the bending area in a separating mode, and the area of the first plane area is smaller than or equal to that of the second plane area.
Optionally, theprocessor 810 is specifically configured to, if the target content does not include the functional touch control, adjust a display position and/or a display size of the functional touch control, so that the functional touch control is located in the first planar area.
Optionally, theprocessor 810 is further configured to, when it is detected that the flexible screen is bent, after target content displayed in the bent area by the display interface of the flexible screen is acquired, adjust a display position and a display size of the display interface, so that the display interface is located in the second planar area.
Optionally, theprocessor 810 is specifically configured to determine an area of the second planar area; determining a scaling ratio according to the area of the second plane area and the area of the display interface; and adjusting the size of the display interface according to the scaling, and controlling the adjusted display interface to be displayed in the second plane area.
Optionally, theprocessor 810 is specifically configured to, when it is detected that the flexible screen of the mobile terminal is bent, obtain a display state of the flexible screen; and if the flexible screen is in a bright screen state, acquiring target content displayed in a bending area on a display interface of the flexible screen.
In this way, in the embodiment of the present invention, when it is detected that the flexible screen of the mobile terminal is bent, the target content displayed in the bent area on the display interface of the flexible screen is obtained; if the target content comprises a functional touch control, controlling the functional touch control to be displayed in a first plane area; the display area of the flexible screen comprises the bending area and the first plane area and the second plane area which are formed by the bending area in a separating mode, and the area of the first plane area is smaller than or equal to that of the second plane area. Due to the fact that the display state of the functional touch control in the target content is adjusted, operation of a user can be facilitated, and the display effect of the flexible screen after bending is improved. Meanwhile, the functional touch control is displayed in the first plane area, the display size of the picture in the second plane area can be ensured, the situation that the picture displayed in the second plane area is shielded by the functional touch control is avoided, and the use experience of a user is improved.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 810; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 801 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. Further, theradio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through thenetwork module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
Theaudio output unit 803 may convert audio data received by theradio frequency unit 801 or thenetwork module 802 or stored in thememory 809 into an audio signal and output as sound. Also, theaudio output unit 803 may also provide audio output related to a specific function performed by the mobile terminal 800 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 804 is used for receiving an audio or video signal. Theinput Unit 804 may include a Graphics Processing Unit (GPU) 8041 and amicrophone 8042, and theGraphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 806. The image frames processed by thegraphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via theradio frequency unit 801 or thenetwork module 802. Themicrophone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 801 in case of a phone call mode.
Themobile terminal 800 also includes at least onesensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 8061 and/or the backlight when themobile terminal 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 806 is used to display information input by the user or information provided to the user. TheDisplay unit 806 may include aDisplay panel 8061, and theDisplay panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 807 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, theuser input unit 807 includes atouch panel 8071 andother input devices 8072. Thetouch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near thetouch panel 8071 using a finger, a stylus, or any other suitable object or accessory). Thetouch panel 8071 may include two portions 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 theprocessor 810, receives a command from theprocessor 810, and executes the command. In addition, thetouch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 8071, theuser input unit 807 can includeother input devices 8072. In particular,other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, thetouch panel 8071 can be overlaid on thedisplay panel 8061, and when thetouch panel 8071 detects a touch operation on or near thetouch panel 8071, the touch operation is transmitted to theprocessor 810 to determine the type of the touch event, and then theprocessor 810 provides a corresponding visual output on thedisplay panel 8061 according to the type of the touch event. Although in fig. 8, thetouch panel 8071 and thedisplay panel 8061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, thetouch panel 8071 and thedisplay panel 8061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
Theinterface unit 808 is an interface through which an external device is connected to themobile terminal 800. 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. Theinterface unit 808 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 themobile terminal 800 or may be used to transmit data between themobile terminal 800 and external devices.
Thememory 809 may be used to store software programs as well as various data. Thememory 809 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, thememory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 810 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 running or executing software programs and/or modules stored in thememory 809 and calling data stored in thememory 809, thereby integrally monitoring the mobile terminal.Processor 810 may include one or more processing units; preferably, theprocessor 810 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 intoprocessor 810.
Themobile terminal 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and thepower supply 811 may be logically coupled to theprocessor 810 via a power management system that may be used to manage charging, discharging, and power consumption.
In addition, themobile terminal 800 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes aprocessor 810, amemory 809, and a computer program stored in thememory 809 and capable of running on theprocessor 810, where the computer program, when executed by theprocessor 810, implements each process of the above display control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the display control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.