Screen folding method and electronic device
By obtaining the page parameters of the target file, the screen with black borders is determined and folded, thus solving the black border problem when electronic devices play videos, improving the user experience and reducing the risk of device damage.
Patent Information
- Application Number
- CN202010126086.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-27
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2040-02-27
AI Technical Summary
When playing videos on existing electronic devices, black borders appear after the screen is unfolded because the aspect ratio of the video does not match the aspect ratio of the unfolded screen, which affects the user's viewing experience.
By obtaining the page parameters of the target file, the black border area is determined, and the screen in the black border area is automatically or manually folded to ensure that the target file is fully displayed in the folded area and to avoid affecting the viewing experience.
This feature ensures that no area on the screen interferes with viewing the target file, improving the user experience and reducing the risk of screen damage.
Smart Images

Figure CN111338510B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic device technology, and in particular to a screen folding method and an electronic device. Background Technology
[0002] Currently, smart electronic devices have become the most important electronic devices in the mobile internet era. Following their replacement of digital cameras and camcorders, electronic devices are poised to become the next major replacement for tablet computers. While existing electronic devices already possess most of the functions of tablet computers, their small screens prevent them from fully replacing them. Continuing to increase the size of individual screens using older methods would also make them inconvenient to carry.
[0003] Against this backdrop, foldable screen technology emerged. When users need a large screen, the screen can be unfolded, and when users do not need it, the screen can be folded into a small screen mode.
[0004] When users use the large-screen mode of a foldable screen, if the aspect ratio of the video is inconsistent with the aspect ratio of the unfolded foldable screen, black bars may appear after the screen is unfolded, affecting the user's viewing experience. Summary of the Invention
[0005] This invention provides a screen folding method and an electronic device to solve the problem of black borders affecting viewing of preset files in the prior art.
[0006] To solve the above-mentioned technical problems, the present invention is implemented as follows:
[0007] In a first aspect, embodiments of the present invention provide a screen folding method, the method comprising: when the screen of the electronic device displays a target file, obtaining a first page parameter of the target file; determining a black border area based on the first page parameter; and folding the screen corresponding to the black border area.
[0008] Secondly, embodiments of the present invention also provide an electronic device, the electronic device comprising: a first acquisition module, configured to acquire first page parameters of the target file when the target file is displayed on the screen of the electronic device; a determination module, configured to determine a black border area based on the first page parameters; and a folding module, configured to fold the screen corresponding to the black border area.
[0009] Thirdly, embodiments of the present invention also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the screen folding method.
[0010] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the screen folding method.
[0011] In this embodiment of the invention, when the target file is displayed on the screen of an electronic device, the first page parameters of the target file are obtained; the black border area is determined according to the first page parameters; and the screen corresponding to the black border area is folded. This ensures that when a user views the target file, there will inevitably be a black border area on the screen. After determining the black border area according to the first page parameters of the target file, the black border area is folded so that the target file can be fully displayed in the folded area, and there is no area outside the target file that affects viewing, thus enhancing the user experience. Attached Figure Description
[0012] Figure 1 This is a flowchart of the steps of a screen folding method according to Embodiment 1 of the present invention;
[0013] Figure 2 This is a flowchart of the steps of a screen folding method according to Embodiment 2 of the present invention;
[0014] Figure 3 This is a flowchart of the steps of a screen folding method according to Embodiment 3 of the present invention;
[0015] Figure 4 This is a structural block diagram of an electronic device according to Embodiment 3 of the present invention;
[0016] Figure 5 This is a structural block diagram of an electronic device according to Embodiment 4 of the present invention;
[0017] Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to Embodiment 5 of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] Example 1
[0020] Reference Figure 1 The diagram shows a flowchart of a screen folding method according to an embodiment of the present invention.
[0021] The screen folding method provided in this embodiment of the invention includes the following steps:
[0022] Step 101: With the target file displayed on the electronic device screen, obtain the first page parameters of the target file.
[0023] It should be noted that those skilled in the art can configure the target file according to the actual situation. The target file can be a video, image, document, etc. In addition, displaying the target file on the screen of an electronic device includes: displaying the details interface of the target file, such as: opening the document, or only displaying the target file name page, such as: only displaying the target file name before opening the document.
[0024] When displaying the target file, obtain the first page parameters of the target file. The first page parameters include the long side size and the wide side size of the target file, as well as the position information of the target file on the screen of the electronic device.
[0025] Step 102: Determine the black border area based on the parameters of the first page.
[0026] When using electronic devices, since most videos or images are designed for standard screens, when the electronic device is a foldable device, a black border area will appear on the screen when displaying videos or images. The black border area is determined according to the page parameters of the target file.
[0027] For example, the width of the black border area can be obtained by subtracting the width of the target file from the width of the screen, and the length of the black border area can be obtained by subtracting the length of the target file from the length of the screen. The position information of the black border area can be determined based on the position information of the target file on the screen.
[0028] Step 103: Fold the screen corresponding to the black border area.
[0029] The black border area is automatically folded so that the folded screen only displays the target file. In addition to automatically folding the black border area, users can also fold it manually.
[0030] In this embodiment of the invention, when the target file is displayed on the screen of an electronic device, the first page parameters of the target file are obtained; the black border area is determined according to the first page parameters; and the screen corresponding to the black border area is folded. This ensures that when a user views the target file, there will inevitably be a black border area on the screen. After determining the black border area according to the first page parameters of the target file, the black border area is folded so that the target file can be fully displayed in the folded area, and there is no area outside the target file that affects viewing, thus enhancing the user experience.
[0031] Example 2
[0032] Reference Figure 2 The diagram shows a flowchart of a screen folding method according to a second embodiment of the present invention.
[0033] The screen folding method provided in this embodiment of the invention includes the following steps:
[0034] Step 201: With the target file displayed on the electronic device screen, move the target file to the edge of the screen.
[0035] It should be noted that those skilled in the art can configure the target file according to the actual situation. The target file can be a video, image, document, etc. In addition, displaying the target file on the screen of an electronic device includes: displaying the details interface of the target file, such as: opening the document, or only displaying the target file name page, such as: only displaying the target file name before opening the document.
[0036] Moving the target file to the edge of the screen reduces the number of folds required when collapsing the black border area, thus preventing damage to the electronic device. The movement of the target file can be automatic, either while it is displayed on the screen or manually initiated by the user upon receiving their input.
[0037] Step 202: Obtain the first page parameters of the target file.
[0038] When displaying the target file, obtain the first page parameters of the target file. The first page parameters include the long side size and the wide side size of the target file, as well as the position information of the target file on the screen of the electronic device.
[0039] Step 203: Determine the black border area based on the parameters of the first page.
[0040] The feature automatically folds the black border area, ensuring that the folded screen only displays the target file. Besides automatic folding, users can also manually fold the black border area.
[0041] When using electronic devices, since most videos or images are designed for standard screens, when the electronic device is a foldable device, a black border area will appear on the screen when displaying videos or images. The black border area is determined according to the page parameters of the target file.
[0042] For example, the width of the black border area can be obtained by subtracting the width of the target file from the width of the screen, and the length of the black border area can be obtained by subtracting the length of the target file from the length of the screen. The position information of the black border area can be determined based on the position information of the target file on the screen.
[0043] Step 204: Fold the screen corresponding to the black border area.
[0044] The black border area is automatically folded so that the folded screen only displays the target file. In addition to automatically folding the black border area, users can also fold it manually.
[0045] It should be noted that, in addition to automatically folding the black border area, the user can also manually fold the black border area. Specifically: the system receives the user's first input; in response to the first input, it folds the screen corresponding to the first area, adjusts the first page parameters of the target file, and displays the target file in the second area. The adjusted first page parameters correspond to the second area, which is the area outside the first area.
[0046] It should be noted that the first input is a collapsing input operation for the black border area.
[0047] The parameters of the first page of the target file are adjusted to ensure that there are no black borders in either the width or length of the second region. This eliminates the black borders in the second region during user viewing, improving the user experience. A preferred method is to fold the screen corresponding to the black border area to a preset angle.
[0048] If only one side of the black border area needs to be folded, the black border area will be automatically folded to a preset angle, which can be preset by the user in advance.
[0049] It should be noted that those skilled in the art can set the preset angle according to actual conditions. This can be set to 270 degrees, 360 degrees, etc. When the preset angle is 270 degrees, the folded black border area can provide support for the electronic device when the user views a preset file. When the user picks up the electronic device, the folding angle of the black border area automatically switches to 360 degrees, facilitating user operation.
[0050] When the preset angle is 360 degrees, the preset area of the screen completely overlaps with the back.
[0051] The black border area can be folded automatically when a target file is detected being viewed, or it can be pre-programmed with trigger commands. When a target file is detected and a trigger command is received, the black border area of the screen will be folded. For example, a touch command could allow the user to swipe to display a preset graphic on the screen, or the screen could be controlled via voice. In addition to folding the black border area, users can also manually select the area to be folded; once the area is selected, it will be folded automatically.
[0052] This aims to enable users to fully interact with electronic devices and enhance the user experience.
[0053] Step 205: Upon receiving a notification message, expand the black border area.
[0054] Step 206: Display the notification message in the black border area.
[0055] When the screen of an electronic device is in a folded state (the area with the black border is folded), if a message is received (such as a phone call or notification), the screen of the electronic device will automatically unfold. The screen in the area with the black border can then be used to display the message, or the electronic device can remain folded. The message will pop up in a preset area of the target file, which can be the top, bottom, left, right, or right side of the target file.
[0056] In this embodiment of the invention, when the target file is displayed on the screen of an electronic device, the target file is moved to the edge of the screen, and then the first page parameters of the target file are obtained; the black border area is determined according to the first page parameters; the screen corresponding to the black border area is folded, so that when the user views the target file, there will inevitably be a black border area on the screen. After determining the black border area according to the first page parameters of the target file, the target file can be fully displayed in the folded area by folding the black border area, and there is no area outside the target file that affects the viewing, which enhances the user experience. Furthermore, moving the target file to the edge of the screen can reduce the number of times the black border area is folded, thereby avoiding damage to the electronic device.
[0057] Example 3
[0058] according to Figure 3 The diagram shows a flowchart of a screen folding method according to Embodiment 3 of the present invention.
[0059] The screen folding method provided in this embodiment of the invention includes the following steps:
[0060] Step 301: With the target file displayed on the electronic device screen and the long side of the screen adjustable, move the target file to the wide edge of the screen.
[0061] It should be noted that those skilled in the art can configure the target file according to the actual situation. The target file can be a video, image, document, etc. In addition, displaying the target file on the screen of an electronic device includes: displaying the details interface of the target file, such as: opening the document, or only displaying the target file name page, such as: only displaying the target file name before opening the document.
[0062] When the width and / or length of the screen is adjustable, the target file is moved to the edge of the width of the screen. The movement of the target file can be done automatically when the target file is displayed on the screen of the electronic device, or it can be done manually when the user inputs the movement of the target file.
[0063] Moving the target file to the wide edge of the screen only requires adjusting the long side on one side, reducing the difficulty of adjusting the black border area.
[0064] Step 302: Obtain the second page parameters of the moved target file.
[0065] When the target file is displayed, the second page parameters of the target file are obtained. The second page parameters include the long side size and the wide side size of the target file, as well as the position information of the target file on the screen of the electronic device.
[0066] Step 303: Based on the parameters of the second page, obtain the first length of the black border area in the screen length direction.
[0067] For example: if the long side of the second page parameter is 11cm and the wide side is 8cm, and the long side of the electronic device screen is 20cm and the wide side is 8cm, then the first length of the black border area in the screen length direction is 9cm.
[0068] Step 304: Adjust the long side of the screen according to the first length.
[0069] Step 305: With the screen width adjustable, move the target file to the edge of the screen's long side.
[0070] The screen of the electronic device in this embodiment of the invention can be a retractable screen or a rollable screen.
[0071] Electronic devices with retractable screens require sliding tracks to extend and retract the screen, allowing it to shrink or enlarge.
[0072] A scrollable screen allows you to scroll through the black border area, so that viewing the target file is not affected by the black border area.
[0073] Step 306: Obtain the third page parameter of the moved target file.
[0074] The parameters on the third page include the long and wide dimensions of the target file's edges, as well as the target file's position on the electronic device screen.
[0075] Step 307: Based on the parameters of the third page, obtain the first width of the black border area in the screen width direction.
[0076] For example: the long side of the third page parameter is 11cm and the wide side is 5cm. The long side of the electronic device screen is 11cm and the wide side is 10cm. Then the first width of the black border area in the length direction of the screen is 5cm. Then the width direction can be shrunk or rolled up by using a telescopic screen or a scrollable screen.
[0077] Step 308: Adjust the width of the screen according to the first width.
[0078] When a message is received, the collapsed long side will expand, and the message will be displayed in the expanded black border area.
[0079] In addition to adjusting the screen's length or width when the screen's length or width is adjustable, when both the screen's length and width are adjustable, based on the first page parameters of the target file, the second length of the black border area in the screen's length direction and the second width of the black border area in the screen's width direction are obtained respectively; the screen's length and width are then adjusted according to the second length and the second width. In this embodiment of the invention, when the target file is displayed on the electronic device screen and the screen's length and / or width are adjustable, the target file is moved to the edge of the screen's length or length, and the page parameters of the moved target file are obtained; based on the page parameters, the first length of the black border area in the screen's length direction or the first width in the screen's width direction is obtained; the screen's length or width is then adjusted according to the first length or the first width. This enables a situation where, when a user views a target file, a black border area will inevitably exist on the screen. By moving the target file to the edge of the screen's length or width and adjusting the length or width of the black border area, the black border area is folded, allowing the target file to be fully displayed in the unfolded area, and ensuring that there is no area outside the target file that affects viewing, thus enhancing the user experience.
[0080] Example 4
[0081] Reference Figure 4 The diagram shows a structural block diagram of an electronic device according to Embodiment 4 of the present invention.
[0082] The electronic device provided in this embodiment of the invention includes: a first acquisition module 401, used to acquire first page parameters of the target file when the target file is displayed on the screen of the electronic device; a determination module 402, used to determine a black border area based on the first page parameters; and a folding module 403, used to fold the screen corresponding to the black border area.
[0083] In this embodiment of the invention, when the target file is displayed on the screen of an electronic device, the first page parameters of the target file are obtained; the black border area is determined according to the first page parameters; and the screen corresponding to the black border area is folded. This ensures that when a user views the target file, there will inevitably be a black border area on the screen. After determining the black border area according to the first page parameters of the target file, the black border area is folded so that the target file can be fully displayed in the folded area, and there is no area outside the target file that affects viewing, thus enhancing the user experience.
[0084] Example 5
[0085] Reference Figure 5 The diagram shows a block diagram of an electronic device according to Embodiment 5 of the present invention.
[0086] The electronic device provided in this embodiment of the invention includes: a first acquisition module 501, used to acquire first page parameters of the target file when the target file is displayed on the screen of the electronic device; a determination module 502, used to determine a black border area based on the first page parameters; and a folding module 503, used to fold the screen corresponding to the black border area.
[0087] Preferably, the electronic device further includes a first moving module 504, used to move the target file to the edge of the screen before the first acquisition module 501 acquires the first page parameters of the target file, while the target file is displayed on the screen of the electronic device.
[0088] Preferably, the electronic device further includes: a receiving module 505, configured to receive a first input from a user after the first acquiring module 501 acquires the page parameters of the target file; and a response module 506, configured to respond to the first input by folding the screen corresponding to the first area, adjusting the first page parameters of the target file, and displaying the target file in a second area, wherein the adjusted first page parameters correspond to the second area, and the second area is an area outside the first area.
[0089] Preferably, the electronic device further includes: an unfolding module 507, used to unfold the black border area after the folding module 503 folds the screen corresponding to the black border area and receives a notification message; and a display module 508, used to display the notification message in the black border area.
[0090] Preferably, the electronic device further includes: a second moving module 509, configured to adjust the width and / or length of the screen, and, when the length of the screen is adjustable, move the target file to the edge of the width of the screen; a second acquiring module 510, configured to acquire second page parameters of the moved target file; a third acquiring module 511, configured to acquire a first length of the black border region in the length direction of the screen based on the second page parameters; a first adjusting module 512, configured to adjust the length of the screen based on the first length; a third moving module 513, configured to move the target file to the edge of the length of the screen when the width of the screen is adjustable; and a fourth acquiring module 510. The fifth acquisition module 514 is used to acquire the third page parameters of the moved target file; the fifth acquisition module 515 is used to acquire the first width of the black border area in the screen width direction according to the third page parameters; the second adjustment module 516 is used to adjust the width of the screen according to the first width; the sixth acquisition module 517 is used to acquire the second length of the black border area in the screen length direction and the second width of the black border area in the screen width direction according to the first page parameters when both the long and wide sides of the screen are adjustable; the third adjustment module 518 is used to adjust the long and wide sides of the screen according to the second length and the second width respectively.
[0091] The electronic device provided in this embodiment of the invention can achieve Figures 1 to 3 The various processes implemented by the electronic device in the method embodiment will not be described again here to avoid repetition.
[0092] In this embodiment of the invention, when the target file is displayed on the screen of an electronic device, the first page parameters of the target file are obtained; the black border area is determined according to the first page parameters; and the screen corresponding to the black border area is folded. This ensures that when a user views the target file, there will inevitably be a black border area on the screen. After determining the black border area according to the first page parameters of the target file, the black border area is folded so that the target file can be fully displayed in the folded area, and there is no area outside the target file that affects viewing, thus enhancing the user experience.
[0093] Example 5
[0094] Reference Figure 6 The above is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0095] The electronic device 600 includes, but is not limited to, components such as: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will understand that... Figure 6 The electronic device structures shown are not intended to limit the electronic device. An electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements. In embodiments of the present invention, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptops, PDAs, in-vehicle terminals, wearable devices, and pedometers.
[0096] The processor 610 is configured to, when the target file is displayed on the screen of the electronic device, obtain a first page parameter of the target file; determine a black border area based on the first page parameter; and fold the screen corresponding to the black border area.
[0097] In this embodiment of the invention, by obtaining the first page parameters of the target file when it is displayed on the screen of an electronic device, determining the black border area based on the first page parameters, and folding the screen corresponding to the black border area, it is possible to ensure that a black border area will always exist on the screen when the user views the target file. After determining the black border area based on the page parameters of the target file, folding the black border area allows the target file to be fully displayed in the unfolded area, and there is no area outside the target file that affects viewing, thus enhancing the user experience.
[0098] It should be understood that, in this embodiment of the invention, the radio frequency unit 601 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 610; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 601 can also communicate with networks and other devices through a wireless communication system.
[0099] The electronic device provides users with wireless broadband internet access through the network module 602, such as helping users send and receive emails, browse web pages, and access streaming media.
[0100] The audio output unit 603 can convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into audio signals and output them as sound. Furthermore, the audio output unit 603 can also provide audio output related to specific functions performed by the electronic device 600 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, and a receiver, etc.
[0101] Input unit 504 is used to receive audio or video signals. Input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 606. The image frames processed by GPU 6041 can be stored in memory 609 (or other storage media) or transmitted via radio frequency unit 601 or network module 602. Microphone 6042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 601 in telephone call mode.
[0102] The electronic device 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 6061 according to the ambient light level, and the proximity sensor can turn off the display panel 6061 and / or backlight when the electronic device 600 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 605 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.
[0103] The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0104] User input unit 607 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 6071). Touch panel 6071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 610, which receives and executes commands from the processor 610. In addition, touch panel 6071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 6071, user input unit 607 may also include other input devices 6072. Specifically, other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.
[0105] Furthermore, the touch panel 6071 can cover the display panel 6061. When the touch panel 6071 detects a touch operation on or near it, it transmits the information to the processor 610 to determine the type of touch event. Subsequently, the processor 610 provides corresponding visual output on the display panel 6061 based on the type of touch event. Although in Figure 6 In this embodiment, the touch panel 6071 and the display panel 6061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.
[0106] Interface unit 608 serves as an interface for connecting external devices to electronic device 600. For example, external devices may include a wired or wireless headphone 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 with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 608 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 600, or it can be used to transmit data between electronic device 600 and external devices.
[0107] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 609 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0108] The processor 610 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 609, and by calling data stored in the memory 609, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 610.
[0109] The electronic device 600 may also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 is logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0110] In addition, the electronic device 600 includes some functional modules not shown, which will not be described in detail here.
[0111] Preferably, the present invention also provides an electronic device, including a processor 610, a memory 609, and a computer program stored in the memory 609 and executable on the processor 610. When the computer program is executed by the processor 610, it implements the various processes of the above-described screen folding method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0112] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the screen folding method embodiments described above and achieves the same technical effects. To avoid repetition, it will not be described again 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, etc.
[0113] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0115] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.
Claims
1. A screen folding method, applied to electronic devices, characterized in that, The method includes: When the target file is displayed on the screen of the electronic device, the first page parameters of the target file are obtained; the first page parameters include the long side size and the wide side size of the target file, as well as the position information of the target file on the screen of the electronic device. The black border area is determined based on the parameters of the first page; Fold the screen corresponding to the black border area.
2. The method according to claim 1, characterized in that, Before obtaining the first page parameter of the target file, the method further includes: When the target file is displayed on the screen of the electronic device, the target file is moved to the edge of the screen.
3. The method according to claim 1, characterized in that, After obtaining the first page parameter of the target file, the method further includes: Receive the user's first input; In response to the first input, the screen corresponding to the first area is folded, the first page parameters of the target file are adjusted, and the target file is displayed in the second area, wherein the adjusted first page parameters correspond to the second area.
4. The method according to claim 1, characterized in that, After folding the screen corresponding to the black border area, the method further includes: Upon receiving a notification message, the black border area expands. The notification message is displayed in the black border area.
5. The method according to claim 1, characterized in that, The screen's width and / or length are adjustable, and the method further includes: With the long side of the screen adjustable, move the target file to the wide edge of the screen; Obtain the second page parameters of the moved target file; Based on the second page parameters, obtain the first length of the black border region in the screen length direction; Adjust the long side of the screen according to the first length; With the screen's width adjustable, move the target file to the edge of the screen's long side; Obtain the third page parameter of the moved target file; Based on the third page parameters, obtain the first width of the black border area in the screen width direction; Adjust the width of the screen according to the first width; When both the long and wide sides of the screen are adjustable, the second length of the black border area in the screen length direction and the second width of the black border area in the screen width direction are obtained according to the first page parameters. Adjust the long and wide sides of the screen according to the second length and the second width.
6. An electronic device, characterized in that, The electronic device includes: The first acquisition module is used to acquire first page parameters of the target file when the target file is displayed on the screen of the electronic device; the first page parameters include the long side size and the wide side size of the target file, as well as the position information of the target file on the screen of the electronic device. The determination module is used to determine the black border area based on the parameters of the first page; The folding module is used to fold the screen corresponding to the black border area.
7. The electronic device according to claim 6, characterized in that, The electronic device also includes: The first moving module is used to move the target file to the edge of the screen when the target file is displayed on the screen of the electronic device, before the first acquisition module acquires the first page parameters of the target file.
8. The electronic device according to claim 6, characterized in that, The electronic device also includes: The receiving module is configured to receive the user's first input after the first obtaining module obtains the page parameters of the target file; A response module is used to respond to the first input by folding the screen corresponding to the first area, adjusting the first page parameters of the target file, and displaying the target file in the second area, wherein the adjusted first page parameters correspond to the second area, and the second area is an area outside the first area.
9. The electronic device according to claim 6, characterized in that, The electronic device also includes: An unfolding module is used to unfold the black border area after the folding module folds the screen corresponding to the black border area, upon receiving a notification message. The display module is used to display the notification message in the black border area.
10. The electronic device according to claim 6, characterized in that, The electronic device also includes: The second moving module is used to make the width and / or length of the screen adjustable, and when the length of the screen is adjustable, moves the target file to the edge of the width of the screen. The second acquisition module is used to acquire the second page parameters of the moved target file; The third acquisition module is used to acquire the first length of the black border region in the screen length direction according to the second page parameters; The first adjustment module is used to adjust the long side of the screen according to the first length; The third moving module is used to move the target file to the long edge of the screen when the width of the screen is adjustable. The fourth acquisition module is used to acquire the third page parameters of the moved target file; The fifth acquisition module is used to acquire the first width of the black border area in the screen width direction according to the third page parameters; The second adjustment module is used to adjust the width of the screen according to the first width; The sixth acquisition module is used to acquire, based on the first page parameters, the second length of the black border area in the length direction of the screen and the second width of the black border area in the width direction of the screen, when both the long side and the wide side of the screen are adjustable. The third adjustment module is used to adjust the long side and the wide side of the screen according to the second length and the second width, respectively.
11. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the screen folding method as described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the screen folding method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Screen control method and terminal and computer readable memory medium
CN108024013A
Foldable electronic device and display screen
CN110493387A
Display apparatus
CN108878475A
Electronic device photographing method and apparatus
WO2018098638A1