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.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Referring to fig. 1a and fig. 1b, taking an example that the target content is a picture, the height of the picture is greater than the display height of the electronic device, and the current adjustment methods include the following two methods:
in the first mode, as shown in fig. 1a, the height of the picture is adjusted to be consistent with the display height of the electronic device, and the width of the picture is correspondingly reduced, so that the electronic device can display the complete picture. In the adjustment mode, black edges are required to be arranged on two sides of the picture to fill up vacant areas caused by width reduction, so that the user experience is poor, and the picture content is unclear after the picture is reduced;
in the second mode, as shown in fig. 1b, the width of the picture is kept consistent with the display width of the electronic device, only part of the picture content is displayed, and the user needs to adjust the display content of the picture through operations such as sliding the screen. Although the picture content can be made clear by the adjustment mode, the user can browse the complete picture content only by repeatedly operating the adjustment mode, so that the user experience is poor.
Therefore, a display method for ensuring the target object to be displayed clearly while the target object is displayed completely is needed.
In the embodiment of the present invention, the electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, an Ultra-Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like.
In an embodiment of the present invention, an electronic device includes a retractable screen having an extended state and a retracted state, a portion of the screen being disposed inside the electronic device when the screen is in the retracted state; when the screen is switched to the stretching state, part of the screen arranged in the electronic equipment stretches out of the electronic equipment, and the whole display area of the screen is enlarged.
The expansion or contraction of the screen can be achieved by the prior art, for example: the structure and the specific telescopic manner of the screen having the extended state and the retracted state are not limited in the embodiment of the present invention, which is operated manually by a user or by a driving assembly provided in the electronic device.
Referring to fig. 2, an embodiment of the present invention provides a display method, where an execution subject of the method is an electronic device, the electronic device includes a retractable screen, and the method includes the following specific steps:
step 201: receiving a first input;
in an embodiment of the present invention, the first input is an input for controlling the screen to be extended or contracted, and the first input may be a voice input, such as: sending a specified password to a microphone of the electronic equipment; the first input may also be a press input to a physical key on the electronic device; the first input may also be a touch input acting on the screen, for example: specific gestures (three fingers slide simultaneously, two fingers double click, etc.) are adopted for inputting on the screen, and the embodiment of the invention does not limit the specific mode of the first input.
Step 202: in the case that the display size of the first target content associated with the first input does not match the size of the lighted area of the screen, controlling the screen to expand or contract, and displaying the first target content in the expanded or contracted screen;
in this embodiment of the present invention, the first target content may be a picture, the first target content may also be a video, and the first target content may also be an operation interface related to functions of the electronic device, for example: the embodiment of the present invention does not limit the specific type of the first target content. The lighted area of the screen refers to an area of the screen of the electronic device that is currently displayed, and for the extendable and retractable screen, the extended portion is the lighted area, and the non-extended portion is the non-lighted area.
The case where the display size of the first target content associated with the first input does not match the size of the lighted area of the screen includes at least one of:
at least part of the first target content is not displayed in the lit area of the screen, such as the scene shown in FIG. 1b previously described;
the proportion of the first target content to the lit area of the screen is less than 1, for example the scene shown in the aforementioned fig. 1 a.
In some implementations, the display size of the first target content includes an aspect ratio of the first target content, and the size of the lit area of the screen includes an aspect ratio of the lit area of the screen.
In an embodiment of the present invention, the electronic device controls the screen to expand or contract in response to the first input to adjust a display size of the screen to be consistent with the first target object.
The embodiment of the invention provides a flow for controlling the expansion or contraction of a screen, which comprises the following substeps:
(1) determining a target distance for stretching or shrinking the screen according to the display size of the first target content and the size of the lighted area of the screen;
the electronic device controls the screen to expand or contract, which is determined based on the difference between the display sizes of the first target content and the lighted area of the screen, and taking the display size as the aspect ratio, for example, the aspect ratio corresponding to the first target content is 16:9, and the aspect ratio of the lighted area of the screen is 4:3, the electronic device needs to control the screen to expand. Specifically, the electronic device calculates a height value required by the first target content according to the width value of the screen and the aspect ratio of the first target content; and calculating a difference value according to the height value and the height value of the lighted area of the screen, wherein the difference value is the target distance.
It should be noted that, in the above process of determining the target distance, the stretching direction of the screen is the same as the height direction of the first target content, and the height value of the screen is adjusted by stretching the screen to meet the display requirement of the first target content. And if the stretching direction of the screen is the same as the width direction of the first target content, calculating the target distance according to the height value of the lighted area of the screen and the aspect ratio of the first target content by referring to the calculation process.
(2) Controlling the screen to extend or contract according to the target distance;
referring to fig. 3, it is shown that the scene of the first target content is re-displayed in the extended or contracted screen based on fig. 1a or fig. 1b by using the above method flow. At the moment, the first target content can be clearly displayed in the screen and can be completely displayed in the screen, and the impression experience of the user is improved.
Fig. 3 illustrates that the first target content is a picture, and when the first target content is an operation interface, the method flow may also be adopted to display a complete operation interface.
Referring to fig. 4a and 4b, fig. 4a illustrates a display scene of the screen before adjustment of the first target content, and fig. 4b illustrates a display scene of the screen after adjustment of the first target content. Therefore, when the screen is not controlled to stretch, only part of the operation interface can be displayed in the screen, and after the screen is controlled to stretch, the complete operation interface can be displayed in the screen.
It is understood that the first target content may be adjusted in display in synchronization with the screen during the scaling adjustment of the screen. For example: before the screen is stretched, the first target content is displayed in the display mode shown in fig. 1a, and when the screen starts to be stretched, the first target content is gradually enlarged and displayed along with the stretching of the screen until the stretching of the screen is finished; or before the screen is stretched, the first target content is displayed in the display mode shown in fig. 1b, and when the screen is stretched, the first target content is displayed completely step by step along with the stretching of the screen.
In the embodiment of the invention, when the display size of the screen is not matched with the display size of the target content, the screen is controlled to extend or contract, and the display size of the screen is adjusted, so that the electronic equipment can clearly display the complete target content, and the display effect of the electronic equipment is improved.
Referring to fig. 5, an implementation subject of the method is an electronic device having a screen with a retractable length or width, and both a display size of the first target content and a size of a lighted area of the screen are aspect ratios.
The method comprises the following specific steps:
step 501: receiving a first input;
step 502: controlling the screen to expand or contract in a case where an aspect ratio of the first target content associated with the first input does not match an aspect ratio of the lighted-up area of the screen;
the description ofstep 501 and step 502 may refer to the description of corresponding contents instep 201 and step 202 in fig. 2, and are not described herein again.
Step 503: determining a display direction of the first target content in the expanded or contracted screen according to the aspect ratio of the first target content and the expansion or contraction direction of the screen;
in the embodiment of the present invention, it is considered that there may be a special case in the practical application process, for example: the first target content is a picture with a width much larger than a height, and the stretching direction of the screen of the electronic device is the same as the height direction of the first target content, so that the stretching range of the screen of the electronic device may not meet the requirement of the display height of the first target content, and therefore, the display direction of the first target content needs to be adjusted to adapt to the width of the first target content through stretching of the screen.
Specifically, according to the first target content aspect ratio, the relationship between the height and the width thereof is determined, for example: the aspect ratio is 16:9, the height is larger than the width; an aspect ratio of 9:16 indicates a width greater than a height. Accordingly, the relationship between the height and the width is compared with the stretching direction of the screen to determine whether the display direction of the first target content needs to be adjusted, for example: the aspect ratio of the first target content is 9:16, and the stretching direction of the screen is the same as the height direction of the first target content, so as to ensure that the stretching range of the screen can meet the display requirement of the first target content, the display direction of the first target content needs to be adjusted, for example, the display direction is rotated by 90 degrees, and the display width requirement of the first target content is met by adjusting the display height of the screen.
Step 504: displaying the first target content according to the determined display direction;
in the embodiment of the present invention, when the screen is expanded or contracted to match the display size of the first target content with the size of the lit area of the screen, the aspect ratio of the first target content and the expansion or contraction direction of the screen are considered comprehensively, and the display requirements can be satisfied for various first target contents, thereby improving the display effect.
Referring to fig. 6, an embodiment of the present invention provides anelectronic device 600, where theelectronic device 600 has a screen with a retractable length or width; theelectronic device 600 includes:
a receiving module 61, configured to receive a first input;
acontrol module 602, configured to control the screen to expand or contract if a display size of the first target content associated with the first input does not match a size of the lit area of the screen;
adisplay module 603, configured to display the first target content in the expanded or contracted screen.
Optionally, the case that the display size of the first target content associated with the first input does not match the size of the lighted area of the screen includes at least one of:
at least a portion of the first target content is not displayed in the lit area of the screen;
the proportion of the first target content to the lighted area of the screen is less than 1.
Optionally, thecontrol module 602 includes:
afirst determination unit 6021 configured to determine a target distance by which the screen is extended or contracted, based on a display size of the first target content and a size of an illuminated region of the screen;
acontrol unit 6022 for controlling the screen to expand or contract according to the target distance.
Optionally, the display size of the first target content includes an aspect ratio of the first target content, and the size of the lit area of the screen includes an aspect ratio of the lit area of the screen.
Optionally, thedisplay module 603 includes:
a second determiningunit 6031 configured to determine a display direction of the first target content in the expanded or contracted screen according to an aspect ratio of the first target content and an expansion or contraction direction of the screen.
In the embodiment of the invention, when the display size of the screen is not matched with the display size of the target content, the screen is controlled to extend or contract, and the display size of the screen is adjusted, so that the electronic equipment can clearly display the complete target content, and the display effect of the electronic equipment is improved.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, and as shown in the figure, theelectronic device 700 includes but is not limited to: aradio frequency unit 701, anetwork module 702, anaudio output unit 703, aninput unit 704, asensor 705, adisplay unit 706, auser input unit 707, aninterface unit 708, amemory 709, aprocessor 710, apower supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device 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.
Preferably, a computer program stored on thememory 709 and executable on theprocessor 710, which computer program when executed by theprocessor 710 performs the steps of: receiving a first input; and in the case that the display size of the first target content associated with the first input does not match the size of the lighted area of the screen, controlling the screen to expand or contract, and displaying the first target content in the expanded or contracted screen.
Therefore, when the display size of the screen is not matched with the display size of the target content, the screen is controlled to extend or contract, the display size of the screen is adjusted, the electronic equipment can clearly display the complete target content, and the display effect of the electronic equipment is improved.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 710; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via thenetwork module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 703 may convert audio data received by theradio frequency unit 701 or thenetwork module 702 or stored in thememory 709 into an audio signal and output as sound. Also, theaudio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 704 is used to receive audio or video signals. Theinput Unit 704 may include a Graphics Processing Unit (GPU) 7041 and amicrophone 7042, and theGraphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 706. The image frames processed by thegraphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via theradio unit 701 or thenetwork module 702. Themicrophone 7042 may receive sounds and may be capable of processing such sounds 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 701 in case of a phone call mode.
Theelectronic device 700 also includes at least onesensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 7061 and/or a backlight when theelectronic device 700 is moved to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 705 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 706 is used to display information input by the user or information provided to the user. TheDisplay unit 706 may include aDisplay panel 7061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, theuser input unit 707 includes atouch panel 7071 andother input devices 7072. Thetouch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near thetouch panel 7071 using a finger, a stylus, or any other suitable object or attachment). Thetouch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 710, receives a command from theprocessor 710, and executes the command. In addition, thetouch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. Theuser input unit 707 may includeother input devices 7072 in addition to thetouch panel 7071. In particular, theother input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, thetouch panel 7071 may be overlaid on thedisplay panel 7061, and when thetouch panel 7071 detects a touch operation on or near thetouch panel 7071, the touch operation is transmitted to theprocessor 710 to determine the type of the touch event, and then theprocessor 710 provides a corresponding visual output on thedisplay panel 7061 according to the type of the touch event. Although thetouch panel 7071 and thedisplay panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 7071 and thedisplay panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
Theinterface unit 708 is an interface for connecting an external device to theelectronic apparatus 700. 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 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within theelectronic apparatus 700 or may be used to transmit data between theelectronic apparatus 700 and the external device.
Thememory 709 may be used to store software programs as well as various data. Thememory 709 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 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in thememory 709 and calling data stored in thememory 709, thereby monitoring the whole electronic device.Processor 710 may include one or more processing units; preferably, theprocessor 710 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 710.
Theelectronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, thepower supply 711 may be logically coupled to theprocessor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, theelectronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
The 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 executed by a processor, the computer program implements each process of the above account management 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.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.