This disclosure relates to the field of electronic technology, and more particularly relates to a method and device for controlling a display screen.
Flexible display screens are deformable display devices with advantages including small size, good portability, excellent image quality, and diversified displaying. In view of the above advantages, flexible display screens have been widely used in the industry, and are gradually applied to various types of terminal devices, such as smart phones, tablet computers, smart wearable devices, smart televisions, and the like.
At present, the flexible display screens may be stretched out and drawn back under controlled of physical buttons and/or software instructions, thereby decreasing power consumption or guaranteeing displaying effect. However, the above operations are cumbersome in practical. Moreover, it may be difficult for the users to obtain desired lengthen and shorten effect after several operations.
Embodiments of the disclosure provide a method and device for controlling a display screen to adjust a mode of the display screen according to an application interface, thereby to control the mode of the display screen conveniently and accurately.
According to a first aspect, the embodiments of the present disclosure provide a method for controlling a display screen, comprising:
obtaining application interface deformation parameters of a current application when an application startup event or an application switching event is detected;
determining screen deformation parameters of the display screen according to the application interface deformation parameters; and
controlling a mode of the display screen according to the screen deformation parameters.
According to a second aspect, the embodiments of the present disclosure provide a device for controlling a display screen, comprising:
a detecting module, configured to detect an application startup event or an application switching event of a current application;
an obtaining module, configured to obtain application interface deformation parameters when the detecting module detects the application startup event or the application switching event;
a determining module, configured to determine screen deformation parameters of the display screen according to the application interface deformation parameters; and
a controlling module, configured to control a mode of the display screen according to the screen deformation parameters.
In the embodiment of the present disclosure, the application interface deformation parameters of the current application can be obtained when the application startup event or the application switching event is detected, and the screen deformation parameters of the display screen can be determined according to the application interface deformation parameters. Accordingly, the mode of the display screen can be controlled according to the screen deformation parameters. Thus, the mode of the display screen can be adjusted according the application interface, to control the mode of the display screen conveniently and accurately.
To describe the technology solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present disclosure, Those of ordinary skill in the art may also derive other obvious variations based on these accompanying drawings without creative efforts.
The technical solution in the embodiments of the present disclosure will be described clearly and completely hereinafter with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely some but not all embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
A terminal device of the present disclosure may include, but not limited to, a smart phone, a tablet computer, a smart wearable device, a vehicle terminal, and the like which are equipped with flexible display screens.
A display screen of the present disclosure may be a flexible display screen, such as an OLED (Organic Light-Emitting Diode) flexible display screen, which is capable of being deformed freely, to achieve changes in size, shape and the like.
Referring to
At block 101, a terminal device obtains application interface deformation parameters of a current application when the terminal device detects an application startup even or an application switching event.
Therein, the application interface deformation parameters may include at least one of sizes, shapes, position coordinates, a deformation speed, and the like. The application interface deformation parameters are configured to represent a display space occupied by an application interface of the application. The display space includes parameters of sizes (such as length, width, diameter, etc.), shapes (such as rectangles, circles, etc.), position coordinates, and the like. The deformation speed represents a changing speed of the application interface changed from the application interface of a previous application to the application interface of the current application.
In one implementation, a system of the terminal device may establish a detecting mechanism to detect the application startup event or the application switching event. When the terminal device detects the application startup event or the application switching event via the detecting mechanism, the terminal device obtains the current application that has been started or already-switched, and obtains the application interface deformation parameters of the current application from an application interface deformation parameters group prestored in the terminal device.
Additionally, after the terminal device obtains the application interface deformation parameters, the terminal device displays the application interface of the current application in the display screen according to the application interface deformation parameters, which may specifically include: adjusting the sizes, shapes, and the position coordinates of the application interface displayed on the terminal device before detecting the application startup event or the application switching event (which may be the previous application or an application interface of a system desktop), to the sizes, the shapes, and the position coordinates in the application interface deformation parameters of the current application, by changing a root layout of the application interface of the previous application according to the deformation speed of the application interface deformation parameters. Therefore, the terminal device may display the application interface of the current application in the display screen, and render relative content of the current application in the application interface of the current application. For example, the terminal device can change a rectangle application interface of the previous application shown in
It should be noted that the application interface of the present disclosure is fulfilled in the display screen in one embodiment. Furthermore, the display screen can be slightly bigger or slightly smaller than the application interface in other embodiments.
In some embodiments, the application interface deformation parameter group may be stored in a launcher or a shared file. A method that the terminal device obtains the application interface deformation parameters of the current application can include: the terminal device determines that whether the current application is a startup application or an already-switched application (the already-switched application is the application being switched to the foreground from background). If the current application is the startup application, the terminal device obtains the application interface deformation parameters from the launcher. If the current application is the already-switched application, the terminal device obtains the application interface deformation parameters from the shared file.
In some embodiments, if neither the launcher nor the shared file stores the application interface deformation parameters of the current application, the terminal device may output a setting prompt corresponding to the application interface deformation parameters of the current application, the terminal device receives the application interface deformation parameters of the current application input from a user according to the setting prompt, and stores the application interface deformation parameters input by the user into the launcher, or the shared file, or both the launcher and the shared file.
At block 102, the terminal device determines screen deformation parameters of the display screen according to the application interface deformation parameters.
Therein, the screen deformation parameters can include at least one of sizes, shapes, position coordinates, deformation speeds, and the like. The screen deformation parameters are configured to identify the display screen to be adjusted to the parameters of sizes (such as length, width, diameter, etc.), shapes (such as rectangles, circles, etc.), position coordinates. The deformation speed represents a changing speed of adjusting the display screen.
In one implementation, the terminal device may directly set the application interface deformation parameters of the present application as the display deformation parameters of the display screen. That is, the sizes, the shapes, the position coordinates, and the deformation speed of the screen deformation parameters are the same as the sizes, the shapes, the position coordinates, and the deformation speed of the application interface deformation parameters of the current application. Or the sizes, the shapes, the position coordinates, and the deformation speed of the screen deformation parameters are proportional to the sizes, the shapes, the position coordinates, and the deformation speed of the application interface deformation parameters of the current application in a certain range.
At block 103, the terminal device controls a mode of the display screen according to the screen deformation parameters.
In one implementation, the terminal device transmits the screen deformation parameters to a system driver layer through a system middle layer (such as the framework layer). Specifically, the system middle layer transfers the sizes and the shapes of the screen deformation parameters to a first driver interface being capable of controlling the sizes and the shapes of the display screen, of the system driver layer, and transfers the deformation speed of the screen deformation parameters to a second driver interface being capable of controlling the deformation speed of the display screen, of the system driver layer. Thus, the system driver layer may adjust the sizes and shapes of the display screen to the sizes and shapes of the screen deformation parameters by utilizing the first driving interface, and control the deformation speed of the display screen by utilizing the second driving interface, according to the position coordinates of the screen deformation parameters. Accordingly, the terminal device may complete the control of the mode of the display screen, thereby obtaining a display screen mode matching the application interface of the current application, as shown in
Furthermore, after the mode of the display screen is adjusted completely, the system driver layer can transmit a mode changing result (including the sizes, the shapes, the position coordinates, etc.) to an application layer of the current application. When the application layer determines that the mode changing result does not match the application interface deformation parameters of the current application, the terminal device may inform the system driver layer to adjust the mode of the display screen according to the screen deformation parameters, again. Or, the terminal device can output a prompt information of display mode changing abnormal information, to indicate the user to adjust the mode of the display screen manually. Or, the terminal device can be rebooted, etc.
For example, when the current application is a reader application, the mode of the display screen can be adjusted to a book size. When the current application is a clock application, the mode of the display screen can be adjusted to a size and sharp of a watch. When the current application is a ruler application, the mode of the display screen can be adjusted to a long strip. When the current application is a music player application, the mode of the display screen can be adjusted to a size of a strip line. When the current application is a video player application, the mode of the display screen can be adjusted to a rectangle with a predefined ratio of length to width, and the like.
In some embodiments, if the user is unsatisfied with the mode of the display screen adjusted according to the screen deformation parameters, the user can adjust the application interface and the mode of the display screen manually. For example, the user can adjust the size of the application interface and the display screen, by inputting a pressing operation or sliding operation in a specified area of the application interface or a boundary area of the application interface, or inputting a voice command, to adjust the size of the application interface. Thus, the terminal device may adjust the size of the display screen according to a size adjusting amount of the application interface. As illustrated in
Furthermore, referring to
In the embodiment of the present disclosure, the terminal device obtains the application interface deformation parameters of the current application when the application startup event or application switching event is detected, and determines the screen deformation parameters of the display screen according to the application interface deformation parameters, thereby the mode of the display screen can be controlled according to the screen deformation parameters. The terminal device may adaptively adjust the mode of the display screen conveniently and accurately, thereby improving the practicality of the display screen and the user experience.
Referring to
A monitoring module 301 is configured to detect an application startup event or an application switching event.
An obtaining module 302 is configured to obtain application deformation parameters of a current application when the monitoring module 301 detects the application startup event or the application switching event.
In one embodiment, the monitoring module 301 may establish a detecting mechanism, to detect the application startup event or the application switching event. When the monitoring module 301 detects the application startup event or the application switching event via the detecting mechanism, the obtaining module 302 obtains the current application that has been started or already-switched, and the obtaining module 302 obtains the application interface deformation parameters of the current application from an application interface deformation parameters group prestored in the terminal device.
A determining module 303 is configured to determine screen deformation parameters of the display screen according to the application interface deformation parameters.
Therein, the screen deformation parameters include at least one of the sizes, shapes, position coordinate, and a deformation speed. The screen deformation parameters are configured to identify the display screen to be adjusted to the parameters of sizes (such as length, width, diameter, etc.), shapes (such as rectangles, circles, etc.), position coordinates. The deformation speed represents a changing speed of adjusting the display screen.
In one implementation, the determining module 303 can directly set the application interface deformation parameters of the present application as the display deformation parameters of the display screen. That is, the sizes, the shapes, the position coordinates, and the deformation speed of the screen deformation parameters are the same as the sizes, the shapes, the position coordinates, and the deformation speed of the application interface deformation parameters of the current application, respectively.
A controlling module 304 is configured to control a mode of the display screen according to the screen deformation parameters.
In one implementation, the controlling module 304 transmits the screen deformation parameters to a system driver layer through a system middle layer (such as the framework layer). Specifically, the system middle layer transfers the sizes and shapes of the screen deformation parameters to a first driver interface being capable of controlling the sizes and the shapes of the display screen, of the system driver layer, and transfers the deformation speed of the screen deformation parameters to a second driver interface being capable of controlling the deformation speed of the display screen, of the system driver layer. Thus, the system driver layer may adjust the sizes and shapes of the display screen to the sizes and shapes of the screen deformation parameters by utilizing the first driver interface, and control the deformation speed of the display screen by utilizing the second driver interface, according to the position coordinates of the screen deformation parameters. Accordingly, the controlling module 304 may complete the control of the mode of the display screen, to obtain a display mode corresponding to the application interface of the current application.
In other embodiments, the obtaining module 302 is configured to:
When the monitoring module 301 detects the application startup event or the application switching event, and if the current application is a startup application, the obtaining module 302 obtains the application interface deformation parameters from a launcher.
If the current application is an already-switched application, the obtaining module 302 obtains the application interface deformation parameters from a shared file.
In other embodiments, the device further includes a indicating module 305 and a storing module 306, therein:
The indicating module 305 is configured to output a setting prompt corresponding to the application interface deformation parameters of the current application, when neither the launcher nor the shared file stores the application interface deformation parameters of the current application.
The obtaining module 302 is further configured to obtain application interface deformation parameters of the current application input from a user in response to the setting prompt.
The storing module 306 is configured to store the application interface deformation parameters input by the user in the launcher or the shared file.
In other embodiments, the determining module 303 is configured to:
Set the application deformation parameters as the screen deformation parameter of the display screen.
In other embodiments, the controlling module 304 is configured to:
Transmit, via a system middle layer, the screen deformation parameters to a system driver layer.
Invoke, through the system driver layer, a driver interface of the display screen to driver the display screen to be adjusted according to the screen deformation parameters.
In one embodiment, the application interface deformation parameters include at least one of sizes, shapes, position coordinates and a deformation speed.
In one embodiment, the screen deformation parameters include at least one of sizes, shapes, position coordinates and a deformation speed.
In one embodiment, the display screen is a flexible display screen.
It is to be understood that the functions of the functional modules of the controlling device of the display device can be specifically implemented according to the foregoing method embodiments, and the specific implementation methods can refer to a related description of the foregoing method embodiment.
In one embodiment of the present disclosure, when the monitoring module 301 detects the application startup event or the application switching event, the obtaining module 302 obtains the application interface deformation parameters of the current application, the determining module 303 determines the screen deformation parameters of the display screen according to the application interface deformation parameters. Thus, the controlling module 304 adjusts the mode of the display screen according to the screen deformation parameters, thereby the mode of the display screen being controlled according to the screen deformation parameters. Thus, the mode of the display screen being adjusted conveniently and accurately may be achieved, and practicality of the display screen and the user experience can be improved.
It is to be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of action combinations, however, it will be appreciated by those skilled in the art that the present disclosure is not limited by the sequence of actions described. According to the present disclosure, certain steps may be performed in other order or simultaneously. Besides, it will be appreciated by those skilled in the art that the embodiments described in the specification are exemplary embodiments and the actions and modules involved are not necessarily essential to the present disclosure.
It will be understood by those of ordinary skill in the art that all or part of the operations of the various methods of the embodiments described above may be accomplished by means of a program to instruct associated hardware, such as at least one processor. The program may be stored in a computer-readable memory, which may include a flash memory, a read-only memory (ROM), a random-access memory (RAM), a disk or a compact disc (CD), and so on.
The above is a preferred embodiment of the present disclosure, and it should be noted that those skilled in the art may make some improvements and modifications without departing from the principle of the present disclosure, and these improvements and modifications also are the protection scope of the present disclosure.
This application is a continuation of PCT Patent Application No. PCT/CN2016/112104, filed on Dec. 26, 2016, contents of which are hereby incorporated in its entireties by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2016/112104 | Dec 2016 | US |
Child | 16432280 | US |